/* Toasts, Bottom Mobile Tabbar & Core Responsive Layout Hierarchy */
/* ==========================================================================
   Modern Compact True Stacked Toast System (Header Below Center Deck)
   ========================================================================== */
.owner-toast-container {
  position: fixed;
  top: 76px; /* Positioned right below sticky header with room for stacked heads */
  left: calc(var(--owner-sidebar-w) + (100% - var(--owner-sidebar-w)) / 2);
  transform: translateX(-50%);
  width: 90%;
  max-width: 325px; /* Compact & sleek size */
  height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 100050;
  pointer-events: none;
  box-sizing: border-box;
}

.owner-toast {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  pointer-events: auto;
  box-sizing: border-box;
  transform-origin: top center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Front Toast (Stack Index 0 - Active) */
.owner-toast[data-stack="0"] {
  transform: translateY(0) scale(1);
  z-index: 30;
  opacity: 1;
}

/* 1 Toast Behind (Stack Index 1 - Head Clearly Visible) */
.owner-toast[data-stack="1"] {
  transform: translateY(-9px) scale(0.95);
  z-index: 20;
  opacity: 0.95;
}
.owner-toast[data-stack="1"] .owner-toast-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 2 Toasts Behind (Stack Index 2 - Head Clearly Visible) */
.owner-toast[data-stack="2"] {
  transform: translateY(-17px) scale(0.90);
  z-index: 10;
  opacity: 0.90;
}
.owner-toast[data-stack="2"] .owner-toast-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Dismissing or Hidden (Beyond stack capacity) */
.owner-toast[data-stack="hidden"],
.owner-toast.owner-toast-dismissing {
  transform: translateY(-24px) scale(0.85);
  opacity: 0;
  pointer-events: none;
}

/* Compact Toast Card Base */
.owner-toast-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: #ffffff;
  border-radius: 13px;
  box-sizing: border-box;
  width: 100%;
  box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.08), 0 3px 6px -2px rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* Compact Left Icon Squircle */
.owner-toast-icon-wrap {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.owner-toast-svg {
  width: 15px;
  height: 15px;
  color: #ffffff;
}

/* Text Content Area */
.owner-toast-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.owner-toast-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.owner-toast-desc {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #4b5563;
  word-break: break-word;
}

/* Right Close Button (X) */
.owner-toast-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.owner-toast-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

/* --- Type: SUCCESS (Mint & Emerald) --- */
.owner-toast-success .owner-toast-card {
  border: 1.5px solid #10b981;
}
.owner-toast-success .owner-toast-icon-wrap {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.owner-toast-success[data-stack="1"] .owner-toast-card {
  background: #f0fdf4 !important;
  border-color: #34d399 !important;
}
.owner-toast-success[data-stack="2"] .owner-toast-card {
  background: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
}

/* --- Type: ERROR (Ruby Red) --- */
.owner-toast-error .owner-toast-card {
  border: 1.5px solid #ef4444;
}
.owner-toast-error .owner-toast-icon-wrap {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.owner-toast-error[data-stack="1"] .owner-toast-card {
  background: #fef2f2 !important;
  border-color: #f87171 !important;
}
.owner-toast-error[data-stack="2"] .owner-toast-card {
  background: #fff1f2 !important;
  border-color: #fca5a5 !important;
}

/* --- Type: WARNING (Amber / Orange) --- */
.owner-toast-warning .owner-toast-card {
  border: 1.5px solid #f59e0b;
}
.owner-toast-warning .owner-toast-icon-wrap {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.owner-toast-warning[data-stack="1"] .owner-toast-card {
  background: #fffbeb !important;
  border-color: #fbbf24 !important;
}
.owner-toast-warning[data-stack="2"] .owner-toast-card {
  background: #fefce8 !important;
  border-color: #fde68a !important;
}

/* --- Type: INFO (Sky Blue) --- */
.owner-toast-info .owner-toast-card {
  border: 1.5px solid #3b82f6;
}
.owner-toast-info .owner-toast-icon-wrap {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.owner-toast-info[data-stack="1"] .owner-toast-card {
  background: #eff6ff !important;
  border-color: #60a5fa !important;
}
.owner-toast-info[data-stack="2"] .owner-toast-card {
  background: #f0f7ff !important;
  border-color: #93c5fd !important;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .owner-toast-container {
    top: 64px;
    max-width: calc(100vw - 1.5rem);
  }
}

/* Auth Screen */
.owner-auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 1.5rem;
}
.owner-auth-wrapper {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.owner-auth-card {
  max-width: 420px;
  width: 100%;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}
.owner-auth-icon { font-size: 3rem; margin-bottom: 1rem; }
.owner-auth-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; }
.owner-auth-desc { font-size: 0.95rem; color: #64748b; margin-bottom: 1.5rem; }
.owner-auth-actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* Floating Bottom Navigation Bar (Default: Hidden on Desktop) */
.owner-floating-tabbar {
  display: none;
}

/* Responsive Layout */
/* Responsive Layout Hierarchy (Strict Descending Order) */
@media (max-width: 960px) {
  :root {
    --owner-sidebar-w: 0px;
  }

  .owner-sidebar-collapse-row {
    display: none;
  }

  .owner-main-layout {
    flex-direction: column;
    padding-left: 0 !important;
  }

  .owner-topbar {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .owner-global-banner {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.85rem 1rem !important;
  }

  #banner-network-offline.owner-global-banner {
    top: 54px;
    z-index: 48;
  }

  .owner-toast-container {
    left: 50% !important;
  }

  .owner-drawer-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #0f172a;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
    flex-shrink: 0;
  }
  .owner-drawer-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
  }

  /* Body Scroll Lock when Drawer is Active */
  body.drawer-open {
    overflow: hidden !important;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
  }

  /* Off-canvas Drawer Navigation */
  .owner-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    height: 100dvh;
    width: 280px;
    max-width: 82vw;
    background: #ffffff;
    z-index: 9999;
    padding: 0;
    border-right: 1px solid #e2e8f0;
    border-bottom: none;
    box-shadow: 4px 0 25px rgba(15, 23, 42, 0.15);
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    overscroll-behavior: contain;
  }

  .owner-sidebar.is-open {
    transform: translateX(0);
  }

  /* Backdrop Overlay */
  .owner-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    touch-action: none;
  }

  .owner-drawer-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
    display: block !important;
  }

  .owner-drawer-close-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.35rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
    flex-shrink: 0;
  }

  .owner-drawer-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
  }

  /* Nav Menu inside Drawer */
  .owner-nav-menu {
    flex-direction: column;
    overflow-x: visible;
    gap: 0.35rem;
  }

  .owner-nav-item {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.85rem;
    font-size: 0.92rem;
    border-radius: 8px;
    justify-content: flex-start;
    gap: 0.75rem;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .owner-nav-item .owner-nav-badge {
    margin-left: auto;
  }
  .owner-content-pane {
    padding: 0.85rem 0.95rem 100px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Floating Bottom Navigation Bar (Mobile & Tablet <= 960px) */
  .owner-floating-tabbar {
    display: flex;
    position: fixed;
    bottom: 20px;
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    z-index: 900;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 1;
    pointer-events: auto;
    user-select: none;
  }

  .owner-floating-tabbar.is-hidden {
    transform: translate(-50%, calc(100% + 40px));
    -webkit-transform: translate(-50%, calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
  }

  /* Frosted Crystal Glass Pill */
  .owner-tabbar-inner {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 9999px;
    padding: 0.45rem 1.85rem 0.4rem;
    box-shadow: 
      0 12px 36px -4px rgba(15, 23, 42, 0.12),
      0 4px 12px -2px rgba(15, 23, 42, 0.05),
      inset 0 1px 1.5px 0 #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    position: relative;
    gap: 2.25rem;
  }

  .owner-tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    color: #64748b;
    transition: color 0.18s ease, transform 0.15s ease;
    text-decoration: none;
    position: relative;
    min-width: 54px;
    gap: 0.2rem;
  }

  .owner-tabbar-item:hover,
  .owner-tabbar-item:focus {
    color: #0f172a;
  }

  .owner-tabbar-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .owner-tabbar-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: transform 0.15s ease;
  }

  .owner-tabbar-item:active .owner-tabbar-icon {
    transform: scale(0.92);
  }

  .owner-tabbar-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.1;
    color: inherit;
    letter-spacing: 0.01em;
  }

  /* Active Blue Dot Indicator with Royal Glow */
  .owner-tabbar-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 6px rgba(37, 99, 235, 0.6);
    margin-top: 1px;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .owner-tabbar-item.active {
    color: #0f172a;
  }

  .owner-tabbar-item.active .owner-tabbar-label {
    font-weight: 700;
    color: #0f172a;
  }

  .owner-tabbar-item.active .owner-tabbar-dot {
    opacity: 1;
    transform: scale(1);
  }

  .owner-tabbar-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
  }

  /* Center Elevated Circular FAB Button (Clean Monochrome White Glass) */
  .owner-tabbar-fab-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: -24px;
    gap: 0.35rem;
  }

  .owner-tabbar-fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    border: 2.5px solid #ffffff;
    box-shadow: 
      0 10px 25px -4px rgba(15, 23, 42, 0.16),
      0 3px 8px -2px rgba(15, 23, 42, 0.08),
      inset 0 1px 1.5px 0 #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 0;
    outline: none;
  }

  .owner-tabbar-fab-btn:hover {
    transform: scale(1.06);
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.22);
  }

  .owner-tabbar-fab-btn:active {
    transform: scale(0.94);
    background: #f8fafc;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  }

  .owner-tabbar-fab-icon {
    width: 25px;
    height: 25px;
    stroke: #0f172a;
  }

  .owner-tabbar-fab-label {
    font-size: 0.73rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    white-space: nowrap;
  }
  .owner-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
  }
  /* Anchor Sound + Refresh utility buttons inline next to Page Title across all tablet & mobile widths (<= 960px) */
  #tab-pane-requests .owner-pane-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.65rem;
    row-gap: 0.35rem;
    align-items: start;
  }
  #tab-pane-requests .owner-pane-header > div:first-child,
  #tab-pane-requests .owner-requests-header-actions {
    display: contents;
  }
  #tab-pane-requests .owner-requests-heading-line {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    gap: 0.5rem;
  }
  #tab-pane-requests .owner-utility-pill-group {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }
  #tab-pane-requests #btn-requests-mark-all-attended {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    width: auto;
    min-height: 36px;
    margin-top: 0.25rem;
  }
  .owner-pane-title {
    font-size: 1.35rem;
  }
  .owner-pane-subtitle {
    font-size: 0.82rem;
  }
  .owner-pane-header .owner-btn {
    width: auto;
    font-size: 0.88rem;
    box-sizing: border-box;
  }
  .owner-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
  }
  .owner-search-wrap {
    min-width: 0;
    width: 100%;
  }
  .owner-filter-group {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
  }
  .owner-filter-group .owner-select {
    flex: 1 1 180px;
    min-width: 140px;
  }
  .owner-filter-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
  }
  .owner-items-counter {
    text-align: center;
    box-sizing: border-box;
  }
  .owner-qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .owner-item-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.95rem 1rem;
    gap: 0.75rem;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 0;
  }
  .owner-item-left {
    width: 100%;
    flex: 0 0 auto;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
    height: auto;
    min-height: 0;
  }
  .owner-item-thumb {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .owner-item-details {
    flex: 1;
    min-width: 0;
    height: auto;
    min-height: 0;
  }
  .owner-item-title {
    font-size: 1rem;
  }
  .owner-item-desc {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-top: 0.25rem;
  }
  .owner-item-right {
    width: 100%;
    flex: 0 0 auto;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    gap: 0.75rem;
    flex-wrap: wrap;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
  }
  .owner-item-pricing-toggle {
    gap: 1rem;
  }
  .owner-item-price {
    font-size: 1.05rem;
  }
  .owner-item-actions-box {
    gap: 0.45rem;
  }
  .owner-item-actions-box .owner-item-action-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .owner-pane-header {
    flex-direction: column;
    align-items: stretch;
  }
  :where(.owner-pane-header) .owner-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
  }
  .owner-pane-header .owner-orders-icon-btn {
    width: 40px !important;
    min-width: 40px;
    height: 40px;
    padding: 0 !important;
  }
  .owner-pane-header .owner-orders-header-actions #btn-orders-create,
  .owner-pane-header .owner-orders-header-actions #btn-orders-scan-qr {
    width: auto !important;
    flex: 1 1 auto;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }
  #tab-pane-requests .owner-requests-heading-line {
    gap: 0.45rem;
  }
  #tab-pane-requests #btn-requests-mark-all-attended {
    width: 100% !important;
    min-height: 38px;
  }
  .owner-filter-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }
  .owner-filter-group .owner-select {
    width: 100%;
    min-height: 42px;
    font-size: 0.84rem;
    padding: 0.5rem 0.65rem;
  }
  .owner-filter-meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-left: 0;
    margin-top: 0.15rem;
  }
  .owner-category-row {
    padding: 0.85rem 0.85rem;
    gap: 0.65rem;
  }
  .owner-category-row .owner-cat-actions {
    gap: 0.4rem;
  }
  .owner-category-row .owner-cat-actions .owner-btn {
    min-height: 38px;
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
  }
  .owner-qr-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .owner-qr-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .owner-qr-search-wrap {
    max-width: 100%;
    width: 100%;
  }
  .owner-qr-search-input {
    min-height: 42px;
  }
  .owner-qr-count-indicator {
    text-align: right;
    font-size: 0.8rem;
  }
  .owner-auth-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .owner-auth-banner-left {
    min-width: 0;
    width: 100%;
  }
  .owner-auth-banner-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .owner-auth-input {
    width: 100%;
    min-height: 40px;
    font-size: 0.8rem;
  }
  .owner-auth-banner-actions .owner-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-height: 40px;
    justify-content: center;
    font-size: 0.78rem;
    box-sizing: border-box;
  }
  .owner-modal-overlay {
    padding: 0.5rem;
  }
  .owner-modal-card {
    padding: 1.25rem 1rem;
    border-radius: 14px;
    max-height: calc(100dvh - 1rem);
  }
  .owner-item-modal-card {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 540px) {
  .owner-content-pane {
    padding: 0.75rem 0.65rem;
  }
  .owner-empty-state {
    padding: 2.5rem 1rem;
    font-size: 0.88rem;
  }
  .owner-item-row {
    justify-content: flex-start;
    padding: 0.8rem 0.75rem;
    gap: 0.65rem;
    height: auto;
    min-height: 0;
  }
  .owner-item-left {
    flex: 0 0 auto;
    gap: 0.65rem;
    min-width: 0;
    height: auto;
    min-height: 0;
  }
  .owner-item-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 6px;
  }
  .owner-item-details {
    flex: 1;
    min-width: 0;
    height: auto;
    min-height: 0;
  }
  .owner-item-header-meta {
    gap: 0.35rem;
  }
  .owner-item-title {
    font-size: 0.92rem;
  }
  .owner-item-desc {
    font-size: 0.8rem;
    line-height: 1.35;
    margin-top: 0.25rem;
  }
  .owner-item-right {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding-top: 0.65rem;
    height: auto;
    min-height: 0;
  }
  .owner-item-pricing-toggle {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .owner-item-price {
    font-size: 1.05rem;
  }
  .owner-item-switch-box {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }
  .owner-item-actions-box {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .owner-item-actions-box .owner-item-action-btn {
    flex: 1 1 0%;
    min-width: 0;
    text-align: center;
    justify-content: center;
    padding: 0.45rem 0.35rem;
    font-size: 0.76rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }
  .owner-category-row {
    padding: 0.75rem 0.75rem;
    gap: 0.5rem;
  }
  .owner-category-row .owner-cat-actions {
    gap: 0.35rem;
  }
  .owner-category-row .owner-cat-actions .owner-btn {
    min-height: 38px;
    padding: 0.35rem 0.6rem;
    font-size: 0.74rem;
  }
  .owner-category-empty-wrap {
    padding: 2.25rem 1rem;
  }
  .owner-category-empty-wrap .owner-category-empty-title {
    font-size: 1rem;
  }
  .owner-category-empty-wrap .owner-category-empty-subtitle {
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }
  .owner-category-empty-wrap .flex {
    width: 100%;
    flex-direction: column;
    gap: 0.65rem;
  }
  #btn-empty-add-category {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    font-size: 0.84rem;
    box-sizing: border-box;
  }
  .owner-qr-empty {
    padding: 2.25rem 1rem;
  }
  .owner-qr-empty .owner-empty-title {
    font-size: 1rem;
  }
  .owner-qr-empty .owner-empty-subtitle {
    font-size: 0.82rem;
  }
  .owner-qr-card {
    padding: 1.1rem 1rem;
  }
  .owner-upgrade-modal-head {
    padding: 1.25rem 1.1rem;
  }
  .owner-upgrade-modal-body {
    padding: 1.25rem 1.1rem;
  }
  .owner-upgrade-plans-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .owner-upgrade-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .owner-upgrade-form-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }
  .owner-upgrade-form-actions .owner-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
  .owner-qr-modal-body {
    padding: 1rem;
  }
  .owner-qr-modal-footer {
    padding: 0.75rem 1rem 1rem;
  }
}

@media (max-width: 480px) {
  .owner-auth-card {
    padding: 1.5rem 1rem !important;
  }
  .owner-price-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .owner-modal-footer,
  .owner-item-modal-footer,
  .owner-modal-actions,
  .owner-member-modal-footer {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }
  .owner-modal-footer .owner-btn,
  .owner-item-modal-footer .owner-btn,
  .owner-modal-actions .owner-btn,
  .owner-member-modal-footer .owner-btn {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }
  .owner-qr-modal-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .owner-qr-modal-footer .owner-qr-btn-primary {
    order: -1;
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
  .owner-qr-modal-footer button:not(.owner-qr-btn-primary):not(.owner-qr-btn-close) {
    flex: 1 1 calc(50% - 0.25rem);
    min-height: 40px;
    justify-content: center;
    font-size: 0.78rem;
    box-sizing: border-box;
  }
  .owner-qr-modal-footer .owner-qr-btn-close {
    order: 10;
    width: 100%;
    min-height: 40px;
    justify-content: center;
  }
  .owner-tent-card {
    padding: 1.25rem 0.75rem;
  }
  .tent-restaurant {
    font-size: 1.25rem;
  }
  .tent-qr-box {
    margin: 1rem 0;
    width: 180px;
    height: 180px;
  }
  .tent-qr-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 380px) {
  .owner-content-pane {
    padding: 0.5rem 0.45rem 95px;
  }
  .owner-tabbar-inner {
    gap: 1.35rem;
    padding: 0.35rem 1.15rem 0.35rem;
  }
  .owner-tabbar-fab-btn {
    width: 50px;
    height: 50px;
  }
  .owner-tabbar-fab-icon {
    width: 22px;
    height: 22px;
  }
  .owner-tabbar-item {
    min-width: 46px;
  }
  .owner-pane-title {
    font-size: 1.2rem;
  }
  .owner-pane-subtitle {
    font-size: 0.78rem;
  }
  .owner-filter-group {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .owner-item-row {
    padding: 0.65rem 0.5rem;
    gap: 0.5rem;
  }
  .owner-item-thumb {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }
  .owner-item-title {
    font-size: 0.88rem;
  }
  .owner-item-actions-box {
    gap: 0.35rem;
  }
  .owner-item-actions-box a.owner-item-action-btn {
    flex-basis: 100%;
  }
  .owner-item-actions-box button.owner-item-action-btn {
    flex-basis: calc(50% - 0.2rem);
  }
  .owner-item-actions-box .owner-item-action-btn {
    font-size: 0.72rem;
    padding: 0.4rem 0.2rem;
    min-height: 38px;
  }
  .owner-category-row {
    padding: 0.65rem 0.5rem;
    gap: 0.4rem;
  }
  .owner-cat-left {
    gap: 0.45rem;
  }
  .owner-cat-name {
    font-size: 0.86rem;
  }
  .owner-category-row .owner-cat-actions button {
    font-size: 0.7rem;
    padding: 0.32rem 0.45rem;
    min-height: 36px;
  }
  .owner-qr-card {
    padding: 0.85rem 0.75rem;
  }
  .owner-tbl-identity {
    gap: 0.5rem;
  }
  .owner-tbl-icon-pill {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .owner-tbl-num {
    font-size: 0.95rem;
  }
  .owner-tbl-delete-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
  .owner-tbl-qr-stage {
    padding: 0.75rem;
  }
  .owner-tbl-qr-canvas svg {
    width: 95px;
    height: 95px;
  }
  .owner-tbl-btn {
    min-height: 38px;
    font-size: 0.76rem;
    padding: 0.45rem 0.5rem;
  }
  .owner-auth-banner {
    padding: 0.75rem 0.65rem;
  }
  .owner-auth-banner-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .owner-auth-banner-title {
    font-size: 0.86rem;
  }
  .owner-auth-banner-desc {
    font-size: 0.74rem;
  }
  .owner-auth-banner-actions .owner-btn {
    font-size: 0.72rem;
    min-height: 38px;
    padding: 0.35rem 0.45rem;
  }
  .owner-modal-overlay {
    padding: 0.25rem;
  }
  .owner-modal-card {
    padding: 1rem 0.75rem;
    border-radius: 12px;
    max-height: calc(100dvh - 0.5rem);
  }
  .owner-item-modal-card {
    padding: 1rem 0.75rem;
  }
  .owner-item-modal-title {
    font-size: 1.1rem;
  }
  .owner-item-modal-subtitle {
    font-size: 0.78rem;
  }
  .owner-upgrade-head-title {
    font-size: 1.05rem;
  }
  .owner-upgrade-head-subtitle {
    font-size: 0.78rem;
  }
  .owner-upgrade-modal-head {
    padding: 1rem 0.75rem;
  }
  .owner-upgrade-modal-body {
    padding: 1rem 0.75rem;
  }
  .owner-drop-zone {
    padding: 1rem 0.75rem;
  }
  .owner-drop-zone-title {
    font-size: 0.82rem;
  }
  .owner-drop-zone-hint {
    font-size: 0.7rem;
  }
  .tent-qr-box {
    width: 150px;
    height: 150px;
  }
}

