:root {
  --bg:           #0B1215;
  --surface:      #16111f;
  --accent:       #c084fc;
  --accent-dim:   #7c3aed;
  --accent-deep:  #2A0134;
  --text-bright:  #fbd3ff;
  --text:         #d0b7e1;
  --muted:        #8b7eaa;
  --pink-glow:    #f0abfc;

  --font-mono:  'Share Tech Mono', monospace;
  --font-body:  'DM Sans', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-ubuntu: 'Ubuntu', normal;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background:
    radial-gradient(ellipse 800px 500px at 15% 10%, rgba(192,132,252,0.15), transparent 60%),
    radial-gradient(ellipse 700px 600px at 85% 30%, rgba(240,171,252,0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  padding-bottom: 80px;
}

.dark {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 80px;
  
}




.topbar {
  
  top: 12px;
  z-index: 100;
  margin: 12px auto 40px;
  padding: 6px 8px 6px 22px;
  max-width: 1500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  background: rgba(20, 14, 35, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(192,132,252,0.2);
  border-radius: 100px;
}
.logo {
  font-family: var(--font-mono);
  font-size: 1em;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 6px  var(--accent),
    0 0 16px var(--accent-dim);
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 7px 16px;
  border-radius: 100px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover     { color: var(--text-bright); background: rgba(192,132,252,0.1); }
.nav-links a.active    { color: var(--text-bright); background: rgba(192,132,252,0.18); }

.auth-actions { display: flex; gap: 6px; }
.btn-ghost, .btn-glow {
  padding: 7px 18px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-glow {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: white;
  box-shadow: 0 0 16px -4px var(--accent);
}
.btn-glow:hover { box-shadow: 0 0 26px -2px var(--accent); transform: translateY(-1px); }


.profile-hero {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;

  padding: 36px 40px;
  margin-bottom: 32px;

  background: rgba(30, 24, 56, 0.4);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(192,132,252,0.18);
  border-radius: 20px;
}

.hero-right {
  text-align: right;
  flex-shrink: 2;
}
/* ── Profile hero: left side (pfp + identity) ───────────────── */
.hero-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1 1 auto;
  min-width: 0;          /* lets long usernames truncate instead of overflowing */
}

/* The pfp. Larger, rounded, and its RIGHT edge dissolves into the card. */
.pfp {
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  border-radius: 18px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Fallback look when there's no image (shows initials) */
  background-color: rgba(192, 132, 252, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.6em;
  font-weight: 600;
  color: var(--pink-glow);
  text-shadow: 0 0 14px var(--accent-dim);

  /* THE FADE — the right edge melts into the card background.
     The mask makes pixels progressively transparent past 55% width,
     so the photo blends into the translucent purple card instead of
     sitting in a hard-edged box. */
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%);
          mask-image: linear-gradient(to right, #000 55%, transparent 100%);
}

.hero-left .username {
  font-family: var(--font-serif);
  font-size: 2.1em;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-bright);
  text-shadow: 0 0 14px var(--accent-dim);
}

.hero-left .bio {
  font-size: 0.85em;
  color: var(--muted);
  margin: 4px 0 10px;
}

.tier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68em;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  padding: 3px 12px;
}
.big-number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 5em;
  line-height: 0.9;
  color: white;
  text-shadow:
    0 0 8px  var(--pink-glow),
    0 0 20px var(--accent),
    0 0 40px var(--accent-dim);
}
.big-label {
  font-family: var(--font-mono);
  font-size: 0.75em;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 6px;
  margin-bottom: 16px;
}
.btn-edit {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 24px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.8em;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-edit:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 16px -2px var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
  align-self: flex-start;
}
.stat-card {
  background: rgba(30, 24, 56, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(192,132,252,0.15);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 32px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65em;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.stat-value {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.8em;
  color: var(--text-bright);
}
.stat-value .unit {
  font-size: 0.55em;
  color: var(--muted);
  margin-left: 4px;
  font-weight: 400;
}



.term-card {
  background: rgba(10, 6, 18, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(192,132,252,0.22);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 0 30px -10px rgba(192,132,252,0.25);
}
.term-bar {
  background: rgba(192,132,252,0.12);
  border-bottom: 1px solid rgba(192,132,252,0.2);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78em;
}

.term-bar::before {
  content: '● ● ●';
  color: var(--accent);
  letter-spacing: 0.35em;
  margin-right: 12px;
  font-size: 0.7em;
}
.term-title {
  flex: 1;
  color: var(--pink-glow);
  letter-spacing: 0.05em;
}
.term-close { color: var(--muted); cursor: pointer; }

.term-body {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--text);
  line-height: 1.65;
  text-shadow:
    0 0 8px  var(--pink-glow),
    0 0 20px var(--accent),
    0 0 40px var(--accent-dim);
}
.term-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(192,132,252,0.1);
}
.term-row:last-child { border-bottom: none; }
.term-row .name   { color: var(--text-bright); }
.term-row .status { color: var(--muted); font-size: 0.85em; }
.term-row .status.done { color: #86efac; }
.term-row .status.run  { color: var(--pink-glow); }
.term-row .status.fail { color: #fca5a5; }



.main {
    margin: 40px;
    display: flex;
    letter-spacing: 0.18em;
    flex-wrap: wrap;
    flex-direction: column;
}
.bg-nebula {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(192, 132, 252, 0.25), transparent 50%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(124, 58, 237, 0.30), transparent 50%),
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(99, 102, 241, 0.20), transparent 60%),
    var(--bg);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background: rgba(22, 17, 31, 0.4);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 36px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  position: sticky; top: 16px; z-index: 50;
}
.nav-brand {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 0.95em;
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.5);
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-family: var(--font-mono);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82em;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.nav-links a.active { color: var(--accent); }
.nav-links a:hover  { color: var(--accent-soft); }

.nav-user {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: var(--muted);
  cursor: pointer;
}
.nav-user .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.7em;
  border: 1px solid rgba(255,255,255,0.15);
}

.sectionla {
    text-align: center;
    color: #d0b7e1;
    letter-spacing: 5.5px;
    font-size: 35px;
    padding: 20px;
    font-family: var(--font-mono);
    font-kerning: 9px;
}
.quote {
    color: var(--text-bright);
    letter-spacing: 5.5px;
    font-size: 24px;
    padding: 20px;
    font-family: var(--font-serif);
    text-shadow: 0 0 12px rgba(214, 173, 255, 0.5);
}

.slidebase {
  border-bottom: solid 1px;
  border-radius: 10px;
  background-color: var(--bg);
  margin: 50px;
  display: flex; align-items: center;
  flex-wrap: nowrap;
  gap: 16px;              
  overflow-x: auto;

}

.slide {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
}
.slide img {
  width: 100%;
  height: 100%;        
  object-fit: cover;     
  display: block;         
}
.bottomW {
  background-color: #0B1215;
  padding-bottom: 80px;
  text-align: center;

}

.link {
  size: 50px;
  align-items: center;
  margin: 20px;
  display: flex; flex-shrink: 0;
  max-width: 50px;
  max-height: 100px;
}

.sectionSBMT {
  align-items: center;
  padding-bottom: 30px;
  margin: 20px;
  display: flex;
  justify-content: center;
  

}

.render-layout {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;          
  align-items: flex-start;  
}

.preview-box {
  background: rgba(10, 6, 18, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(192,132,252,0.22);
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
  box-shadow: 0 0 30px -10px rgba(192,132,252,0.25);
  
}
.preview-box img {
  display: block;
  max-width: 50%;          
  border-radius: 4px;
}

.sep-cards input[type="radio"] { display: none; }      /* hide the native dot */

.sep-card {                                              /* the clickable card = the label */
  display: block;
  background: rgba(30, 24, 56, 0.3);
  border: 1px solid rgba(192,132,252,0.15);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

/* THE MAGIC: when the radio before it is checked, style its label */
.sep-cards input[type="radio"]:checked + .sep-card {
  border-color: var(--accent);
  background: rgba(192,132,252,0.12);
  box-shadow: 0 0 16px -4px var(--accent);
}

select {
  appearance: none; -webkit-appearance: none;
  background: rgba(10,6,18,0.6);
  border: 1px solid rgba(192,132,252,0.22);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-mono);
  cursor: pointer;
}

 .card-icon {
        font-size: 1.4em;
        margin-bottom: 6px;
        display: block;
    }
    .card-title {
        font-size: 0.88em;
        font-weight: 600;
        color: var(--text);
        line-height: 1.3;
    }
    .card-desc {
        font-size: 0.72em;
        color: var(--muted);
        margin-top: 4px;
        line-height: 1.4;
    }
 
    /*
     * ── Model + format row ──
     * Appears below the grid once a card is selected.
     * Uses display:none by default, shown by JS.
     * opacity + transform transition gives it a smooth
     * fade-in slide-up entrance — same animation principle
     * you learned earlier.
     */
    .options-row {
        display: none;
        background: var(--bg);
        border: 1px solid var(--text-bright);
        border-radius: 8px;
        padding: 16px 18px;
        margin-bottom: 20px;
        gap: 14px;
        flex-wrap: wrap;
        align-items: flex-end;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    }
    .options-row.visible {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
 
    .option-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
        flex: 1;
        min-width: 180px;
    }
    .option-label {
        font-size: 0.68em;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }
    .stat-card { cursor: pointer; }           
.stat-card.selected {                      
  border-color: var(--accent);
  background: rgba(192,132,252,0.12);
  box-shadow: 0 0 16px -4px var(--accent);
}

.upload-area {
        
        padding: 24px;
        text-align: center;
        margin-bottom: 16px;
        transition: border-color 0.15s;
        cursor: pointer;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
       border: 1px solid rgba(192,132,252,0.22);
         border-radius: 8px;
          overflow: hidden;
          padding: 10px;
          box-shadow: 0 0 30px -10px rgba(192,132,252,0.25);
    }
    .upload-area:hover { border-color: var(--accent-dim); }
    .upload-area.has-file { border-color: var(--ok); border-style: solid; box-shadow: 0 0 50px -10px rgba(192,132,252,0.25); }
    .upload-icon { font-size: 1.8em; margin-bottom: 8px; display: block; }
    .upload-hint { font-size: 0.78em; color: var(--muted); margin-top: 4px; }
    .upload-filename {
        font-family: var(--font-mono);
        font-size: 0.82em;
        color: var(--ok);
        margin-top: 6px;
    }
    #audio-file { display: none; }

    .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px 0;
}
.footer-links a img {
  width: 32px;
  height: 32px;
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}
.footer-links a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}
#recentprojects-wrap {
            background: #111318;
            border: 1px solid #1e2230;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 20px;
        }
        .rp-table {
            padding: 16px;
            margin-bottom: 16px;
            transition: border-color 0.15s;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border-bottom: 1px solid rgba(192,132,252,0.22);
            border-radius: 4px;
            overflow: hidden;
             padding: 10px;
             box-shadow: 0 0 30px -10px rgba(192,132,252,0.25);
        }
        .rp-table th {
            text-align: left;
            padding: 9px 14px;
            color: var(--muted);
            font-size: 0.71em;
            text-transform: uppercase;
            letter-spacing: 2px;
            border-bottom: 1px solid #1e2230;
            font-weight: 600;
        }
        .rp-table td {
            padding: 9px 14px;
            border-bottom: 1px solid rgba(30,34,48,0.5);
            vertical-align: middle;
            
        }
        .rp-table tr:last-child td { border-bottom: none; }
        .rp-table tr:hover td      { background: rgba(255,255,255,0.025); cursor: pointer; }
        /* pfp square thumbnail */
        .rp-thumb {
            width: 34px;
            height: 34px;
            border-radius: 5px;
            overflow: hidden;
            position: relative;
            flex-shrink: 0;
            border: 1px solid #1e2230;
            display: inline-block;
            vertical-align: middle;
        }
        .rp-thumb-bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            filter: brightness(0.6);
        }
        .rp-thumb-init {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Share Tech Mono', monospace;
            font-size: 0.85em;
            color: rgba(255,255,255,0.75);
            background: linear-gradient(135deg, #2a0a4a, #0c1a3a);
        }
        .rp-user-cell  { display: flex; align-items: center; gap: 9px; }
        .rp-username   { font-size: 0.84em; color: #e2e8f0; white-space: nowrap; }
        .rp-filename   { font-family: 'Share Tech Mono', monospace; font-size: 0.82em; color: #c084fc;
                         max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
        /* Status pills */
        .rp-pill           { display:inline-block; padding:2px 8px; border-radius:20px; font-family:'Share Tech Mono',monospace; font-size:0.72em; }
        .rp-pill-rendering { background:#0c3a52; color:#67e8f9; }
        .rp-pill-done      { background:#14381a; color:#4ade80; }
        .rp-pill-queued    { background:#3b2c00; color:#fcd34d; }
        .rp-pill-failed    { background:#3b0a0a; color:#f87171; }
        /* Inline progress bar */
        .rp-progress { display:flex; align-items:center; gap:6px; min-width:80px; }
        .rp-track    { flex:1; height:4px; background:#1e2230; border-radius:2px; }
        .rp-fill     { height:100%; background:#22c55e; border-radius:2px; }
        .rp-pct      { font-size:0.72em; color:#64748b; white-space:nowrap; }

        #status-msg {
        font-size: 0.82em;
        text-align: center;
        margin-top: 12px;
        min-height: 1.2em;
    }
    .ok  { color: var(--ok); }
    .err { color: var(--danger); }

    .login-card {
        background: rgba(17,19,24,0.97);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 36px 32px;
        width: 100%;
        max-width: 400px;
        backdrop-filter: blur(10px);
    }
    .field {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 12px;
    }
    .field label {
        font-size: 0.7em;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-family: var(--font-mono);
    }
    .field input {
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 9px 12px;
        color: var(--text);
        font-family: var(--font-body);
        font-size: 0.9em;
        outline: none;
        transition: border-color 0.15s;
        width: 100%;
        text-align: left;
    }
    .field input:focus { border-color: var(--accent-dim); }
    .field input::placeholder { color: var(--muted); }

    .toggle-row {
        text-align: center;
        font-size: 0.8em;
        color: var(--muted);
        margin-top: 14px;
    }
    .toggle-row a {
        color: var(--accent);
        cursor: pointer;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    
    #register-section { display: none; }

    .profile-hero {
        display: flex;
        flex-wrap: wrap;
        
        
       }
       .profile-pfp {
        margin: 20px;
        overflow: hidden;
        border: 1px solid rgba(192,132,252,0.25);
        border-radius: 900px;
        
        width: 75px;
        height: 75px;
        /* basic pfp, might be changed later to fit layla's style [or Hoyoverse' style where it comes out slightly out of the box, though only works with transparent pfps sadly, so I might keep it inside.] */
       }
       .profile-card {
        border: 1px solid rgba(217, 182, 252, 0.25);
        backdrop-filter: blur(10px);
        background-color: rgba(218, 180, 255, 0.094);
          
        border-radius: 5px;
        overflow: hidden;
        margin: 90px;
        

       }
       .profile-val {
        padding: 7px 7px 7px;
        color: var(--text-slightly-less-bright);
        font-size: 14px;
        font-family: var(--font-mono);

       }
       .profile-title {
        background: rgba(192,132,252,0.15);
        border-bottom: 1px solid rgba(192,132,252,0.25);
        padding: 6px 12px;
        color: var(--pink-glow);
        font-size: 0.95em;
        letter-spacing: 0.05em;
        display: flex;
        justify-content: space-between;

       }

       .profile-title::before {
    content: '● ● ●';
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-right: 12px;
}
       .profile-user {
        font-size: 50px;
        color: var(--text-bright);
        margin: 50px;
        font-family: var(--font-body);
        text-align: left;
        padding: 50px 50px 50px;
        font-style: italic;
        text-shadow:
    0 0 6px  #b895f9,
    0 0 14px #c7afff,
    0 0 28px #c463f1,
    0 0 56px #9938ca;
       }

       .profile-desc {
        font-size: 25px;
        color: var(--text-slightly-less-bright);
        text-align: left;
        padding: 5px 5px 5px;
        font-style: bold;

       }

       
       .profile-grid {
        grid-row: span;
       
        margin: 50px;
       }
       .term-row:last-child { border-bottom: none; }
.term-row .name   { color: var(--text-bright); }
.term-row .status { color: var(--muted); font-size: 0.85em; }
.term-row .status.done { color: #86efac; }
.term-row .status.run  { color: var(--pink-glow); }
.term-row .status.fail { color: #fca5a5; }


.stem-row {
    background: rgba(10, 6, 18, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(192,132,252,0.22);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 14px;
    box-shadow: 0 0 30px -10px rgba(192,132,252,0.15);
}
.stem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    letter-spacing: 0.05em;
}
.stem-name   { color: var(--text-bright); }
.stem-status { color: var(--muted); font-size: 0.85em; text-transform: uppercase; }
.stem-status.done   { color: #86efac; }
.stem-status.queued { color: var(--muted); }
.stem-waveform {
    width: 100%;
    max-width: 600px;
    height: 60px;
    display: block;
    margin: 0 auto 10px;
    background: rgba(20, 14, 35, 0.4);
    border-radius: 4px;
}
.stem-row audio { width: 100%; margin: 6px 0; }
.stem-row .btn-edit { margin-top: 4px; display: inline-block; }

.donate-hero {
            max-width: 760px;
            margin: 24px auto 56px;
            padding: 36px 40px;
            text-align: center;
            background: rgba(30, 24, 56, 0.4);
            backdrop-filter: blur(20px) saturate(160%);
            -webkit-backdrop-filter: blur(20px) saturate(160%);
            border: 1px solid rgba(192,132,252,0.18);
            border-radius: 20px;
        }
        .honest-ask {
            font-family: var(--font-serif);
            font-style: italic;
            font-size: 2.4em;
            line-height: 1.15;
            color: var(--text-bright);
            text-shadow:
                0 0 8px var(--pink-glow),
                0 0 24px var(--accent-dim);
            margin-bottom: 18px;
        }
        .honest-ask .accent { color: var(--pink-glow); }
        .donate-hero .big-label {
            font-size: 0.95em;
            max-width: 540px;
            margin: 0 auto;
            line-height: 1.7;
        }

        .section-heading {
            font-family: var(--font-mono);
            font-size: 0.82em;
            color: var(--muted);
            letter-spacing: 0.18em;
            margin: 44px 8px 18px;
            text-transform: uppercase;
        }

        /* Method cards (Ko-fi, GitHub Sponsors, PayPal, etc.) */
        .method-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
            margin-bottom: 32px;
        }
        .method-card {
            display: block;
            text-decoration: none;
            padding: 22px 24px;
            background: rgba(10, 6, 18, 0.6);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(192,132,252,0.22);
            border-radius: 10px;
            transition: transform 0.2s, border-color 0.2s, box-shadow 0.3s;
            position: relative;
            overflow: hidden;
        }
        .method-card:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
        }
        .method-card .platform {
            font-family: var(--font-mono);
            font-size: 1.1em;
            color: var(--text-bright);
            letter-spacing: 0.05em;
            margin-bottom: 6px;
        }
        .method-card .tagline {
            font-size: 0.82em;
            color: var(--muted);
            margin-bottom: 14px;
        }
        .method-card .arrow {
            font-family: var(--font-mono);
            font-size: 0.75em;
            color: var(--accent);
            letter-spacing: 0.15em;
        }
        /* Per-platform glow accents */
        .method-card.kofi:hover   { box-shadow: 0 0 30px -8px #fb7185; }
        .method-card.kofi   .platform, .method-card.kofi .arrow   { color: #fda4af; }
        .method-card.github:hover { box-shadow: 0 0 30px -8px #c4b5fd; }
        .method-card.github .platform, .method-card.github .arrow { color: #ddd6fe; }
        .method-card.paypal:hover { box-shadow: 0 0 30px -8px #60a5fa; }
        .method-card.paypal .platform, .method-card.paypal .arrow { color: #93c5fd; }

        /* The fine-print promise rows */
        .promise-row {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 6px 0;
            border-bottom: 1px dashed rgba(192,132,252,0.1);
        }
        .promise-row:last-child { border-bottom: none; }
        .promise-row .mark {
            font-family: var(--font-mono);
            font-weight: bold;
            min-width: 18px;
        }
        .promise-row.yes .mark { color: #86efac; }
        .promise-row.no  .mark { color: #fca5a5; }
        .promise-row .text { color: var(--text); font-size: 0.92em; }

        /* Supporter list grid */
        .supporters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 6px 18px;
            padding: 6px 4px;
        }
        .supporter {
            font-family: var(--font-mono);
            font-size: 0.85em;
            color: var(--text-bright);
            padding: 4px 0;
        }
        .supporter.anon  { color: var(--muted); font-style: italic; }
        .supporter.you   { color: var(--pink-glow); font-style: italic; opacity: 0.7; }

        /* Stat-value unit for the "$xx/yr" pattern */
        .stat-value .unit-suffix {
            font-size: 0.42em;
            color: var(--muted);
            margin-left: 4px;
            font-weight: 400;
            font-family: var(--font-mono);
            letter-spacing: 0.08em;
        }

        @media (max-width: 600px) {
            .honest-ask    { font-size: 1.7em; }
            .donate-hero   { padding: 28px 22px; }
        }
        /* ── Profile hero: left side (pfp + identity) ───────────────── */
.hero-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1 1 auto;
  min-width: 0;          /* lets long usernames truncate instead of overflowing */
}

/* The pfp. Larger, rounded, and its RIGHT edge dissolves into the card. */
.pfp {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 18px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Fallback look when there's no image (shows initials) */
  background-color: rgba(192, 132, 252, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.6em;
  font-weight: 600;
  color: var(--pink-glow);
  text-shadow: 0 0 14px var(--accent-dim);

  /* THE FADE — the right edge melts into the card background.
     The mask makes pixels progressively transparent past 55% width,
     so the photo blends into the translucent purple card instead of
     sitting in a hard-edged box. */
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%);
          mask-image: linear-gradient(to right, #000 55%, transparent 100%);
}

.hero-left .username {
  font-family: var(--font-serif);
  font-size: 2.1em;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-bright);
  text-shadow: 0 0 14px var(--accent-dim);
}

.hero-left .bio {
  font-size: 0.85em;
  color: var(--muted);
  margin: 4px 0 10px;
}

.tier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68em;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  padding: 3px 12px;
}





        

        


/* ═══════════════════════════════════════════════════════════════
   MOBILE / RESPONSIVE LAYER  (added 2026)
   ───────────────────────────────────────────────────────────────
   Every page links this one file, so these media queries port ALL
   pages at once. They only OVERRIDE the desktop values on narrow
   screens — the desktop layout above is left untouched.

   PREREQUISITE: each page needs this in its <head>:
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
   Without it, phones fake a 980px width and none of this fires.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet and below (≤768px) ─────────────────────────────────── */
@media (max-width: 768px) {

  /* The pill topbar can't hold 8 links on a phone. Let it wrap:
     brand + avatar stay on row 1, the links drop to a full-width
     centred row underneath. */
  .topbar {
    flex-wrap: wrap;
    border-radius: 20px;        /* a giant pill looks wrong once it wraps */
    padding: 10px 14px;
    margin: 12px 12px 28px;
    gap: 10px;
  }
  .nav-links {
    order: 3;                   /* force the links below brand + avatar */
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
  }
  .nav-links a { padding: 6px 10px; font-size: 0.78em; }

  /* 40px side margins eat a phone screen alive — pull them in. */
  .main { margin: 20px 14px; }

  /* Wide letter-spacing + big size overflows long headings. */
  .sectionla { font-size: 24px; letter-spacing: 3px; padding: 14px; }
  .quote     { font-size: 18px; letter-spacing: 3px; }

  /* Profile page uses huge fixed margins/paddings that blow past the
     viewport edge. Scale them way down on mobile. */
  .profile-card { margin: 20px 12px; }
  .profile-user { font-size: 30px; margin: 16px; padding: 16px; }
  .profile-desc { font-size: 18px; }
  .profile-grid { margin: 16px 12px; }
  .profile-pfp  { margin: 12px; }

  /* Hero block: stack the pfp above the text instead of side-by-side. */
  .profile-hero { padding: 20px; gap: 16px; }
  .hero-left    { flex-direction: column; text-align: center; gap: 14px; }
  .hero-right   { text-align: center; width: 100%; }
  .big-number   { font-size: 3.2em; }

  /* Wide tables: scroll sideways instead of squishing to mush. */
  .rp-table { display: block; overflow-x: auto; white-space: nowrap; }

  /* Tighten the big centred blocks. */
  .donate-hero { margin: 16px 12px 36px; }
  .slidebase   { margin: 24px 12px; }
  .render-layout { gap: 16px; }
}

/* ── Phones (≤480px) ───────────────────────────────────────────── */
@media (max-width: 480px) {

  /* Stack the model + format selectors one per row so they're tappable. */
  .option-group { min-width: 100%; }

  /* Method cards (donate) to a single column. The stat/type grids
     already reflow on their own via auto-fit, so we leave them be. */
  .method-grid { grid-template-columns: 1fr; }

  .sectionla { font-size: 20px; letter-spacing: 2px; }

  /* The 120px pfp is still chunky on a small phone. */
  .pfp         { width: 100px; height: 100px; }
  .big-number  { font-size: 2.6em; }

  /* Keep the upload dropzone comfortable but not oversized. */
  .upload-area { padding: 18px; }
}