/* ISC Content App — Component styles — Futuristic Dark Theme */

/* ===== ANIMATED BACKGROUND HELPERS ===== */

/* Fixed grid pattern overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}

/* Floating ambient glow orbs */
.bg-glow {
  position: fixed;
  z-index: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}

.bg-glow-1 {
  top: -200px;
  left: -100px;
  background: var(--accent-1, #6366f1);
  animation: bgFloat 20s ease-in-out infinite;
}

.bg-glow-2 {
  bottom: -200px;
  right: -100px;
  background: var(--accent-3, #a78bfa);
  animation: bgFloat 25s ease-in-out infinite reverse;
}

.bg-glow-3 {
  top: 40%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: var(--color-invitatie, #f43f5e);
  opacity: 0.05;
  animation: bgFloat 18s ease-in-out infinite 5s;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== VOICE RECORDING ===== */

@keyframes voicePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

.voice-mic-btn:hover {
  border-color: var(--accent-1) !important;
  background: rgba(99, 102, 241, 0.08) !important;
}

/* ===== UTILITY CLASSES ===== */

/* Reusable glass card */
.glass-card {
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius, 16px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.25s ease;
}

.glass-card:hover {
  background: rgba(20, 20, 50, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-1, #6366f1), var(--accent-3, #a78bfa), var(--color-invitatie, #f43f5e));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated gradient border */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius, 16px) + 1px);
  background: linear-gradient(135deg, var(--accent-1, #6366f1), var(--accent-2, #8b5cf6), var(--accent-3, #a78bfa));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-border:hover::before,
.glow-border:focus-within::before {
  opacity: 0.6;
}

/* Fade-up entrance animation */
.fade-up {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.12s; }
.fade-up:nth-child(3) { animation-delay: 0.19s; }
.fade-up:nth-child(4) { animation-delay: 0.26s; }
.fade-up:nth-child(5) { animation-delay: 0.33s; }
.fade-up:nth-child(6) { animation-delay: 0.40s; }

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

/* Small uppercase section header */
.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(240, 240, 255, 0.35);
  margin-bottom: 16px;
}

/* ===== TOP BAR ===== */
.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.top-bar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm, 10px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--color-text, #f0f0ff);
  flex-shrink: 0;
  transition: all 0.2s ease;
  text-decoration: none;
}

.top-bar-back:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--accent-3, #a78bfa);
}

.top-bar-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-1, #6366f1), var(--accent-3, #a78bfa));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.top-bar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text, #f0f0ff);
  letter-spacing: -0.02em;
  flex: 1;
  text-align: center;
}

.top-bar-spacer {
  width: 36px;
  flex-shrink: 0;
}

/* ===== LAYOUT CONTAINER ===== */
.layout-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 16px;
}

.layout-main {
  width: 100%;
}

.bottom-nav-spacer {
  height: 80px;
}

/* ===== APP HEADER / NAVIGATION ===== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-header .logo {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-1, #6366f1), var(--accent-3, #a78bfa));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== PROGRESS STEPS (ONBOARDING) ===== */
.progress-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.progress-step {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.progress-step.active {
  background: var(--accent-1, #6366f1);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.progress-step.completed {
  background: var(--color-success, #10b981);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: rgba(8, 8, 22, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 8px;
  color: rgba(240, 240, 255, 0.4);
  text-decoration: none;
  font-size: 1.125rem;
  transition: all 0.2s ease;
  border-radius: 10px;
  min-width: 52px;
  position: relative;
}

.bottom-nav-item::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-1, #6366f1);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--glow-1, rgba(99, 102, 241, 0.4));
  transition: width 0.25s ease;
}

.bottom-nav-item.active {
  color: var(--accent-3, #a78bfa);
}

.bottom-nav-item.active::before {
  width: 20px;
}

.bottom-nav-item:hover {
  color: rgba(240, 240, 255, 0.75);
  background: rgba(99, 102, 241, 0.06);
}

.bottom-nav-label {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Extra bottom padding when bottom nav is visible */
main:has(+ .bottom-nav),
main {
  padding-bottom: 80px;
}

/* SVG icon container in bottom nav */
.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Active glow dot below icon */
.bottom-nav-dot {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-3, #a78bfa);
  box-shadow: 0 0 6px var(--accent-2, #8b5cf6);
}

/* Create button — larger, accent colored */
.bottom-nav-create {
  color: var(--accent-1, #6366f1) !important;
}

.bottom-nav-create .bottom-nav-icon svg {
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.5));
}

.bottom-nav-create.active {
  color: var(--accent-1, #6366f1) !important;
}

/* ===== SPINNER ===== */
.spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 14px;
}

.spinner-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--accent-1, #6366f1) 160deg,
    var(--accent-2, #8b5cf6) 270deg,
    transparent 360deg
  );
  animation: spin 0.9s linear infinite;
  position: relative;
  flex-shrink: 0;
}

.spinner-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--color-bg, #050510);
}

.spinner-text {
  font-size: 0.875rem;
  color: rgba(240, 240, 255, 0.45);
  margin: 0;
  text-align: center;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: rgba(15, 15, 35, 0.5);
  border-radius: var(--radius, 16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.empty-state-icon {
  font-size: 2.75rem;
  margin-bottom: 16px;
  line-height: 1;
}

.empty-state-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text, #f0f0ff);
  margin-bottom: 8px;
}

.empty-state-message {
  font-size: 0.875rem;
  color: rgba(240, 240, 255, 0.45);
  margin-bottom: 0;
  line-height: 1.6;
}

.empty-state-action {
  margin-top: 20px;
}

/* ===== PROGRESS BAR (Components.progress) ===== */
.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar-track {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-1, #6366f1), var(--accent-2, #8b5cf6));
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.45);
  transition: width 0.4s ease;
}

.progress-bar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(240, 240, 255, 0.5);
  min-width: 34px;
  text-align: right;
  flex-shrink: 0;
}

/* ===== PROGRESS STEPS (onboarding) ===== */
.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}

.progress-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.progress-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.progress-step-completed {
  background: var(--color-success, #10b981);
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.progress-step-active {
  background: var(--accent-1, #6366f1);
  color: #fff;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.6), 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.progress-step-future {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(240, 240, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-step-label {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(240, 240, 255, 0.4);
  white-space: nowrap;
}

.progress-step-line {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  min-width: 24px;
  margin-bottom: 14px; /* align with circle centers when labels present */
  transition: background 0.3s ease;
}

.progress-step-line-done {
  background: linear-gradient(90deg, var(--color-success, #10b981), var(--accent-1, #6366f1));
}

.progress-step-line-pending {
  background: rgba(255, 255, 255, 0.07);
}

/* ===== CONTENT CARD ===== */
.content-card {
  background: rgba(15, 15, 35, 0.65);
  border-radius: var(--radius, 16px);
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.content-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(20, 20, 50, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.08);
}

.content-card .card-header,
.content-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.content-card .card-preview,
.content-card-preview {
  font-size: 0.875rem;
  color: rgba(240, 240, 255, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
  margin: 0;
}

.content-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text, #f0f0ff);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.content-card-date {
  display: block;
  font-size: 0.75rem;
  color: rgba(240, 240, 255, 0.35);
  margin-top: 10px;
  font-style: normal;
}

/* ===== TYPE SELECTOR ===== */
.type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.type-card {
  position: relative;
  padding: 18px 14px;
  border-radius: var(--radius, 16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(15, 15, 35, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

/* Colored top accent line */
.type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-accent, var(--accent-1, #6366f1));
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.type-card:hover {
  border-color: var(--card-accent, rgba(99, 102, 241, 0.4));
  background: rgba(20, 20, 50, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.type-card:hover::before {
  opacity: 1;
}

.type-card.selected {
  border-color: var(--color-primary, #6366f1);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.type-card.selected::before {
  opacity: 1;
}

.type-card .type-icon {
  font-size: 1.375rem;
  margin-bottom: 8px;
  display: block;
}

.type-card .type-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text, #f0f0ff);
}

/* ===== STORY CARDS ===== */
.story-card {
  background: rgba(15, 15, 35, 0.65);
  border-radius: var(--radius-sm, 10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: all 0.2s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.story-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 50, 0.8);
}

.story-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.story-card-header:hover {
  background: rgba(99, 102, 241, 0.04);
}

.story-card-body {
  padding: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== STAT CARDS ===== */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: rgba(15, 15, 35, 0.65);
  border-radius: var(--radius-sm, 10px);
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}

.stat-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-1, #6366f1), var(--accent-3, #a78bfa));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.6875rem;
  color: rgba(240, 240, 255, 0.4);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ===== RHYTHM SELECTOR ===== */
.rhythm-option {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm, 10px);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(15, 15, 35, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rhythm-option:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(20, 20, 50, 0.7);
}

.rhythm-option.selected {
  border-color: var(--accent-1, #6366f1);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.12);
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(240, 240, 255, 0.35);
  margin: 24px 0 12px;
}

/* ===== SUBSCRIPTION BANNER ===== */
.sub-banner {
  padding: 12px 16px;
  border-radius: var(--radius-sm, 10px);
  margin-bottom: 16px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sub-banner.trial {
  background: rgba(245, 158, 11, 0.08);
  color: var(--color-warning, #f59e0b);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-left: 3px solid var(--color-warning, #f59e0b);
}

.sub-banner.active {
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-success, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-left: 3px solid var(--color-success, #10b981);
}

.sub-banner.expired {
  background: rgba(244, 63, 94, 0.08);
  color: var(--color-error, #f43f5e);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-left: 3px solid var(--color-error, #f43f5e);
}

/* ===== COPY BUTTON ===== */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 10px);
  color: rgba(240, 240, 255, 0.7);
  cursor: pointer;
  font-size: 0.8125rem;
  font-family: var(--font-family, 'Inter', sans-serif);
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.copy-btn:hover {
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--color-text, #f0f0ff);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.1);
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(240, 240, 255, 0.5);
  transition: all 0.2s ease;
  font-family: var(--font-family, 'Inter', sans-serif);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.filter-tab:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(240, 240, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--accent-1, #6366f1), var(--accent-2, #8b5cf6));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 12, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-content {
  background: rgba(12, 12, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius, 16px) var(--radius, 16px) 0 0;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 -16px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }
  .modal-content {
    border-radius: var(--radius, 16px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.05);
  }
}

/* Modal panel variant (used by Components.modal rewrite) */
.modal-panel {
  background: rgba(10, 10, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius, 16px) var(--radius, 16px) 0 0;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 -16px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text, #f0f0ff);
  letter-spacing: -0.02em;
  margin: 0;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(240, 240, 255, 0.55);
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.25);
  color: var(--color-error, #f43f5e);
}

.modal-body {
  color: var(--color-text, #f0f0ff);
}

@media (min-width: 768px) {
  .modal-panel {
    border-radius: var(--radius, 16px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
}

/* ===== MASK AUDIT COMPONENTS ===== */
.mask-card {
  background: rgba(15, 15, 35, 0.65);
  border-radius: var(--radius-sm, 10px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.mask-card:hover {
  background: rgba(20, 20, 50, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.mask-result-card {
  background: rgba(15, 15, 35, 0.65);
  border-radius: var(--radius, 16px);
  padding: 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mask-rewrite {
  background: rgba(16, 185, 129, 0.06);
  border-radius: var(--radius-sm, 10px);
  padding: 16px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-left: 3px solid var(--color-success, #10b981);
  margin: 12px 0;
}

/* Animated loading dots */
.mask-loading-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.mask-loading-dots span {
  display: inline-block;
  animation: dotPulse 1.6s ease-in-out infinite;
}

.mask-loading-dots span:nth-child(1) { animation-delay: 0s; }
.mask-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.mask-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
.mask-loading-dots span:nth-child(4) { animation-delay: 0.6s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ===== CALENDAR ===== */
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 16px;
}

.calendar-day {
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--radius-sm, 10px);
  font-size: 0.8125rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 15, 35, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.calendar-day:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 50, 0.7);
}

.calendar-day.today {
  border-color: var(--accent-1, #6366f1);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.07);
}

.calendar-day.servire      { border-left: 3px solid var(--color-servire, #10b981); }
.calendar-day.autenticitate { border-left: 3px solid var(--color-autenticitate, #3b82f6); }
.calendar-day.transformare  { border-left: 3px solid var(--color-transformare, #a855f7); }
.calendar-day.invitatie     { border-left: 3px solid var(--color-invitatie, #f43f5e); }

.calendar-day .day-name {
  font-size: 0.625rem;
  color: rgba(240, 240, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.calendar-day .day-number {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text, #f0f0ff);
}

/* ===== WEEKLY PROGRESS ROW ===== */
.week-progress {
  display: flex;
  gap: 4px;
  align-items: center;
}

.week-day {
  flex: 1;
  text-align: center;
}

.week-day--today .day-circle {
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

/* ===== FORM GROUP (COMPONENT VARIANT) ===== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(240, 240, 255, 0.7);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-error {
  padding: 10px 14px;
  border-radius: var(--radius-sm, 10px);
  background: rgba(244, 63, 94, 0.08);
  color: var(--color-error, #f43f5e);
  font-size: 0.8125rem;
  margin-bottom: 8px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-left: 3px solid var(--color-error, #f43f5e);
}

/* ===== PROGRESS BARS ===== */
.progress-bar-wrapper {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-1, #6366f1), var(--accent-3, #a78bfa));
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
  transition: width 0.4s ease;
}

/* ===== TAGS ===== */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-3, #a78bfa);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.15s ease;
}

.tag-pill:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.35);
}

.tag-pill button {
  background: none;
  border: none;
  color: var(--accent-3, #a78bfa);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
  opacity: 0.6;
  line-height: 1;
  transition: opacity 0.15s ease;
}

.tag-pill button:hover {
  opacity: 1;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 420px;
  width: calc(100% - 32px);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm, 10px);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  /* Start hidden — JS adds .toast-visible */
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Colored left border accent */
.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-hiding {
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-success, #10b981);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
}
.toast-success::before {
  background: var(--color-success, #10b981);
}

.toast-error {
  background: rgba(244, 63, 94, 0.12);
  color: var(--color-error, #f43f5e);
  border-color: rgba(244, 63, 94, 0.2);
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.12);
}
.toast-error::before {
  background: var(--color-error, #f43f5e);
}

.toast-info {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-3, #a78bfa);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}
.toast-info::before {
  background: var(--accent-2, #8b5cf6);
}

/* ===== STATUS BADGE VARIANTS (statusBadge function) ===== */
.badge-status-draft {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(240, 240, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-status-generating {
  background: rgba(139, 92, 246, 0.14);
  color: var(--accent-3, #a78bfa);
  border: 1px solid rgba(139, 92, 246, 0.25);
  animation: pulseBadge 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.badge-status-generated {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-1, #6366f1);
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.badge-status-approved {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-success, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.badge-status-posted {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.badge-status-failed {
  background: rgba(244, 63, 94, 0.12);
  color: var(--color-error, #f43f5e);
  border: 1px solid rgba(244, 63, 94, 0.22);
}
