:root {
    --aqeek-gold: #908130;
    --aqeek-gold-2: #BE912D;
    --aqeek-dark: #1A2E36;
    --aqeek-gray: #A7A6A6;
    --aqeek-light: #DFDFDE;
    --white: #ffffff;
    --danger: #a63c3c;
    --danger-bg: #fff1f1;
    --success: #2e7d44;
    --success-bg: #eef7ef;
    --surface: rgba(255,255,255,0.92);
    --shadow: 0 18px 45px rgba(26,46,54,0.10);
    --sidebar-width: 292px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Tw Cen MT", "Century Gothic", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(190,145,45,0.16), transparent 36%),
        radial-gradient(circle at bottom right, rgba(26,46,54,0.08), transparent 35%),
        linear-gradient(180deg, #f8f8f5 0%, var(--aqeek-light) 100%);
    color: var(--aqeek-dark);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: auto -150px -150px auto;
    width: 560px;
    height: 560px;
    background: url("../../public/assets/aqeek-shape.png") center/contain no-repeat;
    pointer-events: none;
    opacity: 0.16;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    inset: -170px auto auto -170px;
    width: 440px;
    height: 440px;
    background: url("../../public/assets/aqeek-shape.png") center/contain no-repeat;
    pointer-events: none;
    opacity: 0.10;
    z-index: -1;
}

h1, h2, h3, h4 {
    letter-spacing: 0.02em;
    color: var(--aqeek-dark);
}

h1 { font-size: clamp(30px, 4vw, 52px); margin: 0 0 14px; }
h2 { font-size: 30px; margin: 0 0 10px; }
h3 { font-size: 21px; }

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

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    background:
        linear-gradient(180deg, rgba(26,46,54,0.96) 0%, rgba(18,34,41,0.98) 100%),
        url("../../public/assets/aqeek-shape.png") center bottom 36px/220px no-repeat;
    color: white;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    z-index: 30;
    box-shadow: 18px 0 40px rgba(26,46,54,0.12);
}

.sidebar::after {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 300px;
    height: 300px;
    background: url("../../public/assets/aqeek-shape.png") center/contain no-repeat;
    opacity: 0.16;
    pointer-events: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px 26px;
    font-size: 23px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.brand-logo {
    width: 70px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.30));
}

.brand-subtitle {
    display: block;
    color: var(--aqeek-gold-2);
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: .18em;
    margin-top: 3px;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.sidebar-nav button,
.logout-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    color: rgba(255,255,255,.78);
    box-shadow: none;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 13px 14px;
}

.sidebar-nav button:hover,
.sidebar-nav button.active {
    background: rgba(190,145,45,.16);
    border-color: rgba(190,145,45,.32);
    color: white;
    transform: none;
}

.sidebar-footer {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.user-chip {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    margin-bottom: 10px;
    background: rgba(255,255,255,.06);
}

.user-chip span {
    display: block;
    color: var(--aqeek-gold-2);
    margin-top: 2px;
    text-transform: capitalize;
}

.logout-btn {
    background: rgba(255,255,255,.08);
}

.content-area {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    padding: 34px;
}

.mobile-topbar {
    display: none;
}

.drawer-backdrop {
    display: none;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
    background:
        radial-gradient(circle at center, rgba(190,145,45,0.13), transparent 34%),
        url("../../public/assets/aqeek-shape.png") center/520px no-repeat;
}

.centered-auth {
    margin: 0;
}

.card {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,255,255,0.88)),
        url("../../public/assets/aqeek-shape.png") right -80px top -80px/210px no-repeat;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(144,129,48,0.14);
    margin-bottom: 22px;
}

.hero-card {
    background:
        linear-gradient(135deg, rgba(26,46,54,0.97), rgba(26,46,54,0.88)),
        url("../../public/assets/aqeek-logo.png") right 34px center/120px auto no-repeat,
        url("../../public/assets/aqeek-shape.png") right -80px center/330px no-repeat;
    color: var(--white);
    border-radius: 30px;
    padding: 38px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.hero-card h1, .hero-card h2 { color: var(--white); }
.hero-card p { color: rgba(255,255,255,0.78); max-width: 720px; }

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.small-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-stats-grid {
    align-items: stretch;
}

.dashboard-stat-card {
    width: 100%;
    text-align: left;
    color: var(--aqeek-dark);
    cursor: pointer;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(26,46,54,.15);
    border-color: rgba(144,129,48,.38);
}

.stat-card-topline {
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--aqeek-dark);
}

.stat-card-number {
    font-size: 44px;
    line-height: 1;
    color: var(--aqeek-gold);
    letter-spacing: -0.04em;
}

.stat-card-description {
    color: var(--aqeek-dark);
    font-weight: 500;
}

.stat-card-meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: auto;
}

.stat-card-link {
    color: var(--aqeek-gold-2);
    font-weight: 800;
    font-size: 14px;
}

.product-image {
    height: 165px;
    background: linear-gradient(135deg, rgba(223,223,222,0.95), rgba(190,145,45,0.11));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(144,129,48,0.16);
}


.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button, .button-link {
    background: var(--aqeek-gold);
    color: white;
    border: 0;
    padding: 11px 16px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    box-shadow: 0 8px 18px rgba(144,129,48,0.22);
}

button:hover, .button-link:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

button.danger { background: var(--danger); }
button.ghost, .ghost {
    background: white;
    color: var(--aqeek-dark);
    border: 1px solid rgba(144,129,48,0.22);
    box-shadow: none;
}

button.small { padding: 9px 12px; }
.full-btn { width: 100%; text-align: center; }

.link-button {
    background: transparent;
    color: var(--aqeek-gold);
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(144,129,48,0.22);
    border-radius: 15px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.86);
    color: var(--aqeek-dark);
    outline: none;
    font: inherit;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--aqeek-gold-2);
    box-shadow: 0 0 0 3px rgba(190,145,45,0.14);
}

textarea { min-height: 110px; resize: vertical; }

.auth-box {
    width: min(460px, 100%);
    text-align: center;
}

.register-box { width: min(520px, 100%); }
.auth-logo { width: 148px; max-height: 150px; object-fit: contain; display: block; margin: 0 auto 14px; filter: drop-shadow(0 10px 20px rgba(26,46,54,.12)); }
.auth-box form { text-align: left; }
.auth-switch { margin-bottom: 0; }

.captcha-box label {
    display: block;
    font-weight: 800;
    margin: 6px 0 8px;
}

.captcha-row {
    display: grid;
    grid-template-columns: 1fr 120px auto;
    gap: 8px;
    align-items: start;
}

.captcha-question {
    background: #f7f5ec;
    border: 1px dashed rgba(144,129,48,.45);
    border-radius: 15px;
    padding: 13px 14px;
    font-weight: 900;
    text-align: center;
}

.captcha-input { margin-bottom: 0; }

.auth-box .full-btn {
    margin-top: 16px;
}

.register-box .full-btn {
    margin-top: 18px;
}

.filters, .inline-form {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 12px;
    align-items: center;
}

.order-filters {
    grid-template-columns: 1.6fr 180px 170px 170px auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.form-grid textarea,
.form-grid button { grid-column: span 2; }


/* Product form polish */
.upload-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-label,
.preview-title {
    font-weight: 800;
    color: var(--aqeek-dark);
    font-size: 13px;
}

.upload-box {
    min-height: 48px;
    border: 1px dashed rgba(144,129,48,0.42);
    border-radius: 16px;
    background: rgba(255,255,255,0.74);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 800;
    color: var(--aqeek-gold);
    transition: 0.2s ease;
}

.upload-box:hover {
    border-color: var(--aqeek-gold-2);
    background: rgba(190,145,45,0.08);
}

.upload-box input {
    display: none;
}

.upload-field small {
    color: #6b767b;
    font-size: 12px;
}

.field-error {
    color: #9f2f2f;
    font-size: 13px;
    font-weight: 700;
}

.image-preview-wrap {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-preview-card {
    width: 170px;
    height: 140px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(144,129,48,0.18);
    background: #fff;
    box-shadow: 0 14px 28px rgba(26,46,54,0.12);
}

.image-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,46,54,0.88);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: none;
    font-size: 22px;
    line-height: 1;
}

.pretty-check {
    grid-column: span 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    cursor: pointer;
    font-weight: 800;
    color: var(--aqeek-dark);
    margin-top: 4px;
}

.pretty-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pretty-check .checkmark {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1px solid rgba(144,129,48,0.45);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.pretty-check input:checked + .checkmark {
    background: var(--aqeek-gold);
    border-color: var(--aqeek-gold);
}

.pretty-check input:checked + .checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.admin-product-thumb {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(144,129,48,0.18);
    background: #fff;
}

.muted {
    color: #7b8589;
    font-size: 13px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th, td {
    padding: 14px;
    border-bottom: 1px solid rgba(167,166,166,0.25);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--aqeek-gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.qty { width: 80px; }

.alert {
    padding: 12px 14px;
    border-radius: 15px;
    background: rgba(190,145,45,0.15);
    border: 1px solid rgba(190,145,45,0.20);
}

.alert.success { background: var(--success-bg); color: var(--success); }
.alert.danger-soft { background: var(--danger-bg); color: var(--danger); }
.muted { color: #68767b; }

.status-pill {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(144,129,48,0.14);
    color: var(--aqeek-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: capitalize;
}

.status-shipped { background: #e9f8ee; color: #287743; }
.status-cancelled { background: #fff1f1; color: #a63c3c; }
.status-archived { background: #eeeeee; color: #606b70; }
.status-new { background: rgba(190,145,45,.16); color: #765f16; }

.page-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.ship-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border: 1px solid rgba(144,129,48,0.22);
    border-radius: 999px;
    background: #fff;
    font-weight: 800;
    white-space: nowrap;
}

.ship-check input {
    width: auto;
    margin: 0;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 27, .58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    z-index: 80;
    backdrop-filter: blur(8px);
}

.modal-card {
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 24px;
    padding: 24px;
    position: relative;
    box-shadow: 0 28px 70px rgba(0,0,0,.22);
}

.modal-card.large { width: min(860px, 100%); }
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    padding: 0;
    text-align: center;
    background: #f3f1e8;
    color: var(--aqeek-dark);
    box-shadow: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding-right: 48px;
    margin-bottom: 18px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: #f8f7f1;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 16px;
}

.detail-grid p { margin: 0; }
.grand-total { text-align: right; }

@media (max-width: 1100px) {
    .grid, .small-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .order-filters { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .mobile-topbar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 68px;
        background:
            linear-gradient(90deg, rgba(255,255,255,.96), rgba(248,247,241,.94)),
            url("../../public/assets/aqeek-shape.png") right -50px center/150px no-repeat;
        border-bottom: 1px solid rgba(144,129,48,.16);
        backdrop-filter: blur(14px);
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        z-index: 25;
    }

    .topbar-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .topbar-brand img { width: 44px; height: 52px; object-fit: contain; }
    .hamburger { width: 42px; height: 42px; padding: 0; text-align: center; }

    .sidebar {
        transform: translateX(-105%);
        transition: transform .24s ease;
        width: min(310px, 88vw);
    }

    .sidebar.open { transform: translateX(0); }
    .drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10,22,27,.48);
        z-index: 26;
    }

    .content-area {
        width: 100%;
        margin-left: 0;
        padding: 92px 18px 28px;
    }

    .grid, .small-grid, .filters, .form-grid, .order-filters {
        grid-template-columns: 1fr;
    }
    .form-grid textarea,
    .form-grid button,
    .image-preview-wrap,
    .pretty-check { grid-column: auto; }
    .hero-card { padding: 26px; border-radius: 24px; }
    .page-title-row { display: block; }
    .page-title-row .button-link { margin-top: 10px; }
    .detail-grid { grid-template-columns: 1fr; }
    .captcha-row { grid-template-columns: 1fr; }
    table { min-width: 720px; }
}


.brand-shape-divider {
    width: 72px;
    height: 72px;
    margin: 18px auto;
    background: url("../../public/assets/aqeek-shape.png") center/contain no-repeat;
    opacity: .42;
}

/* Password field with SVG eye toggle */
.password-field {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.password-field input {
    margin-bottom: 0;
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(144,129,48,.2);
    color: var(--aqeek-dark);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background: rgba(255,255,255,.78);
    color: var(--aqeek-dark);
    transform: translateY(-50%);
}

.password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Customer approval action cleanup */
.status-approved { background: #e9f8ee; color: #287743; }
.status-rejected { background: #fff1f1; color: #a63c3c; }
.status-pending { background: rgba(190,145,45,.16); color: #765f16; }

/* Profile screen */
.profile-page-wrap {
    width: 100%;
    max-width: none;
}

.profile-card {
    width: 100%;
    max-width: none;
    padding: 32px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(144,129,48,.14);
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--aqeek-gold), var(--aqeek-gold-2));
    color: white;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(144,129,48,.24);
}

.profile-header h2 {
    margin-bottom: 4px;
}

.profile-form .password-field {
    margin-bottom: 0;
}

.profile-form > .full-btn {
    grid-column: 1 / -1;
    margin-top: 18px;
}

.profile-note {
    max-width: 620px;
}



.forgot-link-wrap {
    margin: 12px 0 0;
    text-align: center;
}

.success-message {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(46,125,68,.18);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 700;
}

/* Registration submit loader */
.submit-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    color: var(--aqeek-dark);
    font-size: 13px;
    font-weight: 700;
}

.submit-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(144,129,48,.22);
    border-top-color: var(--aqeek-gold);
    border-radius: 50%;
    animation: aqeekSpin .75s linear infinite;
}

@keyframes aqeekSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
    .profile-card { padding: 22px; }
    .profile-header {
        align-items: flex-start;
    }
}

/* Customer approve/reject loader */
.customer-actions button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.btn-loader-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mini-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: aqeekSpin .75s linear infinite;
    flex: 0 0 auto;
}

.inline-action-loader {
    color: var(--aqeek-dark);
    font-size: 13px;
    font-weight: 800;
    background: rgba(190,145,45,.12);
    border: 1px solid rgba(190,145,45,.18);
    border-radius: 999px;
    padding: 9px 12px;
}

.row-processing {
    opacity: .82;
}

/* v15 customer catalog improvements */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.catalog-grid .product-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.catalog-grid .product-image {
    height: 190px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(223,223,222,0.42));
}

.product-image::before {
    content: none !important;
    display: none !important;
}

.catalog-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 18px;
}

.product-card-body h3 {
    margin: 4px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 800;
    min-height: 16px;
}

.product-desc {
    color: var(--aqeek-dark);
    opacity: .82;
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.product-card-footer strong {
    white-space: nowrap;
    font-size: 16px;
}

.product-card-footer button {
    white-space: nowrap;
    padding-inline: 18px;
}

.toast-alert {
    position: fixed;
    right: 26px;
    top: 24px;
    z-index: 9999;
    padding: 14px 18px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 18px 38px rgba(26,46,54,.18);
    animation: aqeekToastIn .22s ease-out;
}

.success-toast {
    background: var(--aqeek-dark);
    color: #fff;
    border: 1px solid rgba(190,145,45,.35);
}

@keyframes aqeekToastIn {
    from { transform: translateY(-8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.global-api-loader {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(26,46,54,.94);
    color: white;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 18px 42px rgba(26,46,54,.24);
}

button:disabled,
.button-link:disabled {
    cursor: wait;
    opacity: .7;
    transform: none !important;
}

.ship-button {
    background: var(--aqeek-gold-2);
}

.danger-alert {
    background: rgba(174,57,50,.12);
    color: var(--danger);
    border-color: rgba(174,57,50,.22);
}

@media (max-width: 1280px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .catalog-grid .product-image {
        height: 180px;
    }
}

@media (max-width: 620px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .product-card-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .product-card-footer button {
        width: 100%;
    }
    .toast-alert {
        left: 16px;
        right: 16px;
        text-align: center;
    }
    .global-api-loader {
        left: 16px;
        right: 16px;
        bottom: 16px;
        justify-content: center;
    }
}

/* Customer management */
.customer-actions .ghost.small,
.customer-actions .danger.small {
    padding: 9px 13px;
}

.customer-modal .password-field {
    margin-bottom: 10px;
}

.customer-form .password-field {
    width: 100%;
}

.customer-form .full-btn {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.status-approved { background: #e9f8ee; color: #287743; }
.status-rejected { background: #fff1f1; color: #a63c3c; }
.status-pending { background: rgba(190,145,45,.16); color: #765f16; }

/* v24 address fields + customer price toggle */
.mini-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-grid .form-wide,
.customer-form .form-wide,
.profile-form .form-wide {
    grid-column: 1 / -1;
}

.setting-card {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.setting-card h3 {
    margin: 0 0 6px;
}

.setting-message {
    margin: 8px 0 0;
    font-weight: 700;
    color: var(--aqeek-gold);
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 800;
}

.toggle-switch input {
    display: none;
}

.toggle-switch span {
    width: 58px;
    height: 32px;
    border-radius: 999px;
    background: #d7d7d2;
    position: relative;
    transition: .2s ease;
    box-shadow: inset 0 0 0 1px rgba(26,46,54,.08);
}

.toggle-switch span::after {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 4px;
    left: 4px;
    transition: .2s ease;
    box-shadow: 0 6px 14px rgba(26,46,54,.18);
}

.toggle-switch input:checked + span {
    background: var(--aqeek-gold);
}

.toggle-switch input:checked + span::after {
    transform: translateX(26px);
}

.toggle-switch em {
    font-style: normal;
    color: var(--aqeek-dark);
}

.price-hidden-label {
    color: var(--aqeek-gold);
    font-size: 14px;
    letter-spacing: .02em;
}

.soft-alert {
    background: rgba(144,129,48,.10);
    border: 1px solid rgba(144,129,48,.20);
    color: var(--aqeek-dark);
}

@media (max-width: 700px) {
    .mini-form-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .setting-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* v25: prevent page-level horizontal scrolling and improve mobile product/admin layouts */
html,
body,
#root {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.app-shell,
.content-area,
.card,
.hero-card,
.form-grid,
.filters,
.inline-form,
.order-filters,
.grid,
.small-grid,
.dashboard-stats-grid {
    max-width: 100%;
    min-width: 0;
}

.content-area {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.card {
    overflow: hidden;
}

.form-grid > *,
.filters > *,
.inline-form > *,
.order-filters > *,
.grid > *,
.small-grid > * {
    min-width: 0;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 820px) {
    body::before,
    body::after {
        width: 340px;
        height: 340px;
    }

    .content-area {
        width: 100%;
        margin-left: 0;
        overflow-x: hidden;
    }

    .card {
        border-radius: 20px;
        padding: 18px;
    }

    .table-wrap {
        margin-left: -2px;
        margin-right: -2px;
    }
}

/* Per-customer price visibility toggle */
.compact-toggle {
    gap: 8px;
    font-size: 12px;
}

.compact-toggle span {
    width: 44px;
    height: 24px;
}

.compact-toggle span::after {
    width: 18px;
    height: 18px;
    top: 3px;
    left: 3px;
}

.compact-toggle input:checked + span::after {
    transform: translateX(20px);
}

.customer-price-toggle em {
    min-width: 44px;
}

.customer-modal-price-toggle {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.82);
}

.tiny-loader-text {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 700px) {
    .customer-modal-price-toggle {
        width: 100%;
        justify-content: space-between;
    }
}

.sms-button {
    background: var(--aqeek-dark);
}

.sms-button:hover {
    background: #243d47;
}

/* v35: intl-tel-input phone fields */
.phone-input-wrap,
.phone-input-wrap .iti {
    width: 100%;
    display: block;
}

.phone-input-wrap input[type="tel"] {
    width: 100%;
}

.phone-input-wrap .iti__selected-flag {
    border-radius: 14px 0 0 14px;
}

.phone-input-wrap .iti--separate-dial-code .iti__selected-flag {
    background: rgba(144,129,48,.08);
}

.phone-input-wrap .iti__country-list {
    max-width: min(420px, calc(100vw - 34px));
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(26,46,54,.18);
    z-index: 99999;
}

.customer-form .phone-input-wrap {
    width: 100%;
}

/* International phone input */
.phone-input-wrap,
.iti {
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
}

.phone-input-wrap input,
.iti input {
    width: 100%;
    margin-bottom: 0;
}

.iti--separate-dial-code .iti__selected-flag {
    border-radius: 15px 0 0 15px;
    background: rgba(223, 223, 222, 0.45);
    border-right: 1px solid rgba(144,129,48,0.18);
}

.iti__country-list {
    z-index: 99999;
    border-radius: 14px;
    border-color: rgba(144,129,48,0.22);
    box-shadow: 0 16px 38px rgba(26,46,54,0.14);
    color: var(--aqeek-dark);
}

.iti__country {
    font-size: 14px;
}

.customer-form .phone-input-wrap {
    min-width: 0;
}

@media (max-width: 640px) {
    .iti__country-list {
        max-width: calc(100vw - 36px);
        white-space: normal;
    }
}

/* Admin settings */
.settings-card {
    max-width: none;
    width: 100%;
}

.settings-section-heading {
    margin-bottom: 22px;
}

.settings-section-heading h2 {
    margin: 0 0 8px;
    color: var(--dark);
}

.field-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 800;
    color: var(--dark);
}

.field-label input {
    font-weight: 500;
}

.full-span {
    grid-column: 1 / -1;
}

.help-text,
.field-label small {
    color: var(--muted);
    font-weight: 500;
    font-size: 12px;
}

.settings-save-btn {
    margin-top: 18px;
}

.settings-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(144, 129, 48, 0.08);
    color: var(--dark);
    line-height: 1.6;
}

/* v40 shipment method modal */
.shipment-modal {
    max-width: 680px;
}

.shipment-options {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.shipment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(26, 46, 54, 0.12);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.shipment-option.active {
    border-color: var(--gold);
    background: rgba(144, 129, 48, 0.07);
    box-shadow: 0 10px 24px rgba(26, 46, 54, 0.08);
}

.shipment-option input {
    width: auto;
    margin-top: 3px;
}

.shipment-option span {
    display: grid;
    gap: 4px;
}

.shipment-option strong {
    color: var(--dark);
    font-size: 15px;
}

.shipment-option small {
    color: #68767b;
    line-height: 1.4;
}

.field-label {
    display: grid;
    gap: 8px;
    font-weight: 700;
    color: var(--dark);
    margin: 12px 0 16px;
}

.alert.info {
    background: rgba(190, 145, 45, 0.12);
    border-color: rgba(190, 145, 45, 0.25);
    color: #6f5415;
}

.goshippo-service-box {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.shipment-option.compact {
    padding: 12px 14px;
}

.inline-link {
    display: inline-block;
    margin-top: 10px;
}

/* v42 GoShippo shipment detail form */
.shipment-modal {
    max-width: 880px;
    max-height: 92vh;
    overflow-y: auto;
}

.shipment-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.shipment-section-card {
    border: 1px solid rgba(26, 46, 54, 0.10);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(26, 46, 54, 0.04);
}

.shipment-section-card h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--dark);
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title-row h3 {
    margin: 0;
}

.small-btn {
    padding: 8px 12px;
    font-size: 12px;
}

.compact-grid {
    gap: 10px;
}

.address-preview-box {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(223, 223, 222, 0.36);
    color: var(--dark);
    line-height: 1.45;
}

.address-preview-box span {
    color: #5f6f75;
    font-size: 13px;
}

@media (max-width: 720px) {
    .shipment-service-grid {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.settings-subsection {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(26, 46, 54, 0.1);
}

.settings-subsection h3 {
    margin: 0 0 6px;
    color: var(--dark);
}

/* v46: inline GoShippo error inside shipment modal */
.shippo-error-modal {
    display: grid;
    gap: 6px;
    margin: 14px 0 16px;
    padding: 14px 16px;
    border: 1px solid rgba(185, 28, 28, 0.18);
    border-left: 4px solid #b91c1c;
    border-radius: 14px;
    background: #fff1f2;
    color: #7f1d1d;
    line-height: 1.45;
}

.shippo-error-modal strong {
    font-size: 14px;
    color: #7f1d1d;
}

.shippo-error-modal span {
    font-size: 13px;
}
