/* assets/css/style.css - Crisp Light Liquid-Glass Water-Drop UI (Zero Neon) */

:root {
    --bg-page: #f2f6fc;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-elevated: #ffffff;
    --bg-input: #f8fafc;
    --bg-sidebar: rgba(255, 255, 255, 0.92);
    --surface-soft: #f1f5f9;
    --border-color: rgba(15, 23, 42, 0.10);
    --border-glass: rgba(255, 255, 255, 0.85);

    --text-main: #0f172a;
    --text-body: #334155;
    --text-muted: #475569;
    --text-dim: #64748b;

    --accent-blue: #1d4ed8;
    --accent-sky: #0369a1;
    --accent-green: #047857;
    --accent-amber: #b45309;
    --accent-red: #b91c1c;

    --primary-top: #3b82f6;
    --primary-bottom: #1d4ed8;

    --success-top: #10b981;
    --success-bottom: #047857;

    --warning-top: #f59e0b;
    --warning-bottom: #d97706;

    --danger-top: #ef4444;
    --danger-bottom: #dc2626;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: clip;
}

body {
    background:
        radial-gradient(circle at 12% 8%, rgba(191, 219, 254, 0.65) 0%, transparent 45%),
        radial-gradient(circle at 88% 12%, rgba(167, 243, 208, 0.45) 0%, transparent 42%),
        linear-gradient(180deg, #f4f8ff 0%, #eaf0f8 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.55;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: #1e40af;
}

code {
    background: #e2e8f0;
    color: #0f172a;
    padding: 2px 7px;
    border-radius: 7px;
    font-family: var(--font-mono);
    font-size: 12px;
}

/* ==================== LAYOUT ==================== */
.app-container {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 64px);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.content-wrapper {
    padding: 22px 24px;
    flex: 1;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

/* ==================== COMPACT TOP NAVBAR (ONLY MENU + CREDITS + BALANCE) ==================== */
.top-nav {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px -6px rgba(15, 23, 42, 0.08);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 80;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(160deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.55), 0 4px 12px rgba(37, 99, 235, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.nav-right-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-balance-pill {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.96) 0%, rgba(209, 250, 229, 0.92) 100%);
    border: 1px solid rgba(16, 185, 129, 0.38);
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.9), 0 4px 12px -4px rgba(5, 150, 105, 0.18);
    color: #065f46;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: transform 0.15s ease;
}
.user-balance-pill:hover {
    transform: translateY(-1px);
    color: #064e3b;
}

.top-plus-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(180deg, #10b981, #059669);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.5);
}

.user-credit-pill {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(254, 243, 199, 0.92) 100%);
    border: 1px solid rgba(245, 158, 11, 0.42);
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.9), 0 4px 12px -4px rgba(217, 119, 6, 0.18);
    color: #92400e;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: transform 0.15s ease;
}
.user-credit-pill:hover {
    transform: translateY(-1px);
    color: #78350f;
}

/* Compact Top Menu Popover */
.top-menu-dropdown {
    position: absolute;
    top: 52px;
    left: 0;
    width: 272px;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 22px 48px -10px rgba(15, 23, 42, 0.28), inset 0 1px 1px #ffffff;
    display: none;
    flex-direction: column;
    gap: 4px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 200;
    animation: dropPopIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.top-menu-dropdown.open {
    display: flex;
}

.user-role-badge {
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-block;
}
.role-ceo, .role-admin { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.role-ctv { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.role-customer { background: #e2e8f0; color: #334155; border: 1px solid #cbd5e1; }

/* ==================== COLLAPSIBLE SIDEBAR ==================== */
.app-sidebar {
    width: 256px;
    background: var(--bg-sidebar);
    backdrop-filter: blur(18px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width 0.24s cubic-bezier(0.22, 1, 0.36, 1), transform 0.24s ease;
    position: relative;
    flex-shrink: 0;
    z-index: 50;
}

.app-sidebar.collapsed {
    width: 76px;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sidebar-brand-info {
    overflow: hidden;
    white-space: nowrap;
}

.app-sidebar.collapsed .sidebar-brand-info,
.app-sidebar.collapsed .sidebar-title,
.app-sidebar.collapsed .sidebar-nav li a span,
.app-sidebar.collapsed .sidebar-footer-text {
    display: none;
}

.app-sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 16px 10px;
}

.app-sidebar.collapsed .sidebar-nav li a {
    justify-content: center;
    padding: 12px;
}

.sidebar-collapse-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
    box-shadow: inset 0 1px 1px #ffffff, 0 2px 6px rgba(15, 23, 42, 0.1);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.sidebar-collapse-btn:hover {
    transform: scale(1.06);
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    padding: 14px 18px 6px;
}

.sidebar-nav {
    list-style: none;
    padding: 8px 10px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.16s ease;
    margin-bottom: 4px;
    white-space: nowrap;
}

.sidebar-nav li a:hover {
    background: #eff6ff;
    color: var(--accent-blue);
}

.sidebar-nav li a.active {
    background: linear-gradient(180deg, var(--primary-top) 0%, var(--primary-bottom) 100%);
    color: #ffffff;
    box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.45), 0 6px 14px -4px rgba(37, 99, 235, 0.35);
}

.sidebar-nav li a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* ==================== CARDS & CONTAINERS ==================== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 28px -10px rgba(15, 23, 42, 0.10);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==================== STAT BOXES ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: inset 0 1px 0 #ffffff, 0 8px 20px -8px rgba(15, 23, 42, 0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.75);
}

.stat-icon.blue { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.stat-icon.green { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.stat-icon.amber { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.stat-icon.red { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

.stat-info .stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.stat-info .stat-label {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* ==================== LIQUID-GLASS WATER-DROP BUTTONS ==================== */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, filter 0.18s ease;
    text-decoration: none;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow:
        inset 0 1.5px 1.5px rgba(255, 255, 255, 0.72),
        inset 0 -2.5px 5px rgba(15, 23, 42, 0.15),
        0 6px 16px -4px rgba(15, 23, 42, 0.18);
}

/* Water-drop glossy curved dome highlight */
.btn::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 9%;
    right: 9%;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 999px;
    pointer-events: none;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow:
        inset 0 1.5px 2px rgba(255, 255, 255, 0.8),
        inset 0 -2px 5px rgba(15, 23, 42, 0.14),
        0 10px 22px -6px rgba(15, 23, 42, 0.24);
}

.btn:active {
    transform: scale(0.96);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: rgba(147, 197, 253, 0.65);
}
.btn-primary:hover { color: #ffffff; }

.btn-success {
    background: linear-gradient(180deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    border-color: rgba(167, 243, 208, 0.65);
}
.btn-success:hover { color: #ffffff; }

.btn-warning {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border-color: rgba(253, 230, 138, 0.7);
}
.btn-warning:hover { color: #ffffff; }

.btn-danger {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border-color: rgba(254, 202, 202, 0.65);
}
.btn-danger:hover { color: #ffffff; }

.btn-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 241, 249, 0.94) 100%);
    color: #1e293b;
    border-color: rgba(15, 23, 42, 0.14);
}
.btn-secondary:hover { color: #0f172a; }

.btn-sm {
    padding: 6px 13px;
    font-size: 12px;
}

/* ==================== TABLES ==================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table.data-table th {
    background: #f8fafc;
    padding: 11px 11px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

table.data-table td {
    padding: 12px 11px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-body);
    font-size: 12.5px;
    vertical-align: middle;
}

table.data-table td strong,
.nowrap {
    white-space: nowrap;
}

table.data-table tbody tr:hover {
    background: #f8fafc;
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.badge-secondary { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-control {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: var(--radius-md);
    padding: 11px 15px;
    color: var(--text-main);
    font-size: 13.5px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

textarea.form-control {
    min-height: 85px;
    resize: vertical;
}

/* ==================== STOREFRONT SECTIONS & PRODUCT CARDS ==================== */
.category-section {
    margin-bottom: 34px;
    scroll-margin-top: 80px;
}

.section-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    box-shadow: inset 0 1px 0 #ffffff, 0 4px 14px -6px rgba(15, 23, 42, 0.06);
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.45);
}
.sec-locket { background: linear-gradient(160deg, #f59e0b 0%, #d97706 100%); color: #fff; }
.sec-spotify { background: linear-gradient(160deg, #10b981 0%, #059669 100%); color: #fff; }
.sec-other { background: linear-gradient(160deg, #3b82f6 0%, #1d4ed8 100%); color: #fff; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 8px 22px -10px rgba(15, 23, 42, 0.10);
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.16);
}

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

.product-title {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 14px;
    flex: 1;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.price-main {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-blue);
}

.price-sub {
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 700;
    margin-top: 2px;
}

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 540px;
    padding: 24px;
    box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.28);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: #e2e8f0;
}

/* ==================== CODE BLOCK ==================== */
pre.code-block {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: var(--radius-md);
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #e2e8f0;
    overflow-x: auto;
    position: relative;
    margin-bottom: 14px;
}

/* ==================== TELEGRAM-STYLE DRAGGABLE WATER-DROP MENU ==================== */
.water-drop-dock {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 900;
    touch-action: none;
    user-select: none;
}

.water-drop-bubble {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.92) 0%, rgba(147, 197, 253, 0.78) 28%, rgba(37, 99, 235, 0.92) 78%, rgba(29, 78, 216, 0.98) 100%);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        inset 0 2px 5px rgba(255, 255, 255, 0.92),
        inset 0 -4px 8px rgba(29, 78, 216, 0.45),
        0 12px 28px rgba(37, 99, 235, 0.35);
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    position: relative;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.25s ease;
}

.water-drop-bubble::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 12px;
    width: 22px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0) 100%);
    transform: rotate(-18deg);
    pointer-events: none;
}

.water-drop-bubble:hover {
    transform: scale(1.06);
}

.water-drop-bubble.dragging {
    cursor: grabbing;
    transform: scale(1.1);
    border-radius: 46% 54% 52% 48% / 48% 46% 54% 52%;
}

.water-drop-popover {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 256px;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 22px;
    padding: 12px;
    box-shadow: inset 0 1px 1px #ffffff, 0 20px 44px rgba(15, 23, 42, 0.26);
    display: none;
    flex-direction: column;
    gap: 4px;
    transform-origin: bottom right;
    animation: dropPopIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.water-drop-dock.snap-left .water-drop-popover {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

.water-drop-dock.snap-top .water-drop-popover {
    bottom: auto;
    top: 68px;
}

.water-drop-popover.open {
    display: flex;
}

@keyframes dropPopIn {
    from { opacity: 0; transform: scale(0.88) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.drop-menu-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px 6px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drop-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 13px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 13px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    cursor: pointer;
}

.drop-menu-item:hover {
    background: #eff6ff;
    border-color: #dbeafe;
    color: var(--accent-blue);
}

.drop-menu-item i {
    width: 18px;
    text-align: center;
    color: var(--accent-blue);
}

/* ==================== COMPACT ADMIN CONTACT BUTTON ==================== */
.admin-contact-fab {
    position: fixed;
    left: 22px;
    bottom: 24px;
    z-index: 880;
}

.admin-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.94) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: inset 0 1.5px 1px #ffffff, 0 8px 22px rgba(15, 23, 42, 0.14);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease;
}

.admin-contact-pill:hover {
    transform: translateY(-2px);
}

.admin-contact-pill .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.admin-contact-card {
    position: absolute;
    bottom: 52px;
    left: 0;
    width: 248px;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 20px;
    padding: 14px;
    box-shadow: inset 0 1px 1px #ffffff, 0 16px 36px rgba(15, 23, 42, 0.25);
    display: none;
    flex-direction: column;
    gap: 6px;
    animation: dropPopIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-contact-card.open {
    display: flex;
}

/* ==================== MOBILE SIDEBAR & BACKDROP ==================== */
.mobile-sidebar-trigger {
    display: none;
}

.sidebar-mobile-close {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #f1f5f9;
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 140;
}
.sidebar-backdrop.active {
    display: block;
}

.sidebar-scroll-area {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* ==================== HOMEPAGE BANNER SLIDER ==================== */
.banner-slider {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 14px 32px -12px rgba(15, 23, 42, 0.18);
    margin-bottom: 18px;
    background: #ffffff;
}

.banner-slide {
    display: none;
    width: 100%;
}
.banner-slide.active {
    display: block;
    animation: fadeBanner 0.35s ease;
}

@keyframes fadeBanner {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.banner-slide img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.banner-img-mobile {
    display: none !important;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.65);
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.15s ease;
}
.banner-arrow:hover { background: rgba(15, 23, 42, 0.7); }
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.banner-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.banner-dot.active {
    width: 24px;
    border-radius: 999px;
    background: #ffffff;
}

/* ==================== FLOATING WELCOME POPUP ==================== */
.welcome-popup-wrap {
    position: fixed;
    z-index: 950;
    padding: 16px;
    pointer-events: none;
}
.welcome-popup-wrap.pos-center {
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
.welcome-popup-wrap.pos-top-center {
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 440px;
    justify-content: center;
}
.welcome-popup-wrap.pos-bottom-right {
    bottom: 88px;
    right: 16px;
    max-width: 390px;
    width: calc(100% - 32px);
}
.welcome-popup-wrap.pos-bottom-left {
    bottom: 76px;
    left: 16px;
    max-width: 390px;
    width: calc(100% - 32px);
}

.welcome-popup-card {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 22px;
    padding: 20px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 52px -12px rgba(15, 23, 42, 0.30);
    pointer-events: auto;
    animation: dropPopIn 0.22s ease;
}

.welcome-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.welcome-popup-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
}

/* ==================== GAME ACCOUNT & RICH EDITOR ==================== */
.game-card-thumb {
    width: 100%;
    height: 168px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.game-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.game-spec-pill {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-bottom: none;
    border-radius: 14px 14px 0 0;
}

.rich-editor-area {
    min-height: 120px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 0 0 14px 14px;
    padding: 12px 14px;
    color: var(--text-main);
    font-size: 13.5px;
    outline: none;
}

/* ==================== RESPONSIVE (1920 / 1366 / 768 / 430 / 375 / 320) ==================== */
@media (max-width: 900px) {
    .mobile-sidebar-trigger {
        display: inline-flex;
    }
    .sidebar-mobile-close {
        display: inline-flex;
    }
    .app-sidebar {
        position: fixed;
        top: 58px;
        bottom: 0;
        left: 0;
        max-height: calc(100vh - 58px);
        transform: translateX(-105%);
        width: 260px !important;
        box-shadow: 16px 0 36px rgba(15, 23, 42, 0.22);
        z-index: 160;
    }
    .app-sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar-collapse-btn {
        display: none;
    }
    .content-wrapper {
        padding: 16px 14px;
    }
    .top-nav {
        padding: 10px 12px;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
    }
    .nav-left {
        min-width: 0;
        gap: 8px;
    }
    .nav-right-stats {
        flex-wrap: nowrap;
        flex-shrink: 0;
        margin-left: auto;
        gap: 6px;
    }
    .admin-contact-fab {
        left: 14px;
        bottom: 16px;
    }
    .admin-contact-pill span.contact-label-text {
        display: none;
    }
    .water-drop-dock {
        right: 14px;
        bottom: 16px;
    }
    .banner-img-desktop {
        display: none !important;
    }
    .banner-img-mobile {
        display: block !important;
    }
    .banner-slide img {
        max-height: 220px;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        font-size: 15px;
        gap: 6px;
        min-width: 0;
    }
    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        flex-shrink: 0;
    }
    .brand-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nav-auth-btn {
        padding: 6px 9px;
        font-size: 11.5px;
        gap: 4px;
    }
    .nav-auth-btn i {
        display: none;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .top-menu-dropdown {
        width: calc(100vw - 28px);
        max-width: 320px;
    }
    .btn-add-prod-mobile {
        padding: 7px 12px;
        font-size: 12.5px;
    }
    .btn-add-prod-mobile .prod-add-full {
        display: none;
    }
    .btn-add-prod-mobile .prod-add-short {
        display: inline;
    }
}

.prod-add-short {
    display: none;
}
