:root{
      color-scheme: dark;
      --bg0:#050812; --bg1:#08112C;
      --text:#EEF3FF;
      --muted: rgba(238,243,255,.72);
      --muted2: rgba(238,243,255,.52);
      --ok:#2EE59D; --err:#FF4D6D; --warn:#FFD166; --info:#3AB3FF;
      --shadow: 0 25px 80px rgba(0,0,0,.70);
      --shadow2: 0 15px 45px rgba(0,0,0,.55);
      --shadow-glow: 0 0 40px rgba(0,229,255,.15);
      --radius: 24px;
      --radius-sm: 16px;
      --focusOk: 0 0 0 3px rgba(46,229,157,.22);
      --focusInfo: 0 0 0 3px rgba(58,179,255,.22);
      --focusWarn: 0 0 0 3px rgba(255,209,102,.22);
      --focusErr: 0 0 0 3px rgba(255,77,109,.22);
      --border: rgba(255,255,255,.08);
      --border2: rgba(255,255,255,.12);
      --border-accent: rgba(0,229,255,.25);

      /* base accents (serão sobrescritos pelo Color Shift quando ativo) */
      --a:#00E5FF;
      --a2:#9B7CFF;
      --a3:#FF3366;

      --tile: rgba(255,255,255,.025);
      --tile2: rgba(0,0,0,.20);
      --pulseOpacity: .18;

      --beat: 0;
      --hue: 190;
    }

    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;
      font-family: 'Segoe UI', ui-sans-serif,system-ui,-apple-system,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
      background:
        radial-gradient(ellipse 1400px 900px at 15% 15%, rgba(0,229,255,.12), transparent 55%),
        radial-gradient(ellipse 1000px 800px at 85% 25%, rgba(155,124,255,.10), transparent 55%),
        radial-gradient(ellipse 800px 600px at 70% 80%, rgba(255,51,102,.05), transparent 50%),
        linear-gradient(180deg, rgba(5, 8, 18, 0.88), rgba(8, 17, 44, 0.92)),
        url('../images/Banner Site.png') no-repeat center center fixed;
      background-size: cover;
      background-attachment: fixed;
      color:var(--text);
      overflow-x:hidden;
      font-size: 15px;
      line-height: 1.6;
    }

    a{color:inherit}
    button, input, select, textarea{font:inherit; color:inherit}

    /* Ambient layers */
    .bgGrid, .scanlines, .beatWash{
      position:fixed; inset:0; pointer-events:none; z-index:0;
    }
    .bgGrid{
      background:
        linear-gradient(var(--tile) 1px, transparent 1px),
        linear-gradient(90deg, var(--tile) 1px, transparent 1px);
      background-size: 60px 60px;
      opacity:.55;
      mix-blend-mode: screen;
      transform: translateZ(0);
      filter: drop-shadow(0 0 20px rgba(0,229,255,.06));
    }
    .banner-bg{
      position:fixed;
      inset:0;
      background-image: url('../images/Banner Site.png');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      opacity:.20;
      z-index:-3;
      pointer-events:none;
    }
    .scanlines{
      background: repeating-linear-gradient(
        180deg,
        rgba(255,255,255,.03) 0px,
        rgba(255,255,255,.03) 1px,
        transparent 2px,
        transparent 4px
      );
      opacity:.22;
      mix-blend-mode: overlay;
    }
    .beatWash{
      background:
        radial-gradient(800px 500px at 50% 50%, rgba(0,229,255, calc(var(--pulseOpacity) + var(--beat)*.20)), transparent 62%),
        radial-gradient(900px 650px at 30% 70%, rgba(155,124,255, calc(var(--pulseOpacity) + var(--beat)*.20)), transparent 65%);
      opacity:.55;
      mix-blend-mode: screen;
      filter: blur(2px);
      transform: translateZ(0);
    }

    /* Hue wash */
    .hueWash{
      position:fixed; inset:0; pointer-events:none; z-index:0;
      background:
        radial-gradient(900px 650px at 20% 30%, hsla(var(--hue), 100%, 55%, calc(.08 + var(--beat)*.14)), transparent 62%),
        radial-gradient(850px 700px at 80% 60%, hsla(calc(var(--hue) + 120), 100%, 65%, calc(.06 + var(--beat)*.12)), transparent 66%),
        radial-gradient(700px 500px at 50% 85%, hsla(calc(var(--hue) + 240), 100%, 60%, calc(.05 + var(--beat)*.10)), transparent 62%);
      mix-blend-mode: screen;
      filter: blur(1px);
      opacity:.70;
      transform: translateZ(0);
    }

    /* Layout */
    .wrap{
      position:relative; z-index:1;
      max-width: 1220px;
      margin: 26px auto 80px;
      padding: 0 16px;
    }
    header{
      display:flex; align-items:center; justify-content:space-between; gap:20px;
      padding: 20px 24px;
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) + 8px);
      background: linear-gradient(180deg, rgba(9,14,30,.92), rgba(8,14,30,.72));
      box-shadow: var(--shadow2), 0 0 40px rgba(0,229,255,.05);
      backdrop-filter: blur(16px);
      position: relative;
      overflow: hidden;
    }
    header::before{
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(0,229,255,.4), rgba(155,124,255,.3), transparent);
    }
    .brand{
      display:flex; align-items:center; gap:16px;
      min-width: 300px;
    }
    .brand .logo{
      width:56px; height:56px; border-radius:18px;
      border: 1px solid var(--border2);
      background:
        radial-gradient(18px 18px at 30% 30%, rgba(0,229,255,.60), transparent 60%),
        radial-gradient(22px 22px at 70% 70%, rgba(155,124,255,.45), transparent 60%),
        linear-gradient(180deg, rgba(0,0,0,.30), rgba(255,255,255,.08));
      box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 16px 32px rgba(0,0,0,.45), 0 0 20px rgba(0,229,255,.15);
      position:relative;
      overflow:hidden;
    }
    .brand .logo::after{
      content:"";
      position:absolute; inset:-30%;
      background: conic-gradient(from 180deg, rgba(0,229,255,.0), rgba(0,229,255,.35), rgba(155,124,255,.35), rgba(0,229,255,.0));
      animation: spin 4.6s linear infinite;
      opacity:.70;
      z-index: 2;
      pointer-events: none;
    }
    @keyframes spin{to{transform:rotate(360deg)}}
    .brand h1{
      margin:0; line-height:1.10;
      font-size: 18px; letter-spacing:.5px;
      font-weight: 900;
      background: linear-gradient(135deg, #EEF3FF, #00E5FF);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .brand .sub{
      margin:0; font-size:13px; color: var(--muted);
      letter-spacing:.3px;
    }

    nav{
      display:flex; gap:10px; flex-wrap:wrap; justify-content:center;
    }
    .tab{
      padding: 12px 18px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,.05);
      cursor:pointer;
      transition: all 0.25s ease;
      font-weight: 700;
      letter-spacing:.3px;
      user-select:none;
      font-size: 13px;
    }
    .tab:hover{transform: translateY(-2px); border-color: rgba(0,229,255,.40); background: rgba(0,229,255,.08); box-shadow: 0 8px 24px rgba(0,229,255,.15);}
    .tab.active{
      border-color: rgba(0,229,255,.55);
      background: linear-gradient(135deg, rgba(0,229,255,.15), rgba(155,124,255,.10));
      box-shadow: 0 0 0 1px rgba(0,229,255,.20) inset, 0 8px 24px rgba(0,229,255,.20);
    }

    .topActions{
      display:flex; align-items:center; gap:14px; justify-content:flex-end;
      min-width: 300px;
      flex-wrap:wrap;
    }
    .pill{
      display:flex; align-items:center; gap:10px;
      padding: 10px 16px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: rgba(255,255,255,.04);
      color: var(--muted);
      font-size:12px;
      white-space:nowrap;
    }
    .pill strong{color: var(--text)}
    .btn{
      border:1px solid var(--border2);
      background: rgba(255,255,255,.05);
      padding: 9px 12px;
      border-radius: 12px;
      cursor:pointer;
      font-weight: 800;
      transition: transform .12s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
      box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset;
    }
    .btn:hover{transform: translateY(-1px); border-color: rgba(0,229,255,.35); background: rgba(0,229,255,.06)}
    .btn:active{transform: translateY(0px)}
    .btn.primary{
      border-color: rgba(0,229,255,.42);
      background: rgba(0,229,255,.10);
      box-shadow: 0 0 0 1px rgba(0,229,255,.14) inset, 0 12px 26px rgba(0,229,255,.06);
    }
    .btn.danger{border-color: rgba(255,77,109,.42); background: rgba(255,77,109,.08)}
    .btn.warn{border-color: rgba(255,209,102,.45); background: rgba(255,209,102,.08)}
    .btn.ok{border-color: rgba(46,229,157,.45); background: rgba(46,229,157,.08)}
    .btn.small{padding:7px 10px; border-radius:10px; font-size:12px}

    /* Pages */
    .wrap{
      max-width: 1600px;
      margin: 0 auto;
      padding: 24px;
    }
    .grid{
      display:grid;
      grid-template-columns: 1.35fr .65fr;
      gap: 24px;
      margin-top: 24px;
    }
    .card{
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: linear-gradient(180deg, rgba(12,18,40,.85), rgba(10,16,36,.65));
      box-shadow: var(--shadow2), var(--shadow-glow);
      backdrop-filter: blur(16px);
      overflow:hidden;
      position:relative;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .card:hover{
      transform: translateY(-4px);
      box-shadow: var(--shadow), 0 0 60px rgba(0,229,255,.12);
    }
    .card::before{
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(0,229,255,.3), transparent);
    }
    .cardHeader{
      padding: 20px 24px 16px;
      display:flex; align-items:center; justify-content:space-between; gap:16px;
      border-bottom: 1px solid rgba(255,255,255,.06);
      background:
        radial-gradient(320px 140px at 20% 20%, rgba(0,229,255,.15), transparent 65%),
        radial-gradient(320px 140px at 80% 80%, rgba(155,124,255,.12), transparent 65%);
    }
    .cardHeader h2{
      margin:0; font-size: 16px; letter-spacing:.4px;
      font-weight: 900;
      display:flex; align-items:center; gap:10px;
    }
    .badge{
      font-size:12px; color: var(--muted);
      border:1px solid var(--border);
      padding: 6px 14px;
      border-radius: 999px;
      background: rgba(255,255,255,.06);
      white-space:nowrap;
      font-weight: 600;
    }
    .cardBody{padding: 24px}
    .muted{color: var(--muted)}
    .muted2{color: var(--muted2)}
    .row{display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 16px;}
    .row:last-child{margin-bottom: 0;}
    .row > *{flex:1; min-width: 200px;}
    .field{
      display:flex; flex-direction:column; gap:8px;
      min-width: 200px;
    }
    .field label{font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing:.3px; text-transform: uppercase;}
    .input, select, textarea{
      width:100%;
      padding: 14px 18px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: rgba(255,255,255,.05);
      outline:none;
      transition: all 0.25s ease;
      font-size: 15px;
    }
    textarea{min-height: 120px; resize: vertical}
    .input:focus, select:focus, textarea:focus{border-color: rgba(0,229,255,.5); box-shadow: 0 0 0 4px rgba(58,179,255,.18), 0 0 20px rgba(0,229,255,.1); background: rgba(0,229,255,.06)}
    .hint{font-size: 13px; color: var(--muted2); line-height:1.5; margin-top: 8px;}

    .split{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    @media (max-width: 1200px){
      .grid{grid-template-columns: 1fr}
      .split{grid-template-columns:1fr}
    }
    @media (max-width: 768px){
      .wrap{padding: 16px;}
      .cardBody{padding: 16px;}
      .cardHeader{padding: 16px;}
    }

    /* Music Player */
    .playerGrid{
      display:grid;
      grid-template-columns: 1fr 520px;
      gap: 24px;
    }
    @media (max-width: 1200px){
      .playerGrid{grid-template-columns:1fr}
    }
    .player{
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 20px;
      background:
        radial-gradient(500px 220px at 30% 20%, rgba(0,229,255,.10), transparent 60%),
        radial-gradient(500px 220px at 70% 80%, rgba(155,124,255,.08), transparent 60%),
        rgba(255,255,255,.03);
      padding: 20px;
      position:relative;
      overflow:hidden;
      box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 18px 42px rgba(0,0,0,.35);
    }
    .player::before{
      content:"";
      position:absolute; inset:-40%;
      background: conic-gradient(from 90deg, rgba(0,229,255,.0), rgba(0,229,255,.18), rgba(155,124,255,.16), rgba(0,229,255,.0));
      animation: spin 7.8s linear infinite;
      opacity: calc(.35 + var(--beat)*.25);
      filter: blur(1px);
    }
    .playerInner{position:relative; z-index:2}
    .now{
      display:flex; align-items:center; justify-content:space-between; gap:10px;
      margin-bottom: 10px;
    }
    .titleBlock{min-width: 0}
    .trackTitle{
      font-weight: 1000;
      letter-spacing:.2px;
      font-size: 14px;
      margin:0;
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
    }
    .trackMeta{margin:0; font-size: 12px; color: var(--muted); display:flex; gap:10px; flex-wrap:wrap}
    .chip{
      display:inline-flex; align-items:center; gap:6px;
      padding: 4px 8px;
      border-radius: 999px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.18);
      color: var(--muted);
    }
    .controls{
      display:flex; align-items:center; gap:10px; flex-wrap:wrap;
      margin-top: 10px;
    }
    .iconBtn{
      width:44px; height:44px;
      border-radius: 14px;
      border:1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.05);
      cursor:pointer;
      display:grid; place-items:center;
      transition: transform .12s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
      box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset;
    }
    .iconBtn:hover{transform: translateY(-1px); border-color: rgba(0,229,255,.35); background: rgba(0,229,255,.06)}
    .iconBtn:active{transform: translateY(0px)}
    .iconBtn.big{width:52px; height:52px; border-radius: 16px}
    .icon{
      width:18px; height:18px; display:block;
      filter: drop-shadow(0 8px 14px rgba(0,0,0,.35));
    }

    .bar{
      margin-top: 12px;
      border-radius: 14px;
      padding: 10px 10px 8px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.18);
    }
    .seekRow{display:flex; align-items:center; gap:10px}
    .time{
      font-size: 12px;
      color: var(--muted);
      font-variant-numeric: tabular-nums;
      min-width: 40px;
      text-align:center;
    }
    .range{
      -webkit-appearance:none; appearance:none;
      width:100%;
      height: 6px;
      border-radius: 999px;
      background: linear-gradient(90deg, 
        rgba(0,229,255,.95) 0%, 
        rgba(155,124,255,.9) 50%, 
        rgba(255,51,102,.85) 100%);
      outline:none;
      cursor:pointer;
      position:relative;
      box-shadow: 0 4px 15px rgba(0,0,0,.3);
      transition: height 0.2s ease;
    }
    .range:hover{
      height: 8px;
    }
    .range::-webkit-slider-thumb{
      -webkit-appearance:none; appearance:none;
      width: 16px; height: 16px;
      border-radius: 50%;
      background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
      border: 2px solid rgba(0,229,255,.6);
      box-shadow: 0 4px 12px rgba(0,0,0,.4), 0 0 0 3px rgba(0,229,255,.2);
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .range::-webkit-slider-thumb:hover{
      transform: scale(1.15);
      box-shadow: 0 6px 16px rgba(0,0,0,.5), 0 0 0 4px rgba(0,229,255,.3);
    }
    .range::-moz-range-thumb{
      width: 16px; height: 16px; border-radius: 50%;
      background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
      border: 2px solid rgba(0,229,255,.6);
      box-shadow: 0 4px 12px rgba(0,0,0,.4), 0 0 0 3px rgba(0,229,255,.2);
      cursor: pointer;
      transition: transform 0.2s ease;
    }
    .range::-moz-range-thumb:hover{
      transform: scale(1.15);
    }

    .subControls{
      display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; align-items:center;
    }
    .subControls .field{min-width: 160px}
    .toggle{
      display:flex; align-items:center; gap:10px;
      padding: 10px 12px;
      border-radius: 14px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.03);
      cursor:pointer;
      user-select:none;
      flex: 1;
      min-width: 170px;
    }
    .toggle .dot{
      width: 12px; height: 12px; border-radius: 50%;
      background: rgba(255,255,255,.18);
      box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
    }
    .toggle.on .dot{
      background: rgba(46,229,157,.95);
      box-shadow: 0 0 0 1px rgba(46,229,157,.25) inset, 0 0 18px rgba(46,229,157,.25);
    }
    .toggle strong{font-size:12px}
    .toggle span{font-size:12px; color:var(--muted); margin-left:auto}

    /* Playlist */
    .playlist{
      border:1px solid rgba(255,255,255,.08);
      border-radius: 18px;
      background: rgba(0,0,0,.16);
      overflow:hidden;
      display:flex; flex-direction:column;
      min-height: 340px;
    }
    .playlistHeader{
      display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap: wrap;
      padding: 10px 12px;
      border-bottom:1px solid rgba(255,255,255,.06);
      background: rgba(255,255,255,.03);
    }
    .playlistHeader h3{margin:0; font-size: 12px; letter-spacing:.3px; font-weight: 1000; color: var(--muted); min-width: 100%;}
    .playlistHeader .btn{padding:7px 10px; border-radius: 10px; font-size: 12px}
    .list{
      padding: 6px;
      display:flex; flex-direction:column; gap:6px;
      overflow:auto;
      max-height: 520px;
    }
    .item{
      display:flex; align-items:center; gap:10px;
      border:1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.03);
      border-radius: 14px;
      padding: 10px 10px;
      cursor:pointer;
      transition: transform .12s ease, border-color .18s ease, background .18s ease;
    }
    .item:hover{transform: translateY(-1px); border-color: rgba(0,229,255,.26); background: rgba(0,229,255,.05)}
    .item.active{border-color: rgba(46,229,157,.35); background: rgba(46,229,157,.06)}
    .item .n{
      width: 26px; height: 26px; border-radius: 10px;
      display:grid; place-items:center;
      border:1px solid rgba(255,255,255,.08);
      background: rgba(0,0,0,.18);
      font-size: 12px; color: var(--muted);
      flex:0 0 auto;
    }
    .item .t{
      min-width:0;
      display:flex; flex-direction:column;
      gap:2px;
      flex:1;
    }
    .item .t strong{
      font-size: 12px;
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
    }
    .item .t span{
      font-size: 11px;
      color: var(--muted);
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
    }
    .item .act{
      display:flex; gap:6px; align-items:center; flex:0 0 auto;
    }
    .miniTag{
      font-size: 10px; color: var(--muted2);
      border:1px solid rgba(255,255,255,.10);
      padding: 3px 6px;
      border-radius: 999px;
      background: rgba(0,0,0,.14);
    }

    /* Folder headers in playlist */
    .folder-header{
      user-select: none;
    }
    .folder-header:hover{
      border-color: rgba(0,229,255,.4) !important;
      box-shadow: 0 0 12px rgba(0,229,255,.15);
    }
    .btn-atualizar:hover{
      transform: scale(1.05);
      box-shadow: 0 0 10px rgba(0,229,255,.3);
    }
    .folder-legend::-webkit-scrollbar{
      width: 4px;
    }
    .folder-legend::-webkit-scrollbar-track{
      background: rgba(0,0,0,.2);
      border-radius: 2px;
    }
    .folder-legend::-webkit-scrollbar-thumb{
      background: rgba(0,229,255,.3);
      border-radius: 2px;
    }

    /* Login overlay */
    .loginOverlay{
      position:fixed; inset:0;
      display:none;
      align-items:center; justify-content:center;
      z-index: 50;
      background:
        radial-gradient(1000px 700px at 20% 20%, rgba(0,229,255,.14), transparent 60%),
        radial-gradient(900px 700px at 80% 30%, rgba(155,124,255,.12), transparent 60%),
        rgba(0,0,0,.85);
      backdrop-filter: blur(12px);
      padding: 18px;
      opacity: 0;
      transition: opacity 0.4s ease-in-out;
    }
    .loginOverlay.visible{
      opacity: 1;
    }
    .loginBox{
      width:min(520px, 100%);
      border-radius: 22px;
      border:1px solid rgba(255,255,255,.12);
      background: linear-gradient(180deg, rgba(12,18,40,.88), rgba(10,16,36,.66));
      box-shadow: var(--shadow);
      overflow:hidden;
      position:relative;
    }
    .loginBox::before{
      content:"";
      position:absolute; inset:-50%;
      background: conic-gradient(from 180deg, rgba(0,229,255,.0), rgba(0,229,255,.22), rgba(155,124,255,.18), rgba(0,229,255,.0));
      animation: spin 9.5s linear infinite;
      opacity:.50;
      filter: blur(1px);
    }
    .loginInner{position:relative; z-index:2}
    .loginHead{
      padding: 18px 18px 12px;
      border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .loginHead h2{margin:0; font-size: 16px; letter-spacing:.4px; font-weight: 1000}
    .loginHead p{margin:6px 0 0; color: var(--muted); font-size: 12px; line-height:1.35}
    .loginBody{padding: 14px 18px 18px}
    .loginBody .btn{width:100%}
    .shake{animation: shake .35s ease}
    @keyframes shake{
      0%,100%{transform:translateX(0)}
      25%{transform:translateX(-6px)}
      50%{transform:translateX(6px)}
      75%{transform:translateX(-4px)}
    }

    /* Toast */
    .toast{
      position:fixed; left:50%; bottom: 18px;
      transform: translateX(-50%);
      z-index: 80;
      display:none;
      border-radius: 999px;
      padding: 10px 14px;
      border:1px solid rgba(255,255,255,.14);
      background: rgba(0,0,0,.55);
      backdrop-filter: blur(10px);
      box-shadow: var(--shadow2);
      font-size: 12px;
      color: var(--text);
      max-width: min(680px, calc(100% - 18px));
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
    }

    /* ROUTES */
    .route{display:none}
    .route.active{display:block}

    /* EMBEDS */
    .embedsGrid{
      display:grid;
      grid-template-columns: repeat(auto-fit, minmax(540px, 1fr));
      gap: 12px;
      align-items: start;
    }
    @media (max-width: 620px){
      .embedsGrid{grid-template-columns:1fr}
    }
    .embedBox{
      border:1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.16);
      border-radius: 16px;
      overflow:hidden;
      display:flex;
      flex-direction:column;
      min-width: 0;
    }
    .embedHead{
      display:flex; align-items:center; justify-content:space-between; gap:10px;
      padding: 10px 12px;
      border-bottom:1px solid rgba(255,255,255,.06);
      background: rgba(255,255,255,.03);
    }
    .embedHead strong{font-size: 12px}
    .embedHead span{font-size: 11px; color: var(--muted)}
    .embedBody{padding: 10px; flex:1}
    .embedBody iframe{
      width:100%;
      border:0;
      border-radius: 12px;
      background: rgba(0,0,0,.10);
      min-height: 360px;
    }
    .embedBody iframe.compact{min-height: 160px;}
    .embedActions{
      display:flex; gap:8px; flex-wrap:wrap;
      padding: 10px 12px 12px;
      border-top:1px solid rgba(255,255,255,.06);
      background: rgba(255,255,255,.02);
    }

    /* Loading Overlay + Pixel Art */
    .loadingOverlay{
      position:fixed; inset:0;
      z-index: 100;
      display:flex;
      align-items:center; justify-content:center;
      background:
        radial-gradient(1000px 700px at 20% 20%, rgba(0,229,255,.16), transparent 60%),
        radial-gradient(900px 700px at 80% 30%, rgba(155,124,255,.14), transparent 60%),
        rgba(0,0,0,.78);
      backdrop-filter: blur(10px);
      transition: opacity .25s ease, transform .25s ease;
      opacity:1;
    }
    .loadingOverlay.hide{
      opacity:0;
      transform: translateY(-8px);
      pointer-events:none;
    }
    .loadingCard{
      width:min(640px, 100%);
      border:1px solid rgba(255,255,255,.14);
      border-radius: 28px;
      background: linear-gradient(180deg, rgba(12,18,40,.94), rgba(9,14,32,.78));
      box-shadow: var(--shadow);
      overflow:hidden;
      position:relative;
    }
    .loadingCard::before{
      content:"";
      position:absolute; inset:-50%;
      background: conic-gradient(from 180deg, rgba(0,229,255,.0), rgba(0,229,255,.25), rgba(155,124,255,.20), rgba(0,229,255,.0));
      animation: spin 8.8s linear infinite;
      opacity:.55;
      filter: blur(1px);
    }
    .loadingInner{position:relative; z-index:2; padding: 16px}
    .loadTop{
      display:flex; gap:14px; align-items:center; flex-wrap:wrap;
    }
    .loadingGlow{
      position:absolute;
      width: 220px;
      height: 220px;
      border-radius: 999px;
      filter: blur(28px);
      opacity: .28;
      pointer-events:none;
    }
    .loadingGlowA{ top:-70px; left:-40px; background: rgba(0,229,255,.45); }
    .loadingGlowB{ right:-70px; bottom:-90px; background: rgba(155,124,255,.35); }
    .pxFrame{
      width: 132px; height: 132px;
      border-radius: 22px;
      border:1px solid rgba(255,255,255,.14);
      background: radial-gradient(circle at center, rgba(0,229,255,.10), rgba(0,0,0,.14));
      display:grid; place-items:center;
      box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 18px 42px rgba(0,0,0,.35);
      overflow:hidden;
    }
    #loadPx{width: 112px; height: 112px; filter: drop-shadow(0 0 20px rgba(0,229,255,.28));}
    .loadText{
      flex:1; min-width: 240px;
    }
    .loadBadges{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-bottom: 10px;
    }
    .loadPill{
      display:inline-flex;
      align-items:center;
      min-height: 26px;
      padding: 0 10px;
      border-radius: 999px;
      border:1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.05);
      color: var(--muted2);
      font-size: 10px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .loadTitle{
      margin:0;
      font-size: 15px;
      letter-spacing:1px;
      font-weight: 1000;
    }
    .loadSub{
      margin:6px 0 0;
      color: var(--muted);
      font-size: 12px;
      line-height:1.35;
    }
    .loadBar{
      margin-top: 14px;
      border:1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.18);
      border-radius: 999px;
      padding: 6px;
      overflow:hidden;
    }
    .loadFill{
      height: 10px;
      border-radius: 999px;
      width: 0%;
      background: linear-gradient(90deg, rgba(0,229,255,.95), rgba(155,124,255,.90));
      box-shadow: 0 12px 26px rgba(0,229,255,.10);
      transition: width .18s ease;
    }
    .loadFooter{
      margin-top: 10px;
      display:flex; justify-content:space-between; gap:10px; align-items:center;
      color: var(--muted2);
      font-size: 11px;
      letter-spacing:.25px;
    }
    .kbd{
      font-variant-numeric: tabular-nums;
      padding: 2px 6px;
      border-radius: 8px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.03);
    }
    .loadTelemetry{
      margin-top: 14px;
      display:grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap:10px;
    }
    .telemetryCard{
      padding: 12px 14px;
      border-radius: 16px;
      border:1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.03);
      min-height: 78px;
    }
    .telemetryCard span{
      display:block;
      color: var(--muted2);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .12em;
      margin-bottom: 6px;
    }
    .telemetryCard strong{
      display:block;
      font-size: 13px;
      line-height: 1.45;
    }

    /* Watermark Pixel (sem quadrado) */
    .watermark{
      position:fixed;
      right: 14px;
      bottom: 14px;
      z-index: 2;
      pointer-events:none;
      opacity:.28;
      mix-blend-mode: screen;
      filter: drop-shadow(0 18px 32px rgba(0,0,0,.55));
      transition: opacity .18s ease;
    }
    #wmPx{width: 90px; height: 90px; opacity:.92; filter: drop-shadow(0 0 16px rgba(0,229,255,.2));}

    @media (max-width: 720px){
      .loadTelemetry{grid-template-columns: 1fr;}
      .pxFrame{width: 118px; height: 118px;}
      #loadPx{width: 98px; height: 98px;}
    }

    /* Color Shift override usando HSL */
    :root{
      --a: hsl(var(--hue), 100%, 55%);
      --a2: hsl(calc(var(--hue) + 120), 100%, 70%);
    }

    /* Extra FX toggles */
    body.no-scan .scanlines{display:none}
    body.no-grid .bgGrid{display:none}
    body.no-wash .beatWash{display:none}
    body.no-huewash .hueWash{display:none}
    body.watermark-off .watermark{display:none}
    body.neon-off .player::before{opacity:.18}
    body.neon-off .iconBtn, body.neon-off .btn{
      box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset;
    }

    /* NEW: desliga blur/backdrop e sombras (otimização hard) */
    body.no-blur header,
    body.no-blur .card{
      backdrop-filter: none !important;
    }
    body.no-shadow header,
    body.no-shadow .card,
    body.no-shadow .player{
      box-shadow: none !important;
    }

    /* NEW: na aba Plataformas, o split vira 1 coluna (pra embed não ficar esmagado) */
    .route[data-route="links"].active .split{ grid-template-columns: 1fr !important; }

    /* NEW: FPS overlay (opcional) */
    .fpsOverlay{
      position:fixed;
      left: 14px;
      bottom: 14px;
      z-index: 90;
      pointer-events:none;
      display:none;
      padding: 8px 10px;
      border-radius: 12px;
      border:1px solid rgba(255,255,255,.14);
      background: rgba(0,0,0,.55);
      backdrop-filter: blur(10px);
      box-shadow: var(--shadow2);
      font-size: 12px;
      color: var(--text);
      mix-blend-mode: normal;
    }
    body.fps-on .fpsOverlay{display:block}

    @media (prefers-reduced-motion: reduce){
      .brand .logo::after, .loginBox::before, .player::before, .loadingCard::before{animation:none}
      .tab, .btn, .item, .iconBtn{transition:none}
    }
  


  /* === Color Shift aplicado em partes que ficaram “sem cor” === */
  /* Seek bar / loading bar / play btn com HSL dinâmico (segue --hue) */
  .range{
    background: linear-gradient(
      90deg,
      hsla(var(--hue), 100%, 55%, .95),
      hsla(calc(var(--hue) + 120), 100%, 70%, .90)
    ) !important;
  }
  .loadFill{
    background: linear-gradient(
      90deg,
      hsla(var(--hue), 100%, 55%, .95),
      hsla(calc(var(--hue) + 120), 100%, 70%, .90)
    ) !important;
  }

  /* Play “volta a brilhar” */
  .iconBtn.big.primary{
    border-color: hsla(var(--hue), 100%, 60%, .55) !important;
    background:
      radial-gradient(120% 120% at 30% 20%, hsla(var(--hue), 100%, 55%, .22), transparent 58%),
      radial-gradient(120% 120% at 70% 80%, hsla(calc(var(--hue) + 120), 100%, 65%, .18), transparent 58%),
      rgba(255,255,255,.05) !important;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.06) inset,
      0 18px 44px rgba(0,0,0,.42),
      0 0 22px hsla(var(--hue), 100%, 60%, .20) !important;
  }

  /* === Equalizer UI (injetado via JS) === */
  .eqWrap{
    margin-top: 12px;
    border:1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background: rgba(0,0,0,.16);
    overflow:hidden;
    position:relative;
  }
  .eqHead{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding: 10px 12px;
    border-bottom:1px solid rgba(255,255,255,.06);
    background:
      radial-gradient(260px 120px at 20% 20%, hsla(var(--hue), 100%, 55%, .12), transparent 65%),
      radial-gradient(260px 120px at 80% 80%, hsla(calc(var(--hue) + 120), 100%, 65%, .10), transparent 65%),
      rgba(255,255,255,.02);
  }
  .eqTitle{
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .35px;
    color: rgba(232,241,255,.85);
  }
  .eqMiniBtn{
    border:1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    padding: 7px 10px;
    border-radius: 12px;
    cursor:pointer;
    font-weight: 900;
    font-size: 12px;
    transition: transform .12s ease, border-color .18s ease, background .18s ease;
  }
  .eqMiniBtn:hover{
    transform: translateY(-1px);
    border-color: hsla(var(--hue), 100%, 60%, .40);
    background: hsla(var(--hue), 100%, 55%, .08);
  }
  .eqMiniBtn.on{
    border-color: hsla(var(--hue), 100%, 60%, .55);
    background: hsla(var(--hue), 100%, 55%, .12);
  }

  .eqCanvas{
    width:100%;
    height: 140px;
    display:block;
    background:
      linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.22));
  }
  .eqFoot{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding: 8px 12px 10px;
    border-top:1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.02);
    font-size: 11px;
    color: rgba(238,243,255,.65);
  }
  .eqHint{
    color: rgba(238,243,255,.45);
  }

  /* Se tu ativar SAFE MODE (no teu sistema), equalizer vira minimal */
  body.no-blur .eqWrap{
    backdrop-filter: none !important;
  }
/* ======================================================== */
/* AI Terminal (Implantado pela DevMaster no Hub Principal) */
/* ======================================================== */
#aiTerminalHub {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: min(320px, 80vw);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: none;
  font-family: monospace;
}
.ai-msg-hub {
  background: rgba(6,8,15,.95);
  border-left: 3px solid;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.8rem;
  color: rgba(238,243,255,.95);
  box-shadow: 0 8px 25px rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
  animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: opacity 0.3s;
}
.ai-msg-hub .ai-name-hub {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.ai-msg-hub.glitch-anim-hub { animation: slideInRight 0.3s forwards, glitch-anim-hub 0.2s infinite; }

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes glitch-anim-hub {
  0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 2px); }
  20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -2px); }
  40% { clip-path: inset(40% 0 50% 0); transform: translate(2px, 2px); }
  60% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, -2px); }
  80% { clip-path: inset(10% 0 70% 0); transform: translate(2px, -2px); }
  100% { clip-path: inset(30% 0 50% 0); transform: translate(-2px, 2px); }
}

/* ============================================================ */
/* NOVA SEÇÃO: Serviços de TI – Cards com visual cyberpunk 8-bit */
/* ============================================================ */

/* Grid responsiva para os cards de serviço */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-top: 0.8rem;
}

/* Card individual */
.service-card {
  background: linear-gradient(135deg, rgba(8, 12, 28, 0.85), rgba(5, 8, 18, 0.9));
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 20px;
  padding: 1.2rem;
  transition: all 0.2s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

/* Efeito hover: glow neon e elevação sutil */
.service-card:hover {
  transform: translateY(-4px);
  border-color: #00E5FF;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.2), 0 0 0 1px rgba(0, 229, 255, 0.3) inset;
  background: linear-gradient(135deg, rgba(8, 12, 28, 0.9), rgba(5, 8, 18, 0.95));
}

/* Ícone (8-bit inspirado) */
.service-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 2px cyan);
  margin-bottom: 0.2rem;
}

/* Título do serviço */
.service-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fff, #9B7CFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Descrição */
.service-card p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(238, 243, 255, 0.8);
  margin: 0;
  flex: 1;
}

/* Botão de orçamento com estilo cyberpunk */
.service-card .btn.primary {
  width: 100%;
  margin-top: 0.5rem;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.5);
  transition: all 0.2s ease;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
}

.service-card .btn.primary:hover {
  background: rgba(0, 229, 255, 0.25);
  border-color: #00E5FF;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* Responsividade: ajuste para telas menores */
@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-card {
    padding: 1rem;
  }
}

/* Efeito de fade-in suave quando a rota "services" é ativada */
.route[data-route="services"].active {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Elementos visuais extras - decorative glows */
.decoration-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.decoration-glow.top-left {
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,255,0.15), transparent 70%);
}

.decoration-glow.bottom-right {
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(155,124,255,0.15), transparent 70%);
}

.decoration-glow.top-right {
  top: -100px;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,51,102,0.08), transparent 70%);
}

/* Cards com efeito de glassmorphism */
.card.glass {
  background: linear-gradient(135deg, rgba(12,18,40,.75), rgba(10,16,36,.55));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
}

/* Efeito de hover nos cards com glow */
.card .glow-hover {
  transition: all 0.35s ease;
}

.card .glow-hover:hover {
  box-shadow: 
    var(--shadow),
    0 0 40px rgba(0,229,255,.12),
    inset 0 0 30px rgba(0,229,255,.03);
  border-color: rgba(0,229,255,.20);
}

/* Títulos com gradiente */
.gradient-title {
  background: linear-gradient(135deg, #EEF3FF 0%, #00E5FF 50%, #9B7CFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Botões com efeito de brilho */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left 0.5s ease;
}

.btn-glow:hover::before {
  left: 100%;
}

/* Container mais largo e espaçoso */
.main-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 32px;
}

/* Gap maior entre elementos */
.section-gap {
  margin-bottom: 32px;
}

/* Card header mais espaçoso */
.cardHeader.spacious {
  padding: 24px 28px 20px;
}

.cardHeader.spacious h2 {
  font-size: 18px;
}

/* Input com ícone */
.input-with-icon {
  position: relative;
}

.input-with-icon .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted2);
}

.input-with-icon input {
  padding-left: 48px;
}
