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

:root{
    --bg-main:#071122;
    --bg-secondary:#0b1730;
    --bg-card:#13243f;
    --bg-card-2:#1a2d4d;
    --bg-input:#08162f;
    --text-main:#ffffff;
    --text-soft:#c7d2e4;
    --text-muted:#8fa0bb;
    --gold:#f8c14a;
    --gold-dark:#c89218;
    --blue:#35c2ff;
    --blue-dark:#1a88d1;
    --green:#41df72;
    --green-dark:#17a34a;
    --red:#ff5b5b;
    --red-dark:#c93b3b;
    --purple:#b27cff;
    --cyan:#1fd6d2;
    --border-soft:rgba(255,255,255,0.08);
    --shadow-main:0 10px 30px rgba(0,0,0,0.28);
    --shadow-soft:0 6px 18px rgba(0,0,0,0.18);
    --radius-xl:28px;
    --radius-lg:22px;
    --radius-md:16px;
    --radius-sm:12px;
    --transition:all .25s ease;
}

html,body{
    width:100%;
    min-height:100%;
    font-family:Arial, Tahoma, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(53,194,255,0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(248,193,74,0.08), transparent 26%),
        linear-gradient(180deg, #071122 0%, #09162a 40%, #07111f 100%);
    color:var(--text-main);
    overflow-x:hidden;
}

body{
    line-height:1.6;
}

a{
    text-decoration:none;
    color:inherit;
    transition:var(--transition);
}

img{
    max-width:100%;
    display:block;
}

button,
input,
select,
textarea{
    font-family:inherit;
}

.page-container,
.container,
.page-wrap{
    width:100%;
    max-width:1280px;
    margin:0 auto;
    padding:20px 16px 40px;
}

/* =========================
   HEADER / NAV
========================= */
.topbar,
.navbar,
header{
    width:100%;
    background:linear-gradient(180deg, rgba(9,21,43,0.98) 0%, rgba(6,16,33,0.96) 100%);
    border-bottom:1px solid rgba(255,255,255,0.06);
    box-shadow:0 6px 16px rgba(0,0,0,0.18);
    position:relative;
    z-index:50;
}

.nav-inner,
.nav-container,
.header-inner{
    max-width:1280px;
    margin:0 auto;
    padding:14px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
}

.logo,
.site-logo,
.brand{
    font-size:clamp(24px,3vw,38px);
    font-weight:800;
    color:var(--gold);
    letter-spacing:.5px;
    text-shadow:0 0 10px rgba(248,193,74,0.12);
}

.nav-links,
.menu,
.header-links{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.nav-links a,
.menu a,
.header-links a{
    color:var(--text-main);
    font-weight:700;
    font-size:15px;
    padding:8px 12px;
    border-radius:12px;
    transition:var(--transition);
}

.nav-links a:hover,
.menu a:hover,
.header-links a:hover{
    background:rgba(255,255,255,0.06);
    color:var(--gold);
}

.lang-switch,
.language-switch{
    display:flex;
    gap:8px;
    align-items:center;
}

.lang-switch a,
.language-switch a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:42px;
    height:38px;
    border-radius:12px;
    background:#0f1d3a;
    color:var(--gold);
    font-weight:800;
    border:1px solid rgba(248,193,74,0.22);
}

.lang-switch a:hover,
.language-switch a:hover{
    background:#17294e;
}

/* =========================
   PAGE TITLES
========================= */
.page-title{
    text-align:center;
    font-size:clamp(28px,4vw,48px);
    font-weight:900;
    color:var(--gold);
    margin:8px 0 8px;
    text-shadow:0 0 16px rgba(248,193,74,0.14);
}

.page-subtitle{
    text-align:center;
    color:var(--text-soft);
    font-size:18px;
    margin-bottom:16px;
}

.section-title,
.block-title,
.card-title{
    font-size:clamp(20px,2.5vw,30px);
    font-weight:800;
    color:var(--gold);
    margin-bottom:14px;
    text-align:center;
}

.section-subtitle{
    text-align:center;
    color:var(--text-soft);
    margin:-6px 0 16px;
    font-size:15px;
}

/* =========================
   CARDS / BOXES
========================= */
.card,
.info-box,
.box,
.panel,
.stat-box{
    background:
        linear-gradient(180deg, rgba(28,48,80,0.96) 0%, rgba(18,36,63,0.98) 100%);
    border:1px solid var(--border-soft);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-main);
    transition:var(--transition);
}

.card:hover,
.info-box:hover,
.box:hover,
.panel:hover,
.stat-box:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 34px rgba(0,0,0,0.3);
}

.card{
    padding:20px;
    margin-bottom:18px;
}

.top-stats-grid,
.stats-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:16px;
    margin-top:18px;
}

.stat-card{
    min-height:140px;
    padding:20px 16px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    background:linear-gradient(180deg, rgba(38,65,104,0.9), rgba(26,45,77,0.96));
    border:1px solid rgba(255,255,255,0.07);
    border-radius:22px;
    box-shadow:var(--shadow-soft);
}

.stat-title{
    color:var(--text-soft);
    font-size:15px;
    margin-bottom:10px;
    font-weight:700;
}

.stat-value{
    font-size:clamp(24px,3vw,34px);
    font-weight:900;
    line-height:1.4;
    word-break:break-word;
}

/* =========================
   COLORS
========================= */
.gold{color:var(--gold)!important;}
.green{color:var(--green)!important;}
.blue{color:var(--blue)!important;}
.red{color:var(--red)!important;}
.purple{color:var(--purple)!important;}
.cyan{color:var(--cyan)!important;}
.muted{color:var(--text-muted)!important;}

/* =========================
   FORMS
========================= */
form{
    width:100%;
}

.form-group{
    margin-bottom:16px;
}

label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    color:var(--text-soft);
    font-weight:700;
}

.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="file"],
select,
textarea{
    width:100%;
    min-height:54px;
    padding:12px 14px;
    background:linear-gradient(180deg, #08162f, #0a1a35);
    color:var(--text-main);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:16px;
    outline:none;
    transition:var(--transition);
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.03);
}

textarea{
    min-height:120px;
    resize:vertical;
}

.input::placeholder,
input::placeholder,
textarea::placeholder{
    color:#95a1b6;
}

.input:focus,
input:focus,
select:focus,
textarea:focus{
    border-color:rgba(248,193,74,0.5);
    box-shadow:0 0 0 4px rgba(248,193,74,0.09);
    background:linear-gradient(180deg, #0a1832, #0c1d3a);
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:16px;
}

/* =========================
   BUTTONS
========================= */
.btn,
button,
input[type="submit"]{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-width:130px;
    min-height:48px;
    padding:12px 18px;
    border:none;
    border-radius:16px;
    cursor:pointer;
    font-weight:800;
    font-size:15px;
    transition:var(--transition);
    box-shadow:0 8px 18px rgba(0,0,0,0.22);
    color:#fff;
}

.btn:hover,
button:hover,
input[type="submit"]:hover{
    transform:translateY(-2px);
    filter:brightness(1.03);
}

.btn-green{
    background:linear-gradient(135deg, #33d96d, #169746);
}

.btn-red{
    background:linear-gradient(135deg, #ff6666, #c53d3d);
}

.btn-blue{
    background:linear-gradient(135deg, #35c2ff, #1f8ee5);
}

.btn-orange{
    background:linear-gradient(135deg, #ffcc45, #e79a14);
    color:#10213d;
}

.btn-gray{
    background:linear-gradient(135deg, #8392ab, #556277);
}

.btn-purple{
    background:linear-gradient(135deg, #c28cff, #8d58df);
}

.btn-cyan{
    background:linear-gradient(135deg, #26ddd3, #1298b7);
}

.btn-yellow{
    background:linear-gradient(135deg, #ffd85a, #d39b11);
    color:#10213d;
}

/* =========================
   TABLES
========================= */
.table-wrap{
    width:100%;
    overflow:auto;
    border-radius:18px;
}

table{
    width:100%;
    min-width:880px;
    border-collapse:collapse;
    background:rgba(8,20,41,0.55);
    border-radius:18px;
    overflow:hidden;
}

th{
    background:rgba(8,18,35,0.95);
    color:var(--gold);
    font-size:15px;
    font-weight:900;
    padding:14px 12px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,0.06);
}

td{
    padding:14px 12px;
    text-align:center;
    color:var(--text-main);
    border-bottom:1px solid rgba(255,255,255,0.06);
    background:rgba(17,31,56,0.55);
}

tr:hover td{
    background:rgba(27,47,81,0.72);
}

.actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
}

/* =========================
   PROGRESS / BARS
========================= */
.progress-wrap,
.bar-wrap{
    background:#0b1630;
    border:1px solid rgba(255,255,255,0.06);
    border-radius:999px;
    overflow:hidden;
    height:20px;
    box-shadow:inset 0 2px 6px rgba(0,0,0,0.25);
}

.progress-bar,
.bar-fill{
    height:100%;
    background:linear-gradient(90deg, #2ddd64, #9cf34a);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:800;
    transition:width .4s ease;
}

/* =========================
   SESSION CARDS
========================= */
.sessions-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:16px;
}

.session-box{
    padding:18px;
    border-radius:18px;
    background:linear-gradient(180deg, rgba(24,42,72,0.98), rgba(16,30,52,0.98));
    border:1px solid rgba(255,255,255,0.07);
    box-shadow:var(--shadow-soft);
}

.session-type{
    font-size:20px;
    font-weight:900;
    margin-bottom:8px;
}

.session-time{
    font-size:15px;
    color:var(--text-soft);
    line-height:1.8;
    margin-bottom:12px;
}

.session-status{
    margin-top:10px;
}

/* =========================
   REFERRAL
========================= */
.ref-top{
    text-align:center;
    line-height:1.9;
    margin-bottom:10px;
}

.ref-count{
    text-align:center;
    font-weight:900;
    font-size:28px;
    color:#fff;
    margin-top:10px;
}

.reward-box{
    text-align:center;
    margin-top:14px;
    font-size:20px;
    font-weight:800;
}

/* =========================
   NOTICE / ALERT
========================= */
.notice-box,
.alert,
.msg-box{
    padding:14px 16px;
    border-radius:16px;
    margin-bottom:18px;
    text-align:center;
    font-weight:800;
    background:rgba(18,36,63,0.95);
    border:1px solid rgba(255,255,255,0.08);
}

.notice-success{
    color:var(--green);
    border-color:rgba(65,223,114,0.28);
}

.notice-error{
    color:var(--red);
    border-color:rgba(255,91,91,0.28);
}

/* =========================
   AUTH PAGES
========================= */
.auth-wrap{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px 16px;
}

.auth-card{
    width:100%;
    max-width:760px;
    background:linear-gradient(180deg, rgba(26,45,77,0.98), rgba(19,36,63,0.98));
    border:1px solid rgba(255,255,255,0.08);
    border-radius:28px;
    padding:34px 24px 28px;
    box-shadow:0 20px 50px rgba(0,0,0,0.34);
}

.auth-logo{
    text-align:center;
    font-size:44px;
    font-weight:900;
    color:var(--gold);
    margin-bottom:14px;
}

.auth-title{
    text-align:center;
    color:var(--gold);
    font-size:34px;
    font-weight:900;
    margin-bottom:10px;
}

.auth-subtitle{
    text-align:center;
    color:var(--text-soft);
    font-size:18px;
    line-height:1.9;
    margin-bottom:24px;
}

/* =========================
   FOOTER
========================= */
footer,
.footer{
    margin-top:20px;
    padding:18px 16px;
    text-align:center;
    color:var(--text-muted);
    border-top:1px solid rgba(255,255,255,0.05);
    background:rgba(5,12,24,0.35);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 1100px){
    .top-stats-grid,
    .stats-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }

    .form-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 768px){
    .page-container,
    .container,
    .page-wrap{
        padding:16px 10px 28px;
    }

    .nav-inner,
    .nav-container,
    .header-inner{
        padding:12px 10px;
    }

    .nav-links,
    .menu,
    .header-links{
        gap:6px;
    }

    .nav-links a,
    .menu a,
    .header-links a{
        font-size:13px;
        padding:7px 10px;
    }

    .top-stats-grid,
    .stats-grid,
    .sessions-grid{
        grid-template-columns:1fr;
    }

    .card{
        padding:16px;
        border-radius:20px;
    }

    .stat-card{
        min-height:120px;
        padding:18px 14px;
    }

    .btn,
    button,
    input[type="submit"]{
        width:100%;
        min-width:unset;
    }

    .actions{
        flex-direction:column;
    }

    .auth-card{
        padding:24px 16px 20px;
        border-radius:22px;
    }

    .auth-logo{
        font-size:34px;
    }

    .auth-title{
        font-size:27px;
    }

    .auth-subtitle{
        font-size:15px;
    }

    .input,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    input[type="file"],
    select,
    textarea{
        min-height:50px;
        font-size:16px;
    }
}

/* =========================
   SMALL HELPERS
========================= */
.text-center{text-align:center!important;}
.mt-10{margin-top:10px!important;}
.mt-15{margin-top:15px!important;}
.mt-20{margin-top:20px!important;}
.mb-10{margin-bottom:10px!important;}
.mb-15{margin-bottom:15px!important;}
.mb-20{margin-bottom:20px!important;}
.w-100{width:100%!important;}
.hidden{display:none!important;}