/* Sepetmeni — Google Material Design 3 */
:root {
    /* Google brand palette */
    --google-blue: #1A73E8;
    --google-blue-hover: #1765CC;
    --google-blue-light: #E8F0FE;
    --google-blue-dark: #174EA6;
    --google-green: #1E8E3E;
    --google-green-light: #E6F4EA;
    --google-red: #D93025;
    --google-red-light: #FCE8E6;
    --google-yellow: #F9AB00;
    --google-yellow-light: #FEF7E0;
    --google-orange: #E8710A;
    --google-orange-light: #FEF3E8;

    --primary: var(--google-blue);
    --primary-dark: var(--google-blue-hover);
    --primary-light: var(--google-blue-light);
    --success: var(--google-green);
    --success-light: var(--google-green-light);
    --warning: var(--google-yellow);
    --warning-light: var(--google-yellow-light);
    --danger: var(--google-red);
    --danger-light: var(--google-red-light);
    --purple: #9334E6;
    --purple-light: #F3E8FD;
    --teal: #007B83;
    --teal-light: #E0F7FA;

    /* Google surfaces */
    --bg: #F8F9FA;
    --bg-card: #FFFFFF;
    --surface-dim: #F1F3F4;
    --surface-container: #F8F9FA;
    --surface-container-high: #E8EAED;

    /* Google text */
    --text: #202124;
    --text-secondary: #5F6368;
    --text-muted: #80868B;
    --text-disabled: #9AA0A6;

    /* Google outlines */
    --border: #DADCE0;
    --border-light: #E8EAED;
    --divider: #E8EAED;

    /* Material 3 shape */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Material elevation */
    --elevation-1: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    --elevation-2: 0 1px 2px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
    --elevation-3: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
    --shadow-sm: var(--elevation-1);
    --shadow: var(--elevation-2);
    --shadow-lg: var(--elevation-3);

    --header-h: 64px;
    --nav-h: 80px;
    --shell-max: 480px;
    --shell-max-wide: 960px;
    --content-max: 960px;
    --sidebar-w: 248px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);

    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-text: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: 0.2s cubic-bezier(0.2, 0, 0, 1);
    --transition-emphasis: 0.3s cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.ui-icon,
.nav-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
    display: block;
}

.ui-icon-sm {
    width: 20px;
    height: 20px;
}

.quick-action-minimal-icon,
.quick-action-minimal-arrow {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    display: block;
}

.guest-link-share-icon svg,
.guest-share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-text);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    letter-spacing: 0.006em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 16px; }

/* ─── App Shell ─── */
.app-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    max-width: var(--shell-max);
    margin: 0 auto;
    background: var(--bg);
    position: relative;
    width: 100%;
}

.app-shell-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.app-main {
    flex: 1;
    padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.app-main.no-nav { padding-bottom: calc(var(--safe-bottom) + 8px); }

/* ─── Google App Bar ─── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: var(--header-h);
    padding: calc(8px + var(--safe-top)) 4px 8px 4px;
    background: var(--bg-card);
    box-shadow: var(--elevation-1);
}

.header-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: background var(--transition);
    flex-shrink: 0;
}

.header-back:hover,
.header-back:active { background: var(--surface-dim); }

.header-content { flex: 1; min-width: 0; padding: 0 4px; }

.header-title {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    color: var(--text);
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-action { flex-shrink: 0; padding-right: 8px; }

/* ─── Material Navigation Bar ─── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--shell-max);
    height: calc(var(--nav-h) + var(--safe-bottom));
    padding: 12px 8px calc(12px + var(--safe-bottom));
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    background: var(--bg-card);
    box-shadow: 0 -1px 2px 0 rgba(60,64,67,.3), 0 -1px 3px 1px rgba(60,64,67,.15);
    z-index: 200;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 0;
    min-width: 64px;
    max-width: 96px;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    border-radius: var(--radius-xl);
}

.bottom-nav-item.active {
    color: var(--text);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 32px;
    background: var(--surface-dim);
    border-radius: var(--radius-full);
    z-index: -1;
}

.nav-icon {
    font-size: 24px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.nav-label {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 16px;
}

.nav-badge {
    position: absolute;
    top: 0;
    right: calc(50% - 20px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--google-red);
    color: white;
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-item.nav-alert-pulse .nav-badge {
    animation: nav-badge-pop 0.45s ease 2;
}

.bottom-nav-item.nav-alert-pulse .nav-icon {
    animation: nav-icon-pop 0.45s ease 2;
}

@keyframes nav-badge-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

@keyframes nav-icon-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.admin-bottom-nav .admin-menu-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.admin-side-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: var(--shell-max);
    transform: translateX(-50%);
    z-index: 320;
    pointer-events: none;
    overflow: hidden;
}

.admin-side-drawer.is-open {
    pointer-events: auto;
}

.admin-side-drawer-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(32, 33, 36, 0.24);
    opacity: 0;
    transition: opacity var(--transition-emphasis);
    cursor: pointer;
}

.admin-side-drawer.is-open .admin-side-drawer-backdrop {
    opacity: 1;
}

.admin-side-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 360px);
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -8px 0 24px rgba(60, 64, 67, 0.16);
    border-left: 1px solid var(--border-light);
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1);
    display: flex;
    flex-direction: column;
    padding: calc(12px + var(--safe-top)) 0 calc(20px + var(--safe-bottom));
}

.admin-side-drawer.is-open .admin-side-drawer-panel {
    transform: translateX(0);
}

.admin-side-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.admin-side-drawer-head-copy {
    min-width: 0;
}

.admin-side-drawer-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.admin-side-drawer-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

.admin-side-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--surface-container);
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}

.admin-side-drawer-close:hover {
    background: var(--surface-container-high);
    color: var(--text);
}

.admin-side-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.admin-side-drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 14px;
    color: var(--text);
    border-radius: var(--radius-lg);
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.admin-side-drawer-link:hover {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--elevation-1);
}

.admin-side-drawer-link.active {
    background: var(--primary-light);
    box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.12);
}

.admin-side-drawer-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--surface-container-high);
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}

.admin-side-drawer-link.active .admin-side-drawer-icon-wrap {
    background: #ffffff;
    color: var(--primary);
}

.admin-side-drawer-icon {
    width: 22px;
    height: 22px;
}

.admin-side-drawer-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.admin-side-drawer-label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text);
}

.admin-side-drawer-desc {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.admin-side-drawer-link.active .admin-side-drawer-label {
    color: var(--primary-dark);
}

.admin-side-drawer-arrow {
    width: 18px;
    height: 18px;
    margin-left: auto;
    color: var(--text-disabled);
    flex-shrink: 0;
}

.admin-side-drawer-link.active .admin-side-drawer-arrow {
    color: var(--primary);
}

.admin-side-drawer-footer {
    margin-top: auto;
    padding: 12px 20px 0;
    border-top: 1px solid var(--border-light);
}

.admin-side-drawer-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    color: var(--danger);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.admin-side-drawer-logout:hover {
    background: rgba(217, 48, 37, 0.08);
    color: var(--danger);
}

.admin-side-drawer-logout-icon {
    width: 20px;
    height: 20px;
}

.admin-side-drawer-main-nav,
.admin-side-drawer-brand-desktop,
.admin-side-drawer-section-desktop {
    display: none;
}

.admin-side-drawer-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: var(--google-red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.panel-admin .app-shell.admin-drawer-open {
    overflow: hidden;
}

body.admin-drawer-open {
    overflow: hidden;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    min-height: 40px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: var(--radius-xl);
    transition: background var(--transition), box-shadow var(--transition), color var(--transition);
    -webkit-user-select: none;
    user-select: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity var(--transition);
}

.btn:active::after { opacity: 0.12; }

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: none;
}

.btn-primary:active { background: var(--primary-dark); }

.btn-success {
    background: var(--success);
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-outline:active { background: var(--primary-light); }

.btn-ghost,
.btn-tonal {
    background: var(--primary-light);
    color: var(--google-blue-dark);
}

.btn-ghost:active,
.btn-tonal:active { background: #D2E3FC; }

.btn-danger {
    background: var(--danger);
    color: #FFFFFF;
}

.btn-warning {
    background: var(--google-orange);
    color: #FFFFFF;
}

.btn-text {
    background: transparent;
    color: var(--primary);
    padding: 10px 12px;
}

.btn-block { width: 100%; }

.btn-sm {
    padding: 6px 16px;
    min-height: 32px;
    font-size: 13px;
    border-radius: var(--radius-xl);
}

.btn-lg {
    padding: 12px 32px;
    min-height: 48px;
    font-size: 14px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn:disabled {
    opacity: 0.38;
    pointer-events: none;
}

/* ─── Action Bar ─── */
.action-bar {
    position: fixed;
    bottom: calc(var(--nav-h) + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--shell-max);
    padding: 12px 16px;
    background: var(--bg-card);
    box-shadow: var(--elevation-2);
    z-index: 150;
    display: flex;
    gap: 8px;
}

.action-bar.no-nav { bottom: var(--safe-bottom); }

.action-bar.is-static {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 0;
    margin-top: 16px;
    background: transparent;
    box-shadow: none;
    justify-content: center;
}

.action-bar.is-static .btn-block {
    width: 100%;
}

.guest-flow-page {
    padding-bottom: calc(var(--nav-h) + 88px + var(--safe-bottom));
}

#guest-summary-page:not([data-submitted="1"]) {
    padding-bottom: calc(var(--nav-h) + 88px + var(--safe-bottom));
}

.guest-summary-submit-bar .btn {
    width: 100%;
}

#guest-summary-page[data-submitted="1"] {
    padding-bottom: calc(var(--nav-h) + 96px + var(--safe-bottom));
}

.guest-summary-submit-bar {
    justify-content: center;
}

.action-bar.guest-summary-status-bar-wrap {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--shell-max);
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.guest-summary-status-bar-wrap {
    justify-content: stretch;
    width: 100%;
    padding: 0;
}

.guest-summary-status-bar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 18px 16px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    border-radius: 0;
    box-shadow: var(--elevation-2);
}

.guest-summary-status-bar.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: normal;
    border-radius: 0;
}

.guest-summary-status-bar strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.guest-summary-status-bar span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    opacity: 0.92;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.guest-revision-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--elevation-1);
    border: 1px solid rgba(124, 77, 255, 0.18);
}

.guest-revision-card-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.guest-revision-card-head strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.guest-revision-card-head p {
    margin: 0;
    font-size: 14px;
    line-height: 21px;
    color: var(--text-secondary);
}

.guest-revision-note {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--divider);
}

.guest-revision-note-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.guest-revision-note p {
    margin: 0;
    font-size: 14px;
    line-height: 21px;
}

.guest-revision-actions {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.guest-revision-waiting {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--surface-dim);
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.guest-selection-locked .menu-option,
.guest-selection-locked .qty-btn,
.guest-selection-locked .qty-plus,
.guest-selection-locked .qty-minus,
.guest-selection-locked .day-tab {
    pointer-events: none;
    cursor: default;
}

.guest-selection-locked .menu-option:not(.selected) {
    opacity: 0.72;
}

.supplier-order-detail-page .app-main {
    padding-bottom: calc(var(--nav-h) + 88px + var(--safe-bottom));
}

.supplier-pdf-bar {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--shell-max);
    padding: 12px 16px;
    bottom: calc(var(--nav-h) + var(--safe-bottom));
    z-index: 160;
}

.supplier-order-export-root {
    display: none;
    background: #fff;
}

.supplier-order-export-root.supplier-pdf-capture {
    display: block;
    width: 100%;
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 24px 16px 32px;
    box-sizing: border-box;
    background: #ffffff;
}

.supplier-export-doc {
    background: #fff;
}

.supplier-export-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5f6368;
    margin-bottom: 12px;
}

.supplier-export-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 14px;
}

.supplier-export-info-table th,
.supplier-export-info-table td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.supplier-export-info-table th {
    width: 38%;
    background: var(--surface-container);
    color: var(--text-secondary);
    font-weight: 600;
}

.supplier-export-note {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--surface-container);
    font-size: 14px;
    line-height: 1.5;
}

.supplier-export-list-title {
    margin: 20px 0 12px;
    padding-top: 8px;
    border-top: 2px solid var(--text);
    font-size: 18px;
    font-weight: 700;
}

.supplier-export-list-title span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.supplier-export-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}

.supplier-order-export-root .shopping-category {
    box-shadow: none;
    border: 1px solid var(--border);
    page-break-inside: avoid;
    margin-bottom: 12px;
}

.supplier-order-export-root .shopping-category-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.supplier-pdf-capture,
.supplier-pdf-capture .supplier-export-doc {
    background: #ffffff;
    color: #202124;
}

.supplier-pdf-capture .supplier-export-info-table th {
    background: #f8f9fa;
    color: #5f6368;
}

.supplier-pdf-capture .supplier-export-info-table td,
.supplier-pdf-capture .supplier-export-note,
.supplier-pdf-capture .cart-item-name {
    color: #202124;
}

.supplier-pdf-capture .shopping-category {
    box-shadow: none;
    border: 1px solid #dadce0;
    background: #ffffff;
}

.supplier-pdf-hidden-item {
    display: none !important;
}

@media print {
    .supplier-export-info-table th {
        background: #f5f5f5;
    }
}

.admin-user-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-user-card-head > div:first-child {
    flex: 1;
    min-width: 0;
}

.admin-company-card .list-title,
.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-card-actions,
.admin-user-form-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.admin-user-card-actions-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.admin-user-card-actions-row .btn-sm {
    min-height: 36px;
}

.admin-user-card-actions-row .admin-inline-form {
    display: inline-flex;
}

.admin-inline-form {
    display: block;
}

.admin-permissions-grid {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.admin-permission-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
}

.admin-sms-section {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.admin-sms-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-sms-global {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.admin-sms-api-card {
    margin-top: 0;
}

.admin-sms-api-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 768px) {
    .admin-sms-api-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-sms-api-grid .form-group:last-child {
        grid-column: 1 / -1;
    }
}

.admin-sms-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-sms-group-head h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-sms-group-head p {
    font-size: 13px;
    color: var(--text-secondary);
}

.admin-sms-template-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px;
    background: var(--surface-container);
}

.admin-sms-template-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.admin-sms-template-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.admin-sms-template-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.admin-sms-template-meta code {
    display: inline-block;
    margin-right: 4px;
    padding: 1px 6px;
    border-radius: var(--radius-xs);
    background: var(--bg-card);
    color: var(--primary-dark);
    font-size: 11px;
}

.admin-sms-preview-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.admin-sms-preview-box {
    padding: 12px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px dashed var(--border);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    white-space: pre-wrap;
}

.admin-sms-log {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-sms-log-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.admin-sms-log-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-sms-log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.admin-sms-log-message {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}

.admin-permission-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.admin-permission-item.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-permissions-grid.is-disabled {
    opacity: 0.72;
}

.admin-active-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 14px;
}

.admin-active-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.mt-16 { margin-top: 16px; }

.guest-day-nav {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.action-bar.guest-flow-action-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--shell-max);
    bottom: calc(var(--nav-h) + var(--safe-bottom));
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 16px rgba(60, 64, 67, 0.12);
    z-index: 160;
}

.guest-day-nav-label {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guest-day-nav .btn-sm {
    min-width: 96px;
    flex-shrink: 0;
}

.btn-day-next-pending {
    background: #f1f3f4;
    color: #9aa0a6;
    border: 1px solid #dadce0;
    box-shadow: none;
}

.btn-day-next-pending:active {
    background: #e8eaed;
}

/* ─── Material Cards ─── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--elevation-1);
    border: none;
}

.card-outlined {
    box-shadow: none;
    border: 1px solid var(--border);
}

.card-filled {
    background: var(--surface-container);
    box-shadow: none;
}

.card-interactive {
    transition: box-shadow var(--transition), background var(--transition);
    cursor: pointer;
}

.card-interactive:active {
    background: var(--surface-dim);
    box-shadow: var(--elevation-2);
}

/* ─── Google Chips / Badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.badge-gray { background: var(--surface-dim); color: var(--text-secondary); }
.badge-blue { background: var(--primary-light); color: var(--google-blue-dark); }
.badge-green { background: var(--success-light); color: #137333; }
.badge-orange { background: var(--google-orange-light); color: #B06000; }
.badge-purple { background: var(--purple-light); color: #7627BB; }
.badge-yellow { background: var(--google-yellow-light); color: #8F6000; }
.badge-teal { background: var(--teal-light); color: #00575B; }
.badge-red { background: var(--danger-light); color: #C5221F; }

/* ─── Google Form Fields ─── */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
    line-height: 24px;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 2px rgba(32, 33, 36, 0.18);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--text);
    box-shadow: 0 0 0 2px rgba(32, 33, 36, 0.24);
}

.form-group-invalid .form-label {
    color: var(--text);
    font-weight: 600;
}

.form-field-error {
    margin-top: 8px;
    font-size: 12px;
    line-height: 16px;
    color: var(--text-secondary);
}

.form-combobox {
    position: relative;
}

.form-combobox-field {
    position: relative;
}

.form-combobox-input {
    padding-right: 76px !important;
}

.form-combobox-clear,
.form-combobox-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

.form-combobox-clear {
    right: 40px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 22px;
    line-height: 1;
}

.form-combobox-clear:hover,
.form-combobox-toggle:hover {
    color: var(--text);
    background: rgba(32, 33, 36, 0.06);
}

.form-combobox-clear.is-hidden {
    display: none;
}

.form-combobox-toggle {
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.form-combobox-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    max-height: 220px;
    overflow-y: auto;
}

.form-combobox-option {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 16px;
    font: inherit;
    color: var(--text);
    cursor: pointer;
}

.form-combobox-option:hover,
.form-combobox-option:focus {
    background: rgba(26, 115, 232, 0.08);
    outline: none;
}

.form-combobox-empty {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-group-active .form-input,
.form-group-active .form-select,
.form-group-active .form-textarea {
    border-color: var(--text);
    box-shadow: 0 0 0 2px rgba(32, 33, 36, 0.2);
}

.form-group-focus-step .form-input,
.form-group-focus-step .form-select,
.form-group-focus-step .form-textarea {
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(32, 33, 36, 0.28);
    animation: formFieldFocusPulse 0.45s ease-out;
}

@keyframes formFieldFocusPulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.form-textarea { min-height: 120px; resize: vertical; border-radius: var(--radius-sm); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ─── Page Layout ─── */
.page-padding { padding: 16px; }

.section-title {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0;
    margin-bottom: 12px;
    padding-left: 4px;
}

.section-gap { margin-bottom: 24px; }

/* ─── Google Landing ─── */
body.landing-body {
    background:
        radial-gradient(circle at 18% 0%, rgba(26, 115, 232, 0.12), transparent 36%),
        radial-gradient(circle at 82% 100%, rgba(0, 123, 131, 0.1), transparent 32%),
        linear-gradient(180deg, #e8eef6 0%, #f3f6fa 100%);
}

body.landing-body .landing-shell.app-shell {
    min-height: 100dvh;
    max-width: none;
    margin: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        calc(20px + var(--safe-top))
        16px
        calc(20px + var(--safe-bottom));
}

body.landing-body .landing-page {
    width: 100%;
    max-width: 460px;
    min-height: auto;
    padding: 0;
    background: transparent;
    display: block;
}

.landing-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}

.landing-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.08),
        0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.landing-brand {
    position: relative;
    overflow: hidden;
    padding: 28px 24px 24px;
    background: linear-gradient(145deg, #1a73e8 0%, #1558b0 58%, #007b83 100%);
}

.landing-brand::before,
.landing-brand::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.landing-brand::before {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -60px;
    background: rgba(255, 255, 255, 0.12);
}

.landing-brand::after {
    width: 140px;
    height: 140px;
    bottom: -50px;
    left: -40px;
    background: rgba(255, 255, 255, 0.08);
}

.landing-brand-head,
.landing-hero-copy,
.landing-feature-list {
    position: relative;
    z-index: 1;
}

.landing-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.landing-logo-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: #fff;
    backdrop-filter: blur(8px);
}

.landing-logo-text {
    font-family: var(--font);
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.02em;
}

.landing-logo-text span {
    color: #fff;
    font-weight: 600;
}

.landing-tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 22px;
    max-width: 360px;
}

.landing-hero-copy {
    margin-top: 24px;
}

.landing-hero-copy h2 {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    line-height: 28px;
    margin-bottom: 8px;
}

.landing-hero-copy p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 22px;
    max-width: 360px;
}

.landing-feature-list {
    display: none;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    gap: 12px;
}

.landing-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.landing-feature-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.landing-panel {
    padding: 24px;
}

.landing-panel-stack {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.landing-panel-label {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.landing-panels {
    display: grid;
    gap: 12px;
}

.landing-panel-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.landing-panel-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.landing-panel-link:active {
    transform: translateY(0);
}

.landing-panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    flex-shrink: 0;
}

.landing-panel-copy {
    flex: 1;
    min-width: 0;
}

.landing-panel-copy strong {
    display: block;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    line-height: 20px;
}

.landing-panel-copy small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 18px;
    color: var(--text-secondary);
}

.landing-panel-arrow {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-muted);
    transition: transform var(--transition), color var(--transition);
}

.landing-panel-link:hover .landing-panel-arrow {
    transform: translateX(2px);
}

.landing-panel-link-charter .landing-panel-icon {
    background: rgba(26, 115, 232, 0.12);
    color: var(--primary);
}

.landing-panel-link-charter:hover {
    border-color: rgba(26, 115, 232, 0.22);
    background: rgba(26, 115, 232, 0.04);
}

.landing-panel-link-charter:hover .landing-panel-arrow {
    color: var(--primary);
}

.landing-panel-link-supplier .landing-panel-icon {
    background: rgba(0, 123, 131, 0.12);
    color: var(--teal);
}

.landing-panel-link-supplier:hover {
    border-color: rgba(0, 123, 131, 0.22);
    background: rgba(0, 123, 131, 0.04);
}

.landing-panel-link-supplier:hover .landing-panel-arrow {
    color: var(--teal);
}

.landing-panel-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.landing-panel-link-supplier:focus-visible {
    outline-color: var(--teal);
}

.login-panel-badge {
    display: inline-flex;
    margin-bottom: 12px;
}

/* ─── Charter SMS Auth ─── */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    background: var(--surface-dim);
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
    width: 100%;
}

.auth-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: var(--radius-xl);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    text-align: center;
}

.auth-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--elevation-1);
}

.auth-form {
    width: 100%;
}

.auth-flash {
    margin-bottom: 16px;
}

.form-hint {
    margin-top: 8px;
    font-size: 12px;
    line-height: 16px;
    color: var(--text-muted);
}

.phone-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.phone-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.phone-prefix {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.phone-input {
    border: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: transparent !important;
}

.phone-input:focus {
    border: none !important;
    box-shadow: none !important;
}

.auth-otp-card {
    width: 100%;
}

.auth-otp-phone {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 22px;
    margin-bottom: 16px;
}

.auth-otp-phone strong {
    color: var(--text);
    font-weight: 500;
}

a.phone-link {
    color: inherit;
    text-decoration: none;
}

a.phone-link:hover,
a.phone-link:focus-visible {
    text-decoration: underline;
}

.otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.otp-input {
    width: 100%;
    aspect-ratio: 1;
    max-height: 52px;
    text-align: center;
    font-family: var(--font);
    font-size: 20px;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.auth-resend-form {
    margin-top: 8px;
}

/* Legacy landing hero (fallback) */
.landing-hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
    background: var(--bg-card);
    color: var(--text);
    text-align: center;
}

/* ─── Stats (Google Dashboard style) ─── */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--elevation-1);
}

.stat-value {
    font-family: var(--font);
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 16px;
}

/* Minimal clickable stats */
.stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: background var(--transition), border-color var(--transition);
    color: inherit;
    min-height: 52px;
}

.stat-mini:active {
    background: var(--surface-dim);
}

.stat-mini-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 16px;
}

.stat-mini-value {
    font-family: var(--font);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    flex-shrink: 0;
}

.stat-mini-blue .stat-mini-value { color: var(--primary); }
.stat-mini-orange .stat-mini-value { color: var(--google-orange); }
.stat-mini-green .stat-mini-value { color: var(--success); }
.stat-mini-teal .stat-mini-value { color: var(--teal); }

/* ─── Google List Items ─── */
.list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    transition: background var(--transition);
    min-height: 72px;
}

.list-item:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.list-item:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.list-item:only-child { border-radius: var(--radius-lg); }

.list-item + .list-item {
    border-top: 1px solid var(--divider);
}

.list-item:active { background: var(--surface-dim); }

.list-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    background: var(--surface-dim);
    flex-shrink: 0;
    color: var(--text);
}

.list-content { flex: 1; min-width: 0; }

.list-title {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0;
    line-height: 20px;
}

.list-meta {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    text-align: right;
}

.list-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    font-size: 20px;
}

/* ─── Menu Selection ─── */
.day-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--bg-card);
}

.day-tabs::-webkit-scrollbar { display: none; }

.day-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    min-height: 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
}

.day-tab.active {
    background: var(--primary-light);
    border-color: transparent;
    color: var(--google-blue-dark);
}

.day-tab.day-tab-complete {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--google-blue-dark);
}

.day-tab.day-tab-complete.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.day-tab.day-tab-locked {
    background: #f1f3f4;
    border-color: #dadce0;
    color: #9aa0a6;
    cursor: not-allowed;
    opacity: 0.85;
}

.day-tab.day-tab-locked.active {
    background: #f1f3f4;
    border-color: #dadce0;
    color: #9aa0a6;
    box-shadow: none;
}

.meal-section { padding: 8px 16px 24px; }

.meal-section-pending .meal-title::after {
    content: ' • Seçin veya istemiyorum';
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.meal-section-done .meal-title {
    color: var(--text-secondary);
}

.meal-section-focus .meal-header {
    color: var(--google-blue-dark);
}

.meal-section-focus .meal-title {
    font-weight: 700;
}

.meal-section-focus .menu-options {
    position: relative;
}

.meal-section-focus .menu-options::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    pointer-events: none;
    animation: mealFocusPulse 1.2s ease-out;
}

@keyframes mealFocusPulse {
    0% { opacity: 0; transform: scale(0.98); }
    20% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.01); }
}

.meal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.meal-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 0;
    flex-shrink: 0;
}

.meal-title {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
}

.menu-options { display: flex; flex-direction: column; gap: 8px; }

.menu-option {
    display: block;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    -webkit-user-select: none;
    user-select: none;
    box-shadow: var(--elevation-1);
}

.menu-option:active { background: var(--surface-dim); }

.menu-option.selected {
    border-color: var(--text);
    background: var(--surface-dim);
    box-shadow: none;
}

.menu-option-skip .menu-option-name {
    font-weight: 500;
}

.menu-option-skip.selected {
    background: var(--surface-container-high);
}

.meal-section-skipped .meal-title {
    color: var(--text-secondary);
}

.meal-section-skipped .meal-header::after {
    content: 'İstemiyorum';
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface-dim);
    padding: 2px 8px;
    border-radius: var(--radius-xl);
}

.menu-option-name {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 2px;
    color: var(--text);
}

.menu-option-desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 20px;
}

.menu-option-check {
    float: right;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all var(--transition);
    margin-top: 2px;
}

.menu-option.selected .menu-option-check {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.menu-option.selected .menu-option-check::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

/* ─── Progress (Google Stepper style) ─── */
.progress-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 16px 8px;
    background: var(--bg-card);
}

.progress-step {
    flex: 1;
    height: 4px;
    background: var(--surface-container-high);
    border-radius: var(--radius-full);
    transition: background var(--transition-emphasis);
}

.progress-step.done { background: var(--success); }
.progress-step.active { background: var(--primary); }

.progress-labels {
    display: flex;
    justify-content: space-between;
    padding: 4px 16px 12px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border-bottom: 1px solid var(--divider);
}

.progress-labels span.active { color: var(--primary); }

/* ─── Market / Filter Chips ─── */
.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--bg-card);
    border-bottom: 1px solid var(--divider);
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    min-height: 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
}

.category-chip.active {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--elevation-1);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition);
}

.product-card-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-card-row .product-card-body {
    flex: 1;
    min-width: 0;
}

.product-card-row .qty-control {
    width: 112px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.product-card:active { box-shadow: var(--elevation-2); }

.product-name {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 2px;
    color: var(--text);
}

.product-unit {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-price {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 12px;
}

.qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-container);
    border-radius: var(--radius-full);
    padding: 2px;
    margin-top: auto;
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 18px;
    font-weight: 400;
    color: var(--primary);
    transition: background var(--transition);
}

.qty-btn:active { background: var(--primary-light); }

.qty-value {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
    color: var(--text);
}

/* ─── Cart ─── */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    min-height: 48px;
}

.cart-item + .cart-item {
    border-top: 1px solid var(--divider);
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--text);
}

.cart-item-source {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.menu-summary-card {
    padding: 0;
    overflow: hidden;
}

.menu-summary-day-block {
    padding: 14px 16px;
}

.menu-summary-day-block.has-divider {
    border-top: 1px solid var(--divider);
}

.menu-summary-day-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.menu-summary-meal {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--divider);
    font-size: 14px;
}

.menu-summary-day-block .menu-summary-meal:first-of-type {
    border-top: none;
    padding-top: 0;
}

.menu-summary-meal-label {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.menu-summary-meal-value {
    color: var(--text);
    text-align: right;
    font-weight: 500;
}

.menu-summary-meal-value.is-skipped {
    color: var(--text-muted);
    font-weight: 400;
}

.shopping-category {
    padding: 0;
    overflow: hidden;
}

.shopping-category-title {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
    background: var(--surface-dim);
    border-bottom: 1px solid var(--divider);
}

.shopping-category .cart-item {
    padding: 12px 16px;
}

.shopping-category .cart-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shopping-category .cart-item-name-text {
    min-width: 0;
}

.shopping-category .cart-item .text-sm.font-bold {
    flex-shrink: 0;
    align-self: center;
    line-height: 20px;
}

.cart-item-editable {
    justify-content: space-between;
}

.cart-item-editable .cart-item-qty {
    flex-shrink: 0;
    margin-top: 0;
    min-width: 108px;
}

.charter-order-items-editor.hidden {
    display: none !important;
}

.charter-order-items-head .form-hint {
    margin-top: 4px;
}

.charter-market-add-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}

.charter-market-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    min-height: 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.charter-market-tab.active {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.charter-market-tab.is-empty:not(.active) {
    opacity: 0.45;
}

.charter-market-tab:disabled {
    cursor: not-allowed;
}

.charter-settings-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 18px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.charter-settings-tabs::-webkit-scrollbar {
    display: none;
}

.charter-settings-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    min-height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.charter-settings-tab.active {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.charter-settings-panel .section-title:first-child {
    margin-top: 0;
}

.charter-menu-mode-grid {
    display: grid;
    gap: 12px;
}

.charter-menu-mode-form {
    margin: 0;
    width: 100%;
}

.charter-menu-mode-card {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    text-align: left;
    font: inherit;
    color: inherit;
}

.charter-menu-mode-card.is-active {
    border-color: var(--google-blue);
    background: rgba(26, 115, 232, 0.1);
    box-shadow: none;
}

.charter-menu-mode-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.charter-menu-mode-copy {
    flex: 1;
    min-width: 0;
}

.charter-menu-category-list {
    display: grid;
    gap: 8px;
}

.charter-menu-category-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.charter-menu-preview-details {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    overflow: hidden;
}

.charter-menu-preview-summary {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
}

.charter-menu-preview-summary::-webkit-details-marker {
    display: none;
}

.charter-menu-preview-details[open] .charter-menu-preview-summary {
    border-bottom: 1px solid var(--divider);
    color: var(--text);
}

.charter-menu-preview-details .charter-menu-preview-card {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.charter-menu-preview-card {
    padding: 16px;
}

.charter-menu-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.charter-menu-preview-list {
    display: grid;
    gap: 10px;
}

.charter-menu-preview-item + .charter-menu-preview-item {
    padding-top: 10px;
    border-top: 1px solid var(--divider);
}

.charter-menu-preview-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.charter-menu-preview-desc {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

@media (min-width: 768px) {
    .charter-menu-mode-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.charter-market-add-card {
    padding: 0;
    overflow: hidden;
}

.charter-market-add-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--divider);
}

.charter-market-add-item:last-child {
    border-bottom: none;
}

.charter-market-add-info {
    flex: 1;
    min-width: 0;
}

.charter-market-add-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 20px;
}

.charter-market-add-unit {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.charter-market-add-empty {
    padding: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.charter-market-add-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.charter-market-add-qty {
    width: 64px;
    min-width: 64px;
    height: 36px;
    padding: 0 8px;
    text-align: center;
    margin: 0;
}

.charter-market-add-btn {
    flex-shrink: 0;
    min-width: 72px;
    white-space: nowrap;
}

.charter-order-items-save-status {
    min-height: 18px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.charter-order-items-save-status.is-saving {
    color: var(--primary);
}

.charter-order-items-save-status.is-saved {
    color: var(--success);
}

.charter-order-items-save-status.is-error {
    color: var(--danger);
}

.summary-count {
    font-weight: 400;
    color: var(--text-muted);
}

.empty-hint {
    padding: 20px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 20px;
}

.empty-hint a {
    color: var(--text);
    font-weight: 500;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 4px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    border-top: 1px solid var(--divider);
    margin-top: 8px;
    color: var(--text);
}

/* ─── Supplier Status (minimal step track) ─── */
.supplier-status-panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 14px 16px 16px;
    box-shadow: var(--elevation-1);
}

.supplier-status-panel.is-compact {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.supplier-status-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.supplier-status-panel-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.supplier-status-panel-current {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.supplier-status-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
}

.supplier-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 58px;
    padding: 8px 4px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.supplier-status-step {
    background: #FAFAFA;
    border-color: #ECECEC;
    color: var(--text-muted);
}

.supplier-status-step .supplier-status-step-num {
    border-color: #DADCE0;
    color: var(--text-muted);
    background: #fff;
}

.supplier-status-step:active {
    transform: scale(0.98);
}

.supplier-status-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.supplier-status-step-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supplier-status-step.is-done {
    background: #F5F5F5;
    border-color: #E8EAED;
    color: var(--text-secondary);
    box-shadow: none;
}

.supplier-status-step.is-done .supplier-status-step-num {
    border-color: #BDC1C6;
    background: #9AA0A6;
    color: #fff;
    font-size: 0;
}

.supplier-status-step.is-done .supplier-status-step-num::after {
    content: '✓';
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.supplier-status-step[data-status-step="received"].is-active {
    background: #FEF7E0;
    border-color: #F9D67A;
    color: #7A5500;
}

.supplier-status-step[data-status-step="received"].is-active .supplier-status-step-num {
    border-color: #F9AB00;
    background: #F9AB00;
    color: #fff;
}

.supplier-status-step[data-status-step="preparing"].is-active {
    background: #FEF3E8;
    border-color: #F5B885;
    color: #9A4E00;
}

.supplier-status-step[data-status-step="preparing"].is-active .supplier-status-step-num {
    border-color: #E8710A;
    background: #E8710A;
    color: #fff;
}

.supplier-status-step[data-status-step="shipping"].is-active {
    background: #E8F0FE;
    border-color: #AECBFA;
    color: #174EA6;
}

.supplier-status-step[data-status-step="shipping"].is-active .supplier-status-step-num {
    border-color: #1A73E8;
    background: #1A73E8;
    color: #fff;
}

.supplier-status-step[data-status-step="delivered"].is-active {
    background: #E6F4EA;
    border-color: #81C995;
    color: #137333;
}

.supplier-status-step[data-status-step="delivered"].is-active .supplier-status-step-num {
    border-color: #1E8E3E;
    background: #1E8E3E;
    color: #fff;
}

.supplier-status-step.is-active {
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}

.supplier-status-step.is-active .supplier-status-step-num {
    font-size: 10px;
}

.supplier-status-step.is-active .supplier-status-step-num::after {
    content: none;
}

.supplier-status-panel.is-compact .supplier-status-step {
    min-height: 48px;
    padding: 6px 2px;
    gap: 4px;
    font-size: 10px;
    border-radius: 10px;
}

.supplier-status-panel.is-compact .supplier-status-step.is-active {
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
}

.supplier-status-panel.is-compact .supplier-status-step-num {
    width: 18px;
    height: 18px;
    font-size: 9px;
}

.supplier-status-panel.is-readonly .supplier-status-step {
    cursor: default;
}

.supplier-status-track-readonly .supplier-status-step:active {
    transform: none;
}

/* Legacy status buttons (unused) */
.status-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.status-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    transition: all var(--transition);
    border: 1px solid transparent;
    min-height: 56px;
}

.status-btn:active { opacity: 0.9; }

.status-btn .status-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.status-btn.received,
.status-btn.preparing,
.status-btn.shipping,
.status-btn.delivered {
    background: var(--surface-dim);
    color: var(--text);
}

.status-btn .status-dot {
    background: var(--text-muted);
}

.status-btn.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
    box-shadow: var(--elevation-1);
}

.status-btn.active .status-dot {
    background: #fff;
}

.supplier-order-card {
    padding: 0;
    overflow: hidden;
}

.supplier-order-card-head {
    gap: 8px;
    min-width: 0;
}

.supplier-order-card-title {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.supplier-order-card-title .icon-svg {
    flex-shrink: 0;
}

.supplier-order-card-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supplier-order-card-company {
    font-weight: 500;
    color: var(--text-secondary);
}

.supplier-order-card-badge {
    flex-shrink: 0;
}

.supplier-order-link {
    display: block;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.supplier-order-link:active {
    background: var(--surface-dim);
}

.supplier-order-stages {
    border-top: 1px solid var(--divider);
    padding: 12px 16px 14px;
}

/* ─── Detail Rows ─── */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    min-height: 48px;
    font-size: 14px;
}

.detail-row + .detail-row {
    border-top: 1px solid var(--divider);
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 400;
}

.detail-value {
    font-weight: 400;
    text-align: right;
    color: var(--text);
}

.detail-value-multiline {
    max-width: 62%;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    line-height: 21px;
}

/* ─── Info Banner (Google Alert style) ─── */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 16px;
}

.info-banner.blue { background: var(--primary-light); color: var(--google-blue-dark); }
.info-banner.green { background: var(--success-light); color: #137333; }
.info-banner.orange { background: var(--google-orange-light); color: #B06000; }
.info-banner.purple { background: var(--purple-light); color: #7627BB; }

.info-banner-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text);
    font-size: 0;
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 64px 24px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--surface-dim);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: var(--text);
    margin: 0 auto 24px;
}

.empty-title {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 20px;
    margin-bottom: 24px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Snackbar / Top Alerts ─── */
.toast-container {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: var(--shell-max);
    z-index: 9999;
    pointer-events: none;
}

.app-body:not(.has-header) .toast-container,
.panel-guest .app-shell:not(:has(.app-header)) .toast-container {
    top: calc(8px + env(safe-area-inset-top, 0px));
}

.app-alert.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: var(--elevation-3);
    border: 1px solid transparent;
    pointer-events: auto;
    animation: alertIn 0.28s cubic-bezier(0.2, 0, 0, 1);
}

.app-alert.toast.is-hiding {
    animation: alertOut 0.22s ease forwards;
}

.app-alert-icon {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.app-alert-text {
    flex: 1;
    padding-top: 1px;
}

.app-alert-close {
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.7;
    font-size: 20px;
    line-height: 1;
    padding: 0 0 0 8px;
    cursor: pointer;
}

.app-alert-close:hover { opacity: 1; }

.toast-success,
.toast.success {
    background: var(--success-light);
    color: #137333;
    border-color: #CEEAD6;
}

.toast-success .app-alert-icon,
.toast.success .app-alert-icon {
    background: var(--surface-dim);
    color: var(--text);
}

.toast-error,
.toast.error {
    background: var(--google-orange-light);
    color: #B06000;
    border-color: #FEEFC3;
}

.toast-error .app-alert-icon,
.toast.error .app-alert-icon {
    background: var(--surface-dim);
    color: var(--text);
}

.toast-warning {
    background: var(--google-orange-light);
    color: #B06000;
    border-color: #FEEFC3;
}

.toast-warning .app-alert-icon {
    background: var(--surface-dim);
    color: var(--text);
}

.toast-default,
.toast.default {
    background: var(--primary-light);
    color: var(--google-blue-dark);
    border-color: #D2E3FC;
}

.toast-default .app-alert-icon,
.toast.default .app-alert-icon {
    background: var(--surface-dim);
    color: var(--text);
}

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes alertOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

/* ─── Confirm Modal ─── */
.app-confirm {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.app-confirm.hidden { display: none; }

.app-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(2px);
}

.app-confirm-dialog {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px 20px 20px;
    box-shadow: var(--elevation-3);
    border: 1px solid var(--border-light);
    text-align: center;
    animation: confirmIn 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.app-confirm-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: var(--radius-full);
    background: var(--surface-dim);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.app-confirm-title {
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text);
}

.app-confirm-message {
    font-size: 14px;
    line-height: 22px;
    color: var(--text-secondary);
    margin: 0 0 20px;
}

.app-confirm-actions {
    display: flex;
    gap: 8px;
}

.app-confirm-actions .btn {
    flex: 1;
}

body.modal-open {
    overflow: hidden;
}

@keyframes confirmIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* legacy toast class fallback */
.toast {
    background: var(--primary-light);
    color: var(--google-blue-dark);
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
}

/* ─── Google Sign-in Page ─── */
body.login-body {
    background:
        radial-gradient(circle at 20% 0%, rgba(26, 115, 232, 0.12), transparent 36%),
        linear-gradient(180deg, #e8eef6 0%, #f3f6fa 100%);
}

body.login-panel-supplier.login-body {
    background:
        radial-gradient(circle at 20% 0%, rgba(0, 123, 131, 0.12), transparent 36%),
        linear-gradient(180deg, #e6f3f4 0%, #f3f7f8 100%);
}

body.login-body .login-shell.app-shell {
    min-height: 100dvh;
    max-width: none;
    margin: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        calc(20px + var(--safe-top))
        16px
        calc(20px + var(--safe-bottom));
}

body.login-body .login-page {
    width: 100%;
    max-width: 460px;
    min-height: auto;
    padding: 0;
    background: transparent;
    display: block;
}

.login-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: calc(48px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
    background: var(--bg-card);
}

.login-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.08),
        0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.login-brand {
    position: relative;
    overflow: hidden;
    padding: 28px 24px 24px;
}

.login-brand::before,
.login-brand::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-brand::before {
    width: 180px;
    height: 180px;
    top: -70px;
    right: -50px;
    background: rgba(255, 255, 255, 0.12);
}

.login-brand::after {
    width: 120px;
    height: 120px;
    bottom: -40px;
    left: -30px;
    background: rgba(255, 255, 255, 0.08);
}

.login-home-link {
    display: none;
    position: relative;
    z-index: 1;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.login-home-link:hover {
    color: #fff;
}

.login-brand-head {
    position: relative;
    z-index: 1;
}

.login-logo,
.login-brand-head {
    text-align: center;
}

.login-logo {
    margin-bottom: 48px;
}

.login-logo-icon {
    width: 56px;
    height: 56px;
    background: var(--surface-dim);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: var(--text);
    margin: 0 auto 16px;
}

.login-brand .login-logo-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(8px);
}

.login-logo h1,
.login-brand-head h1 {
    font-family: var(--font);
    font-size: 24px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 30px;
}

.login-brand-head h1 {
    color: #fff;
}

.login-logo p,
.login-brand-head p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 22px;
}

.login-brand-head p {
    color: rgba(255, 255, 255, 0.82);
}

.login-feature-list {
    display: none;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    gap: 12px;
}

.login-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.login-feature-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-panel {
    padding: 24px;
}

.login-form-stack {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.login-form {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.login-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 20px;
}

.login-footer a { color: var(--primary); font-weight: 500; }

.login-panel-charter .login-brand {
    background: linear-gradient(145deg, #1a73e8 0%, #1558b0 100%);
}

.login-panel-charter .login-brand .login-panel-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.login-panel-supplier .login-brand {
    background: linear-gradient(145deg, #007b83 0%, #00565c 100%);
}

.login-panel-supplier .login-brand .login-panel-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.login-panel-supplier .btn-primary {
    background: var(--teal);
}

.login-panel-supplier .btn-primary:active {
    background: #00565c;
}

.login-panel-supplier .login-footer a,
.login-panel-supplier .auth-tab.active {
    color: var(--teal);
}

.login-panel-supplier .phone-input-wrap:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 1px var(--teal);
}

/* ─── Approval Actions ─── */
.approval-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin-top: 16px;
    width: 100%;
}

.approval-actions [data-order-sync-actions] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.approval-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.approval-actions .btn {
    justify-content: center;
}

.approval-btn-revision {
    background: var(--google-orange-light);
    color: #B06000;
    border-color: rgba(232, 113, 10, 0.32);
}

.approval-btn-revision:active {
    background: #FDE8D4;
}

.approval-revision-note {
    margin-top: 0;
    margin-bottom: 16px;
}

.approval-revision-box {
    padding: 16px;
}

.approval-revision-box .approval-revision-note .form-textarea {
    margin-bottom: 8px;
}

.approval-revision-box .approval-btn-revision {
    margin-top: 0;
}

.btn-success:active {
    background: #137333;
}

/* ─── Timeline ─── */
.timeline { padding: 0 16px; }

.timeline-item {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: var(--surface-container-high);
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--surface-container-high);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 1;
    color: var(--text-muted);
}

.timeline-dot.done { background: var(--text); color: #fff; }
.timeline-dot.active { background: var(--surface-dim); color: var(--text); border: 2px solid var(--text); }

.timeline-content { flex: 1; padding-top: 2px; }

.timeline-title {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--text);
}

.timeline-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 16px;
}

/* ─── Google Search Bar ─── */
.search-bar {
    padding: 8px 16px 12px;
    background: var(--bg-card);
    position: sticky;
    top: var(--header-h);
    z-index: 50;
}

.search-input-wrap { position: relative; }

.search-input-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: var(--surface-dim);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 16px;
    outline: none;
    color: var(--text);
    transition: background var(--transition), box-shadow var(--transition);
}

.search-input:focus {
    background: var(--bg-card);
    box-shadow: var(--elevation-1);
}

.search-input::placeholder { color: var(--text-muted); }

/* ─── Welcome Card (Google Material surface) ─── */
.welcome-card {
    margin: 16px;
    padding: 20px;
    background: var(--primary-light);
    border-radius: var(--radius-xl);
    color: var(--google-blue-dark);
}

.welcome-card h2 {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    margin-bottom: 4px;
    color: var(--text);
}

.welcome-card p {
    font-size: 14px;
    line-height: 20px;
    color: var(--text-secondary);
}

.welcome-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.welcome-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.6);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* ─── Quick Actions (Google Grid) ─── */
.quick-actions-minimal {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.quick-action-minimal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    min-height: 48px;
    color: var(--text);
    transition: background var(--transition);
}

.quick-action-minimal + .quick-action-minimal {
    border-top: 1px solid var(--divider);
}

.quick-action-minimal:active {
    background: var(--surface-dim);
}

.quick-action-minimal-icon {
    font-size: 20px;
    color: var(--text);
    flex-shrink: 0;
}

.quick-action-minimal-label {
    flex: 1;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--text);
}

.quick-action-minimal-arrow {
    font-size: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.list-icon.list-icon-mono {
    background: transparent;
    width: 24px;
    height: 24px;
    border-radius: 0;
}

.list-icon-mono {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    flex-shrink: 0;
}

.list-icon-mono svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 16px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--elevation-1);
    transition: box-shadow var(--transition), background var(--transition);
    text-align: center;
}

.quick-action:active {
    background: var(--surface-dim);
    box-shadow: var(--elevation-2);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.quick-action-label {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    line-height: 16px;
}

/* ─── Filter Tabs (Google Tab Bar) ─── */
.filter-tabs {
    display: flex;
    gap: 0;
    padding: 0 8px;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--bg-card);
    border-bottom: 1px solid var(--divider);
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
    flex-shrink: 0;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    min-height: 48px;
    display: flex;
    align-items: center;
    text-decoration: none;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
}

.filter-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ─── Ripple effect helper ─── */
.ripple {
    position: relative;
    overflow: hidden;
}

/* ─── Desktop ─── */
@media (min-width: 481px) {
    body { background: var(--surface-dim); }

    .app-shell {
        box-shadow: var(--elevation-3);
        border-radius: 0;
    }
}

@media (min-width: 768px) {
    .app-shell,
    .landing-page.app-shell {
        max-width: var(--shell-max-wide);
    }

    .bottom-nav,
    .action-bar,
    .toast-container,
    .action-bar.guest-summary-status-bar-wrap,
    .supplier-pdf-bar {
        max-width: var(--shell-max-wide);
    }

    .admin-side-drawer {
        max-width: var(--shell-max-wide);
    }

    .stats-grid,
    .stats-mini {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-padding,
    .search-bar {
        padding-left: 24px;
        padding-right: 24px;
    }

    .welcome-card {
        padding-left: 24px;
        padding-right: 24px;
    }

    body.landing-body .landing-shell.app-shell {
        padding:
            calc(28px + var(--safe-top))
            24px
            calc(28px + var(--safe-bottom));
    }

    body.landing-body .landing-page {
        max-width: 560px;
    }

    body.landing-body .landing-brand {
        padding: 32px 32px 28px;
    }

    body.landing-body .landing-panel {
        padding: 32px;
    }

    body.landing-body .landing-hero-copy h2 {
        font-size: 26px;
        line-height: 32px;
    }

    body.landing-body .landing-hero-copy p {
        font-size: 15px;
        line-height: 24px;
    }

    body.login-body {
        padding: 0;
    }

    body.login-body .login-shell.app-shell {
        padding:
            calc(28px + var(--safe-top))
            24px
            calc(28px + var(--safe-bottom));
    }

    body.login-body .login-page {
        max-width: 520px;
    }

    body.login-body .login-brand {
        padding: 32px 32px 28px;
    }

    body.login-body .login-panel {
        padding: 32px;
    }

    body.login-body .login-brand-head h1 {
        font-size: 28px;
        line-height: 34px;
    }

    body.login-body .login-form-stack,
    body.login-body .login-form,
    body.login-body .auth-otp-card {
        max-width: 420px;
    }

    .landing-panel-copy strong {
        font-size: 16px;
        line-height: 22px;
    }

    .landing-panel-copy small {
        font-size: 13px;
    }

    .filter-tabs,
    .timeline,
    .day-tabs {
        padding-left: 24px;
        padding-right: 24px;
    }

    .toast-container {
        width: min(calc(100% - 48px), var(--shell-max-wide));
    }
}

@media (min-width: 1024px) {
    body.landing-body .landing-shell.app-shell {
        padding:
            calc(40px + var(--safe-top))
            32px
            calc(40px + var(--safe-bottom));
    }

    body.landing-body .landing-page {
        max-width: 980px;
    }

    body.landing-body .landing-card {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: stretch;
        border-radius: 28px;
    }

    body.landing-body .landing-brand {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 44px 40px;
        min-height: 0;
    }

    body.landing-body .landing-logo-icon {
        width: 56px;
        height: 56px;
    }

    body.landing-body .landing-logo-text {
        font-size: 34px;
    }

    body.landing-body .landing-tagline {
        font-size: 16px;
        line-height: 24px;
        max-width: 380px;
    }

    body.landing-body .landing-hero-copy {
        margin-top: 28px;
    }

    body.landing-body .landing-hero-copy h2 {
        font-size: 30px;
        line-height: 36px;
    }

    body.landing-body .landing-hero-copy p {
        font-size: 15px;
        line-height: 24px;
    }

    body.landing-body .landing-feature-list {
        display: grid;
    }

    body.landing-body .landing-panel {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 44px 40px;
        min-height: 100%;
    }

    body.landing-body .landing-panel-stack {
        max-width: 400px;
        margin: 0;
        width: 100%;
    }

    body.landing-body .landing-panel-label {
        margin-bottom: 18px;
        font-size: 13px;
    }

    body.landing-body .landing-panel-link {
        padding: 18px 20px;
    }

    body.login-body .login-shell.app-shell {
        padding:
            calc(40px + var(--safe-top))
            32px
            calc(40px + var(--safe-bottom));
    }

    body.login-body .login-page {
        max-width: 980px;
    }

    body.login-body .login-card {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: stretch;
        border-radius: 28px;
    }

    body.login-body .login-brand {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 44px 40px;
        min-height: 0;
    }

    body.login-body .login-home-link {
        display: inline-flex;
    }

    body.login-body .login-brand-head {
        text-align: left;
    }

    body.login-body .login-brand .login-logo-icon {
        width: 64px;
        height: 64px;
        margin: 0 0 18px;
    }

    body.login-body .login-brand-head h1 {
        font-size: 32px;
        line-height: 38px;
    }

    body.login-body .login-brand-head p {
        max-width: 360px;
        font-size: 16px;
        line-height: 24px;
    }

    body.login-body .login-feature-list {
        display: grid;
    }

    body.login-body .login-panel {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 44px 40px;
        background: var(--bg-card);
        min-height: 100%;
    }

    body.login-body .login-form-stack {
        max-width: 400px;
        margin: 0;
        width: 100%;
    }

    body.login-body .login-form,
    body.login-body .auth-otp-card {
        max-width: none;
        margin: 0;
        width: 100%;
    }

    body.login-body .auth-tabs {
        max-width: none;
    }

    body.login-body .auth-otp-phone {
        text-align: left;
    }

    body.login-body .login-footer-mobile {
        display: none;
    }

    .app-body .app-shell {
        margin: 0;
        max-width: 100%;
        width: 100%;
        min-height: 100dvh;
        box-shadow: none;
    }

    .app-shell-body:has(> .bottom-nav) {
        display: grid;
        grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "sidebar header"
            "sidebar main";
        width: 100%;
        min-height: 100dvh;
    }

    .app-shell-body:has(> .bottom-nav):not(:has(> .app-header)) {
        grid-template-rows: 1fr;
        grid-template-areas: "sidebar main";
    }

    .app-shell-body > .bottom-nav {
        grid-area: sidebar;
        position: sticky;
        top: 0;
        align-self: start;
        left: auto;
        transform: none;
        width: 100%;
        max-width: none;
        height: 100dvh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 16px 12px calc(16px + var(--safe-bottom));
        gap: 4px;
        border-right: 1px solid var(--border-light);
        box-shadow: none;
    }

    .app-shell-body > .bottom-nav .bottom-nav-item {
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: flex-start;
        max-width: none;
        min-width: 0;
        width: 100%;
        padding: 10px 12px;
        gap: 12px;
        border-radius: var(--radius-lg);
    }

    .app-shell-body > .bottom-nav .bottom-nav-item.active::before {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: var(--radius-lg);
    }

    .app-shell-body > .bottom-nav .nav-label {
        font-size: 14px;
    }

    .app-shell-body > .app-header {
        grid-area: header;
    }

    .app-shell-body > .app-main {
        grid-area: main;
        padding-bottom: 24px;
        min-width: 0;
    }

    .panel-admin .app-shell:has(.app-shell-layout) {
        display: flex;
        flex-direction: column;
    }

    .panel-admin .app-shell-layout {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        flex: 1;
        width: 100%;
        min-height: 100dvh;
    }

    .panel-admin .admin-side-drawer {
        position: relative;
        transform: none;
        left: auto;
        width: var(--sidebar-w);
        max-width: none;
        flex: 0 0 var(--sidebar-w);
        pointer-events: auto;
        overflow: visible;
        z-index: 120;
    }

    .panel-admin .admin-side-drawer-panel {
        position: sticky;
        top: 0;
        right: auto;
        transform: none;
        width: 100%;
        height: 100dvh;
        box-shadow: none;
        border-right: 1px solid var(--border-light);
        border-left: none;
        padding-top: 16px;
    }

    .panel-admin .admin-side-drawer-backdrop,
    .panel-admin .admin-side-drawer-close,
    .panel-admin .admin-side-drawer-head-mobile,
    .panel-admin .admin-side-drawer-desc-mobile,
    .panel-admin .admin-side-drawer-arrow-mobile,
    .panel-admin .admin-bottom-nav {
        display: none;
    }

    .panel-admin .admin-side-drawer-brand-desktop,
    .panel-admin .admin-side-drawer-main-nav,
    .panel-admin .admin-side-drawer-section-desktop {
        display: block;
    }

    .panel-admin .admin-side-drawer-main-nav {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 0 12px 8px;
    }

    .panel-admin .admin-side-drawer-nav {
        gap: 2px;
        padding-top: 0;
    }

    .panel-admin .admin-side-drawer-link,
    .panel-admin .admin-side-drawer-link-main {
        padding: 10px 12px;
        gap: 12px;
    }

    .panel-admin .admin-side-drawer-link:hover {
        box-shadow: none;
        background: var(--surface-container);
    }

    .panel-admin .admin-side-drawer-icon-wrap {
        width: 36px;
        height: 36px;
        border-radius: var(--radius);
    }

    .panel-admin .admin-side-drawer-label {
        font-size: 14px;
        font-weight: 500;
    }

    .panel-admin .admin-side-drawer-section-desktop {
        padding: 8px 20px 6px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .panel-admin .admin-side-drawer-brand-desktop {
        padding: 8px 20px 16px;
        border-bottom: 1px solid var(--border-light);
        margin-bottom: 8px;
    }

    .panel-admin .admin-side-drawer-brand-desktop .admin-side-drawer-title {
        font-size: 18px;
        line-height: 24px;
    }

    .panel-admin .app-shell-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .panel-admin .app-main {
        padding-bottom: 24px;
    }

    .panel-admin .app-shell.admin-drawer-open {
        overflow: visible;
    }

    .action-bar:not(.is-static):not(.guest-summary-status-bar-wrap):not(.guest-flow-action-bar) {
        position: sticky;
        left: auto;
        transform: none;
        max-width: none;
        width: auto;
        margin: 0 24px 16px;
        border-radius: var(--radius-lg);
        bottom: 16px;
    }

    .action-bar.no-nav:not(.is-static) {
        bottom: 16px;
    }

    .panel-guest .action-bar.guest-flow-action-bar {
        position: fixed !important;
        left: var(--sidebar-w);
        right: 0;
        transform: none;
        width: auto;
        max-width: none;
        bottom: 0;
        margin: 0;
        border-radius: 0;
        padding: 14px 24px calc(14px + var(--safe-bottom));
    }

    .panel-guest .guest-flow-page {
        padding-bottom: calc(88px + var(--safe-bottom));
    }

    #guest-summary-page:not([data-submitted="1"]),
    #guest-summary-page[data-submitted="1"] {
        padding-bottom: 24px;
    }

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .toast-container {
        left: auto;
        right: 24px;
        transform: none;
        width: min(420px, calc(100% - 48px));
        max-width: 420px;
    }

    .app-shell:not(:has(.app-shell-layout)):not(:has(.app-shell-body > .bottom-nav)) {
        max-width: var(--content-max);
        margin: 0 auto;
    }

    .bottom-nav,
    .action-bar,
    .toast-container,
    .action-bar.guest-summary-status-bar-wrap,
    .supplier-pdf-bar {
        max-width: none;
    }

    .action-bar.guest-summary-status-bar-wrap {
        display: none;
    }
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 14px; line-height: 20px; }
.text-xs { font-size: 12px; line-height: 16px; }
.font-bold { font-weight: 500; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
/* Order link cards */
.order-link-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--elevation-1);
    border: 1px solid var(--border-light);
}

.order-link-card-nav {
    position: relative;
}

.order-link-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.order-link-card-nav .phone-link {
    position: relative;
    z-index: 2;
}

.link-copy-box {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--surface-container);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.guest-link-share {
    background: var(--surface-container);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px;
}

.guest-link-share-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.guest-link-share-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    color: var(--text);
    flex-shrink: 0;
    box-shadow: var(--elevation-1);
}

.guest-link-share-title {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 20px;
}

.guest-link-share-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 16px;
    margin-top: 2px;
}

.guest-link-url-box {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 12px;
}

.guest-link-url-text {
    display: block;
    font-size: 12px;
    line-height: 18px;
    color: var(--text-secondary);
    word-break: break-all;
}

.guest-link-share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.guest-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: var(--radius-xl);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: background var(--transition);
}

.guest-share-btn:active {
    background: var(--surface-dim);
}

.guest-share-btn-whatsapp {
    grid-column: span 1;
}

.share-native-btn {
    grid-column: 1 / -1;
}

.link-copy-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 12px;
    color: var(--text-secondary);
    outline: none;
    min-width: 0;
}

.link-card-actions {
    display: flex;
    gap: 8px;
}

.boat-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.boat-list-item-border {
    border-top: 1px solid var(--divider);
}

.boat-list-name {
    flex: 1;
    font-size: 14px;
    color: var(--text);
}

.btn-icon-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    transition: background var(--transition);
}

.btn-icon-text:active {
    background: var(--danger-light);
    color: var(--danger);
}

/* Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ─── Monochrome Icon System ─── */
svg path {
    fill: currentColor;
}

.icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.icon-svg-md {
    width: 28px;
    height: 28px;
}

.icon-svg-lg {
    width: 36px;
    height: 36px;
}

.inline-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    vertical-align: -3px;
    margin-right: 4px;
    display: inline-block;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--surface-dim);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.landing-logo-icon .icon-svg,
.landing-panel-icon .icon-svg,
.login-logo-icon .icon-svg {
    width: 24px;
    height: 24px;
}

.list-icon .icon-svg {
    width: 22px;
    height: 22px;
}

.app-alert-icon {
    font-size: 0;
}

.app-alert-icon .icon-svg {
    width: 14px;
    height: 14px;
}

.app-confirm-icon .icon-svg {
    width: 26px;
    height: 26px;
}

.timeline-dot.done {
    font-size: 0;
}

.timeline-dot.done .icon-svg {
    width: 14px;
    height: 14px;
}

.bottom-nav-item {
    color: var(--text-muted);
}

.bottom-nav-item .nav-icon {
    color: inherit;
}

.bottom-nav-item.active {
    color: var(--text);
}

.text-center .card-icon {
    margin: 0 auto 12px;
}

.hidden { display: none !important; }

.order-sync-flash {
    animation: orderSyncFlash 1.2s ease;
}

@keyframes orderSyncFlash {
    0%, 100% {
        box-shadow: none;
    }
    35% {
        box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.28);
    }
}

/* Out of stock — supplier + charter */
.stock-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    background: rgba(234, 88, 12, 0.12);
    color: #c2410c;
    white-space: nowrap;
}

.order-stock-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.order-stock-warning-items {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
}

.out-of-stock-alert .out-of-stock-list {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.5;
}

.out-of-stock-alert .out-of-stock-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
}

.out-of-stock-alert {
    position: relative;
    align-items: flex-start;
    padding-right: 44px;
}

.out-of-stock-alert-body {
    flex: 1;
    min-width: 0;
}

.out-of-stock-alert-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.out-of-stock-alert-dismiss {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.out-of-stock-alert-dismiss:hover,
.out-of-stock-alert-dismiss:focus-visible {
    background: rgba(0, 0, 0, 0.12);
    outline: none;
}

.shopping-category .cart-item.is-out-of-stock {
    background: rgba(234, 88, 12, 0.06);
}

.supplier-stock-card {
    padding-top: 4px;
}

.supplier-stock-hint {
    margin-bottom: 12px;
}

.supplier-stock-category + .supplier-stock-category {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.supplier-stock-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
}

.supplier-stock-item + .supplier-stock-item {
    border-top: 1px solid var(--border);
}

.supplier-stock-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #ea580c;
}

.supplier-stock-item-copy {
    flex: 1;
    min-width: 0;
}

.supplier-stock-item-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.supplier-stock-item-meta {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.supplier-stock-item-flag {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.supplier-stock-item.is-out-of-stock .supplier-stock-item-flag,
.supplier-stock-item:has(input:checked) .supplier-stock-item-flag {
    opacity: 1;
    color: #c2410c;
}

.supplier-stock-item.is-out-of-stock,
.supplier-stock-item:has(input:checked) {
    background: rgba(234, 88, 12, 0.06);
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}

.supplier-stock-form.is-pending,
.supplier-stock-form.is-saving {
    opacity: 0.82;
}

.supplier-stock-form.is-saving {
    pointer-events: none;
}

.supplier-stock-form.is-pending .supplier-stock-item-flag::after,
.supplier-stock-form.is-saving .supplier-stock-item-flag::after {
    content: ' • kaydediliyor';
    font-weight: 500;
    color: var(--text-muted);
}

/* Order detail — full viewport desktop split (4:1) */
.order-detail-fullscreen-root {
    padding: 16px;
    padding-bottom: calc(16px + var(--safe-bottom));
}

.order-detail-fullscreen-flash {
    margin-bottom: 12px;
}

.order-detail-fullscreen-split {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-detail-fullscreen-main {
    min-width: 0;
}

.order-detail-fullscreen-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    order: -1;
}

.order-detail-fullscreen-status,
.order-detail-fullscreen-info-card,
.order-detail-fullscreen-note-card,
.order-detail-fullscreen-cutoff {
    margin-bottom: 0;
}

.order-detail-fullscreen-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    body.order-detail-fullscreen-page {
        background: var(--surface-dim);
    }

    body.order-detail-fullscreen-page .app-shell,
    body.order-detail-fullscreen-page .app-shell:not(:has(.app-shell-layout)):not(:has(.app-shell-body > .bottom-nav)) {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        min-height: 100dvh;
        box-shadow: none;
        border-radius: 0;
    }

    body.order-detail-fullscreen-page .app-shell-body {
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }

    body.order-detail-fullscreen-page .app-header {
        position: sticky;
        top: 0;
        z-index: 110;
    }

    body.order-detail-fullscreen-page .app-main {
        flex: 1;
        overflow-x: hidden;
        overflow-y: auto;
        padding-bottom: 24px;
        -webkit-overflow-scrolling: touch;
    }

    .order-detail-fullscreen-root {
        padding: 0;
        max-width: none;
        width: 100%;
    }

    .order-detail-fullscreen-flash {
        margin: 12px 20px 0;
    }

    .order-detail-fullscreen-split {
        display: grid;
        grid-template-columns: 4fr 1fr;
        align-items: start;
        gap: 0;
    }

    .order-detail-fullscreen-main {
        padding: 20px 24px 32px;
        min-width: 0;
    }

    .order-detail-fullscreen-sidebar {
        order: 0;
        padding: 20px 20px 32px;
        border-left: 1px solid var(--border);
        background: var(--bg-card);
        min-width: 0;
    }

    .order-detail-fullscreen-main .section-gap:last-child {
        margin-bottom: 0;
    }

    .order-detail-fullscreen-main .shopping-category.section-gap {
        margin-bottom: 12px;
    }

    .order-detail-fullscreen-main .shopping-category.section-gap:last-child {
        margin-bottom: 0;
    }

    .order-detail-fullscreen-sidebar .info-banner {
        font-size: 13px;
    }

    .order-detail-fullscreen-sidebar .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .order-detail-fullscreen-sidebar .detail-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .order-detail-fullscreen-sidebar .detail-value {
        font-size: 14px;
    }
}

/* Admin AI settings */
.ai-info-banner code {
    font-size: 12px;
    background: rgba(26, 115, 232, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

.ai-mode-grid {
    display: grid;
    gap: 12px;
}

.ai-mode-card {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.ai-mode-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ai-mode-card.is-active,
.ai-mode-card:has(input:checked) {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.15);
}

.ai-mode-card-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.ai-mode-card-desc {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

.ai-flow-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.ai-flow-list li + li {
    margin-top: 8px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .ai-mode-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--divider);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
