/**
 * VENUS ONLINE - shared look of the whole site (loaded by includes/header.php).
 * 1) top bar + account menu + back arrow   2) phone "app" navigation   3) global polish for every page
 */
:root {
    --vh-gold: #d4af37;
    --vh-gold-soft: #f3d98a;
    --vh-red: #c41e3a;
    --vh-ink: #07050a;
    --vh-panel: rgba(18, 14, 22, .92);
    --vh-line: rgba(212, 175, 55, .32);
    --vh-text: #e8e2d4;
    --vh-muted: #8a8374;
    --vh-bar-h: 64px;
    --vh-tab-h: 64px;
}
html { -webkit-tap-highlight-color: transparent; scrollbar-color: #4a3b12 #0b0810; scrollbar-width: thin; }
html.vh-lock { overflow: hidden; }
::selection { background: rgba(212, 175, 55, .35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0810; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6b5518, #3a2c0c); border-radius: 8px; border: 2px solid #0b0810; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #d4af37, #8a6d1d); }
body { overflow-x: hidden; animation: vhIn .35s ease both; }
@keyframes vhIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================ TOP BAR ============================ */
.vh-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; height: var(--vh-bar-h); padding-top: env(safe-area-inset-top);
    background: linear-gradient(180deg, rgba(10, 7, 14, .96), rgba(8, 6, 12, .9)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--vh-line); box-shadow: 0 6px 30px rgba(0, 0, 0, .55); transition: box-shadow .25s, border-color .25s; box-sizing: content-box; }
.vh-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--vh-gold), transparent); opacity: .55; }
.vh-bar.scrolled { box-shadow: 0 10px 40px rgba(0, 0, 0, .8); border-bottom-color: rgba(212, 175, 55, .5); }
.vh-in { max-width: 1480px; height: 100%; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; gap: .9rem; }
.vh-spacer { height: calc(var(--vh-bar-h) + env(safe-area-inset-top)); }
.vh-back { display: inline-flex; align-items: center; gap: .5rem; flex: none; height: 38px; padding: 0 .95rem 0 .75rem; border-radius: 22px; text-decoration: none; font: 600 .82rem 'Inter', sans-serif; color: var(--vh-gold-soft);
    background: rgba(212, 175, 55, .1); border: 1px solid var(--vh-line); transition: all .2s; }
.vh-back i { font-size: .8rem; transition: transform .2s; }
.vh-back:hover { background: rgba(212, 175, 55, .22); border-color: var(--vh-gold); color: #fff; box-shadow: 0 0 18px rgba(212, 175, 55, .3); }
.vh-back:hover i { transform: translateX(-3px); }
.vh-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex: none; }
.vh-brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(212, 175, 55, .45)); }
.vh-brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.vh-brand-t b { font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.12rem; letter-spacing: .06em; text-transform: uppercase;
    background: linear-gradient(100deg, #b8941f, #fff1c4 45%, #d4af37 70%, #b8941f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; }
.vh-brand-t small { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--vh-muted); white-space: nowrap; }
.vh-title { display: none; font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.02rem; letter-spacing: .05em; color: var(--vh-gold-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-nav { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .15rem; overflow-x: auto; scrollbar-width: none; }
.vh-nav::-webkit-scrollbar { display: none; }
.vh-link { position: relative; display: inline-flex; align-items: center; gap: .45rem; flex: none; padding: .55rem .85rem; border-radius: 10px; text-decoration: none; white-space: nowrap;
    font: 500 .85rem 'Inter', sans-serif; color: #b4ab9a; transition: color .2s, background .2s; }
.vh-link i { font-size: .85rem; opacity: .85; }
.vh-link::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px; border-radius: 2px; background: var(--vh-gold); box-shadow: 0 0 10px var(--vh-gold); transform: translateX(-50%); transition: width .25s; }
.vh-link:hover { color: #fff; background: rgba(212, 175, 55, .08); }
.vh-link:hover::after, .vh-link.active::after { width: 62%; }
.vh-link.active { color: var(--vh-gold-soft); }
.vh-link-btn { border: 1px solid var(--vh-line); background: rgba(212, 175, 55, .07); }
.vh-link.nav-link-discord, .vh-link-btn.nav-link-discord { background: linear-gradient(135deg, rgba(88, 101, 242, .25), rgba(71, 82, 196, .25)); border-color: rgba(88, 101, 242, .55); color: #dfe3ff; }
.vh-right { display: flex; align-items: center; gap: .6rem; flex: none; margin-left: auto; }
.vh-nav + .vh-right { margin-left: 0; }
.vh-login { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1.15rem; border-radius: 22px; text-decoration: none; font: 700 .85rem 'Inter', sans-serif; letter-spacing: .04em; color: #fff;
    background: linear-gradient(135deg, var(--vh-red), #7d1224); border: 1px solid rgba(255, 150, 170, .35); box-shadow: 0 6px 22px rgba(196, 30, 58, .35); transition: transform .2s, box-shadow .2s; }
.vh-login:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(196, 30, 58, .55); }
.vh-user { position: relative; }
.vh-user-btn { display: flex; align-items: center; gap: .6rem; height: 44px; padding: 0 .85rem 0 .35rem; border-radius: 26px; cursor: pointer; font-family: 'Inter', sans-serif; color: var(--vh-text);
    background: rgba(212, 175, 55, .09); border: 1px solid var(--vh-line); transition: all .2s; }
.vh-user-btn:hover { background: rgba(212, 175, 55, .18); border-color: var(--vh-gold); box-shadow: 0 0 18px rgba(212, 175, 55, .25); }
.vh-av { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .85rem;
    background: linear-gradient(135deg, var(--vh-gold), var(--vh-red)); border: 2px solid var(--vh-gold); }
.vh-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.vh-av.lg { width: 46px; height: 46px; font-size: 1.1rem; }
.vh-user-t { display: flex; flex-direction: column; text-align: left; line-height: 1.15; max-width: 130px; }
.vh-user-t b { color: var(--vh-gold-soft); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-user-t small { color: var(--vh-muted); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.vh-chev { font-size: .7rem; color: var(--vh-muted); transition: transform .2s; }
.vh-user-btn[aria-expanded="true"] .vh-chev { transform: rotate(180deg); }
.vh-drop { position: absolute; right: 0; top: calc(100% + .6rem); min-width: 250px; padding: .5rem; border-radius: 14px; background: linear-gradient(145deg, rgba(24, 18, 30, .98), rgba(10, 8, 14, .98));
    border: 1px solid var(--vh-line); box-shadow: 0 24px 60px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right; transition: all .18s ease; z-index: 10001; }
.vh-drop.open { opacity: 1; visibility: visible; transform: none; }
.vh-drop-head { display: flex; align-items: center; gap: .8rem; padding: .7rem .7rem .8rem; margin-bottom: .3rem; border-bottom: 1px solid var(--vh-line); }
.vh-drop-head b { display: block; color: var(--vh-gold-soft); font-size: .95rem; }
.vh-drop-head small { color: var(--vh-muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.vh-drop a { display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 9px; text-decoration: none; color: #cfc7b4; font: 500 .88rem 'Inter', sans-serif; transition: background .15s, color .15s; }
.vh-drop a i { width: 18px; text-align: center; color: var(--vh-gold); }
.vh-drop a:hover { background: rgba(212, 175, 55, .14); color: #fff; }
.vh-drop a.warn, .vh-drop a.warn i { color: #ff8da1; }
.vh-drop a.out, .vh-drop a.out i { color: #ff7a8f; }
.vh-sep { height: 1px; margin: .35rem .4rem; background: var(--vh-line); }

/* ============================ PHONE: APP LOOK ============================ */
.vh-tabs, .vh-sheet, .vh-sheet-bg { display: none; }
@media (max-width: 900px) {
    :root { --vh-bar-h: 56px; }
    .vh-in { padding: 0 .8rem; gap: .6rem; }
    .vh-nav, .vh-user-t, .vh-chev { display: none; }
    .vh-user-btn { height: 40px; padding: 0 .3rem; border-radius: 50%; }
    .vh-back { height: 38px; width: 38px; padding: 0; justify-content: center; border-radius: 50%; }
    .vh-back span { display: none; }
    .vh-back i { font-size: .95rem; }
    .vh-back ~ .vh-brand { display: none; }
    .vh-back ~ .vh-title { display: block; flex: 1; text-align: left; }
    .vh-brand-t small { display: none; }
    .vh-brand-t b { font-size: 1rem; }
    .vh-drop { display: none; }
    .vh-login { height: 38px; padding: 0 .95rem; }
    body { padding-bottom: calc(var(--vh-tab-h) + 14px + env(safe-area-inset-bottom)) !important; }

    .vh-tabs { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 9998; height: var(--vh-tab-h); padding: 6px;
        border-radius: 22px; background: linear-gradient(180deg, rgba(24, 18, 30, .96), rgba(10, 7, 14, .97)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--vh-line); box-shadow: 0 14px 40px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .06); }
    .vh-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; border-radius: 16px; text-decoration: none; cursor: pointer;
        font: 600 .64rem 'Inter', sans-serif; letter-spacing: .04em; color: #8a8374; transition: color .2s, background .2s, transform .15s; }
    .vh-tab i { font-size: 1.15rem; transition: transform .2s; }
    .vh-tab:active { transform: scale(.92); }
    .vh-tab.active { color: #1a1205; background: linear-gradient(135deg, #fff1b8, var(--vh-gold)); box-shadow: 0 6px 18px rgba(212, 175, 55, .4); }
    .vh-tab.active i { transform: translateY(-1px) scale(1.08); }

    .vh-sheet-bg { display: block; position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
    .vh-sheet-bg.open { opacity: 1; visibility: visible; }
    .vh-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10001; max-height: 82vh; overflow-y: auto; padding: .5rem 1rem calc(1.2rem + env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0; background: linear-gradient(180deg, rgba(26, 19, 33, .99), rgba(9, 6, 13, .99)); border: 1px solid var(--vh-line); border-bottom: 0;
        box-shadow: 0 -20px 60px rgba(0, 0, 0, .8); transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
    .vh-sheet.open { transform: none; }
    .vh-grab { width: 44px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .18); margin: .3rem auto 1rem; }
    .vh-sheet-user { display: flex; align-items: center; gap: .9rem; padding: .3rem .2rem 1rem; }
    .vh-sheet-user b { display: block; color: var(--vh-gold-soft); font-size: 1.05rem; }
    .vh-sheet-user small { color: var(--vh-muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
    .vh-sheet-guest { display: flex; align-items: center; gap: .8rem; padding: 0 .2rem 1rem; }
    .vh-login.big { flex: 1; justify-content: center; height: 46px; }
    .vh-reg { color: var(--vh-gold-soft); text-decoration: none; font-weight: 600; font-size: .85rem; }
    .vh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
    .vh-gi { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; min-height: 78px; padding: .6rem .3rem; border-radius: 16px; text-decoration: none; text-align: center;
        font: 600 .74rem 'Inter', sans-serif; color: #d6cebb; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); transition: all .15s; }
    .vh-gi i { font-size: 1.3rem; color: var(--vh-gold); }
    .vh-gi:active { transform: scale(.95); background: rgba(212, 175, 55, .16); }
    .vh-gi.warn i, .vh-gi.warn { color: #ff8da1; }
    .vh-gi.out i, .vh-gi.out { color: #ff7a8f; }
    /* things that overflow on a phone */
    table { max-width: 100%; }
    img, video, canvas { max-width: 100%; }
}

/* ============================ SAME LOOK ON EVERY PAGE ============================ */
h1, h2, .page-title, .section-title { font-family: 'Cinzel', serif; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input[type="url"], input[type="tel"], input[type="date"], input[type="datetime-local"], select, textarea {
    background: rgba(8, 6, 12, .92) !important; color: #ece6d6 !important; border: 1px solid rgba(212, 175, 55, .42) !important; border-radius: 10px !important; transition: border-color .2s, box-shadow .2s; }
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="search"]:focus, input[type="url"]:focus, input[type="tel"]:focus, select:focus, textarea:focus {
    outline: none !important; border-color: var(--vh-gold) !important; box-shadow: 0 0 0 3px rgba(212, 175, 55, .2) !important; }
::placeholder { color: #6f685a; }
select option { background: #0e0a12; color: #e8e2d4; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--vh-gold); }
@media (max-width: 900px) { input, select, textarea { font-size: 16px !important; } }   /* no zoom on focus (iPhone) */

button[type="submit"], input[type="submit"], .btn-primary, .btn-submit, .btn-save, .btn-add, .btn-action, a.btn, .btn-login, .cta-btn {
    border-radius: 10px !important; transition: transform .2s, box-shadow .2s, filter .2s !important; }
button[type="submit"]:not(.vh-tab):hover, input[type="submit"]:hover, .btn-primary:hover, .btn-submit:hover, .btn-save:hover, .btn-add:hover, a.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
button:active, a.btn:active, .btn-action:active { transform: scale(.97); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--vh-gold); outline-offset: 2px; }

table { border-collapse: separate; border-spacing: 0; }
th { letter-spacing: .06em; }
tbody tr { transition: background .15s; }
tbody tr:hover > td { background: rgba(212, 175, 55, .06); }

/* every "card" / "panel" of the site gets the same glass frame */
[class$="-card"], [class*="-card "], .card, [class$="-panel"], [class*="-panel "], .panel {
    border-radius: 14px; }
[class$="-card"]:not([class*="hero"]):not([class*="feature"]), .card, .panel {
    border-color: rgba(212, 175, 55, .34); }

.vh-bar, .vh-tabs, .vh-sheet { font-family: 'Inter', sans-serif; }
@media (max-width: 900px) {
    .page-title { font-size: 1.7rem !important; }
    .container, .wrap, [class$="-container"] { padding-left: .9rem !important; padding-right: .9rem !important; }
}
@media (prefers-reduced-motion: reduce) { body { animation: none; } .vh-sheet, .vh-drop, .vh-tab, .vh-link::after { transition: none; } }
