#ownerLockScreen[hidden],
#ownerDashboardShell[hidden] {
  display: none !important;
}

.owner-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(35, 86, 163, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(213, 86, 132, 0.16), transparent 28%),
    linear-gradient(180deg, #eef4f8 0%, #f8fbfd 100%);
}

.owner-lock-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.owner-lock-card {
  width: min(100%, 520px);
  padding: 34px;
  border-radius: 32px;
  border: 1px solid rgba(29, 39, 64, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 26px 60px rgba(29, 39, 64, 0.12);
  backdrop-filter: blur(12px);
}

.owner-lock-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  letter-spacing: -0.05em;
}

.owner-lock-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.owner-lock-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.owner-lock-field {
  display: grid;
  gap: 8px;
}

.owner-lock-field span {
  font-weight: 800;
  color: #32415f;
}

.owner-lock-field input {
  min-height: 56px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(29, 39, 64, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
}

.owner-lock-error {
  margin: 0;
  color: #b93b67;
  font-weight: 800;
}

.owner-lock-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.owner-header {
  background: rgba(250, 252, 255, 0.82);
}

.owner-nav-wrap {
  gap: 18px;
}

.owner-access-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.owner-bell-button {
  position: relative;
  min-height: 52px;
  padding: 10px 18px 10px 14px;
  border: 1px solid rgba(29, 39, 64, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(29, 39, 64, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.owner-bell-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(29, 39, 64, 0.12);
}

.owner-bell-button.has-alert {
  border-color: rgba(213, 86, 132, 0.34);
  box-shadow: 0 18px 36px rgba(185, 59, 103, 0.16);
}

.owner-bell-button.is-ringing {
  animation: ownerBellPulse 1.2s ease;
}

.owner-bell-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(64, 90, 150, 0.08);
  color: #405a96;
  flex-shrink: 0;
}

.owner-bell-button.has-alert .owner-bell-icon {
  background: rgba(213, 86, 132, 0.14);
  color: #b93b67;
}

.owner-bell-button.is-ringing .owner-bell-icon svg {
  animation: ownerBellSwing 0.7s ease-in-out 2;
  transform-origin: top center;
}

.owner-bell-icon svg {
  width: 22px;
  height: 22px;
}

.owner-bell-copy {
  display: grid;
  text-align: left;
}

.owner-bell-copy strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

.owner-bell-copy small {
  color: var(--muted);
  line-height: 1.3;
}

.owner-bell-badge {
  min-width: 24px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #b93b67;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.owner-store-link {
  min-height: 48px;
  padding: 0 18px;
}

.owner-site-name {
  margin: 0 0 24px;
  color: rgba(84, 60, 43, 0.8);
  font-weight: 700;
}

.danger-button {
  color: #b93b67;
  background: rgba(213, 86, 132, 0.12);
  box-shadow: none;
}

.danger-button:hover {
  background: rgba(213, 86, 132, 0.18);
}

.owner-main {
  padding: 38px 0 72px;
}

.owner-hero-section {
  padding-bottom: 28px;
}

.owner-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  padding: 32px;
  border-radius: 34px;
  color: #f6fbff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(145deg, #1e2e49 0%, #26435f 40%, #30596d 100%);
  box-shadow: 0 26px 60px rgba(31, 49, 75, 0.22);
}

.owner-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.owner-hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.7rem, 5.3vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.owner-hero-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(246, 251, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.8;
}

.owner-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.owner-highlight-panel {
  display: grid;
  gap: 16px;
  align-content: center;
}

.owner-highlight-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.owner-highlight-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(246, 251, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

.owner-highlight-card strong {
  font-size: 1.45rem;
  line-height: 1.5;
}

.owner-highlight-card.accent {
  background: linear-gradient(135deg, rgba(213, 86, 132, 0.18), rgba(255, 255, 255, 0.1));
}

.owner-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.owner-stat-card,
.owner-toolbar-card,
.owner-sidebar-card,
.order-card {
  border: 1px solid rgba(29, 39, 64, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 40px rgba(29, 39, 64, 0.08);
  backdrop-filter: blur(12px);
}

.owner-stat-card {
  padding: 24px;
  border-radius: 26px;
}

.owner-stat-card span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(64, 90, 150, 0.08);
  color: #405a96;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.owner-stat-card strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.owner-stat-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.owner-dashboard-section {
  padding-top: 28px;
}

.owner-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.owner-orders-column {
  display: grid;
  gap: 20px;
}

.owner-toolbar-card,
.owner-sidebar-card,
.order-card {
  border-radius: 28px;
  padding: 24px;
}

.owner-toolbar-heading h2,
.owner-list-heading h2,
.owner-sidebar-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.owner-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.owner-filter-field {
  display: grid;
  gap: 8px;
}

.owner-filter-field span {
  font-weight: 800;
  color: #32415f;
}

.owner-filter-field input,
.owner-filter-field select {
  min-height: 52px;
  border: 1px solid rgba(29, 39, 64, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0 14px;
  color: var(--text);
}

.owner-filter-actions {
  display: grid;
  align-content: end;
  gap: 12px;
}

.owner-filter-actions .secondary-button {
  width: 100%;
}

.owner-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.owner-list-count {
  color: var(--muted);
}

.owner-orders-list {
  display: grid;
  gap: 18px;
}

.order-card {
  display: grid;
  gap: 20px;
}

.order-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.order-card-id {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.order-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
}

.order-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill.status-new {
  background: rgba(57, 110, 219, 0.1);
  color: #2f5db7;
}

.status-pill.status-preparing {
  background: rgba(220, 140, 22, 0.14);
  color: #9a640f;
}

.status-pill.status-dispatched {
  background: rgba(48, 142, 116, 0.14);
  color: #1d7e65;
}

.status-pill.status-completed {
  background: rgba(97, 118, 144, 0.14);
  color: #53657f;
}

.order-total {
  text-align: right;
}

.order-total span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.order-total strong {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.order-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.order-panel {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(239, 247, 245, 0.94), rgba(255, 255, 255, 0.94));
}

.order-panel h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.order-contact-row,
.order-address-row,
.order-item-row,
.order-actions-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.order-contact-row,
.order-item-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(29, 39, 64, 0.06);
}

.order-contact-row:last-child,
.order-item-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.order-contact-row span,
.order-address-row span,
.order-item-row span,
.order-item-row small {
  color: var(--muted);
}

.order-address-row {
  display: grid;
  gap: 10px;
}

.order-address-row p,
.order-note {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
}

.order-address-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.address-chip,
.product-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(64, 90, 150, 0.08);
  color: #3d5a93;
  font-size: 0.8rem;
  font-weight: 800;
}

.order-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.order-actions-row {
  gap: 10px;
  flex-wrap: wrap;
}

.status-select {
  min-height: 48px;
  border: 1px solid rgba(29, 39, 64, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0 14px;
  min-width: 170px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(213, 86, 132, 0.12);
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 800;
}

.owner-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 110px;
}

.owner-sidebar-heading h2 {
  font-size: 2rem;
}

.location-list,
.product-insight-list {
  display: grid;
  gap: 12px;
}

.location-card,
.product-insight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.98), rgba(236, 244, 248, 0.98));
}

.location-card strong,
.product-insight-card strong {
  font-size: 1.08rem;
}

.location-card span,
.product-insight-card span {
  color: var(--muted);
}

.owner-note-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.owner-notification-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.owner-empty-state {
  padding: 40px 24px;
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px dashed rgba(64, 90, 150, 0.22);
}

.owner-empty-state h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

@keyframes ownerBellSwing {
  0%,
  100% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(14deg);
  }

  40% {
    transform: rotate(-12deg);
  }

  60% {
    transform: rotate(9deg);
  }

  80% {
    transform: rotate(-6deg);
  }
}

@keyframes ownerBellPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(185, 59, 103, 0.24);
  }

  100% {
    box-shadow: 0 0 0 16px rgba(185, 59, 103, 0);
  }
}

.owner-empty-state p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
}

.owner-empty-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 1140px) {
  .owner-hero-card,
  .owner-dashboard-grid,
  .owner-stats-grid {
    grid-template-columns: 1fr;
  }

  .owner-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .owner-filter-grid,
  .order-grid {
    grid-template-columns: 1fr;
  }

  .owner-filter-actions {
    align-items: stretch;
  }

  .order-card-top,
  .owner-list-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .order-total {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .owner-main {
    padding-top: 22px;
  }

  .owner-lock-card,
  .owner-hero-card,
  .owner-toolbar-card,
  .owner-sidebar-card,
  .order-card,
  .owner-stat-card {
    padding: 20px;
    border-radius: 24px;
  }

  .owner-hero-copy h1,
  .owner-toolbar-heading h2,
  .owner-list-heading h2 {
    font-size: clamp(2.1rem, 12vw, 3.3rem);
  }

  .owner-lock-actions,
  .owner-access-links,
  .owner-hero-actions,
  .order-footer,
  .order-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .owner-bell-button,
  .quick-link,
  .status-select {
    width: 100%;
  }

  .owner-bell-button {
    justify-content: flex-start;
  }
}
