:root{
  --bg:#07090d;
  --panel:#11141b;
  --panel-2:#171b24;
  --border:#232936;
  --text:#f4f7fb;
  --muted:#a2adbc;
  --primary:#3b82f6;
  --primary-soft:rgba(59,130,246,.12);
  --green:#20d17d;
  --yellow:#ffbf47;
  --danger:#ff5d5d;
  --shadow:0 16px 40px rgba(0,0,0,.35);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:radial-gradient(circle at top,#111522 0%,var(--bg) 35%);color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif;min-height:100%}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit}
input,select,textarea{
  width:100%;background:#090c11;border:1px solid var(--border);color:var(--text);
  padding:12px 14px;border-radius:12px;outline:none;transition:.2s border,.2s box-shadow;
}
input:focus,select:focus,textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.12)}
textarea{min-height:100px;resize:vertical}
button,.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border-radius:12px;
  border:0;cursor:pointer;font-weight:700;transition:transform .15s ease,opacity .2s ease,background .2s ease;
}
button:hover,.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff}
.btn-secondary{background:#202634;color:#fff;border:1px solid var(--border)}
.btn-success{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff}
.btn-danger{background:linear-gradient(135deg,#60a5fa,#3b82f6);color:#fff}
.btn-warning{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#111827}
.btn-sm{padding:8px 12px;border-radius:10px;font-size:13px}
.btn-ghost{background:transparent;border:1px solid var(--border);color:var(--muted)}
.small{font-size:12px;color:var(--muted)}
.muted{color:var(--muted)}
.grid{display:grid;gap:18px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.container-app{display:flex;min-height:100vh}
.sidebar{
  width:290px;background:rgba(10,12,17,.84);backdrop-filter: blur(16px);border-right:1px solid rgba(255,255,255,.04);
  padding:24px;position:sticky;top:0;height:100vh
}
.brand{
  display:flex;align-items:center;gap:14px;padding:18px;border-radius:22px;background:linear-gradient(180deg,#141925,#10131a);
  border:1px solid rgba(255,255,255,.05);box-shadow:var(--shadow);margin-bottom:24px
}
.brand .logo{
  width:56px;height:56px;border-radius:18px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);
  display:flex;align-items:center;justify-content:center;font-size:27px;box-shadow:0 10px 24px rgba(59,130,246,.28);overflow:hidden
}
.brand .logo img{width:100%;height:100%;object-fit:contain}
.brand .title{font-size:22px;font-weight:800;line-height:1.1}
.brand .subtitle{font-size:13px;color:var(--muted);margin-top:4px}
.nav{display:grid;gap:8px}
.nav a{
  padding:14px 16px;border-radius:14px;color:var(--muted);border:1px solid transparent;
  display:flex;align-items:center;gap:12px;font-weight:600
}
.nav a:hover{background:#151a23;color:#fff}
.nav a.active{background:linear-gradient(180deg,rgba(59,130,246,.13),rgba(59,130,246,.06));color:#fff;border-color:rgba(59,130,246,.28)}
.nav span.icon{width:30px;height:30px;border-radius:10px;background:#171d29;display:inline-flex;align-items:center;justify-content:center}
.sidebar-footer{position:absolute;left:24px;right:24px;bottom:24px;padding:16px;border-radius:18px;background:#0d1118;border:1px solid var(--border)}
.main{flex:1;padding:24px 28px 40px;min-width:0}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.topbar-card{background:linear-gradient(180deg,rgba(17,20,27,.92),rgba(12,15,21,.88));border:1px solid var(--border);border-radius:22px;padding:18px 22px;box-shadow:var(--shadow)}
.page-title h1{margin:0;font-size:32px;line-height:1.05}
.page-title p{margin:8px 0 0;color:var(--muted)}
.user-chip{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:#121722;border:1px solid var(--border)}
.avatar{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#3b82f6,#1e3a8a);font-weight:800}
.panel{background:linear-gradient(180deg,rgba(17,20,27,.96),rgba(12,15,21,.92));border:1px solid var(--border);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}
.panel h2,.panel h3{margin:0 0 12px}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin-bottom:22px}
.stat-card{padding:18px;border-radius:22px;background:linear-gradient(180deg,#111722,#0e1219);border:1px solid var(--border);position:relative;overflow:hidden}
.stat-card::after{content:'';position:absolute;right:-20px;top:-20px;width:90px;height:90px;border-radius:50%;background:var(--primary-soft)}
.stat-card .label{font-size:13px;color:var(--muted);margin-bottom:8px}
.stat-card .value{font-size:30px;font-weight:800;letter-spacing:-0.03em}
.stat-card .sub{font-size:12px;color:var(--muted);margin-top:8px}
.badge{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;font-weight:700;font-size:12px;border:1px solid transparent}
.badge-success{background:rgba(32,209,125,.13);color:#9ff0c9;border-color:rgba(32,209,125,.22)}
.badge-warning{background:rgba(255,191,71,.12);color:#ffd78a;border-color:rgba(255,191,71,.24)}
.badge-danger{background:rgba(255,93,93,.13);color:#ffc1c1;border-color:rgba(255,93,93,.28)}
.badge-neutral{background:rgba(255,255,255,.06);color:#dce3ee;border-color:rgba(255,255,255,.08)}
.toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.search-row{display:flex;gap:12px;flex-wrap:wrap}
.search-row .grow{flex:1;min-width:240px}
.table{width:100%;border-collapse:separate;border-spacing:0 10px}
.table th{font-size:12px;color:var(--muted);font-weight:700;text-align:left;padding:0 12px 8px}
.table td{background:#0e131b;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:14px 12px;vertical-align:middle}
.table td:first-child{border-left:1px solid var(--border);border-radius:14px 0 0 14px}
.table td:last-child{border-right:1px solid var(--border);border-radius:0 14px 14px 0}
.logo-thumb{width:54px;height:54px;border-radius:16px;background:#0a0f15;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden}
.logo-thumb img{width:100%;height:100%;object-fit:contain}
.table-actions,.card-actions{display:flex;gap:8px;flex-wrap:wrap}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}
.channel-card,.category-card{
  display:block;
  background:linear-gradient(180deg,#11151d,#0c1016);border:1px solid var(--border);border-radius:22px;padding:18px;position:relative;
  box-shadow:var(--shadow)
}
.channel-card::before,.category-card::before{content:'';position:absolute;inset:0;border-radius:22px;padding:1px;background:linear-gradient(135deg,rgba(255,45,45,.24),rgba(255,255,255,.02));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
.channel-card .logo-wrap,.category-card .logo-wrap{
  width:78px;height:78px;border-radius:24px;background:#090c11;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;margin-bottom:16px;overflow:hidden
}
.channel-card .logo-wrap img,.category-card .logo-wrap img{width:100%;height:100%;object-fit:contain}
.channel-card h3,.category-card h3{margin:0 0 8px;font-size:21px;min-height:52px}
.card-meta{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.form-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.form-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}
.flash-wrap{display:grid;gap:12px;margin-bottom:18px}
.flash{padding:14px 16px;border-radius:14px;border:1px solid var(--border);font-weight:600}
.flash.success{background:rgba(32,209,125,.12);border-color:rgba(32,209,125,.22)}
.flash.error{background:rgba(255,93,93,.12);border-color:rgba(255,93,93,.24)}
.flash.info{background:rgba(255,255,255,.06)}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;max-width:1180px;width:100%}
.login-showcase{padding:32px;border-radius:30px;background:linear-gradient(180deg,#141926,#0b0f16);border:1px solid var(--border);box-shadow:var(--shadow);position:relative;overflow:hidden}
.login-showcase::after{content:'';position:absolute;right:-70px;top:-70px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,#3b82f655 0%,transparent 68%)}
.login-showcase h1{font-size:48px;line-height:1.02;margin:0 0 12px;max-width:560px}
.login-showcase p{color:var(--muted);font-size:18px;max-width:620px}
.login-showcase .showcase-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
.mini-card{padding:18px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.login-panel{padding:30px;border-radius:30px;background:linear-gradient(180deg,#11151d,#090c12);border:1px solid var(--border);box-shadow:var(--shadow)}
.login-panel h2{margin:0 0 10px;font-size:28px}
.login-panel p{color:var(--muted);margin-top:0}
.kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:var(--primary-soft);color:#ffafaf;border:1px solid rgba(255,45,45,.2);font-weight:700;font-size:13px;margin-bottom:16px}
.header-actions{display:flex;gap:10px;flex-wrap:wrap}
.source-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:14px;border-radius:16px;background:#0d1118;border:1px solid var(--border)}
.url-cell{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;word-break:break-all;color:#d6dfeb}
.empty{padding:28px;border:1px dashed rgba(255,255,255,.12);border-radius:18px;text-align:center;color:var(--muted)}
hr.sep{border:none;border-top:1px solid var(--border);margin:18px 0}
.info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.info-chip{padding:14px;border-radius:14px;background:#0d1118;border:1px solid var(--border)}
.breadcrumb{display:flex;gap:8px;flex-wrap:wrap;align-items:center;color:#93c5fd;font-weight:700;margin-bottom:8px}
.footer-note{margin-top:20px;color:var(--muted);font-size:12px}
@media (max-width:1280px){.grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1024px){.container-app{display:block}.sidebar{position:relative;height:auto;width:auto}.login-grid{grid-template-columns:1fr}.form-grid,.form-grid-3,.info-grid,.grid-4,.grid-3,.grid-2{grid-template-columns:1fr}}
@media (max-width:700px){.main{padding:18px}.topbar{flex-direction:column;align-items:flex-start}.cards{grid-template-columns:1fr}.source-row{grid-template-columns:1fr}.login-showcase h1{font-size:36px}}

.alert-panel{border-color:rgba(255,191,71,.24);box-shadow:0 16px 40px rgba(255,191,71,.08)}
.pix-qr-wrap{display:flex;align-items:center;justify-content:center;padding:10px}
.pix-qr{width:min(100%,320px);background:#fff;border-radius:18px;padding:14px;box-shadow:0 10px 25px rgba(0,0,0,.22)}


/* ZYX v34 modal stable */
a.player-open-link[data-player-modal="1"]{cursor:pointer !important}
.zyx-player-modal{position:fixed;inset:0;z-index:9999;background:rgba(2,6,23,.78);display:none;align-items:center;justify-content:center;padding:24px}
.zyx-player-dialog{width:min(1180px,96vw);background:#060c17;border:1px solid rgba(255,255,255,.08);border-radius:18px;box-shadow:0 25px 70px rgba(0,0,0,.55);overflow:hidden}
.zyx-player-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.08);background:#09101c}
.zyx-player-title{font-size:18px;font-weight:800;color:#fff}
.zyx-player-subtitle{font-size:13px;color:#9fb0ca}
.zyx-player-actions{display:flex;gap:10px;flex-wrap:wrap}
.zyx-player-frame-wrap{background:#000;line-height:0}
#player-modal-frame{width:100%;height:74vh;border:0;background:#000}
body.zyx-modal-open{overflow:hidden}


/* ZYX v35 player modal centered large */
a.player-open-link[data-player-modal="1"]{cursor:pointer !important}
.zyx-player-modal{position:fixed;inset:0;z-index:9999;background:rgba(2,6,23,.82);display:none;align-items:center;justify-content:center;padding:18px}
.zyx-player-dialog{width:min(1220px,96vw);background:#060c17;border:1px solid rgba(255,255,255,.08);border-radius:18px;box-shadow:0 25px 70px rgba(0,0,0,.55);overflow:hidden}
.zyx-player-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.08);background:#09101c}
.zyx-player-title{font-size:18px;font-weight:800;color:#fff}
.zyx-player-subtitle{font-size:13px;color:#9fb0ca}
.zyx-player-actions{display:flex;gap:10px;flex-wrap:wrap}
.zyx-player-frame-wrap{background:#000;line-height:0}
#player-modal-frame{width:100%;height:78vh;border:0;background:#000;display:block}
body.zyx-modal-open{overflow:hidden}


/* ZYX_PLAYER_OVERLAY_V50_START */
a.player-open-link{cursor:pointer !important}
.zyx-player-modal{position:fixed !important;inset:0 !important;z-index:2147483000 !important;display:none;align-items:center !important;justify-content:center !important;padding:18px !important;background:rgba(2,6,23,.82) !important}
.zyx-player-modal.zyx-open{display:flex !important}
.zyx-player-backdrop{position:absolute !important;inset:0 !important;background:transparent !important}
.zyx-player-dialog{position:relative !important;width:min(1220px,96vw) !important;max-width:1220px !important;background:#060c17 !important;border:1px solid rgba(255,255,255,.08) !important;border-radius:18px !important;box-shadow:0 25px 70px rgba(0,0,0,.55) !important;overflow:hidden !important}
.zyx-player-top{display:flex !important;align-items:center !important;justify-content:space-between !important;gap:12px !important;padding:12px 16px !important;border-bottom:1px solid rgba(255,255,255,.08) !important;background:#09101c !important}
.zyx-player-title{font-size:18px !important;font-weight:800 !important;color:#fff !important}
.zyx-player-subtitle{font-size:13px !important;color:#9fb0ca !important}
.zyx-player-actions{display:flex !important;gap:10px !important;flex-wrap:wrap !important}
.zyx-player-frame-wrap{background:#000 !important;line-height:0 !important}
#zyx-player-frame{display:block !important;width:100% !important;height:78vh !important;min-height:420px !important;border:0 !important;background:#000 !important}
body.zyx-modal-open{overflow:hidden !important}
/* ZYX_PLAYER_OVERLAY_V50_END */

/* ZYX v62 compact player modal */
.zyx-player-modal{padding:18px!important}
.zyx-player-dialog{width:min(980px,92vw)!important;max-width:980px!important}
.zyx-player-frame-wrap{background:#000!important;display:block!important;line-height:0!important}
#player-modal-frame{width:100%!important;height:min(58vw,620px)!important;max-height:620px!important;display:block!important;border:0!important;background:#000!important}
@media (max-width: 900px){
  .zyx-player-dialog{width:min(96vw,760px)!important}
  #player-modal-frame{height:min(64vw,460px)!important;max-height:460px!important}
}
/* ZYX_STATUS_URL_USER_PRESENCE_V1 */
.zyx-source-runtime{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:800;margin:0 0 10px 0}
.zyx-source-runtime-dot{width:10px;height:10px;border-radius:999px;display:inline-block;box-shadow:0 0 0 2px rgba(255,255,255,.06)}
.zyx-source-runtime-online{color:#4ade80}
.zyx-source-runtime-online .zyx-source-runtime-dot{background:#22c55e}
.zyx-source-runtime-offline{color:#f87171}
.zyx-source-runtime-offline .zyx-source-runtime-dot{background:#ef4444}
.zyx-source-runtime-waiting{color:#facc15}
.zyx-source-runtime-waiting .zyx-source-runtime-dot{background:#eab308}
.zyx-presence-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.02em}
.zyx-presence-online{color:#4ade80;background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.28)}
.zyx-presence-offline{color:#f87171;background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.28)}
/* /ZYX_STATUS_URL_USER_PRESENCE_V1 */


/* ZYX_STYLE_V19 */
.zyx-source-runtime{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:800;margin:2px 0 10px 0;line-height:1.15}
.zyx-source-runtime-dot{width:10px;height:10px;min-width:10px;min-height:10px;border-radius:999px;display:inline-block;flex:0 0 10px;box-shadow:0 0 0 2px rgba(255,255,255,.08)}
.zyx-source-runtime-label{display:inline-block;font-weight:800;letter-spacing:.01em}
.zyx-source-runtime-online{color:#4ade80 !important}
.zyx-source-runtime-online .zyx-source-runtime-dot{background:#22c55e !important}
.zyx-source-runtime-offline{color:#f87171 !important}
.zyx-source-runtime-offline .zyx-source-runtime-dot{background:#ef4444 !important}
.sidebar{display:flex;flex-direction:column}
.sidebar-footer{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;margin-top:auto!important;flex-shrink:0!important}
/* /ZYX_STYLE_V19 */




/* ===================================================== */
/* JAE FINAL LIGHT MODE CHANNEL/CATEGORY CARD FIX */
/* ===================================================== */

body.zyx-light-mode .channel-card,
body.zyx-light-mode .category-card,
body.zyx-light-mode .jae-new-card{
    background:#ffffff !important;
    background-image:none !important;
    color:#111827 !important;
    border:1px solid #e5e7eb !important;
    box-shadow:0 12px 30px rgba(15,23,42,.08) !important;
}

body.zyx-light-mode .channel-card *,
body.zyx-light-mode .category-card *,
body.zyx-light-mode .jae-new-card *{
    color:#111827 !important;
}

body.zyx-light-mode .channel-card .small,
body.zyx-light-mode .category-card .small,
body.zyx-light-mode .jae-new-card .small,
body.zyx-light-mode .channel-card .muted,
body.zyx-light-mode .category-card .muted,
body.zyx-light-mode .jae-new-card .muted{
    color:#4b5563 !important;
}

body.zyx-light-mode .channel-card .logo-wrap,
body.zyx-light-mode .category-card .logo-wrap{
    background:#f8fafc !important;
    border:1px solid #e5e7eb !important;
}

/* FORÇA TOTAL */
html.zyx-light-mode body .channel-card,
html.zyx-light-mode body .category-card,
html.zyx-light-mode body .jae-new-card{
    background:#ffffff !important;
    background-image:none !important;
}


/* ===================================================== */
/* JAE FINAL LIGHT MODE SOURCE CARDS FIX */
/* ===================================================== */

body.zyx-light-mode .source-card,
body.zyx-light-mode .source-row,
body.zyx-light-mode .source-box{
    background:#ffffff !important;
    background-image:none !important;
    color:#111827 !important;
    border:1px solid #e5e7eb !important;
    box-shadow:0 12px 30px rgba(15,23,42,.08) !important;
}

body.zyx-light-mode .source-card *,
body.zyx-light-mode .source-row *,
body.zyx-light-mode .source-box *{
    color:#111827 !important;
}

body.zyx-light-mode .source-card .small,
body.zyx-light-mode .source-card .muted,
body.zyx-light-mode .source-row .small,
body.zyx-light-mode .source-row .muted{
    color:#4b5563 !important;
}

/* status badges mantém cor */
body.zyx-light-mode .source-card .badge-success{
    background:#dcfce7 !important;
    color:#166534 !important;
    border-color:#86efac !important;
}

body.zyx-light-mode .source-card .badge-danger{
    background:#fee2e2 !important;
    color:#991b1b !important;
    border-color:#fca5a5 !important;
}


/* JAE FOLD CARDS REAL - canais */
.jae-fold-card:not(.is-open) > .jae-fold-body{
    display:none !important;
}
.jae-fold-card > .panel-head{
    display:flex !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
    gap:14px !important;
    cursor:pointer;
}
.jae-fold-card .jae-fold-btn{
    border:1px solid rgba(148,163,184,.22) !important;
    background:rgba(15,23,42,.86) !important;
    color:#e5e7eb !important;
    border-radius:14px !important;
    padding:11px 16px !important;
    font-weight:800 !important;
    min-width:96px !important;
    box-shadow:0 8px 20px rgba(0,0,0,.18) !important;
}
body:not(.theme-dark) .jae-fold-card .jae-fold-btn{
    background:#f1f5f9 !important;
    color:#0f172a !important;
    border-color:#e2e8f0 !important;
}
.jae-fold-card .jae-fold-btn::after{
    content:"";
    display:inline-block;
    width:8px;
    height:8px;
    margin-left:9px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(45deg);
    position:relative;
    top:-2px;
}
.jae-fold-card.is-open .jae-fold-btn::after{
    transform:rotate(225deg);
    top:2px;
}
.jae-fold-card:not(.is-open){
    padding-bottom:18px !important;
}

/* JAE FOLD CLICK FIX */
.jae-fold-card.is-open > .jae-fold-body{
    display:block !important;
}
.jae-fold-card:not(.is-open) > .jae-fold-body{
    display:none !important;
}
.jae-fold-card.is-open .jae-fold-btn{
    background:#2563eb !important;
    color:#fff !important;
}

/* JAE FORCE DARK BUTTON */
html.dark .jae-fold-card .jae-fold-btn,
body.dark .jae-fold-card .jae-fold-btn,
[data-theme="dark"] .jae-fold-card .jae-fold-btn{
    background:#111827 !important;
    color:#f9fafb !important;
    border:1px solid rgba(255,255,255,.10) !important;
    box-shadow:0 8px 22px rgba(0,0,0,.45) !important;
}

html.dark .jae-fold-card.is-open .jae-fold-btn,
body.dark .jae-fold-card.is-open .jae-fold-btn,
[data-theme="dark"] .jae-fold-card.is-open .jae-fold-btn{
    background:#2563eb !important;
    color:#fff !important;
}

/* JAE FINAL FOLD BUTTON DARK FIX */
body:not(.zyx-light-mode) .jae-fold-card .jae-fold-btn,
html:not(.zyx-light-mode) body:not(.zyx-light-mode) .jae-fold-card .jae-fold-btn{
    background:#0b1220 !important;
    color:#f8fafc !important;
    border:1px solid rgba(148,163,184,.25) !important;
}

body:not(.zyx-light-mode) .jae-fold-card.is-open .jae-fold-btn{
    background:#2563eb !important;
    color:#fff !important;
}

/* ===================================================== */
/* JAE PREMIUM V3 AUTO */
/* ===================================================== */

:root{
    --bg:#0f172a;
    --bg2:#131c31;
    --card:#182338;
    --text:#f8fafc;
    --muted:#94a3b8;

    --green:#22c55e;
    --red:#ef4444;
    --purple:#3b82f6;
    --blue:#3b82f6;
}

body{
    background:linear-gradient(135deg,#0b1120,#131c31)!important;
    color:var(--text)!important;
}

/* SIDEBAR */

.sidebar,
.side-menu,
.left-menu,
.menu-lateral,
aside{
    background:rgba(15,23,42,.92)!important;
    backdrop-filter:blur(16px)!important;
    border-right:1px solid rgba(255,255,255,.05)!important;
    box-shadow:0 0 30px rgba(0,0,0,.35)!important;
}

/* MENU */

.sidebar a,
.side-menu a,
.menu-lateral a,
aside a{
    border-radius:14px!important;
    margin:6px 10px!important;
    transition:.25s!important;
    color:#cbd5e1!important;
}

.sidebar a:hover,
.side-menu a:hover,
.menu-lateral a:hover,
aside a:hover{
    background:linear-gradient(90deg,#2563eb,#3b82f6)!important;
    color:#fff!important;
    transform:translateX(4px)!important;
}

/* CARDS */

.card,
.channel-card,
.category-card,
.jae-new-card,
.source-card{
    background:rgba(17,24,39,.84)!important;
    backdrop-filter:blur(14px)!important;
    border:1px solid rgba(255,255,255,.06)!important;
    border-radius:22px!important;
    box-shadow:
        0 10px 35px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.03)!important;
    transition:.25s!important;
    overflow:hidden!important;
}

.card:hover,
.channel-card:hover,
.category-card:hover,
.source-card:hover{
    transform:translateY(-4px)!important;
    box-shadow:
        0 18px 45px rgba(0,0,0,.45),
        0 0 18px rgba(139,92,246,.18)!important;
}

/* TOP STATS */

.stats-card:nth-child(1),
.info-card:nth-child(1){
    background:linear-gradient(135deg,#22c55e,#16a34a)!important;
}

.stats-card:nth-child(2),
.info-card:nth-child(2){
    background:linear-gradient(135deg,#ef4444,#dc2626)!important;
}

.stats-card:nth-child(3),
.info-card:nth-child(3){
    background:linear-gradient(135deg,#3b82f6,#2563eb)!important;
}

.stats-card *,
.info-card *{
    color:#fff!important;
}

/* TABLES */

table tr{
    background:rgba(15,23,42,.55)!important;
    transition:.2s!important;
}

table tr:hover{
    background:rgba(30,41,59,.9)!important;
}

/* BUTTONS */

button,
.btn{
    border-radius:14px!important;
    border:none!important;
    transition:.25s!important;
}

.btn-primary{
    background:linear-gradient(135deg,#2563eb,#3b82f6)!important;
}

.btn-success{
    background:linear-gradient(135deg,#22c55e,#16a34a)!important;
}

.btn-danger{
    background:linear-gradient(135deg,#ef4444,#dc2626)!important;
}

.btn:hover{
    transform:translateY(-2px)!important;
    filter:brightness(1.05)!important;
}

/* INPUTS */

input,
select,
textarea{
    background:#111827!important;
    border:1px solid rgba(255,255,255,.06)!important;
    color:#fff!important;
    border-radius:14px!important;
}

/* MOBILE */

@media(max-width:768px){

    .sidebar,
    .side-menu,
    aside{
        backdrop-filter:blur(20px)!important;
    }

    .card,
    .channel-card{
        border-radius:18px!important;
    }
}


/* ===================================================== */
/* JAE REAL PREMIUM V3 */
/* ===================================================== */

/* FUNDO */

body{
    background:
    linear-gradient(135deg,#0b1120,#131c31)!important;
}

/* MENU */

.zyx-menu-box,
aside,
nav,
.sidebar{

    background:rgba(15,23,42,.94)!important;

    backdrop-filter:blur(18px)!important;

    border:1px solid rgba(255,255,255,.05)!important;

    box-shadow:
    0 10px 40px rgba(0,0,0,.35)!important;

    border-radius:22px!important;
}

/* LINKS MENU */

.zyx-menu-box a,
.sidebar a,
nav a{

    border-radius:14px!important;

    transition:.25s!important;
}

.zyx-menu-box a:hover,
.sidebar a:hover,
nav a:hover{

    background:linear-gradient(90deg,#2563eb,#3b82f6)!important;

    color:#fff!important;

    transform:translateX(4px)!important;
}

/* CARDS BASE */

.panel,
.mini-card,
.topbar-card,
.user-chip,
.zyx-new-content-card{

    background:rgba(17,24,39,.84)!important;

    backdrop-filter:blur(14px)!important;

    border:1px solid rgba(255,255,255,.06)!important;

    border-radius:24px!important;

    box-shadow:
    0 10px 35px rgba(0,0,0,.35)!important;

    transition:.25s!important;
}

/* HOVER */

.panel:hover,
.mini-card:hover,
.stat-card:hover{

    transform:translateY(-4px)!important;
}

/* STAT CARDS COLORIDOS */

.stat-card{

    border-radius:24px!important;

    padding:22px!important;

    color:#fff!important;

    border:none!important;

    position:relative!important;

    overflow:hidden!important;

    box-shadow:
    0 14px 40px rgba(0,0,0,.35)!important;
}

/* VERDE */

.panel-head .stat-card:nth-of-type(1){

    background:
    linear-gradient(135deg,#22c55e,#16a34a)!important;
}

/* VERMELHO */

.panel-head .stat-card:nth-of-type(2){

    background:
    linear-gradient(135deg,#ef4444,#dc2626)!important;
}

/* AZUL/ROXO */

.panel-head .stat-card:nth-of-type(3){

    background:
    linear-gradient(135deg,#3b82f6,#2563eb)!important;
}

/* AZUL */

.panel-head .stat-card:nth-of-type(4){

    background:
    linear-gradient(135deg,#3b82f6,#2563eb)!important;
}

/* TEXTOS */

.stat-card .label,
.stat-card .sub,
.stat-card .value,
.stat-card *{

    color:#fff!important;
}

/* VALORES */

.stat-card .value{

    font-size:42px!important;

    font-weight:800!important;

    margin-top:10px!important;
}

/* EFEITO BOLHA */

.stat-card::after{

    content:"";

    position:absolute;

    width:140px;
    height:140px;

    background:rgba(255,255,255,.12);

    border-radius:50%;

    right:-40px;
    top:-40px;
}

/* TITULOS */

h1,h2,h3{

    color:#fff!important;
}

/* MUTED */

.muted,
.small{

    color:#cbd5e1!important;
}

/* INPUTS */

input,
select,
textarea{

    background:#0f172a!important;

    border:1px solid rgba(255,255,255,.08)!important;

    color:#fff!important;

    border-radius:14px!important;
}

/* BOTÕES */

.btn{

    border-radius:14px!important;

    border:none!important;

    transition:.25s!important;
}

.btn-primary{

    background:
    linear-gradient(135deg,#3b82f6,#2563eb)!important;
}

.btn-success{

    background:
    linear-gradient(135deg,#22c55e,#16a34a)!important;
}

.btn-danger{

    background:
    linear-gradient(135deg,#ef4444,#dc2626)!important;
}

.btn:hover{

    transform:translateY(-2px)!important;

    filter:brightness(1.05)!important;
}

/* MOBILE */

@media(max-width:768px){

    .stat-card .value{

        font-size:34px!important;
    }

    .panel,
    .mini-card,
    .stat-card{

        border-radius:20px!important;
    }
}

