/* ==========================================
   Viewsob Frontend - Consolidated Styles
   ========================================== */

:root{
    --primary:#2f54eb;
    --secondary:#3b82f6;
    --bg:#08111f;
    --card:#0f1d33;
    --text:#ffffff;
    --text2:#b5bfd3;
    --border:rgba(255,255,255,.08);
    --radius:14px;
    --transition:.30s ease;
}

*{ margin:0; padding:0; box-sizing:border-box; }
body{ background:var(--bg); font-family:Inter,sans-serif; color:var(--text); }
a{ text-decoration:none; }
button{ border:none; outline:none; cursor:pointer; font-family:inherit; }
img{ max-width:100%; display:block; }

/* ---------- Navbar ---------- */

.vs-header{
    position:sticky; top:0; left:0; width:100%; z-index:9999;
    background:rgba(8,17,31,.92); backdrop-filter:blur(15px); border-bottom:1px solid var(--border);
}
.vs-container{ width:min(1400px,92%); margin:auto; height:82px; display:flex; align-items:center; justify-content:space-between; }
.vs-logo img{ height:44px; }
.vs-nav ul{ display:flex; align-items:center; gap:45px; list-style:none; }
.vs-nav a{ color:var(--text2); font-size:15px; font-weight:600; transition:var(--transition); }
.vs-nav a:hover, .vs-nav a.active{ color:#fff; }
.vs-right{ display:flex; align-items:center; gap:15px; }
.vs-btn{ height:46px; padding:0 26px; border-radius:999px; background:linear-gradient(135deg,var(--primary),var(--secondary)); color:#fff; font-weight:700; transition:var(--transition); }
.vs-btn:hover{ transform:translateY(-2px); box-shadow:0 10px 25px rgba(47,84,235,.45); }
.vs-btn-outline{ height:46px; padding:0 24px; border-radius:999px; color:#fff; background:transparent; border:1px solid var(--border); transition:var(--transition); }
.vs-btn-outline:hover{ background:#15233b; }
.vs-mobile-toggle{ display:none; width:46px; height:46px; border-radius:12px; background:#15233b; flex-direction:column; justify-content:center; align-items:center; gap:5px; }
.vs-mobile-toggle span{ width:22px; height:2px; background:#fff; border-radius:20px; }
.vs-mobile-menu{ display:none; }

.vs-user-area{ display:flex; align-items:center; gap:18px; }
.vs-notification-btn{ position:relative; width:48px; height:48px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:50%; background:#15233b; color:#fff; transition:var(--transition); }
.vs-notification-btn:hover{ background:#1d3153; transform:translateY(-2px); }
.vs-notification-count{ position:absolute; top:-5px; right:-5px; min-width:20px; height:20px; padding:0 5px; display:flex; align-items:center; justify-content:center; background:#ff3b30; color:#fff; border-radius:20px; font-size:11px; font-weight:700; }
.vs-profile-button{ width:48px; height:48px; border-radius:50%; overflow:hidden; border:2px solid var(--border); background:#15233b; transition:var(--transition); position:relative; }
.vs-profile-button:hover{ border-color:var(--primary); }
.vs-profile-button img{ width:100%; height:100%; object-fit:cover; }

.vs-profile-dropdown{
    position:absolute; top:68px; right:0; width:330px; background:var(--card); border:1px solid var(--border);
    border-radius:18px; overflow:hidden; box-shadow:0 18px 45px rgba(0,0,0,.35);
    opacity:0; visibility:hidden; transform:translateY(15px); transition:.30s ease; z-index:9999;
}
.vs-profile-dropdown.active{ opacity:1; visibility:visible; transform:translateY(0); }
.vs-profile-balance{ padding:22px; border-bottom:1px solid var(--border); }
.vs-balance-label{ display:block; color:#aab7d0; font-size:13px; margin-bottom:8px; }
.vs-balance-points{ color:#fff; font-size:28px; font-weight:700; }
.vs-dropdown-section{ padding:18px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.vs-dropdown-title{ display:block; color:#7f90b1; font-size:12px; font-weight:700; letter-spacing:1px; padding:0 22px 12px; }
.vs-dropdown-section a{ display:flex; align-items:center; gap:12px; padding:13px 22px; color:#fff; font-size:15px; transition:.25s; }
.vs-dropdown-section a:hover{ background:#182a47; }
.vs-disabled-link{ opacity:.6; pointer-events:none; }
.vs-disabled-link small{ margin-left:auto; font-size:11px; color:#ffcb5a; }
.vs-dropdown-footer{ padding:18px; }
.vs-logout-btn{ width:100%; height:48px; border-radius:12px; background:#e53935; color:#fff; font-size:15px; font-weight:700; display:flex; align-items:center; justify-content:center; gap:10px; transition:.25s; }
.vs-logout-btn:hover{ background:#c62828; }

/* ---------- Popups (Login/Signup) ---------- */

.vs-popup-overlay{
    position:fixed; inset:0; display:flex; align-items:flex-start; justify-content:center;
    background:rgba(0,0,0,.75); backdrop-filter:blur(6px); opacity:0; visibility:hidden;
    transition:.30s; z-index:99999; overflow-y:auto; padding:40px 16px;
}
.vs-popup-overlay.active{ opacity:1; visibility:visible; }
.vs-popup{ width:100%; max-width:460px; max-height:none; background:var(--card); border:1px solid var(--border); border-radius:20px; padding:35px; position:relative; transform:translateY(20px); transition:.30s; margin:auto; }
.vs-popup-overlay.active .vs-popup{ transform:translateY(0); }
.vs-popup-close{ position:absolute; top:18px; right:18px; width:40px; height:40px; border-radius:50%; background:#182a47; color:#fff; font-size:24px; }
.vs-popup-header{ text-align:center; margin-bottom:28px; }
.vs-popup-header img{ height:46px; margin:0 auto 18px; }
.vs-popup-header h2{ color:#fff; font-size:28px; margin-bottom:8px; }
.vs-popup-header p{ color:#9eb0cf; font-size:15px; }
.vs-form-group{ margin-bottom:18px; }
.vs-form-group label{ display:block; color:#fff; margin-bottom:8px; font-size:14px; }
.vs-form-group input{ width:100%; height:50px; padding:0 16px; border:1px solid var(--border); background:#15233b; color:#fff; border-radius:12px; outline:none; }
.vs-form-group input:focus{ border-color:var(--primary); }
.vs-captcha{ display:flex; gap:12px; align-items:center; }
.vs-captcha span{ min-width:110px; color:#fff; font-weight:700; }
.vs-submit-btn{ width:100%; height:52px; border-radius:12px; background:linear-gradient(135deg,var(--primary),var(--secondary)); color:#fff; font-size:16px; font-weight:700; transition:.25s; }
.vs-submit-btn:hover{ transform:translateY(-2px); }
.vs-switch-text{ margin-top:18px; text-align:center; color:#9eb0cf; font-size:14px; }
.vs-switch-text a{ color:#4d8dff; font-weight:700; }
.vs-switch-text a:hover{ text-decoration:underline; }

/* ---------- Hero ---------- */

.vs-hero{
    padding:90px 0;
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(47,84,235,.35) 0%, transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(59,130,246,.30) 0%, transparent 40%),
        radial-gradient(circle at 75% 85%, rgba(99,102,241,.25) 0%, transparent 50%),
        linear-gradient(180deg,#08111f 0%,#0d1b31 100%);
}
.vs-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background-image:
        repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0px, rgba(255,255,255,.03) 1px, transparent 1px, transparent 60px);
    pointer-events:none;
}
.vs-hero::after{
    content:"";
    position:absolute;
    top:-120px;
    right:-120px;
    width:420px;
    height:420px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(77,141,255,.35) 0%, transparent 70%);
    filter:blur(10px);
    pointer-events:none;
}
.vs-hero .vs-container{ display:flex; align-items:center; justify-content:space-between; gap:60px; height:auto; position:relative; z-index:1; }
.vs-hero-content{ flex:1; max-width:620px; }
.vs-hero-badge{ display:inline-flex; padding:10px 18px; border-radius:999px; background:rgba(47,84,235,.15); color:#76a8ff; font-size:14px; font-weight:600; margin-bottom:24px; }
.vs-hero-content h1{ color:#fff; font-size:56px; line-height:1.2; font-weight:800; margin-bottom:20px; }
.vs-hero-content p{ color:#aeb9cf; font-size:18px; line-height:1.8; margin-bottom:35px; }
.vs-hero-stats{ display:flex; gap:22px; margin-bottom:40px; flex-wrap:wrap; }
.vs-stat-card{ min-width:220px; background:#101d33; border:1px solid var(--border); border-radius:18px; padding:22px; }
.vs-stat-card h3{ color:#fff; font-size:34px; margin-bottom:8px; }
.vs-stat-card span{ color:#9eb0cf; font-size:15px; }
.vs-hero-button{ height:56px; padding:0 34px; border-radius:14px; background:linear-gradient(135deg,var(--primary),var(--secondary)); color:#fff; font-size:16px; font-weight:700; transition:.3s; }
.vs-hero-button:hover{ transform:translateY(-3px); box-shadow:0 12px 30px rgba(47,84,235,.35); }
.vs-hero-image{ flex:1; text-align:right; }
.vs-hero-image img{ width:100%; max-width:560px; margin-left:auto; }

/* ---------- Section headers / grids / cards ---------- */

.vs-picsob-section, .vs-latest-section, .vs-most-viewed-section{ padding:90px 0; }
.vs-section-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:35px; }
.vs-section-badge{ display:inline-block; color:#4d8dff; font-size:14px; font-weight:700; margin-bottom:10px; }
.vs-section-header h2{ color:#fff; font-size:34px; font-weight:800; }
.vs-view-more{ height:48px; padding:0 24px; border-radius:12px; background:var(--primary); color:#fff; font-weight:700; transition:.25s; display:inline-flex; align-items:center; }
.vs-view-more:hover{ transform:translateY(-2px); }

.vs-picsob-card, .vs-video-card, .vs-featured-card{
    display:block; background:#101d33; border:1px solid var(--border); border-radius:18px; overflow:hidden; transition:.30s;
}
.vs-picsob-card:hover, .vs-video-card:hover, .vs-featured-card:hover{ transform:translateY(-6px); border-color:var(--primary); }
.vs-picsob-image{ aspect-ratio:1/1; overflow:hidden; }
.vs-picsob-image img{ width:100%; height:100%; object-fit:cover; transition:.4s; }
.vs-picsob-card:hover .vs-picsob-image img{ transform:scale(1.08); }
.vs-picsob-content{ padding:18px; }
.vs-picsob-content h3{ color:#fff; font-size:16px; font-weight:700; line-height:1.5; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }

.vs-video-thumbnail, .vs-featured-thumbnail{ position:relative; aspect-ratio:16/9; overflow:hidden; background:#0b1424; }
.vs-video-thumbnail img, .vs-featured-thumbnail img{ width:100%; height:100%; object-fit:cover; transition:.35s; }
.vs-video-card:hover .vs-video-thumbnail img, .vs-featured-card:hover .vs-featured-thumbnail img{ transform:scale(1.08); }
.vs-video-duration, .vs-featured-duration{ position:absolute; right:12px; bottom:12px; padding:5px 10px; background:rgba(0,0,0,.75); color:#fff; border-radius:8px; font-size:12px; font-weight:600; }
.vs-video-content, .vs-featured-body{ padding:18px; }
.vs-video-content h3, .vs-featured-body h3{ color:#fff; font-size:16px; line-height:1.5; font-weight:700; margin-bottom:16px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.vs-video-meta, .vs-featured-meta{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.vs-video-views, .vs-featured-views{ color:#9eb0cf; font-size:14px; }
.vs-video-points, .vs-featured-points{ color:#4d8dff; font-size:14px; font-weight:700; }

.swiper-wrapper{ display:flex; gap:20px; }
.swiper .swiper-wrapper > *{ flex:0 0 auto; width:270px; }

/* ---------- Footer ---------- */

.vs-footer{ margin-top:90px; padding:60px 0 30px; background:var(--bg); border-top:1px solid var(--border); }
.vs-footer-top{ display:flex; align-items:center; justify-content:space-between; gap:30px; padding-bottom:35px; border-bottom:1px solid var(--border); }
.vs-footer-logo img{ height:44px; }
.vs-footer-menu{ display:flex; align-items:center; gap:30px; flex-wrap:wrap; }
.vs-footer-menu a{ color:#aeb9cf; font-size:15px; transition:.25s; }
.vs-footer-menu a:hover{ color:#fff; }
.vs-footer-bottom{ padding-top:30px; text-align:center; }
.vs-footer-bottom p{ color:#8e9ab5; font-size:14px; }

/* ---------- Breadcrumb / Sidebar / Featured page ---------- */

.vs-breadcrumb{ display:block; color:#7f90b1; font-size:14px; margin:20px 0 10px; }
.vs-content-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; }
.vs-content-header h2{ color:#fff; font-size:34px; font-weight:800; }

.vs-featured-layout{ display:flex; gap:30px; align-items:flex-start; width:min(1400px,92%); margin:20px auto 60px; }
.vs-sidebar{ width:300px; flex-shrink:0; display:flex; flex-direction:column; gap:24px; }
.vs-sidebar-card{ background:#101d33; border:1px solid var(--border); border-radius:18px; padding:24px; }
.vs-sidebar-label{ display:block; color:#9eb0cf; font-size:14px; margin-bottom:10px; }
.vs-sidebar-card h2{ color:#fff; font-size:32px; font-weight:800; }
.vs-sidebar-menu{ background:#101d33; border:1px solid var(--border); border-radius:18px; padding:22px 0; }
.vs-sidebar-title{ display:block; color:#6f86b3; font-size:12px; font-weight:700; letter-spacing:1px; padding:0 22px 14px; }
.vs-sidebar-menu a, .vs-category-link{ display:flex; align-items:center; padding:14px 22px; color:#d7deef; font-size:15px; transition:.25s; }
.vs-sidebar-menu a:hover, .vs-category-link:hover{ background:#182a47; color:#fff; }
.vs-sidebar-menu a.active, .vs-category-link.active{ background:var(--primary); color:#fff; font-weight:700; }
.vs-featured-content{ flex:1; min-width:0; }
.vs-video-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.vs-grid-footer{ margin-top:40px; text-align:center; }
.vs-load-more{ height:52px; padding:0 34px; border-radius:14px; background:var(--primary); color:#fff; font-size:15px; font-weight:700; }

/* ---------- Video Post (Watch) page ---------- */

.vs-watch-page{ padding:40px 0 80px; }
.vs-watch-layout{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:32px; align-items:start; width:min(1400px,92%); margin:auto; }
.vs-watch-main{ min-width:0; }
.vs-player-box{ background:#101d33; border:1px solid var(--border); border-radius:18px; overflow:hidden; }
#videoPlayerEmbed{ aspect-ratio:16/9; background:#000; }
.vs-balance-bar{ margin-top:24px; padding:22px 24px; display:flex; align-items:center; justify-content:space-between; background:#101d33; border:1px solid var(--border); border-radius:18px; }
.vs-balance-left h2{ color:#fff; font-size:30px; font-weight:800; margin-bottom:6px; }
.vs-balance-left span{ color:#9eb0cf; font-size:14px; }
.vs-redeem-btn{ height:50px; padding:0 28px; border-radius:12px; background:var(--primary); color:#fff; font-size:15px; font-weight:700; transition:.3s; }
.vs-redeem-btn:disabled{ opacity:.45; cursor:not-allowed; }
.vs-video-info{ margin-top:24px; padding:24px; background:#101d33; border:1px solid var(--border); border-radius:18px; }
.vs-video-info h1{ color:#fff; font-size:30px; margin-bottom:18px; }
.vs-video-meta{ display:flex; gap:20px; color:#9eb0cf; font-size:14px; margin-bottom:20px; }
.vs-report-btn{ margin-bottom:20px; background:none; color:#ff6b6b; padding:0; }
.vs-video-description{ color:#d4dceb; line-height:1.8; }
.vs-watch-sidebar{ position:sticky; top:90px; padding:22px; background:#101d33; border:1px solid var(--border); border-radius:18px; }
.vs-watch-sidebar h3{ color:#fff; margin-bottom:20px; }
.vs-popular-item{ display:flex; gap:12px; margin-bottom:16px; }
.vs-popular-item img{ width:100px; height:60px; object-fit:cover; border-radius:8px; }
.vs-popular-item h4{ color:#fff; font-size:14px; margin-bottom:4px; }
.vs-popular-item span{ color:#9eb0cf; font-size:12px; }

.vs-mobile-latest, .vs-mobile-popular{ display:none; margin-top:30px; width:min(1400px,92%); margin-left:auto; margin-right:auto; }
.vs-mobile-latest h3, .vs-mobile-popular h3{ color:#fff; font-size:24px; font-weight:700; margin-bottom:20px; }

/* ---------- Comments ---------- */

.vs-comments-section{ margin-top:32px; padding:24px; background:#101d33; border:1px solid var(--border); border-radius:18px; width:min(1400px,92%); margin-left:auto; margin-right:auto; }
.vs-comments-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.vs-comments-header h3{ color:#fff; font-size:22px; font-weight:700; }
#commentsCount{ color:#9eb0cf; font-size:14px; }
.vs-comment-form textarea{ width:100%; min-height:120px; padding:16px; border:1px solid var(--border); border-radius:12px; background:#08111f; color:#fff; resize:vertical; outline:none; }
.vs-comment-submit{ margin-top:16px; height:48px; padding:0 28px; border-radius:12px; background:var(--primary); color:#fff; font-size:15px; font-weight:700; }
.vs-comments-list{ margin-top:30px; display:flex; flex-direction:column; gap:20px; }
.vs-comment-item{ display:flex; gap:16px; }
.vs-comment-avatar{ width:46px; height:46px; border-radius:50%; background:var(--primary); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; flex-shrink:0; }
.vs-comment-user{ color:#fff; }
.vs-comment-time{ color:#8ea0bd; font-size:13px; }
.vs-comment-text{ color:#d5deed; line-height:1.7; }
.vs-no-comments{ text-align:center; color:#8ea0bd; padding:30px 0; }

/* ---------- Referral page ---------- */

.vs-referral-page{ padding:40px 0 80px; }
.vs-referral-hero{ display:grid; grid-template-columns:2fr 1fr; gap:30px; margin-top:30px; }
.vs-referral-left, .vs-referral-right{ background:#101d33; border:1px solid var(--border); border-radius:18px; padding:30px; }
.vs-referral-left h1{ color:#fff; font-size:38px; font-weight:800; margin:18px 0; }
.vs-referral-left p{ color:#9eb0cf; line-height:1.8; }
.vs-tier-list{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:30px 0; }
.vs-tier-card{ background:#08111f; border:1px solid var(--border); border-radius:14px; padding:20px; }
.vs-tier-card strong{ display:block; color:#fff; margin-bottom:10px; }
.vs-tier-card span{ color:#4d8dff; font-size:26px; font-weight:800; }
.vs-referral-link-box{ display:flex; gap:14px; margin-bottom:20px; }
.vs-referral-link-box input{ flex:1; height:52px; padding:0 16px; background:#08111f; border:1px solid var(--border); border-radius:12px; color:#fff; }
.vs-referral-link-box button{ width:120px; border-radius:12px; background:var(--primary); color:#fff; font-weight:700; }
.vs-referral-users{ color:#9eb0cf; }
.vs-referral-balance-card{ text-align:center; }
.vs-referral-balance-card span{ color:#9eb0cf; }
.vs-referral-balance-card h2{ color:#fff; font-size:40px; margin:20px 0; }
.vs-primary-btn{ width:100%; height:52px; border-radius:12px; background:var(--primary); color:#fff; font-weight:700; margin-bottom:20px; }
.vs-referral-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:30px; margin-top:35px; }
.vs-referral-table-card{ background:#101d33; border:1px solid var(--border); border-radius:18px; padding:28px; }
.vs-referral-table-card h3{ color:#fff; margin-bottom:20px; }

/* ---------- Account page ---------- */

.vs-account-page{ padding:40px 0 80px; }
.vs-account-layout{ display:grid; grid-template-columns:260px 1fr; gap:30px; }
.vs-account-sidebar{ background:#101d33; border:1px solid var(--border); border-radius:18px; padding:24px; height:fit-content; }
.vs-account-sidebar a{ display:block; padding:12px 16px; margin-bottom:8px; border-radius:10px; color:#d5deed; transition:.25s; }
.vs-account-sidebar a:hover, .vs-account-sidebar a.active{ background:var(--primary); color:#fff; }
.vs-account-card{ background:#101d33; border:1px solid var(--border); border-radius:18px; padding:30px; }
.vs-profile-header{ display:flex; align-items:center; gap:20px; margin-bottom:35px; }
.vs-profile-avatar{ width:90px; height:90px; border-radius:50%; overflow:hidden; background:#08111f; }
.vs-profile-avatar img{ width:100%; height:100%; object-fit:cover; }
#accountUsername{ color:#fff; font-size:28px; margin-bottom:6px; }
#accountEmail{ color:#9eb0cf; }
.vs-account-form{ margin-top:30px; padding-top:30px; border-top:1px solid var(--border); }
.vs-account-form h3{ color:#fff; margin-bottom:20px; }
.vs-account-form input{ width:100%; height:50px; margin-bottom:16px; padding:0 16px; background:#08111f; border:1px solid var(--border); border-radius:12px; color:#fff; outline:none; }
.vs-account-form button{ height:50px; padding:0 28px; border-radius:12px; background:var(--primary); color:#fff; font-weight:700; }

/* ---------- Notifications page ---------- */

.vs-notification-page{ padding:40px 0 80px; }
.vs-notification-card{ margin-top:30px; background:#101d33; border:1px solid var(--border); border-radius:18px; padding:30px; }
.vs-notification-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:25px; }
.vs-notification-header h2{ color:#fff; font-size:28px; font-weight:700; }
#markAllRead{ height:46px; padding:0 22px; border-radius:12px; background:var(--primary); color:#fff; font-weight:700; }
.vs-notification-list{ display:flex; flex-direction:column; gap:18px; }
.vs-notification-item{ display:flex; align-items:flex-start; gap:18px; padding:20px; background:#08111f; border:1px solid rgba(255,255,255,.06); border-radius:14px; }
.vs-notification-icon{ width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--primary); font-size:20px; flex-shrink:0; }
.vs-notification-title{ color:#fff; font-size:17px; margin-bottom:8px; }
.vs-notification-message{ color:#cfd8e8; line-height:1.7; margin-bottom:8px; }
.vs-notification-time{ color:#8ea0bd; }
.vs-notification-status{ background:#1bbf6b; color:#fff; padding:6px 12px; border-radius:20px; font-size:12px; font-weight:700; }
.vs-empty-notification{ text-align:center; color:#8ea0bd; padding:40px 0; }

/* ---------- Static pages ---------- */

.vs-static-page{ padding:50px 0 80px; }
.vs-static-card{ margin-top:30px; padding:50px 40px; background:#101d33; border:1px solid var(--border); border-radius:18px; text-align:center; }
.vs-static-card h1{ color:#fff; font-size:38px; font-weight:800; margin-bottom:18px; }
.vs-static-card p{ max-width:650px; margin:0 auto; color:#9eb0cf; line-height:1.8; font-size:16px; }

/* ---------- Responsive ---------- */

@media (max-width:992px){
    .vs-nav{ display:none; }
    .vs-mobile-toggle{ display:flex; }
    .vs-container{ height:76px; }
    .vs-hero .vs-container{ flex-direction:column; text-align:center; }
    .vs-hero-stats{ justify-content:center; }
    .vs-hero-image{ text-align:center; }
    .vs-hero-image img{ margin:auto; }
    .vs-video-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    .vs-featured-layout{ flex-direction:column; }
    .vs-sidebar{ width:100%; }
    .vs-watch-layout{ grid-template-columns:1fr; }
    .vs-watch-sidebar{ display:none; }
    .vs-mobile-latest, .vs-mobile-popular{ display:block; }
    .vs-account-layout{ grid-template-columns:1fr; }
    .vs-referral-hero, .vs-referral-grid{ grid-template-columns:1fr; }
}

@media (max-width:768px){
    .vs-btn, .vs-btn-outline{ display:none; }
    .vs-mobile-menu{
        position:fixed; top:76px; left:0; width:100%; background:#0f1d33; border-top:1px solid var(--border);
        padding:22px; display:flex; flex-direction:column; gap:18px;
        transform:translateY(-120%); opacity:0; pointer-events:none; transition:.35s ease; z-index:9998;
    }
    .vs-mobile-menu.active{ transform:translateY(0); opacity:1; pointer-events:auto; }
    .vs-mobile-menu a{ color:#fff; font-size:16px; font-weight:600; }
    .vs-mobile-menu button{ height:48px; border-radius:12px; font-size:15px; font-weight:700; }
    #mobileLogin{ background:#15233b; color:#fff; }
    #mobileSignup{ background:linear-gradient(135deg,#2f54eb,#3b82f6); color:#fff; }
    .vs-hero-content h1{ font-size:36px; }
    .vs-video-grid{ grid-template-columns:1fr; }
    .vs-tier-list{ grid-template-columns:1fr; }
    .vs-balance-bar{ flex-direction:column; align-items:flex-start; gap:18px; }
    .vs-redeem-btn{ width:100%; }
}

@media (max-width:480px){
    .vs-logo img{ height:38px; }
}

/* ---------- Polish: fade-in, ripple, loader ---------- */

.fade-in{ animation:vsFade .45s ease; }
@keyframes vsFade{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:translateY(0); } }

.vs-page-loader{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:#08111f; z-index:99999; opacity:1; visibility:visible; transition:.3s; }
.vs-page-loader.hide{ opacity:0; visibility:hidden; }
.vs-loader-ring{ width:56px; height:56px; border:5px solid rgba(255,255,255,.12); border-top-color:#2f54eb; border-radius:50%; animation:vsSpin .8s linear infinite; }
@keyframes vsSpin{ to{ transform:rotate(360deg); } }

#globalRipple{ position:fixed; width:12px; height:12px; border-radius:50%; pointer-events:none; background:rgba(255,255,255,.35); transform:translate(-50%,-50%) scale(0); z-index:999999; }
