/* ======================================================
   SongWriter AI Studio - Global Styles
====================================================== */

:root{
  --bg:#0b0e11;
  --panel:#12161c;
  --panel-2:#0e1318;
  --sidebar:#11151b;
  --border:#1e242c;
  --border-soft:#2a2f36;
  --text:#ffffff;
  --muted:rgba(255,255,255,0.68);
  --muted-2:rgba(255,255,255,0.52);
  --accent:#00ffa3;
  --accent-dark:#00cc82;
  --green:#00ff66;
  --danger:#ff5f6d;
  --warning:#ffcc66;
  --shadow:0 12px 35px rgba(0,0,0,0.28);
  --radius-lg:18px;
  --radius-md:14px;
  --radius-sm:10px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(0,255,163,0.06), transparent 22%),
    linear-gradient(180deg, #0b0e11 0%, #0a0d10 100%);
  color:var(--text);
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
textarea,
select{
  font:inherit;
}

/* ======================================================
   APP LAYOUT
====================================================== */

.app{
  display:flex;
  min-height:100vh;
}

/* ======================================================
   SIDEBAR
====================================================== */

.sidebar{
  width:240px;
  background:linear-gradient(180deg, #11151b 0%, #0d1117 100%);
  padding:25px 20px;
  display:flex;
  flex-direction:column;
  gap:18px;
  border-right:1px solid var(--border);
  position:sticky;
  top:0;
  height:100vh;
}

.logo{
  font-size:22px;
  font-weight:700;
  letter-spacing:0.2px;
  color:#fff;
  margin-bottom:2px;
}

.sidebar-section{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.sidebar h3,
.sidebar-section h3{
  color:var(--accent);
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  margin:0 0 4px;
  opacity:0.78;
}

.menu{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.menu-item{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid transparent;
  background:transparent;
  color:#dbe2ea;
  opacity:0.86;
  font-weight:600;
  cursor:pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.menu-item:hover{
  opacity:1;
  color:#ffffff;
  background:#151b22;
  border-color:#273140;
  transform:translateX(2px);
}

.menu-item.active{
  opacity:1;
  color:var(--accent);
  background:rgba(0,255,163,0.08);
  border-color:rgba(0,255,163,0.30);
  box-shadow:inset 0 0 0 1px rgba(0,255,163,0.05);
}

.credit-count{
  padding:12px 14px;
  border-radius:12px;
  background:#0f141a;
  border:1px solid #222c37;
  font-size:15px;
  font-weight:700;
  color:#fff;
}

/* ======================================================
   MAIN AREA
====================================================== */

.main{
  flex:1;
  padding:30px;
  overflow:auto;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  font-size:22px;
  font-weight:700;
  margin-bottom:25px;
}

.topbar-subtext{
  font-size:14px;
  color:var(--muted);
  font-weight:400;
}

/* ======================================================
   GENERIC LAYOUTS
====================================================== */

.dashboard{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:25px;
}

.content-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 350px;
  gap:30px;
}

@media(max-width:1100px){
  .content-grid{
    grid-template-columns:1fr;
  }
}

/* ======================================================
   GENERIC CARD / BOX
====================================================== */

.card{
  background:linear-gradient(180deg, #12161c 0%, #10141a 100%);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:25px;
  cursor:pointer;
  transition:0.22s ease;
  box-shadow:var(--shadow);
}

.card:hover{
  transform:translateY(-4px);
  border-color:rgba(0,255,163,0.45);
  box-shadow:0 16px 40px rgba(0,0,0,0.32);
}

.card-icon{
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  border-radius:16px;
  margin-bottom:14px;
  background:rgba(0,255,163,0.08);
  color:var(--accent);
}

.card h2,
.card h3,
.card h4{
  margin:0 0 10px;
}

.card p{
  opacity:0.78;
  font-size:14px;
  line-height:1.55;
  margin:0;
}

.box{
  background:linear-gradient(180deg, #12161c 0%, #10141a 100%);
  border:1px solid var(--border);
  border-radius:16px;
  padding:20px;
  margin-bottom:20px;
  box-shadow:var(--shadow);
}

.box h3{
  margin:0 0 14px;
  font-size:16px;
}

.box p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

/* ======================================================
   FORM ELEMENTS
====================================================== */

label{
  display:block;
  margin:0 0 8px;
  font-size:13px;
  font-weight:600;
  color:#f2f5f8;
}

.field{
  margin-bottom:16px;
}

input,
textarea,
select{
  width:100%;
  background:var(--panel-2);
  border:1px solid #2e353d;
  border-radius:12px;
  color:var(--text);
  padding:12px 14px;
  font-size:14px;
  transition:border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder,
textarea::placeholder{
  color:rgba(255,255,255,0.38);
}

textarea{
  min-height:120px;
  resize:vertical;
  line-height:1.55;
}

input:focus,
textarea:focus,
select:focus{
  outline:none;
  border-color:rgba(0,255,163,0.7);
  box-shadow:0 0 0 4px rgba(0,255,163,0.08);
  background:#0d1218;
}

/* ======================================================
   BUTTONS
====================================================== */

button{
  background:#1c2128;
  border:1px solid var(--border-soft);
  color:white;
  padding:11px 16px;
  border-radius:12px;
  cursor:pointer;
  transition:0.16s ease;
  font-size:14px;
  font-weight:600;
}

button:hover{
  background:var(--accent);
  color:black;
  border-color:var(--accent);
  transform:translateY(-1px);
}

button:disabled{
  opacity:0.58;
  cursor:not-allowed;
  transform:none;
}

.button-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.generate{
  background:linear-gradient(135deg, #00ff66 0%, #8dffb8 100%);
  border:none;
  font-weight:700;
  border-radius:30px;
  padding:14px 18px;
  color:black;
  box-shadow:0 0 20px rgba(0,255,102,0.35);
  transition:0.2s ease;
}

.generate:hover{
  background:linear-gradient(135deg, #18ff74 0%, #b6ffcb 100%);
  color:black;
  box-shadow:0 0 30px rgba(0,255,102,0.6);
  transform:translateY(-2px);
}

/* ======================================================
   TAGS / CHIPS
====================================================== */

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.tag{
  background:#1c2128;
  border:1px solid transparent;
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  cursor:pointer;
  transition:0.15s ease;
  color:#dbe2ea;
}

.tag:hover,
.tag.active{
  background:rgba(0,255,163,0.12);
  color:var(--accent);
  border-color:rgba(0,255,163,0.28);
}

/* ======================================================
   RANGE / WAVE
====================================================== */

.wave-player{
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--panel-2);
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
}

.waveform{
  flex:1;
}

.waveform input,
input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:6px;
  background:#1c2128;
  border:none;
  border-radius:999px;
  outline:none;
  padding:0;
}

.waveform input::-webkit-slider-thumb,
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  background:var(--accent);
  border-radius:50%;
  cursor:pointer;
  border:none;
  box-shadow:0 0 10px rgba(0,255,163,0.45);
}

.waveform input::-moz-range-thumb,
input[type="range"]::-moz-range-thumb{
  width:18px;
  height:18px;
  background:var(--accent);
  border:none;
  border-radius:50%;
  cursor:pointer;
  box-shadow:0 0 10px rgba(0,255,163,0.45);
}

.waveform input::-moz-range-track,
input[type="range"]::-moz-range-track{
  height:6px;
  background:#1c2128;
  border:none;
  border-radius:999px;
}

/* ======================================================
   CREDITS
====================================================== */

.credits-box{
  display:flex;
  gap:15px;
  margin-top:10px;
  flex-wrap:wrap;
}

.credit-item{
  flex:1 1 180px;
  background:var(--panel-2);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.credit-price{
  color:var(--accent);
  font-weight:700;
}

/* ======================================================
   SHARED SONG / VIDEO / SCENE CARDS
====================================================== */

.song-list,
.generated-media-list,
.scene-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.song{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  background:var(--panel-2);
  border:1px solid var(--border);
  padding:12px;
  border-radius:12px;
  cursor:pointer;
  transition:0.2s ease;
}

.song-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.song:hover,
.video-card:hover,
.scene-card:hover,
.generated-song-row:hover{
  border-color:rgba(0,255,163,0.42);
  transform:translateY(-2px);
}

.song img{
  width:54px;
  height:54px;
  object-fit:cover;
  border-radius:8px;
  flex-shrink:0;
}

.song-left,
.generated-song-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1;
}

.song-info{
  flex:1;
  min-width:0;
  font-size:13px;
}

.song-title{
  font-weight:700;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.song-meta{
  opacity:0.64;
  font-size:12px;
  margin-top:4px;
}

.song-right,
.generated-song-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.video-card,
.media-card{
  background:var(--panel-2);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  transition:0.2s ease;
}

.video-info{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.video-thumb,
.media-thumb{
  width:100%;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:10px;
  background:#090c0f;
}

.video-card video,
.video-card img,
.media-card video,
.media-card img,
.media-card audio{
  width:100%;
  border-radius:10px;
  display:block;
}

.scene-card{
  background:#12161c;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  transition:0.2s ease;
}

.scene-card img{
  width:100%;
  border-radius:8px;
  margin-bottom:8px;
}

.scene-card textarea{
  min-height:70px;
}

/* ======================================================
   ACTION ICONS
====================================================== */

.song-actions,
.video-actions,
.scene-actions,
.generated-song-icons{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:16px;
}

.song-actions i,
.video-actions i,
.scene-actions i,
.generated-song-icons i{
  cursor:pointer;
  opacity:0.65;
  transition:0.15s ease;
}

.song-actions i:hover,
.video-actions i:hover,
.scene-actions i:hover,
.generated-song-icons i:hover{
  opacity:1;
  color:var(--accent);
  transform:scale(1.1);
}

/* ======================================================
   BADGES / ALERTS
====================================================== */

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid transparent;
}

.badge.success{
  color:#79ffaf;
  background:rgba(0,255,102,0.1);
  border-color:rgba(0,255,102,0.18);
}

.badge.processing{
  color:#ffd56a;
  background:rgba(255,204,102,0.1);
  border-color:rgba(255,204,102,0.18);
}

.badge.error{
  color:#ff9ca6;
  background:rgba(255,95,109,0.1);
  border-color:rgba(255,95,109,0.18);
}

.alert{
  border-radius:14px;
  padding:12px 14px;
  border:1px solid transparent;
  margin-top:12px;
  font-size:14px;
}

.alert.success{
  background:rgba(0,255,102,0.08);
  color:#8cffb5;
  border-color:rgba(0,255,102,0.16);
}

.alert.error{
  background:rgba(255,95,109,0.08);
  color:#ffb0b8;
  border-color:rgba(255,95,109,0.16);
}

.alert.info{
  background:rgba(0,255,163,0.08);
  color:#9fffd6;
  border-color:rgba(0,255,163,0.16);
}

/* ======================================================
   UTILITIES
====================================================== */

.hidden{
  display:none !important;
}

.row{
  display:flex;
  align-items:center;
  gap:12px;
}

.space-between{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.muted{
  color:var(--muted);
}

.text-right{
  text-align:right;
}

/* ======================================================
   SHARED UI HELPERS
====================================================== */

.section-head{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
}

.section-head h3{
  margin:0;
}

.help-icon{
  color:rgba(255,255,255,0.55);
  font-size:13px;
}

.large-textarea{
  min-height:240px;
}

.lyrics-toolbar,
.style-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  justify-content:space-between;
  flex-wrap:wrap;
}

.smart-btn{
  background:#1c2128;
  border:1px solid #2a2f36;
  color:white;
  padding:10px 14px;
  border-radius:12px;
}

.smart-btn.secondary{
  background:#222834;
}

.counter{
  color:#7ea0c9;
  font-size:13px;
  font-weight:600;
}

.voice-note{
  color:rgba(255,255,255,0.62);
  font-size:13px;
  line-height:1.5;
}

.wide-generate-btn{
  width:100%;
  margin-top:8px;
  font-size:16px;
}

.legal-note{
  text-align:center;
  color:rgba(255,255,255,0.42);
  font-size:12px;
  margin-top:10px;
}

.version-badge,
.song-version-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
  padding:4px 8px;
  border-radius:999px;
  background:#151c27;
  border:1px solid #273043;
  color:#b9c2d0;
}

.cover{
  position:relative;
  width:68px;
  height:68px;
  border-radius:10px;
  overflow:hidden;
  flex-shrink:0;
  background:#0d1117;
  border:1px solid #222a35;
}

.cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.duration{
  position:absolute;
  bottom:5px;
  right:5px;
  font-size:11px;
  font-weight:700;
  background:rgba(0,0,0,0.8);
  padding:3px 6px;
  border-radius:6px;
  color:#fff;
  min-width:auto;
  text-align:left;
}

.audio-wrap{
  margin-top:10px;
}

.audio-wrap audio{
  width:100%;
  max-width:360px;
  height:36px;
}

/* ======================================================
   TOGGLE SWITCH
====================================================== */

.switch{
  position:relative;
  display:inline-block;
  width:36px;
  height:20px;
}

.switch input{
  opacity:0;
  width:0;
  height:0;
  position:absolute;
}

.slider{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:#2d3440;
  border-radius:999px;
  transition:0.2s;
  cursor:pointer;
}

.slider:before{
  content:"";
  position:absolute;
  height:14px;
  width:14px;
  left:3px;
  top:3px;
  background:#fff;
  border-radius:50%;
  transition:0.2s;
}

.switch input:checked + .slider{
  background:#00d67f;
}

.switch input:checked + .slider:before{
  transform:translateX(16px);
}

/* ======================================================
   MODALS
====================================================== */

.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(5px);
}

.modal-content{
  position:relative;
  width:100%;
  max-width:500px;
  background:#12161c;
  border:1px solid #1e242c;
  border-radius:16px;
  padding:24px;
  box-shadow:0 20px 50px rgba(0,0,0,0.4);
  z-index:2;
}

.vibe-modal-content{
  max-width:460px;
  max-height:80vh;
  overflow:auto;
}

.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.modal-header h3{
  margin:0;
}

.icon-close{
  background:none;
  border:none;
  width:auto;
  min-width:auto;
  padding:0;
  font-size:18px;
}

.icon-close:hover{
  background:none;
  color:var(--accent);
  transform:none;
  border-color:transparent;
}

.modal-search{
  margin-bottom:14px;
  min-width:100%;
}

.modal-actions{
  display:flex;
  gap:12px;
  margin-top:16px;
}

/* ======================================================
   MEDIA TOOLBAR / TABS
====================================================== */

.media-toolbar,
.library-toolbar{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.media-tabs,
.library-left-tools{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.media-tab,
.pill-btn{
  border-radius:999px;
  padding:10px 14px;
  background:#151a21;
  border:1px solid transparent;
  color:#fff;
  cursor:pointer;
}

.media-tab.active,
.pill-btn.active{
  background:#232933;
  color:#fff;
}

.pill-btn:hover,
.media-tab:hover{
  border-color:#00ffa3;
  color:#00ffa3;
}

.media-search-wrap,
.search-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  background:#11161d;
  border:1px solid #222b35;
  border-radius:999px;
  padding:10px 14px;
  min-width:280px;
}

.media-search-wrap i{
  color:rgba(255,255,255,0.55);
}

.media-search{
  background:transparent;
  border:none;
  padding:0;
}

.media-search:focus{
  box-shadow:none;
  border:none;
  background:transparent;
}

.search-wrap{
  position:relative;
  padding:0;
  background:transparent;
  border:none;
}

.search-wrap i{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  opacity:0.55;
}

.search-wrap input{
  padding-left:40px;
  border-radius:999px;
}

/* ======================================================
   GENERATED SONG ROW
====================================================== */

.generated-song-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  background:#0f1319;
  border:1px solid #1d2530;
  border-radius:16px;
  padding:12px;
  transition:0.2s ease;
}

.generated-song-cover{
  width:66px;
  height:66px;
  object-fit:cover;
  border-radius:10px;
  flex-shrink:0;
}

.generated-song-text{
  min-width:0;
}

.generated-song-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.generated-song-title{
  font-weight:700;
  font-size:18px;
}

.generated-song-meta{
  margin-top:6px;
  color:rgba(255,255,255,0.62);
  font-size:13px;
}

.publish-toggle{
  border-radius:10px;
  padding:9px 14px;
  background:#11161d;
  border:1px solid #3b4652;
}

.publish-toggle.active{
  background:#0b2b1d;
  border-color:#00ffa3;
}

.icon-stat,
.metric,
.action-icon{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  opacity:0.82;
  cursor:pointer;
}

.icon-stat:hover,
.metric:hover,
.action-icon:hover{
  opacity:1;
  color:#00ffa3;
}

/* ======================================================
   VIDEO / CHARACTER HELPERS
====================================================== */

.video-type-card,
.character-card{
  padding:14px;
}

.active-card{
  border-color:rgba(0,255,163,0.5) !important;
  box-shadow:0 0 0 1px rgba(0,255,163,0.15) inset;
}

.upload-character-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
}

/* ======================================================
   PRICING PAGE
====================================================== */

.pricing-page{
  max-width:1200px;
  margin:0 auto;
  padding:20px 10px 40px;
}

.pricing-header{
  text-align:center;
  margin-bottom:26px;
}

.pricing-header h1{
  font-size:54px;
  line-height:1;
  margin:0 0 18px;
  font-weight:900;
  letter-spacing:-1px;
}

.countdown{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
  flex-wrap:wrap;
}

.countdown-icon{
  font-size:20px;
}

.time-box{
  background:#f6cf43;
  color:#111;
  border-radius:10px;
  padding:8px 10px;
  min-width:58px;
  text-align:center;
  font-weight:800;
  box-shadow:0 8px 18px rgba(0,0,0,0.22);
}

.time-box .num{
  font-size:28px;
  line-height:1;
}

.time-box .lab{
  font-size:11px;
  margin-top:4px;
  opacity:0.8;
}

.pricing-toggle{
  display:inline-flex;
  background:#252a31;
  border:1px solid #353b44;
  border-radius:999px;
  padding:4px;
  gap:4px;
}

.pricing-toggle button{
  border:none;
  background:transparent;
  color:#fff;
  border-radius:999px;
  padding:10px 24px;
  font-weight:700;
  cursor:pointer;
}

.pricing-toggle button:hover{
  background:transparent;
  color:#fff;
  border-color:transparent;
  transform:none;
}

.pricing-toggle button.active{
  background:#f2f4f6;
  color:#0b0e11;
}

.subscription-section.hide{
  display:none;
}

.pricing-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:22px;
}

.plan-card{
  position:relative;
  background:linear-gradient(180deg,#2a2d33 0%, #262930 100%);
  border:1px solid #383d46;
  border-radius:22px;
  padding:22px;
  min-height:620px;
  box-shadow:0 18px 40px rgba(0,0,0,0.28);
}

.plan-card.highlight{
  border-color:#21f08d;
  box-shadow:0 0 0 1px rgba(33,240,141,0.18), 0 18px 40px rgba(0,0,0,0.3);
}

.save-badge{
  position:absolute;
  top:-12px;
  right:22px;
  background:#f6cf43;
  color:#553f00;
  font-weight:800;
  font-size:13px;
  padding:6px 14px;
  border-radius:999px;
}

.plan-top{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}

.plan-top h3{
  margin:0;
  font-size:22px;
  font-weight:800;
}

.plan-small{
  color:#bfc6cf;
  font-size:13px;
}

.old-price{
  color:#a3aab4;
  text-decoration:line-through;
  font-size:14px;
  margin-top:8px;
}

.new-price{
  font-size:18px;
  font-weight:800;
  margin-top:2px;
}

.new-price strong{
  font-size:38px;
  line-height:1;
  margin-right:4px;
}

.plan-slider-wrap{
  margin:16px 0 14px;
}

.plan-slider{
  width:100%;
  -webkit-appearance:none;
  appearance:none;
  height:4px;
  background:#51555d;
  border-radius:999px;
  outline:none;
  border:none;
  padding:0;
}

.plan-slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#f2f4f6;
  border:none;
  cursor:pointer;
  box-shadow:none;
}

.plan-slider::-moz-range-thumb{
  width:14px;
  height:14px;
  border-radius:50%;
  background:#f2f4f6;
  border:none;
  cursor:pointer;
  box-shadow:none;
}

.plan-range-row{
  display:flex;
  justify-content:space-between;
  margin-top:8px;
  font-size:14px;
  color:#d8dde3;
  font-weight:700;
}

.get-started{
  width:100%;
  border:none;
  border-radius:999px;
  padding:16px 18px;
  font-size:16px;
  font-weight:800;
  margin:10px 0 18px;
  background:linear-gradient(90deg,#35e667 0%, #2be67c 100%);
  color:#05110a;
  cursor:pointer;
}

.get-started:hover{
  color:#05110a;
}

.plan-card.highlight .get-started{
  background:linear-gradient(90deg,#7bff7a 0%, #18d6ff 100%);
}

.plan-section{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid #434750;
}

.plan-section h4{
  margin:0 0 12px;
  font-size:15px;
  color:#e9edf1;
}

.feature-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.feature{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:14px;
  line-height:1.45;
  color:#f4f6f8;
}

.feature i{
  margin-top:3px;
  color:#2af77f;
  font-size:13px;
}

.feature.muted{
  color:#b0b7c1;
}

.feature.muted i{
  color:#9ca4af;
}

.songs-estimate{
  font-size:13px;
  color:#b8ffc8;
  margin-top:8px;
  font-weight:700;
}

.cards-row{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:22px;
  flex-wrap:wrap;
}

.pay-card{
  background:#fff;
  color:#111;
  border-radius:4px;
  padding:4px 8px;
  font-size:11px;
  font-weight:800;
  min-width:42px;
  text-align:center;
}

.addons-section{
  display:none;
  justify-content:center;
  margin-top:22px;
}

.addons-section.show{
  display:flex;
}

.addon-card{
  width:100%;
  max-width:520px;
  background:linear-gradient(180deg,#1b1e24 0%, #171a20 100%);
  border:1px solid #2e333c;
  border-radius:24px;
  padding:32px 28px 26px;
  box-shadow:0 18px 40px rgba(0,0,0,0.28);
  text-align:center;
}

.addon-card h2{
  margin:0 0 22px;
  font-size:48px;
  font-weight:900;
  letter-spacing:-1px;
}

.addon-options{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-bottom:22px;
}

.addon-option{
  width:100%;
  background:transparent;
  border:1px solid #4b515c;
  color:#fff;
  border-radius:16px;
  padding:18px 18px;
  font-size:18px;
  font-weight:600;
  cursor:pointer;
  transition:0.18s ease;
}

.addon-option:hover{
  border-color:#8a9098;
  transform:none;
  background:#20242b;
  color:#fff;
}

.addon-option.active{
  background:#f2f2f2;
  color:#0e1116;
  border-color:#f2f2f2;
}

.addon-option strong{
  font-weight:900;
}

.addon-buy{
  width:100%;
  border:none;
  border-radius:999px;
  padding:18px 18px;
  font-size:18px;
  font-weight:900;
  margin:8px 0 14px;
  background:linear-gradient(90deg,#76f77d 0%, #18d6ff 100%);
  color:#07110a;
  cursor:pointer;
}

.addon-buy:hover{
  color:#07110a;
}

.addon-note{
  font-size:12px;
  color:#b8bec8;
  line-height:1.5;
  text-align:left;
  margin:0;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media(max-width:1100px){
  .generated-song-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .generated-song-right{
    width:100%;
    justify-content:space-between;
  }

  .pricing-grid{
    grid-template-columns:1fr;
  }

  .plan-card{
    min-height:auto;
  }
}

@media(max-width:900px){
  .sidebar{
    display:none;
  }

  .main{
    padding:20px;
  }

  .topbar{
    font-size:20px;
    margin-bottom:20px;
  }
}

@media(max-width:760px){
  .song-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .song-actions{
    flex-wrap:wrap;
    gap:12px;
  }

  .library-toolbar{
    align-items:stretch;
  }

  .search-wrap{
    min-width:100%;
  }
}

@media(max-width:700px){
  .media-search-wrap{
    min-width:100%;
  }

  .generated-song-icons{
    flex-wrap:wrap;
  }

  .pricing-header h1{
    font-size:34px;
  }

  .pricing-toggle button{
    padding:10px 18px;
  }

  .addon-card{
    padding:24px 18px 22px;
  }

  .addon-card h2{
    font-size:30px;
  }

  .addon-option{
    font-size:16px;
    padding:16px 14px;
  }
}