:root {
  --gulf-blue: #0071bc;
  --gulf-orange: #f58220;
  --gulf-dark: #071f3a;
  --bg: #f2f6fb;
  --surface: #ffffff;
  --line: #d6e0eb;
  --text: #1d2836;
  --muted: #66768a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at 0 0, #fce1c7 0, transparent 35%), radial-gradient(circle at 100% 0, #cde9fb 0, transparent 45%), var(--bg);
  color: var(--text);
}

.start-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px 14px;
  background-image: url("assets/start-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 260ms ease, transform 260ms ease;
}

.start-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(245, 130, 32, 0.22) 0, transparent 48%),
    linear-gradient(180deg, rgba(7, 31, 58, 0.42) 0%, rgba(7, 31, 58, 0.72) 100%);
}

.start-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.start-screen.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
}

.start-screen.is-entering {
  opacity: 0;
  transform: translateY(8px);
}

.start-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 420px;
}

.start-logo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(7, 31, 58, 0.22);
  margin-bottom: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.start-logo:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px rgba(7, 31, 58, 0.28);
}

.start-inner h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 34px;
}

.start-inner p {
  margin: 0 0 14px;
  color: #f4f7fb;
}

.start-btn {
  min-width: 180px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.start-btn:hover {
  transform: translateY(-1px);
}

.start-btn:active {
  transform: translateY(1px);
}

.start-actions {
  display: grid;
  gap: 8px;
  justify-content: center;
}

.start-actions .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.start-live {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.start-live-item {
  font-size: 12px;
  font-weight: 700;
  color: #f3f7fc;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 10px;
}

.start-order-window {
  width: min(100%, 560px);
  margin: 12px auto 16px;
  padding: 20px 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 240, 0.96));
  border: 1px solid rgba(245, 130, 32, 0.32);
  box-shadow:
    0 24px 50px rgba(7, 31, 58, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  text-align: center;
}

.start-order-window-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 130, 32, 0.18), rgba(0, 113, 188, 0.14));
  color: #0e4f84;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.start-order-window strong {
  display: block;
  color: #072640;
  font-size: 23px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.start-order-window p {
  margin: 0;
  color: #4f5d6f;
  font-size: 15px;
  line-height: 1.5;
}

.start-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.start-feature {
  font-size: 12px;
  color: #f4f7fb;
  background: rgba(7, 31, 58, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 9px;
}

#orderApp {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms ease;
}

#orderApp.is-entering {
  opacity: 0;
}

#orderApp.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.back-start-btn {
  display: none;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
}

.hero,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hero {
  overflow: hidden;
  padding: 0 20px 20px;
  margin-bottom: 16px;
}

.hero-topline {
  height: 5px;
  margin: 0 -20px 16px;
  background: linear-gradient(90deg, var(--gulf-blue), var(--gulf-orange), var(--gulf-blue));
}

.hero h1 {
  margin: 0 0 4px;
  color: var(--gulf-dark);
  font-size: 34px;
}

.hero p {
  margin: 0 0 14px;
  color: var(--muted);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.gulf-logo {
  width: 94px;
  height: 94px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(7, 31, 58, 0.2);
}

.brand-text h1 {
  margin: 0 0 4px;
}

.brand-text p {
  margin: 0;
}

@media (max-width: 700px) {
  .brand-row {
    align-items: flex-start;
  }

  .gulf-logo {
    width: 78px;
    height: 78px;
  }

  .brand-text h1 {
    font-size: 26px;
    line-height: 1.2;
  }
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.layout > * {
  min-width: 0;
}

.layout.layout-single {
  grid-template-columns: 1fr;
}

.panel {
  padding: 16px;
}

.panel-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

h2 {
  margin: 0;
  font-size: 24px;
  color: var(--gulf-dark);
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #0071bc26;
  border-color: var(--gulf-blue);
}

.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
}

.btn-blue {
  background: var(--gulf-blue);
  color: #fff;
}

.btn-orange {
  background: var(--gulf-orange);
  color: #fff;
}

.btn-light {
  background: #fff;
  border-color: var(--line);
  color: var(--gulf-blue);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.chip {
  white-space: normal;
  line-height: 1.15;
  text-align: center;
  border: 0;
  border-radius: 8px;
  padding: 8px 11px;
  font-weight: 700;
  cursor: pointer;
  background: #edf3f9;
  color: #445369;
}

#dayFilters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
}

#categoryFilters {
  display: flex;
}

.chip.active.day {
  background: var(--gulf-blue);
  color: #fff;
}

.chip.active.category {
  background: var(--gulf-orange);
  color: #fff;
}

.products-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.product-top {
  position: relative;
}

.icon {
  font-size: 96px;
  line-height: 1;
  width: 100%;
  height: 260px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f1f5fa;
  border: 1px solid var(--line);
}

.product-photo {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
  content-visibility: auto;
}

.day-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--gulf-orange);
  border-radius: 8px;
  padding: 4px 8px;
}

.day-tag.sold-out {
  background: #b42318;
}

.product-card h3 {
  margin: 12px 0 7px;
  font-size: 18px;
  color: var(--gulf-dark);
  min-height: 42px;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.stock-label {
  color: #7b8ba1;
  font-weight: 700;
  font-size: 12px;
}

.price {
  color: var(--gulf-blue);
  font-size: 22px;
  font-weight: 800;
}

.qty-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f8fc;
  border-radius: 8px;
  padding: 4px;
}

.qty-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--gulf-blue);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 18px;
  cursor: pointer;
}

.qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.qty-val {
  font-size: 20px;
  font-weight: 800;
}

.badge {
  min-width: 28px;
  text-align: center;
  border-radius: 999px;
  background: var(--gulf-orange);
  color: #fff;
  font-weight: 800;
  padding: 4px 10px;
}

.cart-items {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.auth-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: #f8fbff;
}

.auth-box h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--gulf-dark);
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.auth-open-btn {
  width: 100%;
}

.auth-drawer {
  margin-top: 10px;
}

.auth-switch-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #4b5c73;
  font-weight: 700;
  padding: 8px 9px;
}

.auth-switch-btn.active {
  border-color: var(--gulf-blue);
  background: #eaf4ff;
  color: var(--gulf-blue);
}

.auth-pane {
  display: grid;
  gap: 2px;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-status {
  margin: 0 0 8px;
  font-size: 14px;
}

.cart-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cart-row p {
  margin: 0;
}

.cart-row .title {
  font-weight: 700;
}

.cart-row .line {
  color: var(--muted);
  font-size: 13px;
}

.field {
  display: grid;
  gap: 4px;
  margin: 10px 0;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field small {
  color: var(--muted);
  font-size: 12px;
}

.total-box {
  margin: 10px 0;
  background: var(--gulf-dark);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.total-box strong {
  color: var(--gulf-orange);
  font-size: 28px;
}

.cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.my-orders {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.my-orders h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--gulf-dark);
}

.my-orders-list {
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
}

.my-order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.my-order-head,
.my-order-line,
.my-order-meta {
  margin: 0;
}

.my-order-head {
  font-weight: 700;
  font-size: 13px;
}

.my-order-line {
  margin-top: 3px;
  font-size: 12px;
}

.my-order-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.my-order-cancel-btn {
  margin-top: 6px;
  font-size: 12px;
  padding: 6px 8px;
}

.empty {
  border: 1px dashed #c1cfde;
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid #e8eef5;
  padding: 8px;
  font-size: 13px;
}

.table th {
  background: #f3f8fd;
  color: #33445a;
  text-align: left;
}

.admin-table input,
.admin-table select {
  min-width: 80px;
  padding: 8px 9px;
  border-radius: 10px;
}

.admin-table td {
  vertical-align: top;
  background: #fff;
}

.admin-name-input {
  min-width: 320px;
  width: 100%;
  max-width: 520px;
}

.admin-panel {
  padding: 0;
  overflow: hidden;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 560px;
}

.admin-sidebar {
  border-right: 1px solid var(--line);
  background: #f8fbff;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-nav-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #36506d;
  border-radius: 8px;
  min-height: 42px;
  padding: 8px 10px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.admin-nav-btn.active {
  background: var(--gulf-blue);
  border-color: var(--gulf-blue);
  color: #fff;
}

.admin-main {
  padding: 14px;
}

.admin-section {
  display: grid;
  gap: 10px;
}

.admin-media-cell {
  display: grid;
  gap: 6px;
  min-width: 210px;
}

.admin-media-top {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-media-meta {
  display: grid;
  gap: 6px;
}

.admin-photo,
.admin-photo-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.admin-photo {
  object-fit: cover;
}

.admin-photo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5fa;
  font-weight: 700;
  color: #33445a;
}

.admin-icon-input {
  width: 70px;
}

.admin-color-wrap {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.admin-color-input {
  width: 70px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-media-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-icon-presets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.admin-icon-preset-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  padding: 4px 0;
  font-size: 18px;
  line-height: 1;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.admin-gallery-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.admin-gallery-photo {
  width: 100%;
  height: 95px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.admin-gallery-remove-btn {
  font-size: 12px;
  padding: 6px 8px;
}

.admin-gallery-assign {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.admin-gallery-assign-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--gulf-blue);
  border-radius: 8px;
  padding: 4px 7px;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
}

.admin-gallery-assign-empty {
  font-size: 12px;
  color: var(--muted);
}

.admin-file-input {
  position: absolute;
  left: -99999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.admin-upload-label {
  padding: 6px 9px;
  font-size: 12px;
}

.admin-clear-photo-btn {
  padding: 6px 8px;
  font-size: 12px;
  color: #5d6d83;
}

.admin-delete-btn {
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
}

.actions {
  display: flex;
  gap: 8px;
}

.panel-close-btn {
  padding: 6px 10px;
  font-size: 12px;
}

.order-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.banner {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #e8f2fc;
  color: #0e5492;
  border: 1px solid #bfd7ef;
  font-weight: 700;
}

.banner.success {
  background: #ebfaee;
  color: #196f33;
  border-color: #b9e4c4;
  margin-top: 10px;
}

.banner.error {
  background: #fdeceb;
  color: #9e1c11;
  border-color: #f3beb9;
}

.hidden {
  display: none;
}

.login-dialog {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.login-dialog h3 {
  margin: 0 0 6px;
  color: var(--gulf-dark);
}

.login-dialog p {
  margin: 0 0 10px;
  color: var(--muted);
}

.error-text {
  color: #b42318;
  font-weight: 700;
  margin-top: 2px;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 12px;
  }

  .hero {
    padding: 0 16px 16px;
  }

  .hero-topline {
    margin: 0 -16px 12px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  h2 {
    font-size: 21px;
  }

  .panel-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .panel-head h2 {
    width: 100%;
  }

  .panel-head input[type="search"] {
    width: 100%;
  }

  .actions {
    flex-wrap: wrap;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .icon,
  .product-photo {
    height: 220px;
  }

  .admin-name-input {
    min-width: 220px;
  }

  .admin-media-cell {
    min-width: 180px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px;
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }

  .admin-nav-btn {
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
  }

  .admin-main {
    padding: 10px;
  }

  .back-start-btn {
    display: inline-flex;
    margin-bottom: 8px;
    align-items: center;
  }
}

@media (max-width: 820px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-head .actions {
    width: 100%;
  }

  .panel-head .actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 640px) {
  .start-screen {
    padding: 16px 12px;
  }

  .start-logo {
    width: 108px;
    height: 108px;
    margin-bottom: 10px;
  }

  .start-inner h1 {
    font-size: 30px;
  }

  .start-inner p {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .start-live-item,
  .start-feature {
    font-size: 13px;
  }

  .start-btn {
    min-width: 220px;
    min-height: 48px;
  }

  .page {
    padding: 10px 10px 96px;
  }

  .hero {
    padding: 0 12px 12px;
  }

  .hero-topline {
    margin: 0 -12px 10px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 15px;
  }

  h2 {
    font-size: 21px;
  }

  .panel {
    padding: 12px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
    padding: 12px 11px;
  }

  .btn {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
  }

  .chip {
    padding: 10px 10px;
    font-size: 14px;
  }

  #dayFilters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #categoryFilters {
    gap: 8px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card {
    padding: 12px;
  }

  .icon,
  .product-photo {
    height: 170px;
    border-radius: 8px;
  }

  .product-card h3 {
    margin: 10px 0 6px;
    font-size: 18px;
    line-height: 1.2;
    min-height: 0;
  }

  .price {
    font-size: 22px;
  }

  .meta {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .qty-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .qty-val {
    font-size: 22px;
  }

  .total-box strong {
    font-size: 24px;
  }

  .cart-panel .panel-head {
    margin-bottom: 8px;
  }

  .cart-panel .panel-head h2 {
    font-size: 20px;
  }

  .cart-panel .badge {
    min-width: 28px;
    padding: 6px 8px;
    font-size: 14px;
  }

  .auth-box {
    padding: 10px;
    margin-bottom: 10px;
  }

  .auth-box h3 {
    font-size: 16px;
    margin: 0 0 8px;
  }

  .auth-switch {
    margin-bottom: 10px;
    gap: 8px;
  }

  .auth-switch-btn {
    padding: 10px 10px;
    font-size: 14px;
  }

  .field {
    margin: 10px 0;
    gap: 5px;
  }

  .field span,
  .field small,
  .auth-status {
    font-size: 13px;
  }

  .cart-panel input,
  .cart-panel select,
  .cart-panel textarea {
    font-size: 16px;
    padding: 12px 11px;
  }

  .cart-items {
    gap: 8px;
    margin-bottom: 8px;
  }

  .cart-row {
    padding: 10px;
  }

  .cart-row .title {
    font-size: 15px;
  }

  .cart-row .line {
    font-size: 14px;
  }

  .cart-panel .btn {
    min-height: 46px;
    font-size: 15px;
    padding: 10px 12px;
  }

  .total-box {
    margin: 10px 0;
    padding: 10px 12px;
  }

  .total-box strong {
    font-size: 23px;
  }

  .cart-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cart-row {
    flex-wrap: wrap;
  }

  .cart-row .qty-btn {
    margin-left: auto;
  }

  .order-fab {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 20px);
    border-radius: 10px;
    padding: 10px;
    font-size: 15px;
  }

  .admin-name-input {
    min-width: 160px;
  }

  .admin-photo,
  .admin-photo-placeholder {
    width: 96px;
    height: 96px;
  }

  .admin-media-cell {
    min-width: 150px;
  }

  .admin-icon-input {
    width: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .start-screen,
  #orderApp,
  .start-logo,
  .start-btn {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 420px) {
  .brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .gulf-logo {
    width: 72px;
    height: 72px;
  }

  .brand-text h1 {
    font-size: 22px;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .brand-row {
    gap: 8px;
    margin-bottom: 4px;
  }

  .gulf-logo {
    width: 64px;
    height: 64px;
  }

  .brand-text h1 {
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
  }

  .hero p { font-size: 14px; }

  .chips {
    gap: 6px;
    margin-bottom: 6px;
  }

  .day-tag {
    top: 6px;
    right: 6px;
    font-size: 12px;
    padding: 3px 6px;
  }

  .product-card h3 {
    margin: 8px 0 4px;
    font-size: 16px;
    line-height: 1.2;
  }

  .meta {
    margin-bottom: 6px;
  }

  .price {
    font-size: 20px;
  }

  .qty-bar {
    padding: 2px;
  }

  .qty-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .qty-val {
    font-size: 20px;
  }
}

@media (max-width: 359px) and (orientation: portrait) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .start-logo {
    width: 96px;
    height: 96px;
  }

  .start-inner h1 {
    font-size: 26px;
  }

  .page {
    padding: 9px 9px 92px;
  }

  .hero {
    padding: 0 10px 10px;
  }

  .hero-topline {
    margin: 0 -10px 10px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .panel {
    padding: 10px;
  }

  .order-fab {
    left: 6px;
    right: 6px;
    width: calc(100% - 12px);
  }

  .gulf-logo {
    width: 62px;
    height: 62px;
  }

  .brand-text h1 {
    font-size: 18px;
  }

  .cart-panel .panel-head h2 {
    font-size: 18px;
  }

  .cart-panel input,
  .cart-panel select,
  .cart-panel textarea {
    font-size: 15px;
    padding: 10px 10px;
  }

  .cart-panel .btn {
    font-size: 14px;
    padding: 9px 10px;
  }

  .auth-switch-btn {
    font-size: 13px;
  }

  #dayFilters {
    grid-template-columns: 1fr;
  }

  .total-box strong {
    font-size: 21px;
  }

  .icon,
  .product-photo {
    height: 154px;
  }

  .day-tag {
    font-size: 11px;
    padding: 2px 5px;
  }
}
