/* ══════════════════════════════════════
   RESONATALE — Premium UI
   ══════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  background: #000;
  color: #f5f5f7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
#app { height: 100%; overflow-y: auto; }
a { color: #6eb6ff; text-decoration: none; }
a:hover { color: #9dd0ff; }

/* ── Screens ── */
.screen { display: none; min-height: 100vh; padding-bottom: 100px; }
.screen.active { display: block; }
.screen-inner { max-width: 480px; margin: 0 auto; padding: 72px 20px 24px; }
.screen-title { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.screen-sub { font-size: 14px; color: #8e8e93; line-height: 1.5; margin-bottom: 24px; }

/* ── Toast ── */
.toast {
  position: fixed; top: -60px; left: 50%; transform: translateX(-50%);
  background: #1c1c1e; color: #f5f5f7; padding: 12px 24px;
  border-radius: 14px; font-size: 14px; font-weight: 500;
  z-index: 9999; transition: top 0.35s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(20px); max-width: 90%;
}
.toast.show { top: 56px; }
.toast.ok { border-color: rgba(48,209,88,0.3); }

/* ── Loading ── */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 9998; backdrop-filter: blur(8px);
}
.loading-overlay.hide { display: none; }
.loading-card { text-align: center; }
.loading-card p { margin-top: 16px; font-size: 14px; color: #8e8e93; }
.spin {
  width: 36px; height: 36px; margin: 0 auto;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: #6eb6ff; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Nav Bar ── */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s ease;
}
.nav-bar.hide { transform: translateY(-100%); }
.nav-inner {
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.nav-logo {
  background: none; border: none; color: #f5f5f7;
  font-size: 18px; font-weight: 800; letter-spacing: 2px; cursor: pointer;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-credit-btn {
  background: rgba(255,255,255,0.06); border: none;
  color: #f5f5f7; padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.nav-credit-btn:hover { background: rgba(255,255,255,0.1); }
.credit-icon { font-size: 14px; }
.nav-menu-btn {
  background: none; border: none; color: #f5f5f7;
  font-size: 22px; cursor: pointer; padding: 4px;
}
.nav-back {
  background: none; border: none; color: #f5f5f7;
  font-size: 22px; cursor: pointer; padding: 8px; display: none;
}
.nav-back.show { display: block; }

/* ── Menu ── */
.menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-panel {
  position: fixed; top: 0; right: -300px; bottom: 0;
  width: 280px; background: #1c1c1e;
  border-left: 1px solid rgba(255,255,255,0.06);
  padding: 24px 20px; transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.menu-overlay.open .menu-panel { right: 0; }
.menu-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.menu-title { font-size: 16px; font-weight: 700; letter-spacing: 2px; }
.menu-close { background: none; border: none; color: #8e8e93; font-size: 20px; cursor: pointer; }
.menu-item {
  display: block; width: 100%; text-align: left;
  background: none; border: none; color: #f5f5f7;
  padding: 14px 0; font-size: 15px; cursor: pointer;
}
.menu-item:hover { color: #6eb6ff; }
.menu-item-primary {
  background: rgba(110,182,255,0.08); color: #6eb6ff;
  border-radius: 10px; text-align: center; padding: 12px;
  font-weight: 600; margin: 8px 0;
}
.menu-item-primary:hover { background: rgba(110,182,255,0.15); }
.menu-item-small { font-size: 13px; color: #8e8e93; padding: 10px 0; }
.menu-item-danger { color: #ff453a; }
.menu-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 8px 0; }

/* ── Landing ── */
.landing {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh;
  text-align: center; padding: 80px 20px 40px; position: relative;
}
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(110,182,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-title {
  font-size: 42px; font-weight: 800; letter-spacing: 4px;
  background: linear-gradient(135deg, #f5f5f7 0%, #6eb6ff 50%, #bf5af2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 12px;
}
.hero-tagline { font-size: 22px; font-weight: 600; color: #f5f5f7; margin-bottom: 8px; }
.hero-sub { font-size: 15px; color: #8e8e93; margin-bottom: 24px; }

/* ── Hero Pills ── */
.hero-pills {
    list-style: none; padding: 0; margin: 0 auto 28px;
    display: flex; flex-direction: column; gap: 8px;
    width: 100%; max-width: 320px; text-align: center;
  }
.hero-pills li {
  font-size: 14px; color: #8e8e93;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 10px 14px;
  transition: border-color 0.2s;
}
.hero-pills li:hover { border-color: rgba(110,182,255,0.2); }

/* ── CTA Button ── */
.btn-hero {
  width: 100%; max-width: 320px; padding: 16px 32px;
  border: none; border-radius: 14px;
  font-size: 17px; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, #6eb6ff, #bf5af2);
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 4px 24px rgba(110,182,255,0.25);
}
.btn-hero:hover { transform: scale(1.02); box-shadow: 0 6px 32px rgba(110,182,255,0.35); }
.btn-hero:active { transform: scale(0.98); opacity: 0.9; }

/* ── Social Nudge ── */
.hero-nudge {
  font-size: 12px; color: #48484a;
  margin-top: 14px; letter-spacing: 0.3px;
}

/* ── Footer ── */
.landing-footer {
  margin-top: 48px; font-size: 13px; color: #48484a;
  display: flex; gap: 8px; align-items: center;
}
.landing-footer a { color: #48484a; }
.landing-footer a:hover { color: #6eb6ff; }

/* ── Responsive ── */
@media (max-width: 380px) {
  .hero-title { font-size: 32px; letter-spacing: 2px; }
  .hero-tagline { font-size: 18px; }
  .hero-pills li { font-size: 13px; }
}
@media (min-width: 768px) {
  .hero-title { font-size: 52px; }
  .hero-tagline { font-size: 26px; }
  .hero-pills { max-width: 400px; }
  .btn-hero { max-width: 380px; }
}


/* ── Clock ── */
.clock-wrap { position: relative; width: min(170px, 60vw); height: min(170px, 60vw); margin: 0 auto 24px; }
#clock { width: 100%; height: 100%; }
.clock-wrap::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  background: conic-gradient(
    rgba(110,182,255,0.3), rgba(191,90,242,0.3),
    rgba(48,209,88,0.3),  rgba(110,182,255,0.3)
  );
  filter: blur(12px); z-index: -1;
  animation: clock-glow 8s linear infinite;
}
@keyframes clock-glow { to { transform: rotate(360deg); } }

/* ── Inputs ── */
.input {
  display: block; width: 100%; padding: 14px 16px; margin-bottom: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; font-size: 15px; outline: none;
  transition: border-color 0.2s;
  color: #f5f5f7;
  -webkit-text-fill-color: #f5f5f7;
}
.input:focus { border-color: #6eb6ff; }
.input::placeholder { color: #636366; }
.textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.select-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23636366' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f5f7 !important;
  -webkit-box-shadow: 0 0 0 30px #1c1c1e inset !important;
  box-shadow: 0 0 0 30px #1c1c1e inset !important;
}
select option { background: #1c1c1e; color: #f5f5f7; }

/* ── Buttons ── */
.btn-primary {
  display: block; width: 100%; padding: 15px 24px;
  background: #f5f5f7; color: #000; border: none;
  border-radius: 12px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: transform 0.2s, opacity 0.2s; margin-top: 8px;
}
.btn-primary:hover { transform: scale(1.01); }
.btn-primary:active { transform: scale(0.98); opacity: 0.9; }
.btn-primary:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.btn-gold { background: linear-gradient(135deg, #6eb6ff, #bf5af2); color: #fff; }
.btn-text {
  background: none; border: none; color: #6eb6ff;
  font-size: 14px; font-weight: 500; cursor: pointer; padding: 12px 0;
}
.btn-outline {
  background: none; border: 1px solid rgba(255,255,255,0.15);
  color: #f5f5f7; padding: 8px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,0.06); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ── Sections ── */
.section { margin-bottom: 20px; }
.label {
  font-size: 13px; font-weight: 600; color: #8e8e93;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.gen-area { margin-top: 24px; text-align: center; }
.gen-hint { font-size: 12px; color: #636366; text-align: center; margin-top: 8px; }
.credit-hint { text-align: center; font-size: 12px; color: #636366; margin-top: 8px; }

/* ── Auth ── */
.auth-screen { text-align: center; padding-top: 80px; }
.auth-label { font-size: 16px; font-weight: 600; margin-bottom: 20px; color: #f5f5f7; }
.auth-switch { font-size: 13px; color: #8e8e93; margin-top: 16px; }
.auth-switch a { color: #6eb6ff; }

/* ── Voice ── */
.voice-section { text-align: center; padding: 32px 0; }
.voice-icon { font-size: 48px; margin-bottom: 16px; }
.voice-hint {
  font-size: 14px; color: #8e8e93; line-height: 1.5;
  margin-bottom: 24px; max-width: 320px; margin-left: auto; margin-right: auto;
}
.voice-controls { margin-bottom: 16px; }
.btn-record {
  background: rgba(255,59,48,0.15); border: 2px solid #ff3b30;
  color: #ff3b30; padding: 14px 32px; border-radius: 30px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-record:hover { background: rgba(255,59,48,0.25); }
.btn-record.recording { background: #ff3b30; color: #fff; animation: pulse 1.5s infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,59,48,0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(255,59,48,0); }
}
.voice-timer { font-size: 24px; font-weight: 700; margin-top: 12px; color: #ff3b30; }
.voice-playback { width: 100%; margin-top: 12px; }
.voice-status { font-size: 13px; color: #8e8e93; margin-top: 8px; }

/* ── Chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: #8e8e93; cursor: pointer; transition: all 0.2s;
}
.chip:hover { background: rgba(255,255,255,0.08); }
.chip.on { background: rgba(110,182,255,0.15); border-color: #6eb6ff; color: #6eb6ff; }

/* ── Duration Slider ── */
.dur-display {
  font-size: 28px; font-weight: 800; text-align: center;
  margin-bottom: 12px; color: #f5f5f7;
}
.dur-slider {
  width: 100%; appearance: none; -webkit-appearance: none;
  height: 6px; background: linear-gradient(90deg, #6eb6ff, #bf5af2);
  border-radius: 3px; outline: none;
}
.dur-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px;
  background: #f5f5f7; border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.dur-cost {
  font-size: 15px; font-weight: 600; text-align: center;
  color: #6eb6ff; margin-top: 8px;
}

/* ── Turnstile ── */
.ts-wrap { margin: 16px 0; display: flex; justify-content: center; }

/* ── Scenes ── */
.scenes { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.scene-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 16px;
}
.scene-num {
  font-size: 11px; font-weight: 700; color: #6eb6ff;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.scene-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.scene-direction {
  font-size: 13px; color: #8e8e93; line-height: 1.5;
  margin-bottom: 8px; font-style: italic;
}
.scene-voiceover {
  font-size: 13px; color: #f5f5f7; line-height: 1.5;
  padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.04);
}
.preview-tier { font-size: 13px; color: #8e8e93; text-align: center; margin-bottom: 20px; }

/* ── Editable Scenes ── */
.scene-title-input {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  color: #f5f5f7; font-size: 15px; font-weight: 600;
  padding: 8px 12px; margin-bottom: 8px;
}
.scene-title-input:focus { border-color: #6eb6ff; outline: none; }
.scene-label {
  font-size: 11px; color: #636366; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 4px; display: block;
}
.scene-direction-input,
.scene-voiceover-input {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  color: #f5f5f7; font-size: 13px; padding: 8px 12px;
  margin-bottom: 10px; resize: vertical; line-height: 1.5; font-family: inherit;
}
.scene-direction-input:focus,
.scene-voiceover-input:focus { border-color: #6eb6ff; outline: none; }
.scene-voiceover-input { color: #8e8e93; font-style: italic; }

/* ── Rendering Screen ── */
#s-rendering {
  position: fixed; inset: 0; z-index: 150; background: #000;
  display: none; align-items: center; justify-content: center;
}
#s-rendering.active { display: flex; }
.render-screen { text-align: center; padding: 40px 20px; width: 100%; max-width: 400px; }
.render-screen .screen-title { font-size: 22px; margin-bottom: 8px; }
.render-sub { font-size: 14px; color: #8e8e93; margin-bottom: 40px; }
.render-steps {
  display: flex; flex-direction: column; gap: 0;
  max-width: 260px; margin: 0 auto 40px;
}
.render-step {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; position: relative;
}
.render-step::before {
  content: ''; position: absolute; left: 11px; top: 32px;
  width: 2px; height: calc(100% - 16px);
  background: rgba(255,255,255,0.06);
}
.render-step:last-child::before { display: none; }
.rs-dot {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1); background: #000;
  flex-shrink: 0; position: relative; z-index: 1; transition: all 0.4s ease;
}
.render-step.active .rs-dot {
  border-color: #6eb6ff; background: #6eb6ff;
  animation: dot-pulse 2s ease infinite;
}
.render-step.done .rs-dot { border-color: #30d158; background: #30d158; box-shadow: none; }
@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 8px rgba(110,182,255,0.3); }
  50%      { box-shadow: 0 0 20px rgba(110,182,255,0.6); }
}
.rs-label { font-size: 15px; color: #48484a; font-weight: 500; transition: all 0.3s; }
.render-step.active .rs-label { color: #f5f5f7; font-weight: 600; }
.render-step.done .rs-label { color: #30d158; }
.render-spin { margin: 0 auto 20px; }
.render-patience { font-size: 13px; color: #48484a; line-height: 1.6; max-width: 280px; margin: 0 auto; }

/* ── Player ── */
.player-wrap { margin-bottom: 24px; }
.film-video { width: 100%; border-radius: 14px; background: #1c1c1e; max-height: 60vh; }
.share-section { margin-bottom: 24px; }
.share-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; text-align: center; }
.share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.share-btn {
  padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  color: #f5f5f7; cursor: pointer; text-decoration: none; display: inline-block;
}
.share-btn:hover { background: rgba(110,182,255,0.08); border-color: rgba(110,182,255,0.2); color: #6eb6ff; }
.btn-download { display: block; text-align: center; text-decoration: none; }
.player-actions { text-align: center; margin-top: 16px; }

/* ── Credits ── */
.credit-balance-card {
  text-align: center; padding: 24px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; margin-bottom: 24px;
}
.credit-balance-label { font-size: 13px; color: #8e8e93; margin-bottom: 4px; }
.credit-balance-amount { font-size: 36px; font-weight: 800; color: #6eb6ff; }
.credit-display { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.slider {
  width: 100%; appearance: none; height: 4px;
  background: rgba(255,255,255,0.08); border-radius: 2px; outline: none;
}
.slider::-webkit-slider-thumb {
  appearance: none; width: 24px; height: 24px;
  background: #f5f5f7; border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.slider-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #48484a; margin-top: 6px;
}
.tier-summary { margin-top: 24px; }
.credit-tier-list { display: flex; flex-direction: column; gap: 8px; }
.credit-tier-item {
  display: flex; justify-content: space-between; padding: 12px 16px;
  border-radius: 10px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04); font-size: 14px;
}
.credit-tier-item span:last-child { color: #6eb6ff; font-weight: 600; }

/* ── Profile ── */
.profile-card {
  text-align: center; padding: 24px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; margin-bottom: 24px;
}
.profile-avatar { font-size: 48px; margin-bottom: 12px; }
.profile-email { font-size: 15px; font-weight: 600; }
.profile-member { font-size: 12px; color: #48484a; margin-top: 4px; }
.profile-section { border-bottom: 1px solid rgba(255,255,255,0.04); padding: 16px 0; }
.profile-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.profile-row .btn-sm { margin-left: auto; }
.profile-row-left { flex: 1; }
.profile-label { font-size: 13px; color: #8e8e93; margin-bottom: 2px; }
.profile-value { font-size: 18px; font-weight: 700; color: #6eb6ff; }
.profile-status { font-size: 14px; color: #f5f5f7; }
.profile-status.ok { color: #30d158; }

/* ── Invite ── */
.invite-card {
  text-align: center; padding: 24px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; margin-bottom: 24px;
}
.invite-label { font-size: 13px; color: #8e8e93; margin-bottom: 8px; }
.invite-link { font-size: 14px; color: #6eb6ff; word-break: break-all; margin-bottom: 16px; font-weight: 500; }
.invite-share { text-align: center; }
.invite-circles {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px; margin-top: 16px; padding: 0 8px;
}
.invite-circle {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; cursor: pointer; transition: transform 0.2s;
}
.invite-circle:hover { transform: scale(1.1); }
.invite-circle:hover .invite-icon { background: rgba(110,182,255,0.15); border-color: #6eb6ff; }
.invite-circle:hover .invite-name { color: #6eb6ff; }
.invite-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; transition: all 0.2s;
}
.invite-name { font-size: 11px; color: #636366; font-weight: 500; transition: color 0.2s; }

/* ── Language Row ── */
.lang-row { display: flex; align-items: center; gap: 12px; }
.lang-flag { font-size: 32px; line-height: 1; min-width: 40px; text-align: center; }
.lang-row .select-input { flex: 1; }

/* ── Dashboard ── */
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dash-films { display: flex; flex-direction: column; gap: 12px; }
.dash-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 16px; cursor: pointer; transition: all 0.2s;
}
.dash-card:hover { border-color: rgba(110,182,255,0.2); transform: translateY(-1px); }
.dash-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dash-card-title { font-size: 15px; font-weight: 600; }
.dash-card-num { font-size: 11px; color: #636366; margin-bottom: 4px; }
.dash-card-status {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.dash-card-status.done       { background: rgba(48,209,88,0.12);  color: #30d158; }
.dash-card-status.failed     { background: rgba(255,69,58,0.12);  color: #ff453a; }
.dash-card-status.processing,
.dash-card-status.pending    { background: rgba(110,182,255,0.12); color: #6eb6ff; }
.dash-card-meta { font-size: 12px; color: #48484a; display: flex; gap: 12px; }
.dash-empty { text-align: center; padding: 48px 20px; color: #48484a; }
.dash-empty p { margin-bottom: 16px; font-size: 15px; }
.dash-error { color: #ff453a; text-align: center; padding: 24px; font-size: 14px; }

/* ── How It Works ── */
.how-steps { margin-top: 24px; }
.how-step {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.how-num {
  width: 32px; height: 32px;
  background: rgba(110,182,255,0.15); color: #6eb6ff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.how-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.how-body p { font-size: 13px; color: #8e8e93; line-height: 1.5; }
.how-pricing { margin-top: 32px; text-align: center; }
.how-pricing-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.how-pricing-sub { font-size: 13px; color: #8e8e93; margin-bottom: 16px; }
.how-tier { padding: 10px 0; font-size: 14px; color: #8e8e93; border-bottom: 1px solid rgba(255,255,255,0.04); }

/* ── Social Feed ── */
.feed-list { display: flex; flex-direction: column; gap: 20px; }
.feed-card {
  background: rgba(255,255,255,0.04); border-radius: 16px;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.06);
}
.feed-video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; cursor: pointer; }
.feed-video { width: 100%; height: 100%; object-fit: cover; }
.feed-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 50px; height: 50px; background: rgba(0,0,0,0.6); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; pointer-events: none;
}
.feed-info { padding: 14px 16px; }
.feed-title { font-size: 16px; font-weight: 700; color: #f5f5f7; margin-bottom: 6px; }
.feed-meta { display: flex; justify-content: space-between; font-size: 12px; color: #636366; margin-bottom: 10px; }
.feed-author { color: #6eb6ff; }
.feed-actions { display: flex; gap: 12px; align-items: center; }
.feed-like-btn, .feed-comment-btn {
  background: none; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: #f5f5f7; font-size: 13px; padding: 6px 12px; cursor: pointer;
}
.feed-like-btn:hover, .feed-comment-btn:hover { background: rgba(255,255,255,0.06); }
.feed-views { font-size: 12px; color: #636366; margin-left: auto; }
.feed-delete-btn {
  background: none; border: 1px solid rgba(255,59,48,0.3);
  border-radius: 8px; color: #ff453a; font-size: 13px; padding: 6px 10px; cursor: pointer;
}
.feed-delete-btn.hide { display: none; }

/* ── Feed Comments ── */
.feed-comments { padding: 0 16px 8px; }
.feed-comment { font-size: 13px; color: #ccc; margin-bottom: 6px; }
.feed-comment-author { color: #6eb6ff; font-weight: 600; }
.feed-comment-text { color: #aaa; }
.feed-comment-delete {
  background: none; border: none; color: #ff453a;
  cursor: pointer; font-size: 11px; padding: 0 4px;
}
.feed-comment-form { display: flex; gap: 8px; padding: 8px 16px 12px; }
.feed-comment-form.hide { display: none; }
.feed-comment-input {
  flex: 1; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  color: #f5f5f7; padding: 8px 12px; font-size: 13px;
}
.feed-send-btn {
  background: #6eb6ff; border: none; border-radius: 8px;
  color: #000; font-weight: 600; padding: 8px 16px; cursor: pointer; font-size: 13px;
}

/* ── Social Accounts Screen ── */
.social-account-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.social-account-icon { font-size: 24px; width: 32px; text-align: center; flex-shrink: 0; }
.social-account-info { flex: 1; }
.social-account-name { font-size: 15px; font-weight: 600; color: #f5f5f7; }
.social-account-status { font-size: 12px; color: #636366; margin-top: 2px; }
.social-account-status.connected { color: #30d158; }
.social-account-action {
  background: none; border: 1px solid rgba(255,255,255,0.15);
  color: #f5f5f7; padding: 6px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.social-account-action.connected { border-color: rgba(255,69,58,0.3); color: #ff453a; }
.social-account-action:hover { background: rgba(255,255,255,0.06); }

/* ── Tier Cards ── */
.tier-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-top: 8px;
}
.tier-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 16px 12px; text-align: center;
  cursor: pointer; transition: all 0.2s; color: #f5f5f7;
}
.tier-card:hover { background: rgba(255,255,255,0.06); }
.tier-card.selected { border-color: #6eb6ff; background: rgba(110,182,255,0.08); }
.tier-label { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tier-price { font-size: 20px; font-weight: 800; color: #6eb6ff; }
.tier-duration { font-size: 12px; color: #8e8e93; margin-top: 4px; }

/* ── Utilities ── */
.hide { display: none !important; }

/* ── Responsive ── */
@media (max-width: 380px) {
  .hero-title { font-size: 32px; letter-spacing: 2px; }
  .hero-tagline { font-size: 18px; }
}
@media (min-width: 768px) {
  .screen-inner { max-width: 560px; }
  .hero-title { font-size: 52px; }
  .hero-tagline { font-size: 26px; }
}
/* ══════════════════════════════════════
   SELFIE UPLOAD MODAL
   ══════════════════════════════════════ */

.selfie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.selfie-modal-overlay.selfie-modal-visible {
  opacity: 1;
}

.selfie-modal-card {
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.selfie-modal-visible .selfie-modal-card {
  transform: translateY(0) scale(1);
}

.selfie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #999;
  font-size: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.selfie-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.selfie-modal-icon {
  margin-bottom: 12px;
}

.selfie-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #f5f5f7;
  margin: 0 0 8px;
}

.selfie-modal-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin: 0 0 20px;
}

.selfie-drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 28px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.selfie-drop-zone:hover,
.selfie-drop-zone.selfie-drag-over {
  border-color: #6eb6ff;
  background: rgba(110, 182, 255, 0.04);
}

.selfie-drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.selfie-drop-content p {
  color: #aaa;
  font-size: 14px;
  margin: 0;
}

.selfie-formats {
  font-size: 11px;
  color: #555;
}

.selfie-preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.selfie-preview-area img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #6eb6ff;
  box-shadow: 0 0 20px rgba(110, 182, 255, 0.2);
}

.selfie-remove-btn {
  background: none;
  border: 1px solid rgba(255, 82, 82, 0.4);
  color: #ff5252;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.selfie-remove-btn:hover {
  background: rgba(255, 82, 82, 0.1);
  border-color: #ff5252;
}

.selfie-uploading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
}

.selfie-uploading p {
  color: #888;
  font-size: 14px;
  margin: 0;
}

.selfie-guidelines {
  text-align: left;
  margin: 14px 0 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.selfie-guideline-heading {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.selfie-guidelines ul {
  margin: 0;
  padding-left: 16px;
}

.selfie-guidelines li {
  font-size: 12px;
  color: #777;
  line-height: 1.8;
}

.selfie-confirm-btn {
  width: 100%;
  margin-top: 4px;
}

.selfie-confirm-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
