:root{
    --bg:#070b16;
    --panel:#0d1326;
    --panel2:#121a33;
    --line:#1f2d52;
    --text:#eef4ff;
    --muted:#8fa4c7;
    --green:#20e38a;
    --red:#ff4d6d;
    --blue:#4aa8ff;
    --yellow:#ffcc4d;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:radial-gradient(circle at top left,#13254e,#070b16 45%);color:var(--text)}
a{text-decoration:none;color:inherit}
.layout{display:flex;min-height:100vh}
.sidebar{width:280px;background:linear-gradient(180deg,#081124,#0b0f1d);border-right:1px solid var(--line);padding:22px;position:fixed;height:100vh;overflow:auto}
.brand{display:flex;gap:12px;align-items:center;margin-bottom:30px}
.brand-icon,.login-logo{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#1e8cff,#20e38a);box-shadow:0 0 35px rgba(32,227,138,.25);font-size:25px}
.brand h2{margin:0;font-size:21px}
.brand span{color:var(--muted);font-size:13px}
nav{display:grid;gap:8px}
nav a{padding:13px 14px;border-radius:14px;color:#cfe0ff;background:transparent}
nav a:hover{background:#111b35;color:white;box-shadow:inset 0 0 0 1px #263960}
.sidebar-footer{margin-top:35px}
.session-user{margin-bottom:10px;color:var(--muted);font-size:13px;font-weight:800;text-align:center}
.logout{display:block;padding:13px;border-radius:14px;background:#21101a;color:#ffb6c4;text-align:center}
.main{margin-left:280px;flex:1;padding:26px}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:15px}
.topbar h1{margin:0;font-size:31px}
.topbar p{margin:6px 0 0;color:var(--muted)}
.top-actions{display:flex;gap:8px;flex-wrap:wrap}
.notification-pill{
    min-height:34px;
    padding:8px 11px;
    border-radius:999px;
    background:#0b1428;
    border:1px solid #29446f;
    color:#d7e8ff;
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    font-weight:800;
}
.notification-pill strong{
    min-width:24px;
    height:24px;
    padding:0 7px;
    border-radius:999px;
    display:inline-grid;
    place-items:center;
    background:#162544;
    color:#eef4ff;
    font-size:12px;
}
.notification-pill.has-alerts{
    border-color:#20e38a;
    box-shadow:0 0 24px rgba(32,227,138,.16);
}
.notification-pill.has-alerts strong{background:#20e38a;color:#07101f}
.notification-dot{
    width:8px;
    height:8px;
    border-radius:999px;
    background:#20e38a;
    box-shadow:0 0 14px rgba(32,227,138,.7);
}
.btn{border:0;background:linear-gradient(135deg,#297cff,#20e38a);color:white;padding:12px 18px;border-radius:14px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 12px 30px rgba(42,124,255,.2)}
.btn.outline{background:#111a32;border:1px solid #2a3d68}
.btn.small{padding:9px 12px;font-size:13px}
.btn.big{font-size:16px;padding:16px 22px}
.btn.tiny{padding:7px 10px;font-size:12px}
.btn.full{width:100%;margin-top:15px}
.btn.success{background:linear-gradient(135deg,#0fbf70,#20e38a)}
.btn.warning{background:linear-gradient(135deg,#c59600,#ffcc4d)}
.btn.danger{background:linear-gradient(135deg,#d21c45,#ff4d6d)}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.card,.panel,.hero-panel{background:linear-gradient(180deg,rgba(18,26,51,.92),rgba(10,16,32,.92));border:1px solid var(--line);border-radius:24px;padding:20px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.card span{display:block;color:var(--muted);font-size:13px;margin-bottom:8px}
.card strong{font-size:25px}
.card.glow{box-shadow:0 0 45px rgba(74,168,255,.12)}
.card.profit strong,.green{color:var(--green)}
.card.loss strong,.red{color:var(--red)}
.hero-panel{margin:18px 0;display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(135deg,rgba(29,82,165,.5),rgba(17,28,53,.94))}
.hero-panel h2{font-size:28px;margin-top:0}
.hero-actions{display:grid;gap:10px;min-width:260px}
.progress{height:12px;background:#080d19;border-radius:999px;overflow:hidden;border:1px solid #24375f}
.progress div{height:100%;background:linear-gradient(90deg,#20e38a,#4aa8ff)}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.panel{margin-bottom:18px}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
table{width:100%;border-collapse:collapse}
th,td{padding:13px;border-bottom:1px solid #1d2a4b;text-align:left;font-size:14px;vertical-align:top}
th{color:#9db4d8;font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.badge{background:#162544;border:1px solid #304a7d;border-radius:999px;padding:5px 9px;font-size:12px}
.badge-success{border-color:#20e38a;color:#a8ffd2}
.badge-warning{border-color:#ffcc4d;color:#ffe09a}
.badge-danger{border-color:#ff4d6d;color:#ffb6c4}
.badge-info{border-color:#4aa8ff;color:#b9dcff}
.alert-row-pending{background:rgba(32,227,138,.05)}
.inline-actions{display:flex;grid-template-columns:none;flex-direction:row;min-width:0}
.muted{color:var(--muted)}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
label{display:block;color:#9db4d8;margin-bottom:8px;font-size:13px}
input,select{width:100%;background:#080e1d;border:1px solid #263a63;color:white;padding:13px;border-radius:14px;outline:none}
.form-actions{display:flex;align-items:end}
.ai-result{border-color:#315f93}
.warning-text{color:#ffcc4d}
.rules{line-height:2}
.alerts{margin-bottom:16px}
.alert{padding:13px 16px;border-radius:15px;margin-bottom:10px;border:1px solid #263a63;background:#111b35}
.alert.success{border-color:#1ba96b;color:#a8ffd2}
.alert.warning{border-color:#d5a51a;color:#ffe09a}
.alert.danger{border-color:#cc3758;color:#ffb6c4}
.alert.info{border-color:#377dcc;color:#b9dcff}
.login-body{min-height:100vh;display:grid;place-items:center;padding:20px}
.login-card{width:430px;max-width:100%;padding:34px;border:1px solid var(--line);border-radius:30px;background:linear-gradient(180deg,rgba(18,26,51,.95),rgba(8,13,25,.95));box-shadow:0 30px 90px rgba(0,0,0,.45)}
.login-card h1{margin-bottom:8px}
.login-card p,.login-note{color:var(--muted)}
.login-logo{margin-bottom:18px}
.cards-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}
.mini-card{padding:18px;border-radius:18px;background:#0a1020;border:1px solid #24375f}
@media(max-width:1000px){
    .sidebar{position:relative;width:100%;height:auto}
    .layout{display:block}
    .main{margin-left:0}
    .grid,.two-col,.form-grid,.cards-list{grid-template-columns:1fr}
    .topbar,.hero-panel{flex-direction:column;align-items:flex-start}
}

.modern-icon{
    display:inline-grid;
    place-items:center;
    width:24px;
    height:24px;
    margin-right:8px;
    border-radius:9px;
    background:linear-gradient(135deg,rgba(74,168,255,.22),rgba(32,227,138,.20));
    border:1px solid rgba(102,181,255,.28);
    color:#dffcff;
    font-size:14px;
    box-shadow:0 0 18px rgba(32,227,138,.12);
}
.modern-icon.xl{width:42px;height:42px;font-size:24px;border-radius:16px;vertical-align:middle}
.neural{position:relative;overflow:hidden}
.neural:before{
    content:"";
    position:absolute;inset:-80px;
    background:radial-gradient(circle at 75% 30%,rgba(32,227,138,.20),transparent 30%),
               radial-gradient(circle at 20% 70%,rgba(74,168,255,.18),transparent 35%);
    pointer-events:none;
}
.brain-orb{
    width:135px;height:135px;border-radius:40px;
    display:grid;place-items:center;
    font-weight:900;font-size:34px;
    background:linear-gradient(135deg,#20e38a,#4aa8ff);
    color:#07101f;
    box-shadow:0 0 60px rgba(32,227,138,.35);
    position:relative;z-index:1;
}
.chart-bars{
    height:210px;
    display:flex;
    align-items:end;
    gap:10px;
    padding:18px;
    border-radius:22px;
    background:#080e1d;
    border:1px solid #223762;
    overflow:hidden;
}
.chart-bars div{
    flex:1;
    min-width:8px;
    border-radius:12px 12px 0 0;
    background:linear-gradient(180deg,#20e38a,#4aa8ff);
    box-shadow:0 0 20px rgba(32,227,138,.18);
}
.phone-preview{
    width:180px;
    height:340px;
    border-radius:34px;
    padding:12px;
    background:#050914;
    border:1px solid #2b416d;
    box-shadow:0 25px 70px rgba(0,0,0,.45);
}
.phone-top{
    width:70px;height:7px;background:#1d2d50;border-radius:999px;margin:4px auto 12px;
}
.phone-screen{
    height:290px;
    border-radius:24px;
    background:linear-gradient(180deg,#121a33,#08101f);
    padding:18px;
    border:1px solid #20345d;
}
.phone-screen h3{margin-top:0;color:#20e38a}
nav a{display:flex;align-items:center}

.canvas-chart{
    width:100%;
    height:280px;
    border-radius:22px;
    background:#080e1d;
    border:1px solid #223762;
    display:block;
}
.sidebar::-webkit-scrollbar{width:8px}
.sidebar::-webkit-scrollbar-thumb{background:#20345d;border-radius:999px}
.sidebar{scrollbar-width:thin}
.card:hover,.panel:hover{
    border-color:#345d99;
    transform:translateY(-1px);
    transition:.18s ease;
}
.topbar{
    position:sticky;
    top:0;
    z-index:5;
    backdrop-filter:blur(16px);
    background:rgba(7,11,22,.72);
    border-bottom:1px solid rgba(31,45,82,.45);
    padding-bottom:12px;
}

.landing-v5{
    min-height:560px;
    display:grid;
    grid-template-columns:1.3fr .7fr;
    gap:24px;
    align-items:center;
    padding:42px;
    border-radius:34px;
    border:1px solid #244575;
    background:
      radial-gradient(circle at 15% 20%,rgba(32,227,138,.22),transparent 32%),
      radial-gradient(circle at 85% 40%,rgba(74,168,255,.20),transparent 30%),
      linear-gradient(135deg,#0d1730,#070b16);
    box-shadow:0 30px 90px rgba(0,0,0,.38);
    margin-bottom:20px;
}
.landing-content h1{font-size:52px;line-height:1.02;margin:0 0 18px}
.landing-content p{font-size:19px;color:#bdd2f4;max-width:720px}
.landing-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.landing-card{
    padding:28px;
    border-radius:30px;
    background:rgba(8,14,29,.75);
    border:1px solid #2b4d80;
    text-align:center;
}
.flyer-v5{
    padding:42px;
    border-radius:34px;
    background:
      radial-gradient(circle at top right,rgba(32,227,138,.22),transparent 32%),
      linear-gradient(135deg,#091225,#111b35);
    border:1px solid #2b4d80;
    box-shadow:0 30px 90px rgba(0,0,0,.40);
}
.flyer-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    border-bottom:1px solid #28456f;
    padding-bottom:22px;
    margin-bottom:24px;
}
.flyer-header h1{font-size:44px;margin:0}
.flyer-header p{color:#bdd2f4;font-size:18px}
.flyer-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}
.flyer-box{
    padding:22px;
    border-radius:24px;
    background:rgba(8,14,29,.74);
    border:1px solid #26436f;
}
.flyer-box h3{margin:12px 0 6px}
.flyer-box p{color:#9fb5d8}
.flyer-footer{
    margin-top:24px;
    display:flex;
    justify-content:space-between;
    padding-top:18px;
    border-top:1px solid #28456f;
    color:#dffcff;
}
code{
    background:#080e1d;
    border:1px solid #263a63;
    padding:4px 8px;
    border-radius:8px;
    color:#20e38a;
}
@media(max-width:1000px){
    .landing-v5,.flyer-grid{grid-template-columns:1fr}
    .landing-content h1,.flyer-header h1{font-size:34px}
    .flyer-header{flex-direction:column;align-items:flex-start}
}

ol.rules li{margin-bottom:8px}
.badge{
    white-space:nowrap;
}

.srn-trading-credit{margin-top:16px;display:flex;align-items:center;justify-content:center;gap:8px;color:#8ea0c6;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;text-align:center;flex-wrap:wrap}
.srn-trading-credit img{width:38px;height:24px;object-fit:contain;border-radius:5px;background:rgba(255,255,255,.08);padding:2px}
.sidebar-footer .srn-trading-credit{justify-content:flex-start;font-size:10px;color:#7384aa}
