/* ==========================================================================
   Never Music — Design System
   مستوحى من layout مرجعي، الهوية والحقوق لـ Never Store.
   ========================================================================== */

:root {
    --bg:          #0A0D0F;
    --bg-2:        #0F1115;
    --surface:     #161920;
    --surface-2:   #1E222B;
    --surface-3:   #262B36;

    --accent:      #e67e22;   /* برتقالي أساسي */
    --accent-2:    #df6800;   /* برتقالي أغمق (hover/gradient) */
    --accent-soft: rgba(230, 126, 34, 0.10);
    --accent-mid:  rgba(230, 126, 34, 0.20);

    --text:        #F3F4F6;
    --muted:       #9CA3AF;
    --muted-2:     #6B7280;

    --border:      rgba(255, 255, 255, 0.06);
    --border-2:    rgba(255, 255, 255, 0.10);

    --card-grad:   linear-gradient(145deg, rgba(22, 25, 32, 0.85) 0%, rgba(15, 17, 21, 0.92) 100%);
    --radius:      24px;
    --radius-sm:   16px;

    --ok:          #22c55e;
    --font:        'Cairo', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
    /* شبكة خلفية خفيفة جداً */
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 56px 56px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.accent { color: var(--accent); }

/* توهّج خلفي برتقالي للأقسام */
.glow-bg { position: relative; }
.glow-bg::before {
    content: "";
    position: absolute;
    top: -10%; left: 50%;
    width: 600px; height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(230,126,34,0.14) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ============================ Navbar (pill) ============================ */
.nav-wrap {
    position: fixed;
    top: 18px; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 16px;
}
.nav-pill {
    width: 100%;
    max-width: 1240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px 9px 18px;
    background: rgba(22, 25, 32, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-2);
    border-radius: 9999px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 18px; color: #fff;
    white-space: nowrap;
}
.nav-brand img {
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
    padding: 7px 11px; border-radius: 9999px;
    color: var(--muted); font-weight: 600; font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.05); }
.nav-actions { display: flex; align-items: center; gap: 7px; }
.nav-user { display: flex; align-items: center; gap: 8px; }
.nav-user img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-2); }
.nav-user span { font-size: 14px; color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* ============================ Buttons ============================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px; border-radius: 9999px;
    font-family: var(--font); font-weight: 700; font-size: 15px;
    cursor: pointer; border: 1px solid transparent; transition: all 0.22s;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(230, 126, 34, 0.45); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; white-space: nowrap; }
.btn-admin {
    background: var(--accent-soft); color: var(--accent);
    border-color: var(--accent-mid); font-weight: 700;
}
.btn-admin:hover { background: var(--accent-mid); }

/* ============================ Section header ============================ */
.section { padding: 90px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.eyebrow {
    display: inline-block;
    color: var(--accent); font-weight: 700; font-size: 13px;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
    font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #fff;
    line-height: 1.3; margin-bottom: 14px;
}
.section-desc { color: var(--muted); font-size: 16px; }

/* Announcement pill */
.announce-pill {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 22px;
    padding: 10px 20px; border-radius: 9999px; max-width: 90%;
    background: var(--accent-soft); border: 1px solid var(--accent-mid);
    color: var(--text); font-size: 14px; font-weight: 600;
}
.announce-pill i { color: var(--accent); }

/* ============================ Hero ============================ */
.hero {
    position: relative;
    padding: 170px 0 70px;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; top: 0; left: 50%;
    width: 900px; height: 700px; transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(230,126,34,0.16) 0%, transparent 62%);
    pointer-events: none; z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px; border-radius: 9999px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-2);
    font-size: 14px; color: var(--muted); margin-bottom: 28px;
}
.hero-badge b { color: var(--accent); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 {
    font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.2;
    color: #fff; margin-bottom: 22px;
}
.hero h1 .grad {
    background: linear-gradient(135deg, #fff 0%, #f6b27a 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead {
    font-size: clamp(16px, 2vw, 19px); color: var(--muted);
    max-width: 680px; margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================ Hero stats ============================ */
.hero-stats {
    display: flex; justify-content: center; gap: 60px; flex-wrap: wrap;
    margin-top: 60px; padding-top: 40px;
    border-top: 1px solid var(--border);
}
.hstat { text-align: center; }
.hstat .num { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; }
.hstat .num.accent { color: var(--accent); }
.hstat .lbl { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ============================ Live player ============================ */
.live-wrap { margin-top: 60px; }
.live-card {
    max-width: 560px; margin: 0 auto;
    background: var(--card-grad);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    text-align: right;
}
.live-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.live-name { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.live-name i { color: var(--accent); }
.live-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 9999px;
    background: rgba(34,197,94,0.12); color: var(--ok);
    font-size: 12px; font-weight: 800; letter-spacing: 1px;
}
.live-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
    animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,0.5);} 70%{box-shadow:0 0 0 8px rgba(34,197,94,0);} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0);} }
.live-track { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.live-cover {
    width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex; align-items: center; justify-content: center; font-size: 26px; color:#fff;
}
.live-track .t-title { font-weight: 700; font-size: 15px; }
.live-track .t-sub { color: var(--muted); font-size: 13px; }
.live-bar { height: 6px; border-radius: 9999px; background: var(--surface-3); overflow: hidden; margin-bottom: 8px; }
.live-bar span { display: block; height: 100%; width: 42%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 9999px; }
.live-time { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 12px; }

/* Two cards side by side (stats + player) */
.live-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 60px auto 0; }
.live-duo .live-card { margin: 0; }
.stat-live-card {
    background: var(--card-grad); border: 1px solid var(--border-2); border-radius: var(--radius);
    padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); text-align: right;
    display: flex; flex-direction: column;
}
.stat-live-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.stat-live-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.stat-live-nums .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.stat-live-nums .box .n { font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-live-nums .box .n.white { color: #fff; }
.stat-live-nums .box .l { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat-live-foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--muted-2); font-size: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
@media (max-width: 780px) { .live-duo { grid-template-columns: 1fr; } }

/* Interactive player (2-song toggle) */
.disc {
    width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0;
    background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
    display: flex; align-items: center; justify-content: center; position: relative;
    box-shadow: 0 0 20px rgba(230,126,34,0.4);
}
.disc::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid rgba(0,0,0,0.4); }
.disc i { color: rgba(255,255,255,0.9); font-size: 22px; z-index: 1; }
.disc.spin { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-ctrls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.player-ctrls button {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-2);
    background: var(--surface); color: var(--text); cursor: pointer; font-size: 15px; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.player-ctrls button:hover { border-color: var(--accent); color: var(--accent); }
.player-ctrls .play-main {
    width: 58px; height: 58px; font-size: 20px; border: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
    box-shadow: 0 8px 22px rgba(230,126,34,0.4);
}
.player-lang { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: 9999px; margin-top: 6px; }

/* ===== truestudio-style rich player ===== */
.tsp { position: relative; }
.tsp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tsp-brand { display: flex; align-items: center; gap: 10px; }
.tsp-brand .logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; color: #fff; }
.tsp-brand .nm { font-weight: 800; color: #fff; font-size: 15px; }
.tsp-brand .stt { font-size: 12px; color: var(--muted); }
.tsp-inner {
    background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px; display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.tsp-cover { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; object-fit: cover;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; }
.tsp-meta { flex: 1; min-width: 0; text-align: right; }
.tsp-meta .t { font-weight: 700; color: #fff; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsp-meta .a { font-size: 13px; color: var(--muted); }
.tsp-prog { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tsp-prog .time { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; min-width: 34px; }
.tsp-bar { flex: 1; height: 6px; border-radius: 9999px; background: var(--surface-3); cursor: pointer; position: relative; }
.tsp-bar .fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 9999px; }
.tsp-bar .knob { position: absolute; top: 50%; left: 0%; transform: translate(-50%,-50%); width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(230,126,34,0.6); }
.tsp-ctrls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.tsp-ctrls button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.tsp-ctrls button:hover { color: var(--accent); }
.tsp-ctrls button.on { color: var(--accent); }
.tsp-ctrls .big { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 20px; box-shadow: 0 8px 22px rgba(230,126,34,0.4); }
.tsp-ctrls .big:hover { color: #fff; transform: scale(1.05); }
.tsp-badge {
    position: absolute; bottom: -14px; left: -10px;
    background: var(--card-grad); border: 1px solid var(--border-2); border-radius: 14px;
    padding: 8px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.tsp-badge .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.tsp-badge .tx b { display: block; font-size: 12px; color: #fff; }
.tsp-badge .tx span { font-size: 11px; color: var(--ok); }

/* Clients section */
.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.client-card {
    background: var(--card-grad); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; text-align: center; transition: all 0.25s;
}
.client-card:hover { border-color: var(--accent-mid); transform: translateY(-4px); }
.client-icon { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 14px; border: 2px solid var(--accent); object-fit: cover; background: var(--surface); }
.client-icon.ph { display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: var(--accent); }
.client-name { font-weight: 800; color: #fff; font-size: 15px; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-meta { display: flex; justify-content: center; gap: 16px; }
.client-meta div { display: flex; flex-direction: column; }
.client-meta .v { font-weight: 800; color: var(--accent); font-size: 16px; }
.client-meta .l { font-size: 11px; color: var(--muted); }

/* ============================ Cards grid ============================ */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--card-grad);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.card:hover { border-color: var(--accent-mid); transform: translateY(-4px); }
.card .ic {
    width: 54px; height: 54px; border-radius: 14px;
    background: var(--accent-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 20px;
}
.card h3 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ============================ CTA band ============================ */
.cta-band { padding: 70px 0; }
.cta-inner {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border-radius: 32px; padding: 60px 40px; text-align: center;
    box-shadow: 0 24px 70px rgba(230,126,34,0.35);
}
.cta-inner::after {
    content: ""; position: absolute; top: -80px; left: -80px;
    width: 280px; height: 280px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,0.9); font-size: 17px; margin-bottom: 28px; }
.btn-white { background: #fff; color: var(--accent-2); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }

/* ============================ Pricing ============================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
    background: var(--card-grad); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 28px;
    display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(230,126,34,0.2); }
.price-tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
    font-size: 12px; font-weight: 800; padding: 6px 16px; border-radius: 9999px;
}
.price-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display:flex; align-items:center; justify-content:center; font-size: 20px; margin-bottom: 18px; }
.price-name { font-size: 22px; font-weight: 800; color: #fff; }
.price-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.price-val { font-size: 44px; font-weight: 800; color: #fff; }
.price-val small { font-size: 16px; color: var(--muted); font-weight: 600; }
.price-per { color: var(--muted-2); font-size: 13px; margin-bottom: 20px; }
.price-feats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; flex-grow: 1; }
.price-feats li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.price-feats i { color: var(--accent); }
.qty-row { margin-bottom: 14px; }
.qty-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.qty-input {
    width: 100%; padding: 11px 14px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border-2); color: #fff;
    font-family: var(--font); font-size: 15px; text-align: center;
}
.qty-input:focus { outline: none; border-color: var(--accent); }
.price-card .btn { width: 100%; }

/* ============================ Footer ============================ */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 16px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); }
.footer p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface-2); color: var(--muted);
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: var(--muted-2); font-size: 13px; }

/* ============================ Responsive ============================ */
/* انطواء روابط الـ navbar في قائمة على الشاشات المتوسطة (منعاً للازدحام) */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 70px; left: 16px; right: 16px; padding: 14px; z-index: 50;
        background: rgba(22,25,32,0.96); border: 1px solid var(--border-2);
        border-radius: var(--radius-sm); backdrop-filter: blur(14px);
    }
    .nav-links.open a { width: 100%; }
}
@media (max-width: 900px) {
    .grid-3, .price-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .hero-stats { gap: 34px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 26px; }
    .hstat .num { font-size: 30px; }
}

/* ==========================================================================
   Dashboard (لوحة التحكم)
   ========================================================================== */
.dash-top {
    position: sticky; top: 0; z-index: 90;
    background: rgba(10,13,15,0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.dash-top .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 26px; padding: 32px 0 60px; align-items: start; }

.side {
    background: var(--card-grad); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; position: sticky; top: 90px;
}
.side-title { font-size: 14px; color: var(--muted); font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.side-badge { background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 9999px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a, .side-nav button {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px; border: 0; cursor: pointer;
    background: transparent; color: var(--muted); font-family: var(--font);
    font-size: 15px; font-weight: 600; text-align: right; width: 100%; transition: all 0.2s;
}
.side-nav a:hover, .side-nav button:hover { background: rgba(255,255,255,0.04); color: #fff; }
.side-nav a.active, .side-nav button.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
    box-shadow: 0 6px 18px rgba(230,126,34,0.3);
}
.side-nav i { width: 20px; text-align: center; }
.side-note { margin-top: 18px; padding: 16px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent-mid); }
.side-note b { color: var(--accent); font-size: 14px; display: block; margin-bottom: 4px; }
.side-note p { color: var(--muted); font-size: 12px; margin: 0; }

.dash-welcome h2 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.dash-welcome p { color: var(--muted); }
.dash-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.dash-search { position: relative; flex: 1; min-width: 220px; }
.dash-search input {
    width: 100%; padding: 12px 44px 12px 16px; border-radius: 9999px;
    background: var(--surface); border: 1px solid var(--border-2); color: #fff;
    font-family: var(--font); font-size: 15px;
}
.dash-search input:focus { outline: none; border-color: var(--accent); }
.dash-search i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.tab-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.tab-title i { color: var(--accent); }
.tab-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* Bot cards */
.bots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.bot-card {
    background: var(--card-grad); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; text-align: center;
    display: flex; flex-direction: column; transition: all 0.25s;
}
.bot-card:hover { border-color: var(--accent-mid); }
.bot-card.running { border-color: rgba(34,197,94,0.3); }
.bot-card.expired { opacity: 0.65; }
.bot-avatar {
    width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
    border: 3px solid var(--accent); object-fit: cover;
    box-shadow: 0 0 24px rgba(230,126,34,0.3);
}
.bot-name { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.bot-code { font-family: monospace; font-size: 13px; color: var(--accent); }
.bot-expiry { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border-2); padding: 4px 12px; border-radius: 9999px; }
.bot-status { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0; font-size: 13px; font-weight: 700; }
.bot-status .dot { width: 9px; height: 9px; border-radius: 50%; }
.st-on { color: var(--ok); } .st-on .dot { background: var(--ok); animation: pulse 1.6s infinite; }
.st-off { color: var(--muted); } .st-off .dot { background: var(--muted-2); }
.st-exp { color: #ef4444; } .st-exp .dot { background: #ef4444; }
.bot-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.mini-controls { display: flex; gap: 8px; }
.mini-controls button {
    flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--border-2);
    background: var(--surface); color: var(--text); cursor: pointer; font-size: 14px; transition: all 0.2s;
}
.mini-controls button:hover { border-color: var(--accent); color: var(--accent); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius);
    width: 100%; max-width: 980px; max-height: 94vh; overflow-y: auto;
}
.modal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.modal-col { display: flex; flex-direction: column; }
.modal-col .sec-title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.modal-col .sec-title i { color: var(--accent); }
.modal-sub { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.modal-head { padding: 14px 24px; }
.modal-body .hint { margin-top: 4px; }
@media (max-width: 720px) { .modal-cols { grid-template-columns: 1fr; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 18px; font-weight: 800; color: #fff; }
.modal-head .close { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; }
.modal-body { padding: 18px 24px; }
.modal-body .fld { margin-bottom: 11px; }
.modal-body label { display: block; font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.modal-body input, .modal-body select {
    width: 100%; padding: 10px 13px; border-radius: 11px;
    background: var(--surface); border: 1px solid var(--border-2); color: #fff;
    font-family: var(--font); font-size: 14px;
}
.modal-body input:focus, .modal-body select:focus { outline: none; border-color: var(--accent); }
.modal-body .hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; }

/* Commands */
.cmd-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.cmd-filter { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 9999px; padding: 4px; }
.cmd-filter button { padding: 8px 16px; border-radius: 9999px; border: 0; background: transparent; color: var(--muted); font-family: var(--font); font-weight: 700; font-size: 13px; cursor: pointer; }
.cmd-filter button.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cmd {
    background: var(--card-grad); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px 18px; cursor: pointer; transition: all 0.18s; position: relative;
}
.cmd:hover { border-color: var(--accent); transform: translateY(-2px); }
.cmd .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cmd .name { font-family: monospace; font-size: 15px; font-weight: 800; color: var(--accent); }
.cmd .badge { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 9999px; }
.cmd .badge.gen { background: rgba(34,197,94,0.12); color: var(--ok); }
.cmd .badge.adm { background: var(--accent-soft); color: var(--accent); }
.cmd .desc { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.cmd .alias { display: flex; flex-wrap: wrap; gap: 5px; }
.cmd .alias span { font-size: 11px; font-family: monospace; color: var(--muted-2); background: var(--surface); padding: 2px 7px; border-radius: 6px; }
.cmd .copied { position: absolute; top: 10px; left: 12px; font-size: 11px; color: var(--ok); opacity: 0; transition: opacity 0.2s; }
.cmd .copied.show { opacity: 1; }

/* Empty state */
.empty { text-align: center; padding: 70px 20px; }
.empty .ghost { font-size: 56px; color: var(--muted-2); opacity: 0.4; margin-bottom: 18px; }
.empty h3 { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 22px; }

/* Distributor */
.dist-server { max-width: 420px; margin-bottom: 24px; }
.dist-row {
    display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: center;
    background: var(--card-grad); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px; margin-bottom: 12px;
}
.dist-row .binfo { display: flex; align-items: center; gap: 12px; }
.dist-row .binfo img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); }
.dist-row .binfo .n { font-weight: 700; color: #fff; font-size: 14px; }
.dist-row .binfo .c { font-family: monospace; font-size: 12px; color: var(--accent); }
.dist-row select { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-2); color: #fff; font-family: var(--font); }
.dist-row .rstate { font-size: 12px; font-weight: 700; }

/* Nicer server select */
.dist-select-wrap { position: relative; max-width: 380px; }
.dist-select-wrap select {
    width: 100%; appearance: none; padding: 14px 18px; border-radius: var(--radius-sm);
    background: var(--card-grad); border: 1px solid var(--border-2); color: #fff;
    font-family: var(--font); font-weight: 700; font-size: 15px; cursor: pointer;
}
.dist-select-wrap select:focus { outline: none; border-color: var(--accent); }
.dist-select-wrap::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--accent); pointer-events: none; font-size: 12px; }

/* Custom dropdown (نفس الهوية — بدل الأبيض/الأزرق) */
.dd { position: relative; max-width: 400px; }
.dd-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--card-grad); border: 1px solid var(--border-2); color: #fff; font-family: var(--font); font-weight: 700; font-size: 15px; cursor: pointer; }
.dd-btn .chev { color: var(--accent); transition: transform 0.2s; }
.dd.open .dd-btn .chev { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 6px; display: none; z-index: 50; max-height: 280px; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.dd.open .dd-menu { display: block; }
.dd-item { padding: 12px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; cursor: pointer; transition: all 0.15s; }
.dd-item:hover { background: var(--accent-soft); color: var(--accent); }
.dd-item.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

/* Temp rooms + section headers in distributor */
.disc-cat.temp { color: var(--accent); }

/* Discord-like distributor panel */
.disc-panel { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.disc-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.disc-panel-head .srv { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; }
.disc-panel-head .srv .ico { width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); display: flex; align-items: center; justify-content: center; color: #fff; }
.disc-panel-head .refresh { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; }
.disc-cat { padding: 14px 20px 6px; color: var(--muted-2); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.disc-vc { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-radius: 10px; margin: 2px 10px; transition: background 0.15s; }
.disc-vc:hover { background: rgba(255,255,255,0.03); }
.disc-vc .vc-name { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.disc-vc .vc-name i { color: var(--muted-2); }
.disc-vc .vc-bots { display: flex; align-items: center; gap: -6px; }
.disc-bot-chip {
    display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft);
    border: 1px solid var(--accent-mid); border-radius: 9999px; padding: 3px 10px 3px 4px; margin-right: -4px;
}
.disc-bot-chip img { width: 22px; height: 22px; border-radius: 50%; }
.disc-bot-chip span { font-size: 12px; color: var(--accent); font-weight: 700; }
.disc-empty-vc { color: var(--muted-2); font-size: 12px; }

.disc-assign { padding: 16px 20px; border-top: 1px solid var(--border); }
.disc-assign-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.disc-assign-row .b { display: flex; align-items: center; gap: 10px; }
.disc-assign-row .b img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); }
.disc-assign-row .b .n { font-weight: 700; color: #fff; font-size: 14px; }
.disc-assign-row select { padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-2); color: #fff; font-family: var(--font); min-width: 160px; }
.disc-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface); }
.disc-foot .avail { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.disc-foot .avail b { color: var(--ok); }

/* Invoices */
.inv-table { background: var(--card-grad); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.inv-head, .inv-row { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 0.9fr 1fr 1fr; gap: 10px; align-items: center; padding: 14px 18px; }
.inv-head { background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; }
.inv-row { border-top: 1px solid var(--border); font-size: 13px; color: var(--text); }
.inv-row:hover { background: rgba(255,255,255,0.02); }
.inv-id { font-family: monospace; color: var(--accent); font-size: 12px; }
.inv-date { color: var(--muted); }
.inv-paid { display: inline-flex; align-items: center; gap: 6px; background: rgba(34,197,94,0.12); color: var(--ok); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 9999px; }

/* Toast notifications */
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.toast {
    display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: 14px;
    background: var(--card-grad); border: 1px solid var(--border-2);
    box-shadow: 0 14px 40px rgba(0,0,0,0.5); color: var(--text); font-weight: 600; font-size: 14px;
    max-width: 460px; pointer-events: auto; backdrop-filter: blur(12px);
    animation: toastIn 0.35s cubic-bezier(.2,.9,.3,1);
    border-inline-start: 4px solid var(--accent);
}
.toast.out { animation: toastOut 0.3s forwards; }
.toast .tico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.toast.ok  { border-inline-start-color: var(--ok); } .toast.ok .tico  { background: rgba(34,197,94,0.15); color: var(--ok); }
.toast.err { border-inline-start-color: #ef4444; }   .toast.err .tico { background: rgba(239,68,68,0.15); color: #ef4444; }
.toast.info .tico { background: var(--accent-soft); color: var(--accent); }
.toast .tmsg { white-space: pre-line; line-height: 1.5; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px) scale(.96); } }

/* Playback controls in modal */
.mctrl-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mctrl { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); cursor: pointer; font-size: 14px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.mctrl:hover { border-color: var(--accent); color: var(--accent); }
.mctrl.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.q-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface); margin-bottom: 6px; font-size: 13px; }
.q-item .qn { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-item.now { border: 1px solid var(--accent-mid); }
.q-item .qi { color: var(--accent); }

/* Play box (web playback) */
.play-box { display: flex; gap: 10px; margin-bottom: 14px; }
.play-box input { flex: 1; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-2); color: #fff; font-family: var(--font); }
.play-box input:focus { outline: none; border-color: var(--accent); }

@media (max-width: 860px) {
    .dash-layout { grid-template-columns: 1fr; }
    .side { position: static; }
    .dist-row { grid-template-columns: 1fr; }
    .inv-head { display: none; }
    .inv-row { grid-template-columns: 1fr 1fr; font-size: 12px; }
}

/* عدّاد المفضلة */
.fav-count{
    display:inline-block;min-width:20px;padding:1px 7px;margin-inline-start:6px;
    font-size:12px;font-weight:700;text-align:center;
    color:#fff;background:var(--accent);border-radius:20px;vertical-align:middle;
}
/* شريط تمرير أنيق داخل قوائم النافذة */
#mQueue::-webkit-scrollbar,#mFavList::-webkit-scrollbar{width:8px;}
#mQueue::-webkit-scrollbar-thumb,#mFavList::-webkit-scrollbar-thumb{background:rgba(230,126,34,.4);border-radius:8px;}
#mQueue::-webkit-scrollbar-track,#mFavList::-webkit-scrollbar-track{background:transparent;}

/* بطاقة يُشغّل الآن (لايف) */
.now-card{
    display:flex;gap:14px;align-items:center;
    background:linear-gradient(135deg, rgba(230,126,34,.14), rgba(223,104,0,.06));
    border:1px solid rgba(230,126,34,.25);border-radius:16px;padding:14px;margin-bottom:16px;
}
.now-art{width:64px;height:64px;border-radius:12px;object-fit:cover;flex-shrink:0;box-shadow:0 4px 14px rgba(0,0,0,.35);}
.now-info{flex:1;min-width:0;}
.now-title{color:#fff;font-weight:800;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.now-author{color:var(--muted);font-size:12px;margin:2px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.now-bar{height:6px;background:rgba(255,255,255,.12);border-radius:6px;overflow:hidden;}
.now-fill{height:100%;width:0;background:linear-gradient(90deg,#e67e22,#df6800);border-radius:6px;transition:width .95s linear;}
.now-times{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-top:5px;}
