

:root {

    /* Brand */
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;

    --primary-soft: rgba(245, 158, 11, .12);
    --primary-border: rgba(245, 158, 11, .28);
    --primary-glow: rgba(245, 158, 11, .22);

    /* Background */
    --background: #0f1115;
    --background-2: #12151a;

    /* Surfaces */
    --surface: #181b21;
    --surface-2: #20242b;
    --surface-3: #292e36;

    /* Sidebar */
    --sidebar: #121419;

    /* Text */
    --text: #f8fafc;
    --text-soft: #e5e7eb;
    --muted: #9ca3af;
    --muted-light: #6b7280;

    /* Border */
    --border: #2d333b;
    --border-light: #252a31;

    /* Status */
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, .12);

    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, .12);

    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, .12);

    --info: #38bdf8;
    --info-soft: rgba(56, 189, 248, .12);

    /* Radius */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 20px;
    --radius-xl: 26px;

    /* Layout */
    --sidebar-width: 252px;
    --topbar-height: 64px;
    --bottom-nav-height: 72px;

    /* Shadows */
    --shadow-sm:
        0 2px 10px rgba(0, 0, 0, .18);

    --shadow:
        0 10px 30px rgba(0, 0, 0, .26);

    --shadow-lg:
        0 25px 70px rgba(0, 0, 0, .42);

    --amber-shadow:
        0 8px 28px rgba(245, 158, 11, .20);

    --transition: .2s ease;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}


html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--background);
}


body {

    margin: 0;
    padding: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(245, 158, 11, .035),
            transparent 28%
        ),
        var(--background);

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;
}


body.modal-open {
    overflow: hidden;
}


button,
input,
select,
textarea {
    font: inherit;
}


button {
    cursor: pointer;
}


button:disabled {
    cursor: not-allowed;
    opacity: .55;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    display: block;
    max-width: 100%;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
}


::selection {
    background: rgba(251, 191, 36, .22);
    color: #fff;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}


::-webkit-scrollbar-track {
    background: transparent;
}


::-webkit-scrollbar-thumb {
    background: #3f454e;
    border-radius: 30px;
}


::-webkit-scrollbar-thumb:hover {
    background: #525963;
}


/* =========================================================
   COMMON
   ========================================================= */

.hidden {
    display: none !important;
}


.text-muted {
    color: var(--muted) !important;
}


.text-danger {
    color: var(--danger) !important;
}


.text-success {
    color: var(--success) !important;
}


.text-warning {
    color: var(--warning) !important;
}


.text-center {
    text-align: center;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 21px;

    font-weight: 900;

    color: var(--text);
}


.brand-mark {

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #fbbf24,
            #d97706
        );

    color: #171717;

    font-weight: 900;

    box-shadow:
        var(--amber-shadow);
}


/* =========================================================
   AUTH
   ========================================================= */

.auth-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(245, 158, 11, .10),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(245, 158, 11, .04),
            transparent 30%
        ),
        #0f1115;
}


.auth-card {

    width: 100%;

    max-width: 430px;

    padding: 30px;

    background:
        rgba(24, 27, 33, .97);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-xl);

    box-shadow:
        var(--shadow-lg);

    backdrop-filter:
        blur(20px);
}


.auth-brand {
    margin-bottom: 35px;
}


.auth-header {
    margin-bottom: 25px;
}


.auth-header h1 {

    margin:
        6px 0;

    font-size:
        28px;

    letter-spacing:
        -.03em;
}


.auth-header p {

    margin:
        0;

    color:
        var(--muted);

    font-size:
        14px;

    line-height:
        1.6;
}


.eyebrow {

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        .14em;

    color:
        var(--primary-light);
}


/* =========================================================
   FORM
   ========================================================= */

.form-group {
    margin-bottom: 17px;
}


.form-group label {

    display:
        block;

    margin-bottom:
        7px;

    color:
        var(--text-soft);

    font-size:
        12px;

    font-weight:
        800;
}


.form-group input,
.form-group select,
.form-group textarea {

    width:
        100%;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        #13161b;

    color:
        var(--text);

    padding:
        13px 14px;

    outline:
        none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}


.form-group input,
.form-group select {
    height: 50px;
}


.form-group textarea {

    min-height:
        95px;

    resize:
        vertical;
}


.form-group input::placeholder,
.form-group textarea::placeholder {

    color:
        #59616b;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color:
        var(--primary);

    background:
        #171a20;

    box-shadow:
        0 0 0 3px
        rgba(245, 158, 11, .11);
}


.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {

    border-color:
        var(--danger);

    box-shadow:
        0 0 0 3px
        rgba(239, 68, 68, .10);
}


.form-row {

    display:
        grid;

    grid-template-columns:
        1fr;

    gap:
        0;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary {

    border:
        0;

    min-height:
        50px;

    padding:
        0 20px;

    border-radius:
        12px;

    background:
        linear-gradient(
            135deg,
            #fbbf24,
            #f59e0b
        );

    color:
        #171717;

    font-weight:
        900;

    box-shadow:
        0 7px 20px
        rgba(245, 158, 11, .18);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
}


.btn-primary:hover {

    filter:
        brightness(1.06);

    box-shadow:
        0 10px 28px
        rgba(245, 158, 11, .26);
}


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


.btn-full {
    width: 100%;
}


.primary-btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        44px;

    padding:
        0 18px;

    border:
        0;

    border-radius:
        11px;

    background:
        linear-gradient(
            135deg,
            #fbbf24,
            #f59e0b
        );

    color:
        #171717;

    font-size:
        14px;

    font-weight:
        900;

    box-shadow:
        var(--amber-shadow);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.primary-btn:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 10px 28px
        rgba(245, 158, 11, .28);
}


.secondary-btn {

    min-height:
        44px;

    padding:
        0 17px;

    border:
        1px solid
        var(--border);

    border-radius:
        11px;

    background:
        var(--surface-2);

    color:
        var(--text-soft);

    font-size:
        14px;

    font-weight:
        700;
}


.secondary-btn:hover {
    background:
        var(--surface-3);
}


.danger-btn {

    min-height:
        44px;

    padding:
        0 17px;

    border:
        0;

    border-radius:
        11px;

    background:
        var(--danger);

    color:
        #fff;

    font-weight:
        700;
}


/* =========================================================
   ALERT
   ========================================================= */

.alert {

    padding:
        12px 14px;

    border-radius:
        11px;

    margin-bottom:
        18px;

    font-size:
        12px;

    line-height:
        1.5;
}


.alert-danger {

    color:
        #fca5a5;

    background:
        var(--danger-soft);

    border:
        1px solid
        rgba(239, 68, 68, .22);
}


.alert-success {

    color:
        #86efac;

    background:
        var(--success-soft);

    border:
        1px solid
        rgba(34, 197, 94, .20);
}


/* =========================================================
   SHOP SETUP
   ========================================================= */

.setup-page {

    min-height:
        100vh;

    padding:
        20px;

    background:
        radial-gradient(
            circle at top right,
            rgba(245, 158, 11, .06),
            transparent 30%
        );
}


.setup-container {

    max-width:
        760px;

    margin:
        0 auto;
}


.setup-header {

    padding:
        15px 3px 22px;
}


.setup-header h1 {

    margin:
        5px 0;

    font-size:
        28px;

    letter-spacing:
        -.03em;
}


.setup-header p {

    margin:
        0;

    color:
        var(--muted);

    font-size:
        13px;

    line-height:
        1.6;
}


.setup-card {

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius:
        22px;

    padding:
        20px;

    box-shadow:
        var(--shadow);
}


/* =========================================================
   APP SHELL
   ========================================================= */

.app-shell {
    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {

    position:
        fixed;

    top:
        0;

    left:
        0;

    bottom:
        0;

    width:
        var(--sidebar-width);

    background:
        linear-gradient(
            180deg,
            #121419,
            #0e1013
        );

    border-right:
        1px solid
        var(--border);

    z-index:
        1000;

    display:
        flex;

    flex-direction:
        column;
}


.sidebar-brand {

    height:
        76px;

    padding:
        0 20px;

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    border-bottom:
        1px solid
        var(--border);
}


.sidebar-brand .brand-logo {

    width:
        40px;

    height:
        40px;

    border-radius:
        12px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        linear-gradient(
            135deg,
            #fbbf24,
            #d97706
        );

    color:
        #171717;

    font-size:
        20px;

    font-weight:
        900;

    box-shadow:
        0 6px 20px
        rgba(245, 158, 11, .16);
}


.sidebar-brand strong {

    display:
        block;

    color:
        var(--text);

    font-size:
        17px;

    letter-spacing:
        -.02em;
}


.sidebar-brand small {

    display:
        block;

    color:
        var(--muted-light);

    font-size:
        11px;

    margin-top:
        2px;
}


.sidebar-nav {

    flex:
        1;

    padding:
        18px 12px;

    overflow-y:
        auto;
}


.nav-section-title {

    padding:
        18px 12px 8px;

    color:
        #59616b;

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        .10em;
}


.nav-item {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    min-height:
        44px;

    padding:
        0 12px;

    margin-bottom:
        4px;

    border-radius:
        11px;

    color:
        #9ca3af;

    font-size:
        14px;

    font-weight:
        600;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}


.nav-item:hover {

    background:
        rgba(245, 158, 11, .07);

    color:
        #fbbf24;
}


.nav-item.active {

    background:
        linear-gradient(
            90deg,
            rgba(245, 158, 11, .14),
            rgba(245, 158, 11, .035)
        );

    color:
        #fbbf24;

    border-left:
        2px solid
        var(--primary);
}


.nav-icon {

    width:
        22px;

    text-align:
        center;

    font-size:
        17px;

    color:
        currentColor;
}


.sidebar-footer {

    padding:
        15px 12px;

    border-top:
        1px solid
        var(--border);
}


.logout-btn {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    padding:
        12px;

    color:
        #f87171;

    border-radius:
        10px;

    font-size:
        14px;

    font-weight:
        600;
}


.logout-btn:hover {

    background:
        rgba(239, 68, 68, .08);
}


/* =========================================================
   MOBILE TOPBAR
   ========================================================= */

.mobile-topbar {
    display: none;
}


.brand-small {

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

    color:
        var(--text);

    font-weight:
        800;
}


.brand-small .brand-logo {

    width:
        34px;

    height:
        34px;

    border-radius:
        10px;

    display:
        grid;

    place-items:
        center;

    background:
        linear-gradient(
            135deg,
            #fbbf24,
            #f59e0b
        );

    color:
        #171717;

    font-size:
        16px;

    font-weight:
        900;
}


.mobile-menu-btn {

    width:
        40px;

    height:
        40px;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    background:
        var(--surface);

    color:
        var(--text-soft);

    font-size:
        20px;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {

    margin-left:
        var(--sidebar-width);

    min-height:
        100vh;

    padding:
        30px;
}


/* =========================================================
   SIDEBAR OVERLAY
   ========================================================= */

.sidebar-overlay {
    display: none;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-page {

    max-width:
        1500px;

    margin:
        0 auto;
}


.page-header {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        flex-end;

    gap:
        20px;

    margin-bottom:
        24px;
}


.breadcrumb {

    color:
        var(--muted-light);

    font-size:
        12px;

    margin-bottom:
        7px;
}


.page-header h1 {

    margin:
        0;

    font-size:
        30px;

    letter-spacing:
        -.03em;
}


.page-header p {

    margin:
        7px 0 0;

    color:
        var(--muted);

    font-size:
        14px;
}


/* =========================================================
   WELCOME CARD
   ========================================================= */

.welcome-card {

    min-height:
        170px;

    padding:
        28px 32px;

    border-radius:
        20px;

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(251, 191, 36, .12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #191a1e,
            #242019
        );

    border:
        1px solid
        var(--primary-border);

    color:
        white;

    margin-bottom:
        22px;

    overflow:
        hidden;

    box-shadow:
        var(--shadow);
}


.welcome-label {

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        .12em;

    color:
        var(--primary-light);
}


.welcome-card h2 {

    margin:
        9px 0 5px;

    font-size:
        26px;

    color:
        #fff;
}


.welcome-card p {

    margin:
        0;

    color:
        #d1d5db;

    font-size:
        14px;
}


.welcome-icon {

    width:
        90px;

    height:
        90px;

    border-radius:
        28px;

    background:
        rgba(245, 158, 11, .08);

    border:
        1px solid
        rgba(245, 158, 11, .18);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    color:
        #fbbf24;

    font-size:
        38px;

    font-weight:
        900;

    box-shadow:
        inset 0 0 30px
        rgba(245, 158, 11, .06);
}


/* =========================================================
   DASHBOARD STATS
   ========================================================= */

.stats-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        16px;

    margin-bottom:
        24px;
}


.stat-card {

    padding:
        20px;

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius:
        16px;

    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    transition:
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}


.stat-card:hover {

    border-color:
        var(--primary-border);

    transform:
        translateY(-2px);

    box-shadow:
        var(--shadow);
}


.stat-icon {

    width:
        48px;

    height:
        48px;

    flex-shrink:
        0;

    border-radius:
        14px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        20px;

    font-weight:
        800;
}


.stat-icon.blue {

    background:
        var(--primary-soft);

    color:
        #fbbf24;
}


.stat-icon.green {

    background:
        var(--success-soft);

    color:
        #4ade80;
}


.stat-icon.orange {

    background:
        var(--warning-soft);

    color:
        #fbbf24;
}


.stat-icon.red {

    background:
        var(--danger-soft);

    color:
        #f87171;
}


.stat-content span {

    display:
        block;

    color:
        var(--muted);

    font-size:
        12px;

    margin-bottom:
        5px;
}


.stat-content strong {

    color:
        var(--text);

    font-size:
        22px;

    letter-spacing:
        -.02em;
}


/* =========================================================
   DASHBOARD SECTIONS
   ========================================================= */

.dashboard-section {
    margin-bottom:
        24px;
}


.section-header {

    display:
        flex;

    justify-content:
        space-between;

    margin-bottom:
        13px;
}


.section-header h2 {

    margin:
        0;

    font-size:
        18px;
}


.section-header p {

    margin:
        4px 0 0;

    color:
        var(--muted);

    font-size:
        12px;
}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.quick-actions-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        14px;
}


.quick-action-card {

    min-height:
        100px;

    padding:
        17px;

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius:
        15px;

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.quick-action-card:hover {

    transform:
        translateY(-2px);

    border-color:
        var(--primary-border);

    box-shadow:
        var(--shadow);
}


.quick-action-icon {

    flex:
        0 0 44px;

    width:
        44px;

    height:
        44px;

    border-radius:
        13px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-weight:
        800;
}


.quick-action-icon.blue {

    background:
        var(--primary-soft);

    color:
        #fbbf24;
}


.quick-action-icon.green {

    background:
        var(--success-soft);

    color:
        #4ade80;
}


.quick-action-icon.orange {

    background:
        var(--warning-soft);

    color:
        #fbbf24;
}


.quick-action-icon.purple {

    background:
        rgba(168, 85, 247, .12);

    color:
        #c084fc;
}


.quick-action-card strong {

    display:
        block;

    color:
        var(--text);

    font-size:
        14px;
}


.quick-action-card span {

    display:
        block;

    color:
        var(--muted);

    font-size:
        11px;

    margin-top:
        3px;
}


.quick-action-card b {

    margin-left:
        auto;

    color:
        var(--muted-light);
}


/* =========================================================
   EMPTY DASHBOARD
   ========================================================= */

.empty-dashboard {

    padding:
        55px 20px;

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius:
        16px;

    text-align:
        center;
}


.empty-dashboard-icon {

    width:
        54px;

    height:
        54px;

    border-radius:
        16px;

    background:
        var(--surface-2);

    color:
        var(--muted);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin:
        0 auto 13px;

    font-size:
        23px;
}


.empty-dashboard h3 {

    margin:
        0;

    font-size:
        15px;
}


.empty-dashboard p {

    margin:
        6px 0 0;

    color:
        var(--muted);

    font-size:
        13px;
}


/* =========================================================
   PRODUCTS PAGE
   ========================================================= */

.products-page {

    max-width:
        1500px;

    margin:
        0 auto;
}


.products-header {

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        20px;

    margin-bottom:
        20px;
}


.products-header h1 {

    margin:
        0;

    font-size:
        28px;

    letter-spacing:
        -.03em;
}


.products-header p {

    margin:
        6px 0 0;

    color:
        var(--muted);

    font-size:
        13px;
}


.products-toolbar {

    display:
        flex;

    gap:
        10px;

    margin-bottom:
        20px;
}


.products-search {

    position:
        relative;

    flex:
        1;
}


.products-search input {

    width:
        100%;

    height:
        48px;

    padding:
        0 15px 0 43px;

    border:
        1px solid
        var(--border);

    border-radius:
        13px;

    background:
        var(--surface);

    color:
        var(--text);

    outline:
        none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}


.products-search input::placeholder {

    color:
        #59616b;
}


.products-search input:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(245,158,11,.09);
}


.products-search::before {

    content:
        "⌕";

    position:
        absolute;

    left:
        15px;

    top:
        50%;

    transform:
        translateY(-50%);

    color:
        var(--muted);

    font-size:
        19px;

    pointer-events:
        none;
}


.product-list {

    display:
        grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        14px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {

    position:
        relative;

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius:
        17px;

    padding:
        17px;

    box-shadow:
        var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}


.product-card:hover {

    transform:
        translateY(-2px);

    box-shadow:
        var(--shadow);

    border-color:
        var(--primary-border);
}


.product-card-top {

    display:
        flex;

    align-items:
        flex-start;

    gap:
        12px;
}


.product-icon {

    width:
        46px;

    height:
        46px;

    flex:
        0 0 46px;

    border-radius:
        13px;

    background:
        var(--primary-soft);

    border:
        1px solid
        rgba(245,158,11,.12);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    color:
        #fbbf24;

    font-size:
        20px;
}


.product-main {

    min-width:
        0;

    flex:
        1;
}


.product-name {

    margin:
        2px 0 5px;

    color:
        var(--text);

    font-size:
        15px;

    font-weight:
        800;

    line-height:
        1.35;

    word-break:
        break-word;
}


.product-meta {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        7px;

    color:
        var(--muted);

    font-size:
        10px;
}


.product-menu {
    position:
        relative;
}


.product-menu-btn {

    width:
        34px;

    height:
        34px;

    border:
        1px solid
        var(--border);

    border-radius:
        9px;

    background:
        var(--surface-2);

    color:
        var(--muted);

    font-size:
        20px;

    line-height:
        1;
}


.product-menu-btn:hover {

    background:
        var(--surface-3);

    color:
        var(--text);
}


.product-actions {

    position:
        absolute;

    top:
        38px;

    right:
        0;

    min-width:
        130px;

    padding:
        6px;

    background:
        var(--surface-2);

    border:
        1px solid
        var(--border);

    border-radius:
        11px;

    box-shadow:
        var(--shadow-lg);

    z-index:
        30;

    display:
        none;
}


.product-actions.open {
    display:
        block;
}


.product-actions button {

    width:
        100%;

    border:
        0;

    background:
        transparent;

    padding:
        9px 10px;

    border-radius:
        8px;

    text-align:
        left;

    color:
        var(--text-soft);

    font-size:
        12px;

    font-weight:
        700;
}


.product-actions button:hover {

    background:
        var(--surface-3);
}


.product-actions button.danger {

    color:
        #f87171;
}


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.product-card-info {

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        10px;

    margin-top:
        17px;

    padding:
        12px 0;

    border-top:
        1px solid
        var(--border);

    border-bottom:
        1px solid
        var(--border);
}


.product-info-item {
    min-width:
        0;
}


.product-info-item .label {

    display:
        block;

    color:
        var(--muted-light);

    font-size:
        9px;

    margin-bottom:
        4px;

    text-transform:
        uppercase;

    letter-spacing:
        .04em;
}


.product-info-item strong {

    display:
        block;

    overflow:
        hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

    color:
        var(--text-soft);

    font-size:
        11px;
}


/* =========================================================
   PRODUCT PRICE / STOCK
   ========================================================= */

.product-card-bottom {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        flex-end;

    gap:
        15px;

    margin-top:
        14px;
}


.price-section {

    display:
        flex;

    align-items:
        flex-end;

    gap:
        12px;
}


.price-section small {

    display:
        block;

    color:
        var(--muted-light);

    font-size:
        9px;

    margin-bottom:
        3px;
}


.price-section strong {

    display:
        block;

    color:
        var(--text);

    font-size:
        17px;
}


.mrp span {

    color:
        var(--muted);

    font-size:
        11px;

    text-decoration:
        line-through;
}


.stock-section {
    text-align:
        right;
}


.stock-section > strong {

    display:
        block;

    margin-top:
        4px;

    color:
        var(--text-soft);

    font-size:
        13px;
}


.stock-badge {

    display:
        inline-flex;

    align-items:
        center;

    padding:
        4px 8px;

    border-radius:
        20px;

    font-size:
        9px;

    font-weight:
        800;
}


.stock-good {

    color:
        #86efac;

    background:
        var(--success-soft);
}


.stock-low {

    color:
        #fcd34d;

    background:
        var(--warning-soft);
}


.stock-out {

    color:
        #fca5a5;

    background:
        var(--danger-soft);
}


/* =========================================================
   PRODUCT STATUS
   ========================================================= */

.product-status-row {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-top:
        13px;

    font-size:
        10px;
}


.status-active {

    color:
        #4ade80;

    font-weight:
        700;
}


.status-inactive {

    color:
        #f87171;

    font-weight:
        700;
}


.minimum-stock {

    color:
        var(--muted);
}


/* =========================================================
   PRODUCTS EMPTY
   ========================================================= */

.products-empty {

    grid-column:
        1 / -1;

    padding:
        65px 20px;

    text-align:
        center;

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius:
        17px;
}


.empty-icon {

    width:
        58px;

    height:
        58px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin:
        0 auto 14px;

    border-radius:
        17px;

    background:
        var(--primary-soft);

    color:
        #fbbf24;

    font-size:
        25px;
}


.products-empty h3 {

    margin:
        0;

    color:
        var(--text);

    font-size:
        16px;
}


.products-empty p {

    margin:
        7px 0 17px;

    color:
        var(--muted);

    font-size:
        12px;
}


.empty-add-product {

    border:
        0;

    border-radius:
        10px;

    background:
        linear-gradient(
            135deg,
            #fbbf24,
            #f59e0b
        );

    color:
        #171717;

    padding:
        10px 16px;

    font-size:
        12px;

    font-weight:
        900;
}


/* =========================================================
   PAGINATION
   ========================================================= */

#pagination {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        6px;

    margin-top:
        22px;
}


.pagination-btn {

    min-width:
        36px;

    height:
        36px;

    padding:
        0 8px;

    border:
        1px solid
        var(--border);

    border-radius:
        9px;

    background:
        var(--surface);

    color:
        var(--text-soft);

    font-size:
        12px;

    font-weight:
        700;
}


.pagination-btn:hover {

    background:
        var(--surface-2);

    border-color:
        var(--border-light);
}


.pagination-btn.active {

    background:
        var(--primary);

    border-color:
        var(--primary);

    color:
        #171717;

    box-shadow:
        0 5px 15px
        rgba(245,158,11,.18);
}


.pagination-btn:disabled {

    opacity:
        .35;

    cursor:
        not-allowed;
}


.pagination-dots {

    color:
        var(--muted);

    padding:
        0 2px;
}


/* =========================================================
   PRODUCT MODAL
   ========================================================= */

#productModal {

    position:
        fixed;

    inset:
        0;

    z-index:
        5000;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;
}


.modal-backdrop {

    position:
        absolute;

    inset:
        0;

    background:
        rgba(0,0,0,.68);

    backdrop-filter:
        blur(5px);
}


.product-modal-content {

    position:
        relative;

    z-index:
        2;

    width:
        100%;

    max-width:
        680px;

    max-height:
        calc(100vh - 40px);

    overflow-y:
        auto;

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius:
        20px;

    padding:
        22px;

    box-shadow:
        var(--shadow-lg);

    animation:
        modalIn .2s ease;
}


@keyframes modalIn {

    from {

        opacity:
            0;

        transform:
            translateY(10px)
            scale(.98);
    }

    to {

        opacity:
            1;

        transform:
            translateY(0)
            scale(1);
    }

}


.modal-header {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        15px;

    margin-bottom:
        20px;
}


.modal-header h2 {

    margin:
        0;

    color:
        var(--text);

    font-size:
        20px;

    letter-spacing:
        -.02em;
}


.modal-close {

    width:
        36px;

    height:
        36px;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    background:
        var(--surface-2);

    color:
        var(--muted);

    font-size:
        20px;
}


.modal-close:hover {

    background:
        var(--surface-3);

    color:
        var(--text);
}


.modal-footer {

    display:
        flex;

    justify-content:
        flex-end;

    gap:
        10px;

    margin-top:
        20px;

    padding-top:
        17px;

    border-top:
        1px solid
        var(--border);
}


/* =========================================================
   FORM MESSAGE
   ========================================================= */

#formMessage {

    display:
        none;

    padding:
        11px 13px;

    border-radius:
        10px;

    margin-bottom:
        16px;

    font-size:
        12px;

    line-height:
        1.5;
}


/* =========================================================
   LOADING OVERLAY
   ========================================================= */

#loadingOverlay {

    position:
        fixed;

    inset:
        0;

    z-index:
        9999;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(15,17,21,.72);

    backdrop-filter:
        blur(5px);
}


.loading-box {

    min-width:
        150px;

    padding:
        20px;

    border:
        1px solid
        var(--border);

    border-radius:
        16px;

    background:
        var(--surface);

    box-shadow:
        var(--shadow-lg);

    text-align:
        center;

    color:
        var(--text);

    font-size:
        13px;

    font-weight:
        700;
}


.loading-spinner {

    width:
        30px;

    height:
        30px;

    margin:
        0 auto 10px;

    border:
        3px solid
        rgba(245,158,11,.18);

    border-top-color:
        var(--primary-light);

    border-radius:
        50%;

    animation:
        spin .7s linear infinite;
}


@keyframes spin {

    to {
        transform:
            rotate(360deg);
    }

}


/* =========================================================
   TOAST
   ========================================================= */

#toastContainer {

    position:
        fixed;

    right:
        18px;

    bottom:
        25px;

    z-index:
        10000;

    display:
        flex;

    flex-direction:
        column;

    gap:
        10px;
}


.toast {

    min-width:
        260px;

    max-width:
        360px;

    padding:
        13px 16px;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius:
        12px;

    color:
        white;

    font-size:
        13px;

    font-weight:
        700;

    background:
        var(--surface-2);

    box-shadow:
        var(--shadow-lg);
}


/* =========================================================
   MOBILE BOTTOM NAV
   ========================================================= */

.bottom-nav {
    display:
        none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .stats-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .quick-actions-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .product-list {

        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    body {

        padding-bottom:
            var(--bottom-nav-height);
    }


    /* Sidebar */

    .sidebar {

        transform:
            translateX(-100%);

        transition:
            transform .25s ease;

        box-shadow:
            15px 0 40px
            rgba(0,0,0,.45);
    }


    .sidebar.open {

        transform:
            translateX(0);
    }


    .sidebar-overlay.active {

        display:
            block;

        position:
            fixed;

        inset:
            0;

        background:
            rgba(0,0,0,.62);

        backdrop-filter:
            blur(3px);

        z-index:
            999;
    }


    /* Main */

    .main-content {

        margin-left:
            0;

        padding:
            0 15px
            calc(var(--bottom-nav-height) + 15px);
    }


    /* Mobile topbar */

    .mobile-topbar {

        height:
            var(--topbar-height);

        margin:
            0 -15px 20px;

        padding:
            0 15px;

        display:
            flex;

        align-items:
            center;

        justify-content:
            space-between;

        background:
            rgba(18,20,25,.97);

        border-bottom:
            1px solid
            var(--border);

        position:
            sticky;

        top:
            0;

        z-index:
            900;

        backdrop-filter:
            blur(15px);
    }


    /* Page header */

    .page-header {

        align-items:
            flex-start;

        flex-direction:
            column;

        margin-bottom:
            18px;
    }


    .page-header h1 {

        font-size:
            25px;
    }


    .header-actions,
    .header-actions .primary-btn {

        width:
            100%;
    }


    /* Welcome */

    .welcome-card {

        padding:
            22px;

        min-height:
            145px;

        border-radius:
            17px;
    }


    .welcome-card h2 {

        font-size:
            21px;
    }


    .welcome-icon {

        width:
            65px;

        height:
            65px;

        border-radius:
            20px;

        font-size:
            27px;
    }


    /* Stats */

    .stats-grid {

        grid-template-columns:
            1fr 1fr;

        gap:
            10px;
    }


    .stat-card {

        padding:
            14px;

        gap:
            10px;
    }


    .stat-icon {

        width:
            40px;

        height:
            40px;

        border-radius:
            11px;

        font-size:
            16px;
    }


    .stat-content span {

        font-size:
            10px;
    }


    .stat-content strong {

        font-size:
            18px;
    }


    /* Quick actions */

    .quick-actions-grid {

        grid-template-columns:
            1fr;
    }


    /* Products */

    .products-header {

        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .products-header h1 {

        font-size:
            25px;
    }


    .products-toolbar {

        flex-direction:
            column;
    }


    .products-toolbar .primary-btn {

        width:
            100%;
    }


    .product-list {

        grid-template-columns:
            1fr;
    }


    .product-card {

        border-radius:
            15px;
    }


    .product-card-bottom {

        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .stock-section {

        text-align:
            left;
    }


    /* Modal */

    #productModal {

        align-items:
            flex-end;

        padding:
            0;
    }


    .product-modal-content {

        max-width:
            none;

        max-height:
            92vh;

        border-radius:
            22px 22px 0 0;

        padding:
            18px;

        animation:
            modalMobileIn .2s ease;
    }


    @keyframes modalMobileIn {

        from {

            transform:
                translateY(100%);

            opacity:
                0;
        }

        to {

            transform:
                translateY(0);

            opacity:
                1;
        }

    }


    .modal-footer {

        flex-direction:
            column-reverse;
    }


    .modal-footer button {

        width:
            100%;
    }


    /* Bottom navigation */

    .bottom-nav {

        position:
            fixed;

        display:
            flex;

        left:
            0;

        right:
            0;

        bottom:
            0;

        height:
            var(--bottom-nav-height);

        background:
            rgba(18,20,25,.98);

        backdrop-filter:
            blur(16px);

        border-top:
            1px solid
            var(--border);

        z-index:
            1100;

        padding-bottom:
            env(safe-area-inset-bottom);
    }


    .bottom-nav-item {

        flex:
            1;

        display:
            flex;

        flex-direction:
            column;

        align-items:
            center;

        justify-content:
            center;

        gap:
            3px;

        color:
            var(--muted);

        font-size:
            10px;

        font-weight:
            600;
    }


    .bottom-nav-item.active {

        color:
            var(--primary-light);
    }


    .bottom-icon {

        font-size:
            19px;

        line-height:
            1;
    }


    /* POS floating button */

    .pos-button {

        position:
            relative;
    }


    .pos-circle {

        width:
            42px;

        height:
            42px;

        margin-top:
            -25px;

        border-radius:
            50%;

        background:
            linear-gradient(
                135deg,
                #fbbf24,
                #f59e0b
            );

        color:
            #171717;

        border:
            5px solid
            var(--background);

        display:
            flex;

        align-items:
            center;

        justify-content:
            center;

        font-size:
            23px;

        font-weight:
            900;

        box-shadow:
            0 7px 22px
            rgba(245,158,11,.28);
    }


    /* Toast */

    #toastContainer {

        left:
            15px;

        right:
            15px;

        bottom:
            calc(
                var(--bottom-nav-height) + 15px
            );
    }


    .toast {

        min-width:
            0;

        width:
            100%;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .auth-card {

        padding:
            22px;

        border-radius:
            21px;
    }


    .setup-page {

        padding:
            15px;
    }


    .setup-card {

        padding:
            16px;

        border-radius:
            18px;
    }


    .stats-grid {

        gap:
            8px;
    }


    .stat-card {

        padding:
            12px;
    }


    .stat-icon {

        width:
            36px;

        height:
            36px;

        font-size:
            14px;
    }


    .stat-content strong {

        font-size:
            16px;
    }


    .welcome-icon {

        display:
            none;
    }


    .product-card {

        padding:
            14px;
    }


    .product-card-info {

        gap:
            6px;
    }


    .product-info-item strong {

        font-size:
            10px;
    }

}


/* =========================================================
   DESKTOP FORM
   ========================================================= */

@media (min-width: 650px) {

    .form-row {

        grid-template-columns:
            1fr 1fr;

        gap:
            14px;
    }


    .setup-page {

        padding:
            50px 25px;
    }

}


/* =========================================================
   UTILITY
   ========================================================= */

.glass {

    background:
        rgba(24,27,33,.75);

    backdrop-filter:
        blur(15px);

    border:
        1px solid
        rgba(255,255,255,.05);
}


.amber-text {
    color:
        var(--primary-light);
}


.amber-bg {
    background:
        var(--primary);
}


.amber-border {
    border-color:
        var(--primary-border);
}


/* =========================================================
   FOCUS ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {

    outline:
        2px solid
        var(--primary-light);

    outline-offset:
        2px;
}