/* ============================================
   VTHANGIOS DESIGN SYSTEM
   ============================================ */

:root {
    --vi-bg: #ffffff;
    --vi-surface: rgba(255,255,255,0.72);
    --vi-surface-solid: #ffffff;
    --vi-border: rgba(0,0,0,0.07);
    --vi-shadow-sm: 0 2px 8px rgba(60,80,140,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --vi-shadow: 0 8px 32px rgba(60,80,140,0.09), 0 2px 8px rgba(0,0,0,0.06);
    --vi-shadow-lg: 0 16px 48px rgba(60,80,140,0.13), 0 4px 16px rgba(0,0,0,0.07);
    --vi-radius: 22px;
    --vi-radius-sm: 16px;
    --vi-radius-xs: 12px;
    --vi-accent: #4a6cf7;
    --vi-accent2: #b983ff;
    --vi-text: #1a1a2e;
    --vi-text-muted: #7c8ca8;
    --vi-nav-h: calc(60px + env(safe-area-inset-top));
    --vi-font: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vi-blur: blur(20px) saturate(180%);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Hide scrollbar */
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; -ms-overflow-style: none; }

body {
    font-family: var(--vi-font);
    margin: 0;
    background: #ffffff;
    background-image:
        radial-gradient(ellipse 70% 55% at 15% 8%,  rgba(74,108,247,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 85% 15%, rgba(185,131,255,0.08) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 50% 95%, rgba(74,108,247,0.06) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 90% 75%, rgba(255,107,157,0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--vi-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    display: block;
    height: calc(var(--vi-nav-h) + 10px);
}

/* NAV */
.vthangios-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.65);
    backdrop-filter: var(--vi-blur);
    -webkit-backdrop-filter: var(--vi-blur);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: var(--vi-nav-h);
    padding-top: env(safe-area-inset-top);
    padding-left: 20px;
    padding-right: 20px;
    z-index: 9999;
    box-shadow: var(--vi-shadow-sm);
}

.vthangios-nav-brand {
    font-weight: 800;
    font-size: 17px;
    background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.vthangios-menu-toggle {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    cursor: pointer;
    transition: .2s ease;
}

.vthangios-menu-toggle span {
    display: block;
    height: 3px;
    background: var(--vi-accent);
    border-radius: 10px;
    transition: .25s ease;
}

.vthangios-menu-toggle:active { transform: scale(.9); }

.vthangios-theme-btn {
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 20px;
    color: #ff9f0a;
    text-shadow: 0 0 10px rgba(255,159,10,0.45);
    padding: 6px 8px;
    border-radius: 50%;
    transition: color .3s ease, transform .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vthangios-theme-btn:active { transform: scale(.88); }
.vthangios-theme-btn:hover .vthangios-theme-icon { transform: scale(1.12) rotate(var(--zk-icon-rot, 0deg)); }

body.vthangios-dark .vthangios-theme-btn {
    color: #f5c518;
    text-shadow: 0 0 10px rgba(245,197,24,0.5);
}

/* mặt trời ☀️ ↔ mặt trăng 🌙 morph mượt */
.vthangios-theme-icon {
    --zk-icon-rot: 0deg;
    transform: rotate(var(--zk-icon-rot));
    transition: transform .55s cubic-bezier(.34,1.56,.64,1), text-shadow .3s ease;
}
.vthangios-icon-flip { --zk-icon-rot: 180deg; }

/* BELL */
.vthangios-bell-btn {
    -webkit-tap-highlight-color: transparent;
    background: none; border: none; outline: none;
    cursor: pointer; position: relative;
    font-size: 20px; color: var(--vi-accent);
    text-shadow: 0 0 10px rgba(74,108,247,0.4);
    padding: 6px 8px; border-radius: 50%;
    transition: color .3s ease, transform .15s ease;
    display: flex; align-items: center; justify-content: center;
}
.vthangios-bell-btn:active { transform: scale(.88); }
.vthangios-bell-btn i {
    transform-origin: top center;
    transition: transform .2s ease;
}
/* Chuông tự rung khi có thông báo mới */
.vthangios-bell-btn:has(.vthangios-bell-badge) i { animation: bell-ring 4s ease-in-out infinite; }
.vthangios-bell-btn:hover i { transform: scale(1.1); }
@keyframes bell-ring {
    0%, 65%, 100% { transform: rotate(0); }
    70% { transform: rotate(14deg); }
    75% { transform: rotate(-11deg); }
    80% { transform: rotate(8deg); }
    85% { transform: rotate(-5deg); }
    90% { transform: rotate(2deg); }
}
body.vthangios-dark .vthangios-bell-btn { text-shadow: 0 0 10px rgba(74,108,247,0.55); }

.vthangios-bell-badge {
    position: absolute; top: 4px; right: 4px;
    background: radial-gradient(circle at 35% 30%, #ff8a8a, #ef4444);
    width: 8px; height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(239,68,68,0.6);
    animation: bell-pulse 1.6s ease-in-out infinite;
}
@keyframes bell-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.6), 0 0 6px rgba(239,68,68,0.6); }
    50%      { box-shadow: 0 0 0 5px rgba(239,68,68,0), 0 0 8px rgba(239,68,68,0.8); }
}

/* NOTIF OVERLAY */
.vthangios-notif-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.25); z-index: 10000;
}
.vthangios-notif-overlay.open { display: block; }

/* NOTIF PANEL */
.vthangios-notif-panel {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -44%) scale(.97);
    width: calc(100% - 32px); max-width: 400px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(60,80,140,0.14), inset 0 1px 0 rgba(255,255,255,0.9);
    z-index: 10001;
    max-height: 72vh; overflow: hidden;
    display: none; flex-direction: column;
    opacity: 0; pointer-events: none;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), opacity .18s ease;
}
.vthangios-notif-panel.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1; pointer-events: auto;
}
.vthangios-notif-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 10px;
    font-weight: 800; font-size: 15px; color: var(--vi-text);
    border-bottom: 1px solid var(--vi-border);
}
.vthangios-notif-close {
    -webkit-tap-highlight-color: transparent;
    background: none; border: none; cursor: pointer;
    font-size: 16px; color: var(--vi-text-muted);
    padding: 4px 6px; border-radius: 8px;
    transition: .15s ease;
}
.vthangios-notif-body { overflow-y: auto; padding: 8px 0; }
.vthangios-notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--vi-border);
}
.vthangios-notif-item:last-child { border-bottom: none; }
.vthangios-notif-title { font-weight: 700; font-size: 14px; color: var(--vi-text); margin-bottom: 4px; }
.vthangios-notif-content { font-size: 13.5px; font-weight: 600; color: var(--vi-text); line-height: 1.55; margin-bottom: 6px; }
.vthangios-notif-content a { text-decoration: none; color: var(--vi-accent); }
.vthangios-notif-time { font-size: 11px; color: var(--vi-text-muted); opacity: .7; }
.vthangios-notif-empty {
    text-align: center; padding: 32px 16px;
    color: var(--vi-text-muted); font-size: 14px; line-height: 2;
}
body.vthangios-dark .vthangios-notif-panel {
    background:
        linear-gradient(160deg,
            rgba(20,30,55,0.78) 0%,
            rgba(8,16,34,0.70) 55%,
            rgba(12,20,40,0.78) 100%);
    backdrop-filter: blur(34px) saturate(190%) brightness(1.1);
    -webkit-backdrop-filter: blur(34px) saturate(190%) brightness(1.1);
    border-color: rgba(255,255,255,0.16);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        0 2px 10px rgba(0,0,0,0.4),
        inset 0 1px 1px rgba(255,255,255,0.18),
        inset 0 -2px 12px rgba(255,255,255,0.05);
}
/* gloss sáng chạy dọc cạnh trên — kính lỏng dark */
body.vthangios-dark .vthangios-notif-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.14) 0%,
        rgba(255,255,255,0.03) 26%,
        rgba(255,255,255,0) 48%);
    pointer-events: none;
    z-index: 0;
}
body.vthangios-dark .vthangios-notif-panel > * { position: relative; z-index: 1; }

/* DARK MODE */
body.vthangios-dark {
    --vi-bg: #030c18;
    --vi-surface: rgba(10,20,40,0.72);
    --vi-surface-solid: #071120;
    --vi-border: rgba(255,255,255,0.08);
    --vi-text: #eef0f7;
    --vi-text-muted: #8892aa;
    --vi-shadow-sm: 0 2px 8px rgba(0,0,0,0.40), 0 1px 2px rgba(0,0,0,0.25);
    --vi-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.35);
    --vi-shadow-lg: 0 16px 48px rgba(0,0,0,0.70), 0 4px 16px rgba(0,0,0,0.40);
    /* Night sky */
    background: #030c18;
    background-image:
        /* Aurora / nebula */
        radial-gradient(ellipse 100% 45% at 40% 0%,   rgba(50,80,220,0.18)  0%, transparent 65%),
        radial-gradient(ellipse  70% 35% at 78% 12%,  rgba(90,30,170,0.14)  0%, transparent 58%),
        radial-gradient(ellipse  50% 30% at 10% 60%,  rgba(30,90,180,0.10)  0%, transparent 52%),
        radial-gradient(ellipse  40% 25% at 85% 75%,  rgba(60,20,140,0.09)  0%, transparent 50%),
        /* Stars layer 1 – bright */
        radial-gradient(1.5px 1.5px at  8%  9%,  #fff 0%, transparent 100%),
        radial-gradient(2px   2px   at 22% 5%,   #fff 0%, transparent 100%),
        radial-gradient(1px   1px   at 35% 18%,  rgba(255,255,255,.75) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 48% 11%,  #fff 0%, transparent 100%),
        radial-gradient(1px   1px   at 60%  6%,  rgba(255,255,255,.80) 0%, transparent 100%),
        radial-gradient(2px   2px   at 71% 14%,  #fff 0%, transparent 100%),
        radial-gradient(1px   1px   at 84%  8%,  rgba(255,255,255,.70) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 93% 21%,  #fff 0%, transparent 100%),
        /* Stars layer 2 – mid */
        radial-gradient(1px   1px   at 14% 35%,  rgba(255,255,255,.60) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 27% 42%,  rgba(255,255,255,.75) 0%, transparent 100%),
        radial-gradient(1px   1px   at 41% 38%,  rgba(255,255,255,.55) 0%, transparent 100%),
        radial-gradient(1px   1px   at 53% 48%,  rgba(255,255,255,.65) 0%, transparent 100%),
        radial-gradient(2px   2px   at 66% 31%,  rgba(255,255,255,.80) 0%, transparent 100%),
        radial-gradient(1px   1px   at 77% 44%,  rgba(255,255,255,.55) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 90% 37%,  rgba(255,255,255,.70) 0%, transparent 100%),
        /* Stars layer 3 – deep */
        radial-gradient(1px   1px   at  6% 62%,  rgba(255,255,255,.50) 0%, transparent 100%),
        radial-gradient(1px   1px   at 18% 75%,  rgba(255,255,255,.65) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 32% 68%,  rgba(255,255,255,.75) 0%, transparent 100%),
        radial-gradient(1px   1px   at 46% 82%,  rgba(255,255,255,.55) 0%, transparent 100%),
        radial-gradient(2px   2px   at 59% 71%,  rgba(255,255,255,.80) 0%, transparent 100%),
        radial-gradient(1px   1px   at 73% 88%,  rgba(255,255,255,.50) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 88% 63%,  rgba(255,255,255,.70) 0%, transparent 100%),
        radial-gradient(1px   1px   at 97% 80%,  rgba(255,255,255,.60) 0%, transparent 100%);
    background-attachment: fixed;
}

body.vthangios-dark .vthangios-nav {
    background: rgba(3,10,22,0.72);
    border-bottom-color: rgba(255,255,255,0.06);
}

body.vthangios-dark .vthangios-link-btn {
    background:
        linear-gradient(155deg,
            rgba(255,255,255,0.16) 0%,
            rgba(74,108,247,0.20) 52%,
            rgba(74,108,247,0.08) 100%);
    border-color: rgba(255,255,255,0.18);
    box-shadow:
        0 6px 18px rgba(0,0,0,0.45),
        0 1px 3px rgba(0,0,0,0.30),
        inset 0 1px 1px rgba(255,255,255,0.22),
        inset 0 -2px 6px rgba(255,255,255,0.05);
}
body.vthangios-dark .vthangios-link-btn::before {
    background: linear-gradient(180deg,
        rgba(255,255,255,0.22) 0%,
        rgba(255,255,255,0.05) 42%,
        rgba(255,255,255,0) 66%);
}
body.vthangios-dark .vthangios-linkbox::before {
    background: linear-gradient(180deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.03) 30%,
        rgba(255,255,255,0) 52%);
}

body.vthangios-dark .vthangios-app-item {
    background: rgba(3,10,22,0.88);
    border-color: rgba(255,255,255,0.10);
    box-shadow: 0 12px 40px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
}
body.vthangios-dark .vthangios-app-item:hover {
    background: rgba(10,20,36,0.92);
}
body.vthangios-dark .vthangios-app-item::before {
    background: linear-gradient(180deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.03) 28%,
        rgba(255,255,255,0) 50%);
}

body.vthangios-dark .vthangios-linkbox {
    background: rgba(3,10,22,0.88);
    border-color: rgba(255,255,255,0.10);
    box-shadow: 0 12px 40px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
}

body.vthangios-dark .vthangios-menu-toggle span {
    background: #eef0f7;
}

/* AVATAR */
.vthangios-avatar-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 46px auto 20px;
    border-radius: 50%;
    overflow: visible;
}

.vthangios-avatar-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    /* Vòng gradient theo màu thương hiệu site */
    background: conic-gradient(from 0deg,
        var(--vi-accent), var(--vi-accent2), var(--vi-accent));
    animation: vthangios-avatar-ring-spin 3s linear infinite;
    z-index: 0;
}


.vthangios-avatar-wrap::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--vi-bg);
    z-index: 1;
}

.vthangios-avatar {
    position: absolute;
    inset: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius: 50%;
    display: block;
    object-fit: cover;
    z-index: 2;
}

@keyframes vthangios-avatar-ring-spin {
    to { transform: rotate(360deg); }
}

/* KHUNG AVATAR (thay vòng tròn xoay) */
.vthangios-avatar-wrap.has-frame {
    width: 120px;
    height: 120px;
}
.vthangios-avatar-wrap.has-frame::before,
.vthangios-avatar-wrap.has-frame::after { display: none; }
.vthangios-avatar-wrap.has-frame .vthangios-avatar {
    inset: auto;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}
.vthangios-avatar-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
    z-index: 4;
}
.vthangios-avatar-wrap.has-frame .vthangios-online-dot { z-index: 6; }

/* TYPOGRAPHY */
.vthangios-iam {
    margin: 0 0 6px;
    text-align: center;
    font-size: 15px;
    color: var(--vi-text-muted);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.vthangios-name {
    margin: 0;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--vi-text);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.vthangios-verify {
    width: 27px;
    height: 27px;
    vertical-align: -3px;
}

.vthangios-headline {
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    margin: 10px 0 24px;
    color: var(--vi-text-muted);
}

.vthangios-gradient-text {
    background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.vthangios-gradient-text {
    background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ONLINE DOT */
.vthangios-online-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: #22c55e;
    border-radius: 50%;
    border: 3px solid var(--vi-bg);
    z-index: 3;
}



/* SOCIAL ICONS — Liquid Glass (iOS 26) */
.vthangios-socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 0 20px;
}
.vthangios-social-item {
    position: relative;
    padding: 11px;
    border-radius: 20px;
    background:
        linear-gradient(155deg,
            rgba(255,255,255,0.55) 0%,
            rgba(255,255,255,0.20) 46%,
            rgba(255,255,255,0.08) 100%);
    backdrop-filter: blur(18px) saturate(200%) brightness(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(200%) brightness(1.08);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow:
        0 6px 20px rgba(60,80,140,0.14),
        0 1px 3px rgba(0,0,0,0.05),
        inset 0 1px 1px rgba(255,255,255,0.95),
        inset 0 -2px 6px rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1),
                box-shadow .3s ease,
                border-color .3s ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}
/* top specular gloss — the light sitting on the glass */
.vthangios-social-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%,
        rgba(255,255,255,0.10) 38%,
        rgba(255,255,255,0) 62%);
    pointer-events: none;
    z-index: 2;
}
.vthangios-social-item img {
    position: relative;
    z-index: 1;
    border-radius: 11px;
    width: 40px;
    height: 40px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}
.vthangios-social-item:hover {
    border-color: rgba(255,255,255,0.85);
    box-shadow:
        0 14px 34px rgba(60,80,140,0.22),
        0 3px 8px rgba(0,0,0,0.07),
        inset 0 1px 1px rgba(255,255,255,1),
        inset 0 -2px 8px rgba(255,255,255,0.30);
}
.vthangios-social-item:active { transform: scale(.94); }

/* Liquid glass — dark mode */
body.vthangios-dark .vthangios-social-item {
    background:
        linear-gradient(155deg,
            rgba(255,255,255,0.16) 0%,
            rgba(255,255,255,0.06) 46%,
            rgba(255,255,255,0.02) 100%);
    border-color: rgba(255,255,255,0.16);
    box-shadow:
        0 6px 20px rgba(0,0,0,0.45),
        0 1px 3px rgba(0,0,0,0.30),
        inset 0 1px 1px rgba(255,255,255,0.22),
        inset 0 -2px 6px rgba(255,255,255,0.05);
}
body.vthangios-dark .vthangios-social-item::before {
    background: linear-gradient(180deg,
        rgba(255,255,255,0.22) 0%,
        rgba(255,255,255,0.05) 40%,
        rgba(255,255,255,0) 64%);
}
body.vthangios-dark .vthangios-social-item:hover {
    border-color: rgba(255,255,255,0.30);
    box-shadow:
        0 14px 34px rgba(0,0,0,0.60),
        0 3px 8px rgba(0,0,0,0.40),
        inset 0 1px 1px rgba(255,255,255,0.28),
        inset 0 -2px 8px rgba(255,255,255,0.08);
}

/* LINK BOX SECTION */
.vthangios-linkbox-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 28px 16px;
}

.vthangios-linkbox-section > div {
    flex: 1;
    min-width: 260px;
    display: flex;
}

.vthangios-linkbox {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    background:
        linear-gradient(155deg,
            rgba(255,255,255,0.88) 0%,
            rgba(255,255,255,0.74) 55%,
            rgba(255,255,255,0.80) 100%);
    backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
    -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
    padding: 20px 28px;
    border-radius: var(--vi-radius);
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow:
        0 16px 44px rgba(60,80,140,0.16),
        0 2px 8px rgba(0,0,0,0.04),
        inset 0 1px 1px rgba(255,255,255,0.95),
        inset 0 -2px 10px rgba(255,255,255,0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0;
}
/* glossy light running along the top edge of the card */
.vthangios-linkbox::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.4) 0%,
        rgba(255,255,255,0.06) 28%,
        rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 0;
}
.vthangios-linkbox > * { position: relative; z-index: 1; }

.vthangios-linkbox-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
    padding: 12px 0;
}

.vthangios-linkbox-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--vi-text);
}

/* LINK BUTTON — Liquid Glass (iOS 26) */
.vthangios-link-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    background:
        linear-gradient(155deg,
            rgba(255,255,255,0.55) 0%,
            rgba(255,255,255,0.20) 52%,
            rgba(255,255,255,0.10) 100%);
    backdrop-filter: blur(16px) saturate(190%) brightness(1.06);
    -webkit-backdrop-filter: blur(16px) saturate(190%) brightness(1.06);
    border: 1px solid rgba(255,255,255,0.6);
    color: var(--vi-accent);
    font-size: 20px;
    width: 60px;
    height: 52px;
    padding: 0;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    box-shadow:
        0 6px 18px rgba(60,80,140,0.14),
        0 1px 3px rgba(0,0,0,0.05),
        inset 0 1px 1px rgba(255,255,255,0.95),
        inset 0 -2px 6px rgba(255,255,255,0.20);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1),
                box-shadow .3s ease,
                border-color .3s ease;
}
/* top specular gloss */
.vthangios-link-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.5) 0%,
        rgba(255,255,255,0.12) 40%,
        rgba(255,255,255,0) 64%);
    pointer-events: none;
    z-index: 2;
}
.vthangios-link-btn i { position: relative; z-index: 4; }
.vthangios-link-btn:hover {
    border-color: rgba(255,255,255,0.85);
    box-shadow:
        0 12px 30px rgba(60,80,140,0.20),
        0 3px 8px rgba(0,0,0,0.07),
        inset 0 1px 1px rgba(255,255,255,1),
        inset 0 -2px 8px rgba(255,255,255,0.3);
}
body.vthangios-dark .vthangios-link-btn:hover {
    border-color: rgba(255,255,255,0.32);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.6),
        0 3px 8px rgba(0,0,0,0.4),
        inset 0 1px 1px rgba(255,255,255,0.28),
        inset 0 -2px 8px rgba(255,255,255,0.08);
}
.vthangios-link-btn:active { transform: scale(.93); }

/* APP SECTION */
/* CATEGORY TABS */
.vthangios-filter-bar {
    margin: 0 16px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--vi-surface);
    border: 1px solid var(--vi-border);
    border-radius: var(--vi-radius);
    box-shadow: var(--vi-shadow);
    padding: 10px 14px;
}
.vthangios-filter-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    height: 36px;
}
.vthangios-filter-search i {
    color: var(--vi-text-muted);
    font-size: 14px;
    flex-shrink: 0;
}
.vthangios-filter-search input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--vi-font);
    font-size: 16px;
    font-weight: 600;
    color: var(--vi-text);
    width: 100%;
}
.vthangios-filter-search input::placeholder { color: var(--vi-text-muted); }
.vthangios-filter-select {
    height: 36px;
    padding: 0 28px 0 8px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--vi-text);
    font-family: var(--vi-font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%238892aa' d='M8 10L3 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}
.vthangios-group-block { display: block; }
.vthangios-group-block.hidden { display: none; }

.vthangios-app-section { padding: 0 0 24px; }

.vthangios-section-title {
    display: none;
    text-align: center;
    font-size: 21px;
    font-weight: 800;
    margin: 26px 0 10px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 0.6px;
    /* chữ gradient */
    background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
/* 2 vạch gradient hai bên tiêu đề */
.vthangios-section-title::before,
.vthangios-section-title::after {
    content: "";
    height: 2px;
    width: 34px;
    border-radius: 2px;
    flex-shrink: 0;
}
.vthangios-section-title::before {
    background: linear-gradient(90deg, transparent, var(--vi-accent));
}
.vthangios-section-title::after {
    background: linear-gradient(90deg, var(--vi-accent2), transparent);
}
/* icon (loading) giữ màu, không bị gradient nuốt mất */
.vthangios-section-title .vthangios-loading-icon {
    -webkit-text-fill-color: var(--vi-accent);
}

.vthangios-app-list {
    position: relative;
    margin: 0 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 900px) {
    .vthangios-app-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.vthangios-app-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 0 18px;
    position: relative;
    isolation: isolate;
    z-index: 1;
    border-radius: var(--vi-radius);
    overflow: hidden;
    background:
        linear-gradient(155deg,
            rgba(255,255,255,0.88) 0%,
            rgba(255,255,255,0.74) 55%,
            rgba(255,255,255,0.80) 100%);
    backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
    -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow:
        0 16px 44px rgba(60,80,140,0.16),
        0 2px 8px rgba(0,0,0,0.04),
        inset 0 1px 1px rgba(255,255,255,0.95),
        inset 0 -2px 10px rgba(255,255,255,0.25);
    transition: background .25s ease;
}
/* glossy light running along the top edge của mỗi card */
.vthangios-app-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.4) 0%,
        rgba(255,255,255,0.06) 26%,
        rgba(255,255,255,0) 48%);
    pointer-events: none;
    z-index: 0;
}
.vthangios-app-item:hover {
    background: linear-gradient(180deg,
        rgba(255,255,255,0.55),
        rgba(255,255,255,0.2));
}

.vthangios-app-entry { position: relative; height: 100%; }

/* BANNER (Ảnh Preview 16:9) — full width, viền ngoài do .vthangios-app-list clip */
.vthangios-app-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}
.vthangios-app-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Gói badge số ảnh + badge nền tảng, góc trên-phải banner */
.vthangios-app-banner-badges {
    position: absolute;
    right: 8px;
    top: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    z-index: 2;
}
.vthangios-app-banner-badges .vthangios-platform-badge { margin-top: 0; }
.vthangios-app-banner-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* PREVIEW LIGHTBOX (carousel) */
.vthangios-preview-modal {
    display: none;
    position: fixed; inset: 0;
    z-index: 10050;
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 18px;
    padding: 24px 16px;
    background: rgba(245,246,250,0.82);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    opacity: 0;
    transition: opacity .2s ease;
}
.vthangios-preview-modal.open { opacity: 1; }
body.vthangios-dark .vthangios-preview-modal { background: rgba(3,8,18,0.82); }

.vthangios-preview-title {
    flex-shrink: 0;
    max-width: 90%;
    padding: 8px 18px;
    border-radius: 999px;
    font-family: var(--vi-font);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .2px;
    color: var(--vi-text);
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 4px 14px rgba(0,0,0,0.1);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.vthangios-dark .vthangios-preview-title {
    color: #fff;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.2), 0 4px 14px rgba(0,0,0,0.3);
}

.vthangios-preview-stage {
    flex: 0 0 auto;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0,0,0,0.28);
    background: rgba(0,0,0,0.06);
    transform: scale(.96);
    transition: transform .22s cubic-bezier(.34,1.56,.64,1);
}
.vthangios-preview-modal.open .vthangios-preview-stage { transform: scale(1); }
#vthangios-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-select: none; user-select: none;
}
/* Nút điều khiển — liquid glass iOS 26 */
.vthangios-preview-close,
.vthangios-preview-arrow {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    color: #3a3d48;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.6),
        inset 0 -2px 6px rgba(255,255,255,0.15),
        0 6px 18px rgba(0,0,0,0.12);
    transition: background .2s ease, transform .15s ease, border-color .2s ease;
}
.vthangios-preview-close::before,
.vthangios-preview-arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.4) 0%,
        rgba(255,255,255,0.12) 45%,
        rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 1;
}
.vthangios-preview-close i,
.vthangios-preview-arrow i { position: relative; z-index: 2; }
.vthangios-preview-close:hover,
.vthangios-preview-arrow:hover {
    background: rgba(255,255,255,0.30);
    border-color: rgba(255,255,255,0.6);
}
.vthangios-preview-close:active,
.vthangios-preview-arrow:active { transform: scale(.9); }
body.vthangios-dark .vthangios-preview-close,
body.vthangios-dark .vthangios-preview-arrow {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.22);
    color: #fff;
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.25),
        inset 0 -2px 6px rgba(255,255,255,0.06),
        0 6px 18px rgba(0,0,0,0.3);
}
body.vthangios-dark .vthangios-preview-close:hover,
body.vthangios-dark .vthangios-preview-arrow:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
}

.vthangios-preview-close {
    position: fixed;
    top: 18px; right: 18px;
    width: 44px; height: 44px;
    font-size: 20px;
    z-index: 2;
}
.vthangios-preview-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}
.vthangios-preview-arrow { width: 52px; height: 52px; font-size: 18px; }
.vthangios-preview-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vthangios-preview-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(60,70,90,0.3);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.vthangios-preview-dot.active { background: var(--vi-accent); transform: scale(1.25); }
body.vthangios-dark .vthangios-preview-dot { background: rgba(255,255,255,0.3); }
body.vthangios-dark .vthangios-preview-dot.active { background: var(--vi-accent); }

.vthangios-app-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px 0;
}
/* Có banner phía trên -> icon đè lên mép dưới banner, không cần padding-top nữa */
.vthangios-app-banner + .vthangios-app-info {
    padding-top: 0;
}

.vthangios-app-icon-wrap {
    position: relative;
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    z-index: 2;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(60,80,140,0.18),
        0 1px 3px rgba(0,0,0,0.10);
}
body.vthangios-dark .vthangios-app-icon-wrap {
    box-shadow:
        0 4px 12px rgba(0,0,0,0.5),
        0 1px 3px rgba(0,0,0,0.35);
}
.vthangios-app-banner + .vthangios-app-info .vthangios-app-icon-wrap {
    margin-top: -34px;
}

/* Badge nền tảng đè góc trên-phải icon app */
.vthangios-app-icon-badges {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    z-index: 3;
}
.vthangios-app-icon-badges .vthangios-platform-badge {
    margin-top: 0;
    padding: 2px 7px;
    font-size: 9px;
    gap: 3px;
    box-shadow:
        0 2px 6px rgba(0,0,0,0.20),
        inset 0 1px 1px rgba(255,255,255,0.45),
        inset 0 -1px 1px rgba(255,255,255,0.12);
}
.vthangios-app-icon-badges .vthangios-platform-badge i { font-size: 9px; }

.vthangios-app-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* viền trong mảnh + gloss phản chiếu kiểu icon iOS */
.vthangios-app-icon-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
    background: linear-gradient(160deg,
        rgba(255,255,255,0.45) 0%,
        rgba(255,255,255,0.12) 22%,
        rgba(255,255,255,0) 45%);
}
body.vthangios-dark .vthangios-app-icon-wrap::after {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
    background: linear-gradient(160deg,
        rgba(255,255,255,0.30) 0%,
        rgba(255,255,255,0.08) 22%,
        rgba(255,255,255,0) 45%);
}

.vthangios-platform-badge {
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.45),
        inset 0 -1px 1px rgba(255,255,255,0.12),
        0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.28);
}

/* hiệu ứng liquid glass */
.vthangios-platform-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.32) 0%,
        rgba(255,255,255,0.08) 45%,
        rgba(255,255,255,0.02) 100%
    );
    pointer-events: none;
}

/* iOS */
.vthangios-platform-ios {
    background: rgba(191,90,242,0.12);
    color: #fff;
    border-color: rgba(220,170,255,0.35);
}

.vthangios-platform-ios i {
    font-size: 12px;
    color: #fff;
}

/* Android */
.vthangios-platform-android {
    background: rgba(52,199,89,0.12);
    color: #30d158;
    border-color: rgba(120,255,170,0.30);
}

.vthangios-platform-android i {
    font-size: 12px;
    color: #30d158;
}
.vthangios-app-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--vi-text);
}

.vthangios-app-desc {
    display: block;
    font-size: 13px;
    color: var(--vi-text-muted);
    margin-top: 2px;
    font-style: italic;
}

.vthangios-auto-time {
    display: block;
    font-size: 13px;
    color: var(--vi-text-muted);
    margin-top: 2px;
}

.vthangios-download-btn {
    -webkit-tap-highlight-color: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    outline: none;
    color: var(--vi-accent);
    padding: 0;
    margin-right: 2px;
    transition: .15s ease;
    flex-shrink: 0;
}

.vthangios-download-btn:active { transform: scale(.88); }

/* Đồng bộ kích thước icon Tải/Truy cập giữa app item và link box */
.vthangios-download-btn .svg-icon,
.vthangios-link-btn .svg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}
.vthangios-download-btn .svg-icon svg,
.vthangios-link-btn .svg-icon svg {
    width: 100% !important;
    height: 100% !important;
}
/* glyph ↗ đặc/đậm -> để nhỏ lại cho cân với cloud, gradient đồng bộ với cloud */
.vthangios-download-btn .svg-icon i,
.vthangios-link-btn .svg-icon i {
    font-size: 20px !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    background: linear-gradient(135deg, #4a6cf7, #b983ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Hàng nút hành động: Tải Xuống + Get Key */
.vthangios-app-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 12px 18px 0;
}

/* CTA full-width (Xem Chi Tiết) — kiểu card có ảnh preview */
.vthangios-app-cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
    color: #fff;
    font-family: var(--vi-font);
    font-size: 14px;
    font-weight: 700;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3);
    transition: transform .2s ease, box-shadow .2s ease;
}
.vthangios-app-cta:hover {
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.35);
}
.vthangios-app-cta:active { transform: scale(.97); }
.vthangios-app-cta i { font-size: 17px; -webkit-text-stroke: 0.4px currentColor; }

/* Get Key — nút phụ, cùng hàng với CTA chính */
.vthangios-app-getkey {
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 16px;
    border: 1px solid rgba(150,175,255,0.4);
    border-radius: 999px;
    background: rgba(74,108,247,0.12);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    color: var(--vi-accent);
    font-family: var(--vi-font);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.45),
        inset 0 -1px 1px rgba(255,255,255,0.12),
        0 1px 2px rgba(0,0,0,0.05);
    transition: transform .15s ease, background .2s ease;
}
.vthangios-app-getkey i { font-size: 13px; }
.vthangios-app-getkey:hover { background: rgba(74,108,247,0.20); }
.vthangios-app-getkey:active { transform: scale(.95); }
body.vthangios-dark .vthangios-app-getkey {
    background: rgba(74,108,247,0.22);
    border-color: rgba(120,150,255,0.3);
}

.vthangios-loading-icon {
    margin-left: 6px;
    animation: vthangios-spin 1s linear infinite;
    font-size: 22px;
    color: var(--vi-accent);
}

@keyframes vthangios-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ALERT / MODAL */
.vthangios-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.36);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 16px;
    overflow-y: auto;
}

.vthangios-alert-box {
    background: var(--vi-surface-solid);
    border: 1px solid var(--vi-border);
    box-shadow: var(--vi-shadow-lg);
    border-radius: var(--vi-radius);
    padding: 24px 20px;
    width: 100%;
    max-width: 360px;
    position: relative;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    margin: auto;
    animation: vthangios-popIn .2s ease;
}

.vthangios-alert-box h3 {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--vi-text);
}

.vthangios-alert-btn {
    padding: 9px 20px;
    border: 1px solid rgba(74,108,247,0.2);
    color: var(--vi-accent);
    font-weight: 700;
    background: rgba(74,108,247,0.07);
    border-radius: var(--vi-radius-xs);
    cursor: pointer;
    font-size: 15px;
    -webkit-tap-highlight-color: transparent;
    transition: .15s ease;
    font-family: var(--vi-font);
    box-shadow: var(--vi-shadow-sm);
}

.vthangios-alert-btn:active { transform: scale(.95); }

/* WAVE */
.vthangios-wave svg {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: -1px;
}

body.vthangios-dark .vthangios-wave path {
    fill: #1c1c26;
}

/* FOOTER */
.vthangios-footer {
    font-weight: 600;
    text-align: center;
    background: transparent;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--vi-text-muted);
    border-top: 1px solid var(--vi-border);
}

/* WIDGETS: Music + YouTube — desktop 2 cột 1 hàng, mobile xếp dọc */
.vthangios-widgets {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0;
}
/* Cho phép card co lại nhỏ hơn nội dung (tên bài dài) để ellipsis hoạt động */
.vthangios-widgets > * { min-width: 0; }
@media (min-width: 900px) {
    .vthangios-widgets {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
        margin: 22px 16px 24px;
        align-items: stretch;
    }
    .vthangios-widgets .vthangios-music-card,
    .vthangios-widgets .vthangios-yt-banner { margin: 0; }
}

/* MUSIC PLAYER (SoundCloud) — card chuyên nghiệp, lazy-load khi bấm play */
.vthangios-music-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 22px 16px;
    padding: 18px;
    border-radius: var(--vi-radius);
    background:
        linear-gradient(155deg,
            rgba(255,255,255,0.88) 0%,
            rgba(255,255,255,0.74) 55%,
            rgba(255,255,255,0.80) 100%);
    backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
    -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow:
        0 16px 44px rgba(60,80,140,0.16),
        0 2px 8px rgba(0,0,0,0.04),
        inset 0 1px 1px rgba(255,255,255,0.95),
        inset 0 -2px 10px rgba(255,255,255,0.25);
}
body.vthangios-dark .vthangios-music-card {
    background: rgba(3,10,22,0.88);
    border-color: rgba(255,255,255,0.10);
    box-shadow: 0 12px 40px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
}
/* Art tròn + vòng gradient xoay khi phát (đồng bộ với vòng avatar) */
.vthangios-music-art-wrap {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 999px;
}
.vthangios-music-art-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    /* Màu cam SoundCloud, chạy vòng liên tục */
    background: conic-gradient(from 0deg, #ff8800, #ff3300, #ff8800);
    animation: vthangios-music-ring-spin 4s linear infinite;
}
.vthangios-music-art-wrap::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: var(--vi-surface-solid);
}
.vthangios-music-art {
    position: absolute;
    inset: 5px;
    z-index: 1;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8800, #ff3300);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    animation: vthangios-music-art-spin 8s linear infinite;
    animation-play-state: paused;
}
.vthangios-music-card.playing .vthangios-music-art {
    animation-play-state: running;
}
@keyframes vthangios-music-art-spin  { to { transform: rotate(360deg); } }
@keyframes vthangios-music-ring-spin { to { transform: rotate(360deg); } }

/* Info */
.vthangios-music-info { flex: 1; min-width: 0; }
.vthangios-music-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.vthangios-music-title {
    margin: 0;
    min-width: 0;
    font-family: var(--vi-font);
    font-weight: 800;
    font-size: 15px;
    color: var(--vi-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vthangios-music-artist {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--vi-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progress có thể bấm/kéo để tua */
.vthangios-music-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vthangios-music-progress {
    position: relative;
    flex: 1;
    height: 14px;
    cursor: pointer;
    touch-action: none;
}
.vthangios-music-progress::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 4px;
    background: var(--vi-border);
}
.vthangios-music-progress-fill {
    position: absolute;
    left: 0;
    top: 50%;
    height: 4px;
    width: 0%;
    transform: translateY(-50%);
    border-radius: 4px;
    background: linear-gradient(90deg, var(--vi-accent), var(--vi-accent2));
    transition: width .7s ease;
}
/* Đang kéo tua tay -> bám sát ngay theo con trỏ, không delay */
.vthangios-music-progress.seeking .vthangios-music-progress-fill { transition: none; }
/* Đầu sao băng — luôn hiện, kể cả khi dừng phát */
.vthangios-music-progress-fill::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 5px 1px rgba(255,255,255,0.9);
    transform: translateY(-50%);
}
.vthangios-music-time {
    flex-shrink: 0;
    min-width: 30px;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--vi-text-muted);
    white-space: nowrap;
}
.vthangios-music-time:last-child { text-align: right; }

/* Controls: prev / play / next */
/* Hàng trên: [tiêu đề + nghệ sĩ] bên trái, cụm nút bên phải canh giữa theo chiều cao */
.vthangios-music-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    margin-bottom: 8px;
}
.vthangios-music-text { flex: 1; min-width: 0; }
.vthangios-music-controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vthangios-music-btn,
.vthangios-music-toggle {
    -webkit-tap-highlight-color: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.vthangios-music-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
    color: var(--vi-text-muted);
    background: rgba(74,108,247,0.10);
    border: 1px solid rgba(150,175,255,0.35);
}
.vthangios-music-btn:hover { color: var(--vi-accent); background: rgba(74,108,247,0.18); }
.vthangios-music-btn:active { transform: scale(.9); }
body.vthangios-dark .vthangios-music-btn {
    color: rgba(255,255,255,0.75);
    background: rgba(74,108,247,0.22);
    border-color: rgba(120,150,255,0.3);
}
.vthangios-music-toggle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
    color: #fff;
    font-size: 14px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3);
}
.vthangios-music-toggle i.fa-play { margin-left: 3px; }
.vthangios-music-toggle:active { transform: scale(.92); }
#vt-music-frame-holder { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* Mobile: giữ 1 hàng, thu nhỏ đĩa + nút cho cân đối */
@media (max-width: 560px) {
    .vthangios-music-card { gap: 14px; padding: 14px; }
    .vthangios-music-title { font-size: 14px; }
    .vthangios-music-artist { font-size: 11px; margin-bottom: 8px; }
    .vthangios-music-controls { gap: 6px; }
    .vthangios-music-btn { width: 28px; height: 28px; font-size: 11px; }
    .vthangios-music-toggle { width: 36px; height: 36px; font-size: 13px; }
    .vthangios-music-time { min-width: 26px; font-size: 10px; }
}
@media (max-width: 380px) {
    .vthangios-music-btn { width: 26px; height: 26px; font-size: 10px; }
    .vthangios-music-toggle { width: 34px; height: 34px; font-size: 12px; }
    .vthangios-music-controls { gap: 4px; }
}

/* YOUTUBE CHANNEL CARD — giống header kênh YouTube (mobile) */
.vthangios-yt-banner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 16px 24px;
    padding: 20px;
    border-radius: var(--vi-radius);
    background:
        linear-gradient(155deg,
            rgba(255,255,255,0.88) 0%,
            rgba(255,255,255,0.74) 55%,
            rgba(255,255,255,0.80) 100%);
    backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
    -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow:
        0 16px 44px rgba(60,80,140,0.16),
        0 2px 8px rgba(0,0,0,0.04),
        inset 0 1px 1px rgba(255,255,255,0.95),
        inset 0 -2px 10px rgba(255,255,255,0.25);
}
body.vthangios-dark .vthangios-yt-banner {
    background: rgba(3,10,22,0.88);
    border-color: rgba(255,255,255,0.10);
    box-shadow: 0 12px 40px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
}
.vthangios-yt-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vthangios-yt-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.vthangios-yt-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1.5px solid rgba(74,108,247,0.30);
    background: rgba(74,108,247,0.10);
    color: var(--vi-accent);
    font-size: 28px;
    flex-shrink: 0;
}
.vthangios-yt-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}
.vthangios-yt-text { min-width: 0; }
.vthangios-yt-title {
    margin: 0;
    color: var(--vi-text);
    font-family: var(--vi-font);
    font-weight: 800;
    font-size: 22px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vthangios-yt-handle {
    margin: 4px 0 0;
    color: var(--vi-text);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vthangios-yt-meta {
    margin: 2px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vi-text-muted);
    line-height: 1.4;
}
.vthangios-yt-dot { opacity: .7; }
/* Nút Đăng ký kiểu YouTube: pill đen (sáng) / pill trắng (tối), full chiều ngang */
.vthangios-yt-btn {
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #0f0f0f;
    color: #fff;
    font-family: var(--vi-font);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .2px;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}
.vthangios-yt-btn:hover  { background: #272727; }
.vthangios-yt-btn:active { transform: scale(.98); }
body.vthangios-dark .vthangios-yt-btn { background: #f1f1f1; color: #0f0f0f; }
body.vthangios-dark .vthangios-yt-btn:hover { background: #d9d9d9; }

/* Desktop: thông tin bên trái, nút Đăng ký nằm bên phải như YouTube desktop */
@media (min-width: 640px) {
    .vthangios-yt-banner { flex-direction: row; align-items: center; gap: 24px; padding: 22px 26px; }
    .vthangios-yt-main { flex: 1; }
    .vthangios-yt-btn { width: auto; min-width: 130px; padding: 0 24px; }
}

/* CURSOR */
.vthangios-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--vi-accent);
    border-radius: 2px;
    animation: vthangios-blink .7s infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
}

@keyframes vthangios-blink {
    0%, 100% { opacity: 1 }
    50%       { opacity: 0 }
}

/* SNOWFLAKES */
.vthangios-snowflake {
    color: #aaccff;
    text-shadow: 0 0 8px rgba(180,220,255,0.5);
    font-family: Arial, sans-serif;
    position: fixed;
    top: -10%;
    z-index: 9998;
    user-select: none;
    cursor: default;
    pointer-events: none;
    animation-name: vthangios-snow-fall, vthangios-snow-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite;
    animation-play-state: running;
}

.vthangios-snowflake:nth-of-type(1)  { font-size:10px; left:2%;   animation-delay:0s,0s }
.vthangios-snowflake:nth-of-type(2)  { font-size:14px; left:10%;  animation-delay:1s,1s }
.vthangios-snowflake:nth-of-type(3)  { font-size:18px; left:20%;  animation-delay:6s,.5s }
.vthangios-snowflake:nth-of-type(4)  { font-size:12px; left:30%;  animation-delay:4s,2s }
.vthangios-snowflake:nth-of-type(5)  { font-size:20px; left:40%;  animation-delay:2s,2s }
.vthangios-snowflake:nth-of-type(6)  { font-size:22px; left:50%;  animation-delay:8s,3s }
.vthangios-snowflake:nth-of-type(7)  { font-size:16px; left:60%;  animation-delay:6s,2s }
.vthangios-snowflake:nth-of-type(8)  { font-size:24px; left:70%;  animation-delay:2.5s,1s }
.vthangios-snowflake:nth-of-type(9)  { font-size:13px; left:80%;  animation-delay:1s,0s }
.vthangios-snowflake:nth-of-type(10) { font-size:19px; left:90%;  animation-delay:3s,1.5s }
.vthangios-snowflake:nth-of-type(11) { font-size:17px; left:25%;  animation-delay:2s,0s }
.vthangios-snowflake:nth-of-type(12) { font-size:25px; left:65%;  animation-delay:4s,2.5s }

@keyframes vthangios-snow-fall {
    0%   { top: -10% }
    100% { top: 100% }
}
@keyframes vthangios-snow-shake {
    0%, 100% { transform: translateX(0) }
    50%       { transform: translateX(60px) }
}

/* ANIMATIONS */
@keyframes vthangios-popIn {
    from { opacity:0; transform:scale(.94); }
    to   { opacity:1; transform:scale(1); }
}

/* RECAPTCHA */
.grecaptcha-badge { visibility: hidden !important; }

/* ── LIGHT MODE SPARKLES ──────────────────── */
@keyframes vt-sparkle {
    0%   { opacity: 0; transform: scale(0) rotate(0deg); }
    35%  { opacity: 1; transform: scale(1) rotate(135deg); }
    100% { opacity: 0; transform: scale(0.2) rotate(270deg); }
}
.vt-sparkle-dot {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    animation: vt-sparkle ease-in-out forwards;
}
.vt-sparkle-dot::before,
.vt-sparkle-dot::after {
    content: '';
    position: absolute;
    background: var(--sp-color, #a78bfa);
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px 1px var(--sp-color, #a78bfa);
    opacity: 0.85;
}
.vt-sparkle-dot::before { width: 100%; height: 22%; }
.vt-sparkle-dot::after  { width: 22%; height: 100%; }

/* ── NIGHT SKY ANIMATIONS (dark mode) ──────── */
@keyframes vt-twinkle {
    0%, 100% { opacity: 1;    transform: scale(1); }
    35%       { opacity: 0.1;  transform: scale(0.4); }
    65%       { opacity: 0.55; transform: scale(0.75); }
}
@keyframes vt-meteor {
    0%   { transform: rotate(var(--mt-angle)) translateX(0);        opacity: 0; }
    6%   { opacity: 1; }
    80%  { opacity: 0.75; }
    100% { transform: rotate(var(--mt-angle)) translateX(-1000px);  opacity: 0; }
}
.vt-sky-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    display: none;
}
body.vthangios-dark .vt-sky-overlay { display: block; }
.vt-star-dot {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: vt-twinkle ease-in-out infinite;
}
.vt-meteor {
    position: absolute;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(180,210,255,0.55) 55%, transparent 100%);
    filter: drop-shadow(0 0 4px rgba(160,200,255,0.9));
    animation: vt-meteor ease-out forwards;
}

