:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --panel-strong: #edf2ff;
    --line: #e4eaf3;
    --line-strong: #d2dcea;
    --text: #10233f;
    --muted: #6a7a92;
    --navy: #123b74;
    --navy-deep: #0a2244;
    --blue: #2d6cdf;
    --blue-soft: #e9f0ff;
    --green: #1d8f6f;
    --green-soft: #e8f7f1;
    --amber: #d97706;
    --amber-soft: #fff5df;
    --shadow-lg: 0 18px 48px rgba(10, 34, 68, 0.10);
    --shadow-md: 0 10px 28px rgba(16, 35, 63, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --sidebar-width: 272px;
    --header-height: 80px;
    --bottom-nav-height: 76px;
    --body-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --heading-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --primary-gradient: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #f5f3ff;
    --border-color: #f1f5f9;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 8px rgba(0, 0, 0, 0.02);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --form-bg: #e1e7f5;
    --input-bg: #ffffff;
    --btn-green: #10b981;
    --btn-green-hover: #059669;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(45, 108, 223, 0.10), transparent 26%),
        radial-gradient(circle at bottom right, rgba(29, 143, 111, 0.10), transparent 22%),
        var(--bg);
    color: var(--text);
    font-family: var(--body-font);
}

body.auth-page {
    overflow: auto;
    background:
        radial-gradient(circle at top left, rgba(142, 169, 255, 0.18), transparent 24%),
        radial-gradient(circle at bottom right, rgba(215, 130, 255, 0.22), transparent 26%),
        #f8fafc;
}

body[data-current-role="admin"] {
    --blue: #2d6cdf;
    --navy: #123b74;
    --navy-deep: #0a2244;
    --panel-strong: #edf2ff;
    --blue-soft: #e9f0ff;
}

body[data-current-role="staff"] {
    --blue: #1d8f6f;
    --navy: #155c4a;
    --navy-deep: #0f3e34;
    --panel-strong: #e9f7f1;
    --blue-soft: #e5f8f1;
}

body[data-current-role="chemist"] {
    --blue: #0f78c9;
    --navy: #114a86;
    --navy-deep: #0b2f57;
    --panel-strong: #e8f3ff;
    --blue-soft: #e6f2ff;
}

body[data-current-role="wholesaler"] {
    --blue: #c56b14;
    --navy: #8a4b10;
    --navy-deep: #5a310b;
    --panel-strong: #fff2e4;
    --blue-soft: #fff1e0;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 560px);
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

.auth-shell--centered {
    grid-template-columns: 1fr;
    justify-items: center;
}

.auth-hero {
    display: grid;
    gap: 1.5rem;
    align-content: center;
}

.auth-brand img,
.auth-frame-top img {
    width: 10rem;
    height: auto;
    display: block;
    object-fit: contain;
}

.auth-copy {
    max-width: 34rem;
}

.auth-kicker {
    margin: 0 0 0.6rem;
    color: #7c6df9;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-copy h1 {
    margin: 0 0 0.8rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 0.95;
    color: #1e293b;
}

.auth-copy p {
    margin: 0;
    max-width: 30rem;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
}

.auth-promo-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(180px, 240px);
    gap: 1rem;
    align-items: center;
    padding: 1.4rem 1.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(142, 169, 255, 0.18), rgba(215, 130, 255, 0.20));
    border: 1px solid rgba(124, 109, 249, 0.12);
    box-shadow: 0 18px 42px rgba(77, 88, 150, 0.10);
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #6d5ae6;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-promo-copy h2 {
    margin: 0.9rem 0 0.55rem;
    color: #1e293b;
    font-size: 1.7rem;
    line-height: 1.1;
}

.auth-promo-copy p {
    margin: 0;
    color: #64748b;
}

.auth-promo-card img {
    width: 100%;
    max-width: 220px;
    justify-self: end;
}

.auth-main {
    display: grid;
    justify-items: center;
}

.auth-shell--centered .auth-main {
    width: 100%;
    max-width: 640px;
}

.auth-frame {
    width: min(100%, 560px);
    background: #ffffff;
    border-radius: 34px;
    padding: 0.65rem;
    box-shadow: 0 26px 60px rgba(58, 76, 120, 0.18);
}

.auth-frame-top {
    min-height: 6rem;
    display: grid;
    place-items: center;
    border-radius: 26px 26px 18px 18px;
    background: #ffffff;
}

.auth-frame-body {
    border-radius: 42px 42px 26px 26px;
    background: #e6e7f7;
    padding: 1.7rem 1.35rem 1.4rem;
}

.auth-screen {
    display: grid;
    gap: 1rem;
}

.auth-screen--wide {
    gap: 1.2rem;
}

.auth-screen-copy h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(2rem, 3vw, 2.7rem);
    text-align: center;
}

.auth-screen-copy p {
    margin: 0.5rem 0 0;
    color: #4b5563;
    text-align: center;
    line-height: 1.6;
}

.auth-form,
.auth-section,
.auth-form-grid {
    display: grid;
    gap: 0.95rem;
}

.auth-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.file-upload,
.auth-submit,
.stock-type {
    min-height: 3.2rem;
}

.file-upload {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 3.5rem;
    border-radius: 12px;
    border: 1.5px dashed #d1d5db;
    background: #f8fafc;
    padding: 0 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.file-upload:hover {
    border-color: var(--blue);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(45, 108, 223, 0.08);
}

.file-upload .browse-badge {
    background: var(--blue);
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    position: relative !important;
    display: inline-block;
}

.file-upload:hover .browse-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(45, 108, 223, 0.2);
}

.file-upload [data-file-label] {
    flex: 1;
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 500;
}

.file-upload input {
    display: none;
}

.auth-section {
    padding-top: 0.25rem;
}

.auth-section h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #5b6276;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-field {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1.2rem;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    color: #374151;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.auth-field:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-field > span:first-child {
    position: absolute;
    top: -0.7rem;
    left: 0.8rem;
    padding: 0 0.5rem;
    background: #ffffff;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-field input,
.auth-field select {
    width: 100%;
    min-height: 3.5rem;
    border-radius: 12px;
    border: none;
    background: transparent;
    padding: 0 0.3rem;
    font-size: 0.95rem;
    color: var(--text);
    box-shadow: none;
}

.auth-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236a7a92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

.auth-field input:focus,
.auth-field select:focus {
    outline: none;
}

.auth-field:focus-within {
    border-color: rgba(45, 108, 223, 0.55);
    box-shadow: 0 0 0 4px rgba(45, 108, 223, 0.10);
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap input {
    padding-right: 2.8rem;
}

.password-toggle {
    position: absolute;
    right: 0.15rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
}

.password-toggle:hover {
    background: #eef2ff;
    color: var(--blue);
}

/* Icon Buttons */
.icon-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.icon-btn:hover {
    transform: scale(1.18) rotate(3deg);
    z-index: 10;
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn--danger {
    color: #ef4444;
    background: #fef2f2;
}

.icon-btn--danger:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.35);
}

.icon-btn--success {
    color: #16a34a;
    background: #f0fdf4;
}

.icon-btn--success:hover {
    background: #16a34a;
    color: white;
    box-shadow: 0 6px 15px rgba(22, 163, 74, 0.35);
}

.icon-btn--info {
    color: #0891b2;
    background: #ecfeff;
}

.icon-btn--info:hover {
    background: #0891b2;
    color: white;
    box-shadow: 0 6px 15px rgba(8, 145, 178, 0.35);
}

.icon-btn--primary {
    color: #2563eb;
    background: #eff6ff;
}

.icon-btn--primary:hover {
    background: #2563eb;
    color: white;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.35);
}

.auth-links-inline {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.auth-links-inline a {
    color: var(--blue);
    text-decoration: underline;
}

.auth-helper-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    color: #5b6276;
    font-size: 0.95rem;
}

.auth-helper-row a {
    color: #1f2937;
    font-weight: 700;
}

.auth-submit {
    min-height: 3.2rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #8fb0ff, #d87cff);
    color: #1f1744;
    font-size: 1.02rem;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(162, 132, 255, 0.22);
}

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.25rem 0.35rem;
    color: #475467;
    font-size: 0.94rem;
    font-weight: 600;
}

.auth-checkbox input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.18rem;
    border-radius: 6px;
}

.auth-status {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(125, 136, 171, 0.18);
}

.auth-form--register #chemistFields,
.auth-form--register #clinicUploads {
    display: none;
}

.auth-form--register:has(#business_category option[value="chemist"]:checked) #chemistFields {
    display: contents;
}

.auth-form--register:has(#business_category option[value="dispensing_clinic"]:checked) #clinicUploads {
    display: contents;
}

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

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

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.app-sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    padding: 1.25rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    border-right: 1px solid var(--line);
    box-shadow: inset -1px 0 0 rgba(228, 234, 243, 0.48);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.3rem 0.25rem 0.9rem;
}

.brand-logo-wrapper {
    position: relative;
    width: 5.9rem;
    height: 2.85rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
}

.brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.brand-mark {
    width: 2.85rem;
    height: 2.85rem;
    display: none;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #5a8fff, #80b5ff);
    color: #082446;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-logo-wrapper--fallback {
    width: 2.85rem;
}

.brand-logo-wrapper--fallback .brand-mark {
    display: grid;
}

.brand-copy strong {
    display: block;
    font-size: 1.08rem;
    font-family: var(--heading-font);
}

.brand-copy small {
    display: block;
    margin-top: 0.15rem;
    color: rgba(238, 245, 255, 0.72);
}

.sidebar-group {
    display: grid;
    gap: 0.55rem;
}

.sidebar-label {
    margin: 0;
    padding: 0 0.55rem;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-nav,
.drawer-nav,
.sidebar-actions {
    display: grid;
    gap: 0.35rem;
}

.nav-item,
.drawer-item,
.secondary-action {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 3rem;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    color: #64748b;
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.nav-item:hover,
.drawer-item:hover,
.secondary-action:hover,
.secondary-action--button:hover {
    background: #f8fafc;
    border-color: #e7edf7;
}

.nav-item.is-active,
.drawer-item.is-active,
.mobile-tab.is-active {
    background: #f2eeff;
    border-color: #ddd4ff;
    color: #7c6df9;
}

.nav-item.is-locked,
.drawer-item.is-locked {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.8);
    background: transparent !important;
    border-color: transparent !important;
}

.nav-glyph,
.mobile-tab-glyph {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eef2ff;
    color: #6d5ae6;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.nav-copy {
    font-size: 0.96rem;
    font-weight: 600;
    color: #334155;
}

.sidebar-footer {
    display: grid;
    gap: 0.85rem;
    padding-top: 0.35rem;
}

.account-card {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.account-card strong {
    display: block;
    font-size: 1rem;
}

.account-card span,
.account-label {
    color: rgba(238, 245, 255, 0.68);
}

.account-label {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.secondary-action {
    background: #f8fafc;
    color: #334155;
    border-color: #e7edf7;
}

.secondary-action--button,
.drawer-item--button {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid transparent;
    color: inherit;
    text-align: left;
}

.app-main {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0 1rem;
    position: sticky;
    top: 0;
    z-index: 18;
    background: rgba(245, 247, 251, 0.9);
    backdrop-filter: blur(14px);
}

.topbar-start,
.topbar-end,
.page-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-start {
    min-width: 0;
    flex: 1 1 auto;
}

.topbar-end {
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 0.75rem;
}

.topbar-guest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.topbar-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
}

.topbar-brand,
.mobile-page-intro {
    display: none;
}

.topbar-brand img {
    height: 80px;
}

@media (max-width:860px) {

    .topbar-brand img {
        margin-top: auto;
        height: 80px;
    }

}

.topbar-brand {
    align-items: center;
    color: var(--navy-deep);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-icon-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    min-width: 2.8rem;
    min-height: 2.8rem;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    color: var(--navy);
}

.topbar-icon-chip:hover {
    background: var(--blue-soft);
    border-color: var(--blue);
}

.topbar-icon-chip svg,
.user-menu-trigger-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.user-menu-trigger-label {
    display: inline-flex;
    align-items: center;
}

.mobile-page-summary {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.page-kicker {
    margin: 0;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.app-topbar h1 {
    margin: 0;
    font-size: clamp(1.65rem, 2vw, 2.35rem);
    line-height: 1.05;
    font-family: var(--heading-font);
}

.page-summary {
    margin: 0 0 1.15rem;
    color: var(--muted);
    font-size: 1rem;
}

.message-stack {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}

.message-stack--auth {
    margin-bottom: 1rem;
}

.flash-message {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 10px 22px rgba(16, 35, 63, 0.06);
    font-size: 0.92rem;
    font-weight: 600;
}

.flash-message--success {
    border-color: #b7e4d6;
    background: #effcf6;
    color: #166534;
}

.flash-message--error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.flash-message--warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.flash-message--info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.menu-toggle,
.session-pill,
.solid-button,
.ghost-button,
.outline-button,
.mobile-tab {
    min-height: 2.8rem;
    border-radius: 999px;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    padding: 0.75rem 1rem;
    color: var(--text);
}

.session-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    color: var(--muted);
}

.topbar-logout {
    white-space: nowrap;
}

.page-content,
.content-grid,
.stack-form,
.feature-column,
.bullet-board,
.button-grid,
.chip-cloud,
.action-row {
    display: grid;
    gap: 1rem;
}

.page-content {
    padding-bottom: 1rem;
    min-width: 0;
}

.page-stack {
    display: grid;
    gap: 1.1rem;
    min-width: 0;
    width: 100%;
}

.content-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.content-grid--hero {
    grid-template-columns: 1.3fr 1fr;
}

.surface-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    padding: 1.35rem;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.spotlight-card {
    background:
        linear-gradient(180deg, rgba(45, 108, 223, 0.08), rgba(255, 255, 255, 0.96)),
        var(--panel);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.surface-card h2,
.surface-card h3,
.surface-card h4 {
    margin: 0;
    font-family: var(--heading-font);
}

.surface-card p,
.section-copy,
.plain-list,
.status-box,
.bullet-board p,
.mosaic-tile span,
.workflow-step p {
    color: var(--muted);
    line-height: 1.65;
}

.micro-label {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.solid-button,
.ghost-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.82rem 1.15rem;
    border: 1px solid transparent;
}

.solid-button {
    background: linear-gradient(90deg, #8fb0ff, #d87cff);
    color: #1f1744;
}

.ghost-button,
.outline-button {
    background: var(--panel-soft);
    border-color: var(--line);
    color: var(--text);
}

.micro-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

.micro-button.danger-button {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.micro-button.danger-button:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.micro-button.primary-button {
    color: var(--blue);
    background: var(--blue-soft);
    border-color: rgba(45, 108, 223, 0.28);
}

.micro-button.primary-button:hover {
    background: #dbeafe;
    border-color: rgba(45, 108, 223, 0.4);
    color: var(--navy);
}

.upload-type-group {
    margin-bottom: 1.1rem;
}

.stock-type {
    min-height: 2.8rem;
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--text);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.stock-type:hover,
.stock-type:focus {
    border-color: var(--blue);
}

.stock-type.is-active,
.stock-type.active {
    background: var(--blue-soft);
    border-color: rgba(45, 108, 223, 0.28);
    color: var(--navy);
}

.upload-items-stack,
.upload-detail-list {
    display: grid;
    gap: 1rem;
}

.upload-row,
.detail-request-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel-soft);
}

.upload-row-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}

.upload-action-row {
    margin-top: 0;
    justify-content: flex-end;
}

.brand-search-wrap {
    position: relative;
    width: 100%;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 12;
    display: grid;
    gap: 0;
    max-height: 16rem;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.search-results--static {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 0.25rem;
}

.request-review-grid {
    display: grid;
    gap: 1rem;
}

.request-review-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel-soft);
    display: grid;
    gap: 1rem;
}

.request-review-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.request-review-head h3 {
    margin: 0.45rem 0 0;
}

.request-review-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--navy);
    font-size: 0.85rem;
    white-space: nowrap;
}

.request-review-meta {
    display: grid;
    gap: 0.35rem;
}

.request-review-meta p {
    margin: 0;
}

.request-note-form {
    margin: 0;
}

.search-result {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
    color: var(--text);
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover,
.search-result:focus {
    background: var(--blue-soft);
}

.search-result strong,
.detail-request-meta strong {
    display: block;
}

.search-result small {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
}

.search-empty,
.upload-row-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.upload-row-note {
    margin: 0;
}

.inline-request {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--line-strong);
}

.inline-request .form-grid {
    margin-bottom: 0.8rem;
}

.detail-request-meta {
    display: grid;
    gap: 0.3rem;
}

.detail-request-meta p {
    margin: 0;
}

.detail-request-card .status-box {
    margin: 0;
}

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

.metric-card strong {
    display: block;
    margin: 0.45rem 0 0.2rem;
    font-size: 2.4rem;
    color: var(--navy);
}

.chip-cloud {
    display: flex;
    flex-wrap: wrap;
}

.chip-cloud span {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: var(--panel-strong);
    color: var(--navy);
    font-size: 0.92rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-width: 0;
}

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

label {
    display: grid;
    gap: 0.45rem;
    color: var(--text);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.9rem 0.95rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.12);
}

textarea {
    resize: vertical;
}

.status-box,
.page-gate {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.page-gate {
    margin-bottom: 1rem;
}

.mosaic-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.mosaic-tile {
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: var(--panel-soft);
    border: 1px solid var(--line);
}

.mosaic-tile strong {
    display: block;
    margin-bottom: 0.35rem;
}

.workflow-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.workflow-step {
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.workflow-step span {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    flex: 0 0 auto;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    max-width: 100%;
    min-width: 0;
}

table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: var(--panel);
}

th,
td {
    padding: 0.9rem 0.85rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--panel-soft);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plain-list {
    margin: 0;
    padding-left: 1.2rem;
}

.drawer-scrim,
.mobile-drawer {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

.page-content,
.content-grid,
.stack-form,
.button-grid,
.chip-cloud,
.action-row,
.section-heading,
.mosaic-card {
    min-width: 0;
}

@media (max-width: 1080px) {
    .auth-shell {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .auth-hero {
        order: 2;
    }

    .auth-main {
        order: 1;
    }

    .content-grid--hero,
    .content-grid--two,
    .content-grid--three,
    .workflow-strip,
    .button-grid,
    .form-grid,
    .mosaic-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .auth-shell {
        padding: 0.9rem;
        gap: 1rem;
    }

    .auth-hero {
        display: none;
    }

    .auth-frame {
        width: 100%;
        border-radius: 28px;
        padding: 0.45rem;
        box-shadow: 0 18px 36px rgba(58, 76, 120, 0.16);
    }

    .auth-frame-top {
        min-height: 4.8rem;
        border-radius: 22px 22px 14px 14px;
    }

    .auth-frame-top img {
        width: 4.5rem;
    }

    .auth-frame-body {
        padding: 1.35rem 0.95rem 1.1rem;
        border-radius: 38px 38px 20px 20px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-helper-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-sidebar {
        display: none;
    }

    .app-main {
        padding: 0.9rem 0.9rem calc(var(--bottom-nav-height) + 2rem);
    }

    .app-topbar {
        min-height: auto;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding: 0.1rem 0 0.8rem;
    }

    .topbar-start {
        width: auto;
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .topbar-end {
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    .topbar-brand,
    .topbar-icon-chip,
    .mobile-page-intro,
    .user-menu-trigger-icon {
        display: inline-flex;
    }

    .mobile-page-intro {
        display: grid;
        gap: 0.35rem;
        margin: 0 0 1rem;
        padding: 0 0.1rem;
    }

    .mobile-page-intro h1 {
        margin: 0;
        font-size: clamp(2rem, 7vw, 2.55rem);
        line-height: 1.05;
        color: var(--navy-deep);
    }

    .page-heading,
    .page-summary,
    .user-menu-trigger-label,
    .user-menu-trigger>svg {
        display: none;
    }

    .user-menu-trigger {
        width: 2.8rem;
        min-width: 2.8rem;
        height: 2.8rem;
        padding: 0;
        gap: 0;
        border-radius: 50%;
        background: var(--panel);
        border: 1px solid var(--line);
        box-shadow: var(--shadow-md);
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(0.55rem + env(safe-area-inset-bottom));
        min-height: var(--bottom-nav-height);
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 0.25rem;
        padding: 0.55rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--line);
        border-radius: 24px;
        box-shadow: 0 18px 36px rgba(16, 35, 63, 0.14);
        z-index: 30;
    }

    .mobile-tab {
        display: grid;
        place-items: center;
        gap: 0.25rem;
        background: transparent;
        border: 1px solid transparent;
        padding: 0.35rem 0.2rem 0.25rem;
        color: var(--muted);
    }

    .mobile-tab.is-active {
        color: var(--navy);
        background: #f8fafc;
    }

    .mobile-tab-glyph {
        width: 2.1rem;
        height: 2.1rem;
        border-radius: 12px;
        background: var(--panel-soft);
        color: var(--navy);
    }

    .mobile-tab-label {
        font-size: 0.74rem;
        font-weight: 700;
    }

    .mobile-tab--button {
        border: none;
    }

    .topbar-guest-actions {
        display: none;
    }

    .topbar-account {
        gap: 0.55rem;
    }

    .session-pill {
        padding-inline: 0.9rem;
        font-size: 0.92rem;
    }

    .topbar-logout {
        min-width: auto;
        padding-inline: 0.95rem;
    }

    .surface-card {
        padding: 1rem 0.95rem;
        border-radius: 20px;
    }

    .page-stack,
    .content-grid,
    .stack-form,
    .button-grid,
    .chip-cloud,
    .action-row,
    .mosaic-card {
        gap: 0.9rem;
    }

    .section-heading {
        gap: 0.75rem;
    }

    .form-grid {
        gap: 0.85rem;
    }

    .action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .action-row>.solid-button,
    .action-row>.ghost-button,
    .action-row>.outline-button,
    .action-row>button {
        width: 100%;
    }

    .drawer-scrim {
        position: fixed;
        inset: 0;
        background: rgba(10, 20, 36, 0.3);
        z-index: 39;
    }

    .mobile-drawer {
        position: fixed;
        inset: auto 0.75rem 0.75rem 0.75rem;
        width: auto;
        max-width: none;
        max-height: 82vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 28px;
        background: #ffffff;
        padding: 1rem 1rem calc(var(--bottom-nav-height) + 1rem);
        box-shadow: 0 -22px 48px rgba(16, 35, 63, 0.16);
        z-index: 40;
    }

    .mobile-drawer:target,
    .mobile-drawer:target+.drawer-scrim {
        display: block;
    }

    .mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
    }

    .menu-toggle--drawer {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .drawer-group {
        display: grid;
        gap: 0.55rem;
        margin-bottom: 1rem;
    }

    .drawer-item {
        color: var(--text);
        background: var(--panel-soft);
        border-color: var(--line);
    }

    .drawer-item--button {
        justify-content: flex-start;
    }

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

    table {
        min-width: 100%;
        word-break: break-word;
    }

    th,
    td {
        padding: 0.5rem 0.35rem;
        font-size: 0.82rem;
    }

    th {
        font-size: 0.72rem;
    }
}

.user-menu-wrapper {
    position: relative;
}

.user-menu-wrapper summary {
    list-style: none;
}

.user-menu-wrapper summary::-webkit-details-marker {
    display: none;
}

.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 2.8rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-wrapper[open] .user-menu-trigger,
.user-menu-trigger:hover {
    background: var(--panel-soft);
    border-color: var(--line-strong);
}

.user-menu-trigger svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.user-menu-wrapper[open] .user-menu-trigger .user-menu-chevron {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1000;
    min-width: 200px;
    animation: slideDown 0.2s ease;
}

.user-menu-wrapper[open] .user-menu-dropdown {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--line);
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover:not(.user-menu-item--logout) {
    background: var(--panel-soft);
    color: var(--blue);
}

.user-menu-item--logout {
    color: var(--amber);
}

.user-menu-item--logout:hover {
    background: var(--amber-soft);
}

/* 3 inputs in one row */
.upload-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    align-items: center;
}

/* reduce input height */
.upload-row-grid input {
    height: 36px;
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 8px;
}

/* reduce spacing inside row */
.upload-row {
    padding: 8px;
}

/* buttons smaller */
.upload-row .ghost-button {
    padding: 4px 8px;
    font-size: 12px;
    min-height: auto;
}

/* mobile responsive */
@media (max-width:768px) {

    .upload-row-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
    }

    .upload-row-grid input {
        height: 34px;
        font-size: 12px;
        padding: 5px 6px;
    }

}

/* keep 3 inputs perfectly aligned */

.upload-row-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: start;
}

/* container */
.brand-search-wrap {
    position: relative;
}

/* reserve space for request button */
.upload-row-grid label {
    padding-bottom: 18px;
}

/* request button small inline */
.request-product {
    position: absolute;
    bottom: -2px;
    left: 2px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
}

/* prevent layout jump */
.search-results {
    z-index: 20;
}

/* compact inputs */
.upload-row-grid input {
    height: 34px;
    padding: 5px 8px;
    font-size: 13px;
}

/* keep all 3 inputs same height */
.upload-row-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 8px;
    align-items: center;
}

/* brand field layout */
.brand-search-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

/* input size */
.upload-row-grid input {
    height: 34px;
    padding: 5px 8px;
    font-size: 13px;
}

/* request button inline */
.request-product {
    position: static;
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
    white-space: nowrap;
}

/* hide extra vertical space */
.upload-row-grid label {
    padding-bottom: 0;
}

/* search dropdown position */
.search-results {
    top: 100%;
}

/* --- Dashboard Specific Content --- */
.dashboard-content {
    padding: 20px 25px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.welcome-section {
    margin-bottom: 30px;
}

.welcome-section h2 {
    font-size: 1.8rem;
    color: #0f172a;
    font-weight: 700;
}

.welcome-section h2 span {
    color: var(--accent-purple);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

/* --- Earnings Card --- */
.earnings-card {
    background: var(--primary-gradient);
    border-radius: 24px;
    padding: 35px;
    color: white;
    box-shadow: 0 20px 40px rgba(167, 139, 250, 0.25);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.earnings-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
}

.value {
    font-size: 3rem;
    font-weight: 800;
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
}

/* --- Utility Section --- */
.utility-row {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    padding: 10px 0;
    margin-bottom: 30px;
}

.utility-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}

.utility-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    /* Squircle look is more modern */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.utility-item:hover .utility-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-purple);
}

.utility-item span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.utility-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
}

/* --- Action List (Uploads) --- */
.action-list {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.list-item {
    background: white;
    padding: 18px 24px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
}

.list-item span {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.list-item i {
    color: #94a3b8;
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 400;
}

/* --- Recent Matches --- */
.match-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.match-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 6px;
    display: block;
}

.match-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* --- Promo Banner Mini --- */
.promo-banner-mini {
    background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 100%);
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    min-height: 150px;
}

.promo-content {
    flex: 1;
    z-index: 2;
}

.promo-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.promo-content h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e3a8a;
    line-height: 1;
}

.promo-content p {
    margin: 4px 0 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3a8a;
    line-height: 1.2;
}

.promo-button {
    background: white !important;
    color: #1e3a8a !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
    display: inline-block !important;
    margin-top: 4px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.promo-image-wrap {
    width: 100px;
    flex: 0 0 100px;
    display: flex;
    align-items: flex-end;
}

.promo-image-wrap img {
    width: 100%;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .side-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .side-column {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding: 20px 15px 100px;
    }

    .stats-grid {
        gap: 15px;
    }

    .stat-item {
        padding: 20px;
    }

    .utility-row {
        gap: 20px;
    }

    .utility-icon {
        width: 96px;
        height: 96px;
        font-size: 2.2rem;
    }

    .promo-banner-mini {
        padding: 15px;
    }

    .promo-content h4 {
        font-size: 1.2rem;
    }

    .promo-image-wrap {
        width: 80px;
        flex: 0 0 80px;
    }
}

/* Wide Admin Table Styles */
.admin-table-scroll {
    overflow-x: auto;
    background: var(--panel);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    margin-top: 1rem;
}

.admin-table-scroll table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    /* Smaller font to fit more */
    table-layout: auto;
}

.admin-table-scroll th {
    background: var(--panel-soft);
    color: var(--muted);
    font-weight: 600;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 2px solid var(--line);
    white-space: normal;
    /* Allow wrapping in headers */
    word-wrap: break-word;
}

.admin-table-scroll td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 110px;
}

.admin-table-scroll tr:hover {
    background: var(--panel-soft);
}

.status-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #e2e8f0;
    color: white;
    font-size: 12px;
}

.status-check.active {
    background: var(--green);
}

.admin-action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-action-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-soft);
}

.admin-action-btn.reject {
    color: #ef4444;
}

.admin-action-btn.reject:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

/* --- PREMIUM PAYMENT GATE --- */
.payment-gate-container {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 24px;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-gate-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.payment-gate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .payment-gate-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .payment-gate-container {
        padding: 2rem;
    }
}

.qr-glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.qr-glass-card img {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    padding: 10px;
    background: white;
    margin-bottom: 1rem;
}

.payment-info-side h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.payment-info-side p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.membership-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: grid;
    gap: 12px;
}

.membership-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.perk-icon {
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.premium-payment-form {
    background: white;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.premium-payment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.premium-payment-form input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    font-weight: 600;
    transition: border-color 0.2s;
}

.premium-payment-form input:focus {
    outline: none;
    border-color: var(--blue);
}

.payment-notice {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}