/* =========================================================
   Vin Socialhub — Shared Design System
   Consumed by every page after style.css
   ========================================================= */

:root {
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --grad-soft:    linear-gradient(135deg, rgba(99,102,241,0.10), rgba(168,85,247,0.10));
    --grad-dark:    linear-gradient(135deg, #1e1b4b 0%, #4c1d95 55%, #7e22ce 100%);

    /* Radii */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 2px 8px -2px rgba(15,23,42,0.06);
    --shadow-md: 0 4px 12px -2px rgba(15,23,42,0.08), 0 12px 32px -8px rgba(15,23,42,0.10);
    --shadow-lg: 0 20px 40px -16px rgba(99,102,241,0.35), 0 8px 20px -8px rgba(15,23,42,0.08);
    --shadow-xl: 0 40px 80px -30px rgba(99,102,241,0.40), 0 20px 40px -20px rgba(15,23,42,0.15);

    /* Easing */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============ Page Hero — inner pages ============ */
.page-hero {
    position: relative;
    padding: 4rem 1.5rem 3.5rem;
    background:
        radial-gradient(ellipse 60% 60% at 20% 0%, rgba(99,102,241,0.12), transparent 60%),
        radial-gradient(ellipse 55% 50% at 85% 100%, rgba(168,85,247,0.10), transparent 55%),
        linear-gradient(180deg, var(--surface), var(--bg));
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.page-hero .container { max-width: 1240px; position: relative; z-index: 1; }
.page-hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: var(--text);
}
.page-hero p {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 640px;
}
.page-hero .kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

/* ============ Section base ============ */
.section       { padding: 5rem 1.5rem; }
.section-tight { padding: 3.5rem 1.5rem; }
.section-inner { max-width: 1240px; margin: 0 auto; }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.section-head .kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.section-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 0.85rem;
    color: var(--text);
}
.section-head p {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============ Badges / Pills ============ */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 999px;
    text-transform: uppercase;
}
.badge-pill.success { background: rgba(16,185,129,0.12); color: #059669; }
.badge-pill.warning { background: rgba(245,158,11,0.12); color: #b45309; }
.badge-pill.danger  { background: rgba(239,68,68,0.12);  color: #dc2626; }
.badge-pill.info    { background: rgba(99,102,241,0.12); color: #4f46e5; }
.badge-pill.neutral { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

/* ============ Premium card ============ */
.premium-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: transform 0.35s var(--ease-out),
                box-shadow 0.35s,
                border-color 0.35s;
}
.premium-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,0.35);
    box-shadow: var(--shadow-lg);
}

/* ============ Form components ============ */
.input-field {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}
.field-label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

/* ============ Buttons (refined) ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s var(--ease-out);
    white-space: nowrap;
}
.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(99,102,241,0.5);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(99,102,241,0.65);
}
.btn-outline {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: rgba(99,102,241,0.4);
    color: var(--primary);
}
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 0.9rem;
}
.btn-ghost:hover { color: var(--primary); background: var(--bg); }

.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; border-radius: var(--r-lg); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ============ Data tables (unified) ============ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.85rem 0.9rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 0.9rem 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }

/* ============ Empty states ============ */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--r-xl);
    max-width: 640px;
    margin: 2rem auto;
}
.empty-state .empty-icon {
    width: 68px; height: 68px;
    border-radius: 22px;
    background: var(--grad-soft);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary);
}
.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}
.empty-state p { color: var(--text-muted); margin: 0 0 1.5rem; }

/* ============ Alerts ============ */
.alert {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    border-radius: var(--r-md);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
}
.alert-success { background: rgba(16,185,129,0.08); color: #065f46; border-color: rgba(16,185,129,0.25); }
.alert-error   { background: rgba(239,68,68,0.08);  color: #991b1b; border-color: rgba(239,68,68,0.25); }
.alert-warning { background: rgba(245,158,11,0.08); color: #78350f; border-color: rgba(245,158,11,0.25); }
.alert-info    { background: rgba(99,102,241,0.08); color: #3730a3; border-color: rgba(99,102,241,0.25); }

/* ============ Breadcrumbs ============ */
.breadcrumbs {
    padding: 1.25rem 0;
    font-size: 0.85rem;
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.35rem;
    color: var(--text-muted);
    opacity: 0.6;
}
.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--text); font-weight: 600; }

/* ============ Section head with side action ============ */
.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.section-head-row h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
}
.section-head-row .link-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
}
.section-head-row .link-more:hover { text-decoration: underline; }

/* ============ Responsive tweaks ============ */
@media (max-width: 640px) {
    .section       { padding: 3.5rem 1.25rem; }
    .section-tight { padding: 2.5rem 1.25rem; }
    .page-hero     { padding: 3rem 1.25rem 2.5rem; }
}

/* =========================================================
   Header user dropdown (was in old account.css — restored here)
   ========================================================= */

.header-user {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    font-family: inherit;
    transition: all 0.2s;
}
.header-user-btn:hover {
    border-color: rgba(99,102,241,0.4);
    background: var(--surface);
}
.header-user-btn .user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 40px -12px rgba(15,23,42,0.15), 0 8px 20px -8px rgba(15,23,42,0.08);
    padding: 0.5rem;
    display: none;
    z-index: 1000;
    animation: dropdownFade 0.18s ease;
}
.header-user-menu.open { display: block; }

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

.header-user-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.header-user-menu a:hover {
    background: var(--bg);
    color: var(--primary);
}
.header-user-menu a[href*="logout"] {
    color: #dc2626;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    border-radius: 0 0 8px 8px;
}
.header-user-menu a[href*="logout"]:hover {
    background: rgba(239,68,68,0.08);
    color: #b91c1c;
}

/* =========================================================
   Fix for sticky positioning — use overflow-x: clip on body
   instead of hidden. Hidden breaks position:sticky in children.
   ========================================================= */

html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;  /* fallback */
    overflow-x: clip;    /* modern override — sticky works */
}

/* Sticky header — absolute top priority */
.site-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 900;
}

/* Sticky account sidebar */
.account-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

/* Sticky shop sidebar */
.shop-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

/* Header heights matched to bigger logo */
@media (max-width: 1024px) {
    .header-inner { height: 74px; }
}
@media (max-width: 900px) {
    .header-inner { height: 78px; }
}
@media (max-width: 640px) {
    .header-inner { height: 82px; }
}
@media (max-width: 400px) {
    .header-inner { height: 78px; }
}
/* =========================================================
   HEADER LOGO — Dark Glow (Light Mode) / Normal (Dark Mode)
   ========================================================= */

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    /* Plaque removed — now fully transparent */
    background: transparent;
    padding: 0;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: translateY(-1px) scale(1.02);
}

/* The image inside the logo */
.logo-img, 
.logo img {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.25s ease;
    
    /* ✨ The Dark Glow Effect for Light Mode ✨ */
    /* Layering drop-shadows creates a deep, smooth halo */
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.4)) 
            drop-shadow(0 0 10px rgba(15, 23, 42, 0.2));
}

.logo:hover .logo-img,
.logo:hover img {
    /* Intensify glow slightly on hover */
    filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.5))
            drop-shadow(0 0 15px rgba(15, 23, 42, 0.3));
}

/* =========================================================
   DARK MODE — Remove Glow, Make Normal
   ========================================================= */
[data-theme="dark"] .logo {
    background: transparent;
}

[data-theme="dark"] .logo-img,
[data-theme="dark"] .logo img {
    /* Remove the glow in dark mode so it looks completely clean */
    filter: none;
}

[data-theme="dark"] .logo:hover .logo-img,
[data-theme="dark"] .logo:hover img {
    /* Very subtle white glow on hover in dark mode */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15)); 
}

/* =========================================================
   RESPONSIVE — Fixed sizes so the header doesn't break
   ========================================================= */

@media (max-width: 640px) {
    .logo-img, .logo img { height: 34px; } 
}

@media (max-width: 400px) {
    .logo-img, .logo img { height: 30px; }
}
/* ============================================================
   Footer / contact — WhatsApp button
   ============================================================ */
.footer-wa-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    max-width: 420px;
}
.footer-wa-btn:hover {
    background: #1ebe5b;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
    color: #fff;
}
.footer-wa-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
}

.footer-wa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.footer-wa-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.footer-wa-label {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.footer-wa-sub {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.25;
    color: #fff;
}

.footer-wa-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}
.footer-wa-btn:hover .footer-wa-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* ============================================================
   Auth pages — hide branded panel on mobile
   ============================================================ */

/* Default (desktop): keep it visible */
.auth-brand {
    display: flex;   /* keep whatever your current display value is */
}

/* Mobile + tablet: hide it entirely */
@media (max-width: 991px) {
    .auth-brand {
        display: none !important;
    }
}
/* ============================================================
   Footer — Telegram support button (icon + label side by side)
   ============================================================ */
.footer-tg-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    padding: 8px 14px;
    background: #229ed9;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(34, 158, 217, 0.22);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    line-height: 1;
    font-family: inherit;
    width: fit-content;
}
.footer-tg-btn:hover {
    background: #1e8fc4;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(34, 158, 217, 0.32);
    color: #fff;
}
.footer-tg-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(34, 158, 217, 0.22);
}

/* Icon wrapper — inline-block so it sits beside the label, not above */
.footer-tg-icon {
    display: inline-block !important;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    line-height: 0;
    vertical-align: middle;
}
.footer-tg-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* Label — inline-block, sits on the same row */
.footer-tg-label {
    display: inline-block !important;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}
@media (max-width: 900px) {
    /* Header shell */
    .site-header .header-inner {
        padding: 0 0.9rem;
        height: 56px;
        gap: 0.5rem;
    }

    /* Hide desktop-only elements */
    .site-header .main-nav,
    .site-header .header-search,
    .site-header .user-name,
    .site-header .header-user-btn .user-name {
        display: none !important;
    }

    /* Logo — allow it to shrink but not vanish */
    .site-header .logo img {
        max-height: 28px;
        width: auto;
    }

    /* Hamburger — visible only on mobile */
    .site-header .hamburger {
        display: flex;
        flex-shrink: 0;
    }

    /* Mobile search button — visible only on mobile */
    .site-header .mobile-search-btn {
        display: flex;
        flex-shrink: 0;
    }

    /* Actions row */
    .site-header .header-actions {
        gap: 0.35rem;
        margin-left: auto;    /* push to the right */
        flex-shrink: 0;
    }

    /* Shrink action buttons */
    .site-header .header-actions .btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    /* Hide the "Sign Up Free" long label on narrow phones */
    .site-header .header-actions .btn-primary span:not(.label-short) {
        display: none;
    }
}

@media (max-width: 520px) {
    /* On very small phones, hide Sign Up entirely — the drawer has it */
    .site-header .header-actions .btn-primary {
        display: none;
    }

    /* Keep only Login next to the icon buttons */
    .site-header .header-actions .btn-outline {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 380px) {
    .site-header .header-actions .btn-outline {
        display: none;
    }
}