/* ==========================================================================
   <copyright file="app.css" company="CannaLog Technologies Limited">
       Copyright (c) 2026 CannaLog Technologies Limited. All rights reserved.
   </copyright>

   Project:     CannaLog Administration Portal (CannaLogAdmin)
   Description: Application CSS File

   Author:      Gregory Hulsmann
   Created:     05 Apr 2026

   License:     PROPRIETARY & CONFIDENTIAL
                Unauthorized copying of this file, via any medium is strictly
                prohibited. The intellectual and technical concepts contained
                herein are proprietary to CannaLog Technologies Limited and may
                be covered by U.K. and Foreign Patents, patents in process,
                and are protected by trade secret or copyright law.

                Dissemination of this information or reproduction of this
                material is strictly forbidden unless prior written permission
                is obtained.

   History:     05 Apr 2026 - GH - Initial creation.
                09 Apr 2026 - GH - Rebrand to Orange / Black / Warm Grey palette.
                11 Apr 2026 - GH - Rebrand to CannaLog Forest Green palette,
                                   aligned with cannalog.co.uk brand system.
   ========================================================================== */

/* ==========================================================================
   01. CSS VARIABLES & THEME
   Dark mode is the default.
   Light mode variables are overridden via @media (prefers-color-scheme: light).

   Palette:
     Primary (Green)   #1A6B3C  (forest green — matches cannalog.co.uk)
     Black             #0B0B0B
     Background        #E4E4E4  (light mode surface / dark mode is derived dark)
   ========================================================================== */
:root {
    /* ── Dark palette ── */
    --bg: #0B0B0B;
    --surface: #111111;
    --surface-2: #191919;
    --border: #282828;
    --border-lt: #1E1E1E;
    --text: #F5F5F5;
    --muted: #9A9A9A;
    --hint: #555555;
    /* ── Primary Brand (Forest Green) — matches cannalog.co.uk ── */
    --primary: #1A6B3C;
    --primary-lt: #22A05A;
    --primary-bg: #071A0E;
    --primary-mid: #0F3D22;
    /* ── Semantic Success (Green — kept for statuses only) ── */
    --green: #10B981;
    --green-lt: #34D399;
    --green-bg: #022C22;
    --green-mid: #064E3B;
    /* ── Semantic Info (Blue — kept for info/session data) ── */
    --blue: #3B82F6;
    --blue-lt: #60A5FA;
    --blue-bg: #0A1A3A;
    --blue-mid: #1E3A8A;
    /* ── Semantic Colors ── */
    --amber: #F59E0B;
    --amber-bg: #291500;
    --red: #EF4444;
    --red-bg: #1A0505;
    /* ── UI Elements ── */
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.5);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.6), 0 2px 4px -2px rgba(0,0,0,0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.7), 0 4px 6px -4px rgba(0,0,0,0.5);
    /* ── Typography ── */
    --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --display: 'Google Sans', system-ui, -apple-system, sans-serif;
    --body: 'Google Sans', system-ui, -apple-system, sans-serif;
    /* ── Alerts ── */
    --alert-warning-bg: #291500;
    --alert-warning-border: #78350F;
    --alert-warning-text: #FBBF24;
    --alert-warning-stripe: #F59E0B;
    --alert-info-bg: var(--blue-bg);
    --alert-info-border: #1E3A8A;
    --alert-info-text: #60A5FA;
    --alert-info-stripe: var(--blue);
    /* ── Layout ── */
    --sidebar-w: 320px;
    --header-h: 64px;
    --modal-overlay: rgba(0,0,0,0.75);
    --scrollbar-thumb: #333333;
    --color-scheme: dark;
    /* ── Charts & Tables ── */
    --chart-pastel-1: #22A05A;
    --chart-pastel-2: #34D399;
    --chart-pastel-3: #FDE047;
    --chart-pastel-4: #60A5FA;
    --chart-pastel-5: #FCA5A5;
    --table-pastel-bg: #071A0E;
    --table-pastel-border: #0F3D22;
}

@media (prefers-color-scheme: light) {
    :root {
        /* ── Light palette — warm grey base (matches cannalog.co.uk) ── */
        --bg: #ECEAE5;
        --surface: #F5F4F0;
        --surface-2: #EDECE8;
        --border: #D6D4CE;
        --border-lt: #E0DED9;
        --text: #111511;
        --muted: #4A4D47;
        --hint: #8A8D87;
        /* ── Primary Brand (Forest Green — light mode) ── */
        --primary: #1A6B3C;
        --primary-lt: #22A05A;
        --primary-bg: #EAF5EE;
        --primary-mid: #A8D5B5;
        /* ── Semantic Success ── */
        --green: #059669;
        --green-lt: #10B981;
        --green-bg: #ECFDF5;
        --green-mid: #A7F3D0;
        /* ── Semantic Info ── */
        --blue: #2563EB;
        --blue-lt: #3B82F6;
        --blue-bg: #EFF6FF;
        --blue-mid: #BFDBFE;
        /* ── Semantic Colors ── */
        --amber: #D97706;
        --amber-bg: #FFFBEB;
        --red: #DC2626;
        --red-bg: #FEF2F2;
        /* ── UI Elements ── */
        --shadow-sm: 0 1px 2px 0 rgba(17,21,17,0.06);
        --shadow-md: 0 4px 6px -1px rgba(17,21,17,0.1), 0 2px 4px -2px rgba(17,21,17,0.08);
        --shadow-lg: 0 10px 15px -3px rgba(17,21,17,0.12), 0 4px 6px -4px rgba(17,21,17,0.08);
        /* ── Alerts ── */
        --alert-warning-bg: #FFFBEB;
        --alert-warning-border: #FCD34D;
        --alert-warning-text: #92400E;
        --alert-warning-stripe: #F59E0B;
        --alert-info-bg: var(--blue-bg);
        --alert-info-border: var(--blue-mid);
        --alert-info-text: #1E40AF;
        --alert-info-stripe: var(--blue);
        /* ── Layout ── */
        --modal-overlay: rgba(17,21,17,0.55);
        --scrollbar-thumb: #D6D4CE;
        --color-scheme: light;
        /* ── Charts & Tables ── */
        --chart-pastel-1: #1A6B3C;
        --chart-pastel-2: #22A05A;
        --chart-pastel-3: #FACC15;
        --chart-pastel-4: #60A5FA;
        --chart-pastel-5: #F87171;
        --table-pastel-bg: #EAF5EE;
        --table-pastel-border: #A8D5B5;
    }
}

/* ==========================================================================
   02. BASE & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

#app, .page, article {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--hint);
    }

/* ─── 02.1. FOCUS OUTLINE SUPPRESSOR ─── */
body *:not(input):not(button):not(a):not(select):not(textarea):not([tabindex]):focus,
body *:not(input):not(button):not(a):not(select):not(textarea):not([tabindex]):focus-visible {
    outline: none;
}

/* ==========================================================================
   03. BUTTONS
   ========================================================================== */
.btn {
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .btn svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
}

    .btn-ghost:hover:not(:disabled) {
        background: var(--surface-2);
        color: var(--text);
    }

.btn-solid {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

    .btn-solid:hover:not(:disabled) {
        background: var(--primary-lt);
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(26,107,60,0.35);
    }

.btn-danger {
    background: var(--surface);
    color: var(--red);
    border-color: var(--border);
}

    .btn-danger:hover:not(:disabled) {
        background: var(--red-bg);
        border-color: var(--red);
    }

.btn-outline {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

    .btn-outline:hover:not(:disabled) {
        background: var(--surface-2);
        border-color: var(--muted);
    }

/* ==========================================================================
   04. LAYOUT & NAVIGATION
   ========================================================================== */
header {
    height: var(--header-h);
    background: var(--surface);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: visible;
}

.logo {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
}

.auth-logo {
    height: 30px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.header-badge {
    font-family: var(--mono);
    font-size: 10px;
    background: var(--primary-bg);
    color: var(--primary-lt);
    border: 1px solid var(--primary-mid);
    padding: 4px 10px;
    border-radius: var(--radius);
    letter-spacing: 0.05em;
    font-weight: 600;
}

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

.api-status {
    font-family: var(--mono);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    border: 1px solid transparent;
}

    .api-status.ok {
        background: var(--green-bg);
        color: var(--green);
        border-color: var(--green-mid);
    }

    .api-status.err {
        background: var(--red-bg);
        color: var(--red);
        border-color: var(--red);
    }

.api-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.top-nav {
    display: flex;
    gap: 4px;
    padding: 0 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.top-nav-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

    .top-nav-item:hover {
        color: var(--text);
    }

    .top-nav-item.active {
        color: var(--primary-lt);
        border-bottom-color: var(--primary-lt);
    }

    .top-nav-item svg {
        width: 16px;
        height: 16px;
    }

.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - var(--header-h));
}

.page {
    display: flex;
    flex: 1;
    overflow: hidden;
    flex-direction: row;
}

.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    z-index: 10;
}

.main {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    position: relative;
}

/* ─── 04.1. HEADER NAVIGATION ─── */
.header-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    margin: 0 20px;
    flex-shrink: 0;
}

.header-nav {
    display: flex;
    align-items: stretch;
    height: 100%;
    flex: 1;
    gap: 0;
}

.header-nav-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

    .header-nav-item svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
        opacity: 0.55;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .header-nav-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: calc(100% - 20px);
        height: 2px;
        border-radius: 2px 2px 0 0;
        background: var(--primary-lt);
        transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
        opacity: 0;
    }

    .header-nav-item:hover {
        color: var(--text);
    }

        .header-nav-item:hover svg {
            opacity: 0.85;
            transform: translateY(-1px);
        }

        .header-nav-item:hover::after {
            transform: translateX(-50%) scaleX(0.5);
            opacity: 0.35;
        }

    .header-nav-item.active {
        color: var(--primary-lt);
        font-weight: 600;
    }

        .header-nav-item.active svg {
            opacity: 1;
            transform: translateY(-1px);
        }

        .header-nav-item.active::after {
            transform: translateX(-50%) scaleX(1);
            opacity: 1;
        }

.nav-alert-badge {
    background: var(--red);
    color: #fff;
    border-radius: 99px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.6;
    min-width: 18px;
    text-align: center;
    margin-left: 2px;
    animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* ─── 04.2. FLOATING ACTION BUTTON ─── */
.fab-new-product {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 90;
}

    .fab-new-product .btn {
        border-radius: 99px;
        padding: 14px 22px;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 4px 16px rgba(26,107,60,0.4), 0 1px 4px rgba(0,0,0,0.3);
        transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
        letter-spacing: 0.01em;
    }

        .fab-new-product .btn:hover:not(:disabled) {
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 8px 24px rgba(26,107,60,0.5), 0 2px 8px rgba(0,0,0,0.3);
        }

        .fab-new-product .btn:active:not(:disabled) {
            transform: translateY(0) scale(0.98);
            box-shadow: 0 2px 8px rgba(26,107,60,0.35);
        }

        .fab-new-product .btn svg {
            width: 18px;
            height: 18px;
        }

/* ─── 04.3. PROFILE DROPDOWN ─── */
.header-actions {
    position: relative;
    z-index: 300;
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

.profile-dropdown-wrap {
    position: relative;
    cursor: pointer;
}

.profile-dropdown-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 150;
}

.profile-avatar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

    .profile-avatar-btn:hover {
        background: var(--surface-2);
        border-color: var(--border);
    }

.profile-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-bg);
    border: 1.5px solid var(--primary-mid);
    color: var(--primary-lt);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.profile-identity {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.profile-identity-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    line-height: 1.3;
}

.profile-identity-email {
    font-size: 11px;
    font-weight: 400;
    color: var(--hint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    line-height: 1.3;
}

.profile-chevron {
    width: 14px;
    height: 14px;
    color: var(--hint);
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.4,0,0.2,1);
}

    .profile-chevron.open {
        transform: rotate(180deg);
    }

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    animation: dropdownIn 0.15s cubic-bezier(0.16,1,0.3,1);
    overflow: hidden;
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.profile-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-bg);
    border: 1.5px solid var(--primary-mid);
    color: var(--primary-lt);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-dropdown-identity {
    flex: 1;
    min-width: 0;
}

.profile-dropdown-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.profile-dropdown-email {
    font-size: 11px;
    color: var(--hint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    margin-top: 1px;
}

.profile-dropdown-role {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px solid;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--border-lt);
    margin: 0;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    cursor: pointer;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--body);
    line-height: 1.5;
}

    .profile-dropdown-item svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        color: var(--hint);
    }

    .profile-dropdown-item:hover {
        background: var(--surface-2);
        color: var(--text);
    }

        .profile-dropdown-item:hover svg {
            color: var(--muted);
        }

.profile-dropdown-item--danger {
    color: var(--red);
}

    .profile-dropdown-item--danger svg {
        color: var(--red);
        opacity: 0.7;
    }

    .profile-dropdown-item--danger:hover {
        background: var(--red-bg);
        color: var(--red);
    }

        .profile-dropdown-item--danger:hover svg {
            opacity: 1;
        }

.profile-avatar-photo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary-mid);
    flex-shrink: 0;
    display: block;
}

.profile-dropdown-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary-mid);
    flex-shrink: 0;
    display: block;
}

/* ==========================================================================
   05. SIDEBAR COMPONENTS
   ========================================================================== */
.sidebar-top {
    padding: 20px;
    border-bottom: 1px solid var(--border-lt);
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--surface);
    flex-shrink: 0;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: all 0.2s ease;
}

    .search-wrap:focus-within {
        border-color: var(--primary);
        background: var(--surface);
        box-shadow: 0 0 0 3px rgba(26,107,60,0.15);
    }

.search-icon {
    width: 16px;
    height: 16px;
    color: var(--hint);
    flex-shrink: 0;
}

.search-wrap input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100%;
    font-family: var(--body);
    font-size: 13px;
    color: var(--text);
}

.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .chip:hover {
        background: var(--surface-2);
        color: var(--text);
    }

    .chip.active {
        background: var(--primary-bg);
        border-color: var(--primary-mid);
        color: var(--primary-lt);
    }

.sidebar-list {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
}

.list-header {
    padding: 12px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--hint);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.product-item {
    padding: 12px;
    margin-bottom: 4px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid transparent;
}

    .product-item:hover {
        background: var(--surface-2);
    }

    .product-item.active {
        background: var(--surface);
        border-color: var(--border);
        box-shadow: var(--shadow-sm);
    }

.product-thumb {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--border-lt);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.product-item.active .product-thumb {
    background: var(--primary-bg);
    border-color: var(--primary-mid);
}

.product-item-info {
    flex: 1;
    min-width: 0;
}

.product-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.product-item-meta {
    font-size: 12px;
    color: var(--muted);
    font-family: var(--mono);
}

.avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-available {
    background: var(--green);
    box-shadow: 0 0 0 3px var(--green-bg);
}

.dot-low {
    background: var(--amber);
    box-shadow: 0 0 0 3px var(--amber-bg);
}

.dot-out {
    background: var(--red);
    box-shadow: 0 0 0 3px var(--red-bg);
}

.dot-discontinued {
    background: var(--hint);
}

.dot-upcoming {
    background: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

/* ==========================================================================
   06. MAIN PANEL & TABS
   ========================================================================== */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--muted);
    padding: 48px;
    text-align: center;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    color: var(--border);
}

.empty-state p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

.product-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.panel-header {
    padding: 32px 40px 24px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.cltid-badge {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-lt);
    background: var(--primary-bg);
    border: 1px solid var(--primary-mid);
    padding: 4px 10px;
    border-radius: var(--radius);
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.panel-title {
    font-family: var(--display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--text);
}

.panel-strain {
    font-size: 15px;
    color: var(--muted);
    margin-top: 8px;
    font-weight: 500;
}

.panel-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    margin-top: 4px;
}

.tab-bar {
    display: flex;
    padding: 0 40px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    gap: 24px;
}

.tab {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    padding: 12px 4px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

    .tab:hover {
        color: var(--text);
    }

    .tab.active {
        color: var(--primary-lt);
        border-bottom-color: var(--primary-lt);
    }

.tab-content {
    display: none;
    padding: 32px 40px;
    flex: 1;
    background: var(--bg);
}

    .tab-content.active {
        display: block;
    }

/* ==========================================================================
   07. PREVIEW CARDS & DATA DISPLAY
   ========================================================================== */
.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

    .preview-grid.thirds {
        grid-template-columns: 1fr 1fr 1fr;
    }

.preview-card {
    background: var(--surface);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .preview-card:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--border);
    }

.preview-card-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hint);
    margin-bottom: 16px;
}

.kv-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-lt);
    gap: 16px;
}

    .kv-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.kv-key {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    flex-shrink: 0;
}

.kv-val {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    color: var(--text);
}

.kv-mono {
    font-family: var(--mono);
    font-weight: 500;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 99px;
    font-weight: 600;
    border: 1px solid;
}

.tag-green {
    background: var(--green-bg);
    color: var(--green);
    border-color: var(--green-mid);
}

.tag-amber {
    background: var(--amber-bg);
    color: var(--amber);
    border-color: var(--amber);
}

.tag-blue {
    background: var(--blue-bg);
    color: var(--blue);
    border-color: var(--blue);
}

.avail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
}

    .avail-badge.available {
        background: var(--green-bg);
        color: var(--green);
    }

    .avail-badge.low {
        background: var(--amber-bg);
        color: var(--amber);
    }

    .avail-badge.out {
        background: var(--red-bg);
        color: var(--red);
    }

.thc-track {
    height: 8px;
    background: var(--border-lt);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.thc-fill {
    height: 100%;
    background: var(--green);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.cbd-fill {
    background: var(--blue);
}

.terpene-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-lt);
}

    .terpene-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.terpene-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-lt);
    flex-shrink: 0;
}

.desc-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    white-space: pre-wrap;
    font-weight: 500;
}

.pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-lt);
}

    .pricing-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.pricing-amount {
    font-size: 14px;
    font-weight: 600;
}

.pricing-price {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.pricing-per {
    font-size: 12px;
    color: var(--hint);
    font-family: var(--mono);
    margin-top: 2px;
}

/* ==========================================================================
   08. FORMS & INPUTS
   ========================================================================== */
.form-section {
    margin-bottom: 32px;
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-lt);
    box-shadow: var(--shadow-sm);
}

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-lt);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

    .form-grid.thirds {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .form-grid.full {
        grid-template-columns: 1fr;
    }

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

    label .required {
        color: var(--red);
        margin-left: 4px;
    }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=url], input[type=tel], input[type=date], input[type=datetime-local],
select, textarea {
    font-family: var(--body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
    color-scheme: var(--color-scheme);
}

    input:focus, select:focus, textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(26,107,60,0.15);
    }

    input::placeholder, textarea::placeholder {
        color: var(--hint);
    }

textarea {
    resize: vertical;
    min-height: 100px;
}

select option {
    background: var(--surface-2);
    color: var(--text);
}

/* Login icon row — strips global input border so only the row wrapper shows */
.login-input-row input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 12px 14px !important;
    border-radius: 0 !important;
}

    .login-input-row input:focus {
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

.multi-select-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 44px;
    cursor: text;
    transition: all 0.2s ease;
}

    .multi-select-wrap:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(26,107,60,0.15);
    }

.ms-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-bg);
    color: var(--primary-lt);
    border: 1px solid var(--primary-mid);
    border-radius: 99px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}

    .ms-tag button {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--primary-lt);
        font-size: 14px;
        line-height: 1;
        padding: 0 0 0 2px;
        opacity: 0.6;
        transition: opacity 0.2s ease;
    }

        .ms-tag button:hover {
            opacity: 1;
        }

.ms-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 2px 4px !important;
    font-size: 14px !important;
    flex: 1;
    min-width: 100px;
    box-shadow: none !important;
    font-weight: 500;
}

.ms-sugg-wrap {
    position: relative;
}

.ms-suggestions {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    max-height: 220px;
    overflow-y: auto;
    width: 100%;
    top: 4px;
    left: 0;
    display: none;
    padding: 4px;
}

    .ms-suggestions.open {
        display: block;
    }

.ms-sugg-item {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s ease;
}

    .ms-sugg-item:hover {
        background: var(--surface-2);
        color: var(--text);
    }

.form-actions {
    display: flex;
    gap: 12px;
    padding: 20px 40px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* ==========================================================================
   09. REFERENCE DATA PAGE
   ========================================================================== */
.ref-page {
    flex: 1;
    overflow-y: auto;
    padding: 32px 40px;
    background: var(--bg);
}

.ref-page-title {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.ref-page-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 32px;
}

.ref-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.ref-sections--tags {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.ref-section.dragging {
    opacity: 0.45;
    transform: scale(0.98);
    transition: opacity 0.15s, transform 0.15s;
}

.ref-section.drag-over {
    outline: 2px dashed var(--primary);
    outline-offset: 3px;
    background: var(--primary-bg);
}

.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: var(--hint);
    cursor: grab;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

    .drag-handle:hover {
        background: var(--surface-2);
        color: var(--muted);
    }

    .drag-handle:active {
        cursor: grabbing;
    }

.ref-section {
    background: var(--surface);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.ref-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-lt);
}

    .ref-section-head .ref-section-title {
        flex: 1;
    }

.ref-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .ref-section-title span {
        font-size: 12px;
        font-weight: 600;
        color: var(--hint);
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: 99px;
        padding: 2px 8px;
    }

.ref-table {
    width: 100%;
    border-collapse: collapse;
}

    .ref-table th {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--muted);
        padding: 10px 16px;
        text-align: left;
        border-bottom: 2px solid var(--table-pastel-border);
        background: var(--table-pastel-bg);
    }

    .ref-table td {
        padding: 10px 16px;
        font-size: 13px;
        font-weight: 500;
        border-bottom: 1px solid var(--border-lt);
        vertical-align: middle;
    }

    .ref-table tr:last-child td {
        border-bottom: none;
    }

    .ref-table tbody tr:hover td {
        background: var(--surface-2);
    }

.actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.inline-edit {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .inline-edit input {
        font-family: var(--body);
        font-size: 13px;
        font-weight: 500;
        color: var(--text);
        background: var(--surface);
        border: 1px solid var(--primary);
        border-radius: 8px;
        padding: 6px 10px;
        outline: none;
        flex: 1;
        box-shadow: 0 0 0 3px rgba(26,107,60,0.15);
    }

.add-row {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid var(--border-lt);
    background: var(--bg);
}

    .add-row input {
        font-family: var(--body);
        font-size: 13px;
        font-weight: 500;
        color: var(--text);
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 8px 12px;
        outline: none;
        flex: 1;
        transition: all 0.2s ease;
    }

        .add-row input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(26,107,60,0.15);
        }

.supply-add-row {
    padding: 16px 24px;
    background: var(--bg);
    border-top: 1px solid var(--border-lt);
    display: grid;
    gap: 8px;
    grid-template-columns: 2fr 2fr 2fr auto;
}

    .supply-add-row input {
        font-family: var(--body);
        font-size: 13px;
        font-weight: 500;
        color: var(--text);
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 8px 12px;
        outline: none;
        transition: all 0.2s ease;
        width: 100%;
    }

        .supply-add-row input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(26,107,60,0.15);
        }

.logo-thumb {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: var(--surface-2);
    border: 1px solid var(--border-lt);
    padding: 2px;
}

.section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

/* ==========================================================================
   10. TOASTS & MODALS
   ========================================================================== */
.toast-wrap {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s cubic-bezier(0.16,1,0.3,1);
    max-width: 360px;
}

    .toast.success {
        background: var(--green);
        color: #fff;
        border-color: var(--green);
    }

    .toast.error {
        background: var(--red);
        color: #fff;
        border-color: var(--red);
    }

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

    .modal-backdrop.open {
        display: flex;
    }

.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 520px;
    max-width: 90vw;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

    .modal h2 {
        font-family: var(--display);
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 24px;
        color: var(--text);
        letter-spacing: -0.5px;
    }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-lt);
}

.batch-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

/* ==========================================================================
   11. OVERVIEW / DASHBOARD PAGE
   ========================================================================== */
.overview-page {
    flex: 1;
    overflow-y: auto;
    padding: 40px 48px;
    background: var(--bg);
}

.overview-header {
    margin-bottom: 36px;
}

.overview-title {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 6px;
}

.overview-subtitle {
    font-size: 14px;
    color: var(--muted);
}

.overview-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}
/* ::before removed — Home.razor uses inline border-top per card */

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .metric-icon.green {
        background: var(--green-bg);
        color: var(--green);
    }

    .metric-icon.primary {
        background: var(--primary-bg);
        color: var(--primary-lt);
    }

    .metric-icon.amber {
        background: var(--amber-bg);
        color: var(--amber);
    }

    .metric-icon.blue {
        background: var(--blue-bg);
        color: var(--blue);
    }

    .metric-icon svg {
        width: 20px;
        height: 20px;
    }

.metric-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hint);
}

.metric-val {
    font-family: var(--display);
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text);
    line-height: 1;
}

    .metric-val.primary {
        color: var(--primary-lt);
    }

    .metric-val.green {
        color: var(--green);
    }

    .metric-val.amber {
        color: var(--amber);
    }

    .metric-val.blue {
        color: var(--blue);
    }

    .metric-val.red {
        color: var(--red);
    }

.metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hint);
    margin-top: auto;
}

.ref-section--full {
    grid-column: 1 / -1;
}

.table-wrap {
    overflow-x: auto;
    overflow-y: auto;
}

.auth-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--red-bg);
    border: 1px solid var(--red);
    font-size: 13px;
    color: var(--red);
    font-weight: 600;
    line-height: 1.4;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    line-height: 1;
}

.overview-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.overview-draggable-card {
    cursor: default;
    transition: box-shadow 0.2s ease, opacity 0.15s ease, transform 0.15s ease;
}

    .overview-draggable-card.dragging {
        opacity: 0.4;
        transform: scale(0.98);
    }

    .overview-draggable-card.drag-over {
        outline: 2px dashed var(--primary);
        outline-offset: 3px;
        background: var(--primary-bg);
    }

.chart-card {
    background: var(--surface);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.chart-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 8px;
}

.chart-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.chart-card-sub {
    font-size: 12px;
    color: var(--hint);
    margin-top: 2px;
}

.chart-canvas-wrap {
    position: relative;
    height: 220px;
}

.overview-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-lt);
}

    .status-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

    .status-dot.online {
        background: var(--green);
        box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
    }

    .status-dot.warning {
        background: var(--amber);
        box-shadow: 0 0 0 3px var(--amber-bg);
    }

    .status-dot.offline {
        background: var(--red);
        box-shadow: 0 0 0 3px var(--red-bg);
    }

.status-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .quick-link:hover {
        border-color: var(--primary);
        background: var(--primary-bg);
        color: var(--primary-lt);
        transform: translateX(2px);
    }

.quick-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.quick-link:hover .quick-link-icon {
    background: var(--primary-bg);
    border: 1px solid var(--primary-mid);
}

.quick-link-icon svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.quick-link:hover .quick-link-icon svg {
    color: var(--primary-lt);
}

/* ==========================================================================
   12. PRODUCT PREVIEW
   ========================================================================== */
.pv-hero {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    margin-bottom: 28px;
    align-items: stretch;
}

.pv-hero-image {
    position: relative;
    width: 380px;
    height: 100%;
    min-height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-2);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

    .pv-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    .pv-hero-image:hover img {
        transform: scale(1.03);
    }

.pv-hero-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

    .pv-hero-image--placeholder svg {
        width: 64px;
        height: 64px;
        color: var(--border);
    }

.pv-hero-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
    backdrop-filter: blur(6px);
}

    .pv-hero-badge.available {
        background: rgba(16,185,129,0.85);
        color: #fff;
    }

    .pv-hero-badge.low {
        background: rgba(245,158,11,0.85);
        color: #fff;
    }

    .pv-hero-badge.out {
        background: rgba(239,68,68,0.85);
        color: #fff;
    }

    .pv-hero-badge:not(.available):not(.low):not(.out) {
        background: rgba(0,0,0,0.4);
        color: #fff;
    }

.pv-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pv-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pv-pill {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid;
}

.pv-pill--green {
    background: var(--green-bg);
    color: var(--green);
    border-color: var(--green-mid);
}

.pv-pill--blue {
    background: var(--blue-bg);
    color: var(--blue);
    border-color: var(--blue);
}

.pv-pill--neutral {
    background: var(--surface-2);
    color: var(--muted);
    border-color: var(--border);
}

.pv-canna-row {
    display: flex;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.pv-canna-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 20px;
}

    .pv-canna-stat:first-child {
        padding-left: 0;
    }

    .pv-canna-stat:last-child {
        padding-right: 0;
    }

.pv-canna-divider {
    width: 1px;
    background: var(--border-lt);
    flex-shrink: 0;
    margin: 4px 0;
}

.pv-canna-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--hint);
}

.pv-canna-val {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.pv-canna-val--cbd {
    color: var(--blue);
}

.pv-canna-val--temp {
    color: var(--amber);
}

.pv-canna-track {
    height: 4px;
    background: var(--border-lt);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.pv-canna-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

.pv-canna-fill--thc {
    background: var(--green);
}

.pv-canna-fill--cbd {
    background: var(--blue);
}

.pv-pricing-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pv-price-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius);
    padding: 12px 20px;
    box-shadow: var(--shadow-sm);
    min-width: 80px;
    transition: box-shadow 0.2s ease;
}

    .pv-price-tile:hover {
        box-shadow: var(--shadow-md);
    }

.pv-price-amount {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hint);
}

.pv-price-gbp {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin: 2px 0;
}

.pv-price-per {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--hint);
}

.pv-desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
}

    .pv-desc p {
        margin: 0;
    }

.pv-desc-label {
    font-weight: 700;
    color: var(--text);
}

.pv-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hint);
    margin-bottom: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .pv-section-label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border-lt);
    }

/* ==========================================================================
   13. CL MODAL SYSTEM
   ========================================================================== */
.cl-modal-backdrop {
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cl-modal-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 460px;
    max-width: 95vw;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    outline: none;
}

    .cl-modal-card *:focus, .cl-modal-card *:focus-visible,
    .cl-modal-backdrop *:focus, .cl-modal-backdrop *:focus-visible {
        outline: none !important;
    }

.cl-modal-card--wide {
    width: 640px;
}

.cl-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.cl-modal-icon--danger {
    background: var(--red-bg);
}

.cl-modal-title {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.cl-modal-body {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 6px;
}

.cl-modal-hint {
    font-size: 13px;
    color: var(--hint);
    line-height: 1.5;
}

.cl-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-lt);
}

.cl-btn-confirm {
    background: var(--red) !important;
    color: #fff !important;
    border-color: var(--red) !important;
}

    .cl-btn-confirm:hover:not(:disabled) {
        filter: brightness(0.9);
    }

/* ==========================================================================
   14. USER MANAGEMENT PAGE
   ========================================================================== */
.users-page {
    width: 75%;
    max-width: 1400px;
    min-width: 640px;
    margin: 0 auto;
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.users-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-lt);
    margin-bottom: 6px;
}

.users-title {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.users-subtitle {
    font-size: 14px;
    color: var(--muted);
}

.users-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.users-stat-card {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary-lt);
    border: 1.5px solid var(--primary-mid);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.user-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-bg);
    border: 1px solid var(--primary-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-lt);
}

/* ==========================================================================
   15. PROFILE PAGE
   ========================================================================== */
.profile-page {
    width: 75%;
    max-width: 1400px;
    min-width: 640px;
    margin: 0 auto;
}

    .profile-page *:not(input:not([disabled])):not(button):not(a):not(select):not(textarea):focus {
        outline: none;
    }

.profile-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid;
    line-height: 1.4;
}

.profile-banner--success {
    background: var(--green-bg);
    color: var(--green);
    border-color: var(--green-mid);
}

.profile-banner--error {
    background: var(--red-bg);
    color: var(--red);
    border-color: var(--red);
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.profile-avatar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 24px;
    text-align: center;
    position: sticky;
    top: 0;
}

.profile-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin-bottom: 4px;
}

.profile-avatar-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-md);
    display: block;
}

.profile-avatar-initials-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary-bg);
    border: 2px solid var(--primary-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-lt);
    pointer-events: none;
    opacity: 0;
}

.profile-avatar-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.profile-avatar-email {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    word-break: break-all;
}

.profile-avatar-badge {
    margin: 2px 0;
}

.profile-upload-btn {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.profile-session-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius);
}

.profile-session-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--muted);
}

.profile-session-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hint);
    margin-bottom: 4px;
}

.profile-session-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
}

.profile-session-val--mono {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--blue);
}

.profile-avatar-photo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary-mid);
    flex-shrink: 0;
    display: block;
}

.profile-dropdown-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary-mid);
    flex-shrink: 0;
    display: block;
}

/* ==========================================================================
   16. ANIMATIONS
   ========================================================================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-once {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spin-once {
    animation: spin-once 0.6s cubic-bezier(0.4,0,0.2,1) forwards;
    transform-origin: center;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cannalog-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1.0);
        opacity: 1;
    }
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgePop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.15);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   17. GLOBAL UTILITIES
   ========================================================================== */
a {
    color: var(--primary-lt);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

    a:hover {
        opacity: 0.8;
    }

input:focus, select:focus, textarea:focus, button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.ref-section.drag-over,
.overview-draggable-card.drag-over {
    outline-color: var(--primary);
    background: var(--primary-bg);
}

/* ==========================================================================
   18. AUTH PAGES (LOGIN & REGISTER)
   ========================================================================== */

/* ─── 18.1. ROOT LAYOUT ─── */
.login-root {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
    overflow: hidden;
}

/* ─── 18.2. FORM SIDE (LEFT) ─── */
.login-form-side {
    position: relative;
    width: 38%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.login-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.5;
    pointer-events: none;
}

.login-form-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* ─── 18.3. BRAND ─── */
.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-logo {
    height: 62px;
    width: auto;
    display: block;
}

.login-portal-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hint);
    margin-top: 20px;
    padding-left: 14px;
    border-left: 1px solid var(--border);
}

/* ─── 18.4. HEADINGS ─── */
.login-heading-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-heading {
    font-family: var(--display);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    line-height: 1.1;
    margin: 0;
    outline: none;
}

.login-subheading {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* ─── 18.5. ERROR BANNER ─── */
.login-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--red-bg);
    border: 1px solid var(--red);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--red);
    line-height: 1.4;
}

/* ─── 18.6. FORM FIELDS ─── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.login-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.login-forgot {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-lt);
    text-decoration: none;
    transition: opacity 0.15s;
}

    .login-forgot:hover {
        opacity: 0.75;
    }

/* ─── 18.7. ICON INPUT ROW ─── */
.login-input-row {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

    .login-input-row:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(26,107,60,0.15);
    }

.login-input-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    flex-shrink: 0;
    color: var(--hint);
    border-right: 1px solid var(--border-lt);
    background: var(--surface-2);
}

.login-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    font-family: var(--body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color-scheme: var(--color-scheme);
    width: 100%;
}

    .login-input:focus {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .login-input::placeholder {
        color: var(--hint);
    }

/* ─── 18.8. SUBMIT BUTTON ─── */
.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    margin-top: 8px;
    background: var(--primary);
    color: #fff;
    font-family: var(--body);
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(26,107,60,0.3);
    letter-spacing: 0.01em;
}

    .login-submit:hover:not(:disabled) {
        background: var(--primary-lt);
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(26,107,60,0.4);
    }

    .login-submit:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: 0 1px 4px rgba(26,107,60,0.25);
    }

    .login-submit:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.login-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    flex-shrink: 0;
}

/* ─── 18.9. DIVIDER ─── */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-divider-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--hint);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ─── 18.10. WEBAUTHN BUTTON ─── */
.login-webauthn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    letter-spacing: 0.01em;
}

    .login-webauthn:hover:not(:disabled) {
        background: var(--primary-bg);
        border-color: var(--primary-mid);
        color: var(--primary-lt);
        transform: translateY(-1px);
    }

    .login-webauthn:hover svg {
        color: var(--primary-lt);
    }

    .login-webauthn:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

/* ─── 18.11. FOOTER ─── */
.login-footer {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin: 0;
}

    .login-footer a {
        color: var(--primary-lt);
        font-weight: 600;
        text-decoration: none;
    }

        .login-footer a:hover {
            opacity: 0.75;
        }

/* ─── 18.12. HERO SIDE ─── */
.login-hero-side {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.login-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7) saturate(0.85);
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    /* Green-dark tint overlay — replaces the original orange-dark tint */
    background: linear-gradient(to bottom, rgba(7,26,14,0.4) 0%, rgba(0,0,0,0.85) 100%), linear-gradient(to right, rgba(7,26,14,0.5) 0%, transparent 50%);
}

.login-hero-pills {
    position: absolute;
    top: 36px;
    right: 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    z-index: 2;
}

.login-hero-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.90);
    backdrop-filter: blur(8px);
    letter-spacing: 0.01em;
}

.login-hero-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-lt);
    box-shadow: 0 0 6px var(--primary-lt);
    flex-shrink: 0;
}

.login-hero-content {
    position: relative;
    z-index: 2;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 580px;
}

.login-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-lt);
}

.login-hero-title {
    font-family: var(--display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #fff;
    margin: 0;
}

.login-hero-body {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.70);
    margin: 0;
}

.login-hero-metrics {
    display: flex;
    align-items: center;
    margin-top: 8px;
    padding: 18px 24px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    width: fit-content;
}

.login-hero-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 24px;
}

    .login-hero-metric:first-child {
        padding-left: 0;
    }

    .login-hero-metric:last-child {
        padding-right: 0;
    }

.login-hero-metric-val {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.login-hero-metric-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.03em;
}

.login-hero-metric-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* ─── 18.13. REGISTER SPECIFIC ─── */
.reg-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
    margin-top: -16px;
}

    .reg-back-link:hover {
        color: var(--text);
    }

.reg-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-lt);
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.reg-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.reg-input {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    color-scheme: var(--color-scheme);
}

    .reg-input::placeholder {
        color: var(--hint);
    }

    .reg-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(26,107,60,0.12);
    }

.reg-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--green-bg);
    border: 1px solid var(--green-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}

    .reg-success-icon svg {
        width: 28px;
        height: 28px;
    }

/* ─── 18.14. RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 900px) {
    .login-hero-side {
        display: none;
    }

    .login-form-side {
        width: 100%;
        border-right: none;
    }

    .login-form-wrap {
        max-width: 100%;
        padding: 48px 32px;
    }
}
