/* Reset and Base Styles */
:root {
  --bg-color: #06070b;
  --bg-surface: #0e1017;
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-hover: rgba(255, 255, 255, 0.05);
  
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.15);
  --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  --secondary: #10b981;
  --secondary-glow: rgba(16, 185, 129, 0.15);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-muted: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Gradients */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.1) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Glassmorphism Card Utilities */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* App Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding: 40px 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Header */
.app-header {
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(6, 7, 11, 0.7);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
  font-weight: 800;
  font-size: 24px;
  color: var(--text-main);
  letter-spacing: -1px;
}

.logo-icon {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-item {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: var(--text-main);
}

.user-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.premium-badge {
  background: var(--primary-gradient);
  color: white;
}

.auth-buttons, .user-menu {
  display: flex;
  gap: 12px;
  align-items: center;
}

.user-email {
  font-size: 14px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  padding: 12px 24px;
  font-size: 15px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Landing Page Section */
.hero-container {
  text-align: center;
  max-width: 800px;
  margin: 80px auto;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.analyzer-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.analyzer-form {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

.analyzer-form input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.analyzer-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.link-examples {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.btn-example {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 4px 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-example:hover {
  background: var(--glass-hover);
  color: var(--text-main);
  border-color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 80px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Sections Control */
.view-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
  display: block;
}

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

/* Dashboard Section */
.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

.history-panel {
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.panel-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-item:hover {
  background: var(--glass-hover);
  border-color: var(--primary);
  transform: translateX(4px);
}

.item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-title {
  font-weight: 600;
  font-size: 16px;
}

.item-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.item-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-new {
  background: var(--secondary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.arrow-icon {
  color: var(--text-muted);
  font-size: 18px;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 300px;
  color: var(--text-muted);
  font-size: 15px;
}

.stats-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-card h3, .admin-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.plan-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.plan-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  display: inline-block;
}

.plan-badge.pro {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 25%, #94a3b8 50%, #cbd5e1 75%, #e2e8f0 100%);
  color: #0f172a !important;
  border: 1px solid #ffffff;
  box-shadow: 0 0 10px rgba(226, 232, 240, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.plan-badge.premium, .plan-badge.admin {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 25%, #ca8a04 50%, #facc15 75%, #fef08a 100%);
  color: #451a03 !important;
  border: 1px solid #fef08a;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.usage-text {
  font-size: 13px;
  color: var(--text-muted);
}

.progress-bar-container {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  height: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-bar-fill {
  background: var(--primary-gradient);
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.admin-card p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

/* Report Detail View */
.report-header {
  margin-bottom: 32px;
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.btn-back:hover {
  color: var(--text-main);
}

.report-title-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.link-out {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.link-out:hover {
  text-decoration: underline;
}

.report-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.persona-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
}

.persona-avatar-section {
  margin-bottom: 24px;
}

.avatar-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: var(--primary-gradient);
  margin: 0 auto 16px;
  box-shadow: 0 0 20px var(--primary-glow);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-surface);
}

.persona-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.persona-role {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  background: rgba(139, 92, 246, 0.1);
  padding: 2px 12px;
  border-radius: 12px;
}

.persona-details-list {
  width: 100%;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.detail-value {
  font-size: 14px;
  font-weight: 500;
}

.analysis-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.results-card h3 {
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
}

.painpoints-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.painpoint-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.painpoint-title-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
}

.painpoint-severity {
  font-size: 12px;
  color: #ef4444;
}

.painpoint-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.severity-meter {
  background: rgba(0, 0, 0, 0.4);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.severity-fill {
  background: #ef4444;
  height: 100%;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.diff-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
}

.diff-feature {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.diff-us, .diff-them {
  font-size: 13px;
  margin-bottom: 4px;
}

.diff-us strong {
  color: var(--secondary);
}

.diff-them strong {
  color: #ef4444;
}

.script-card {
  border-left: 4px solid var(--primary);
}

.hook-tip {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hook-section {
  margin-bottom: 16px;
}

.hook-section:last-child {
  margin-bottom: 0;
}

.hook-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hook-text {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--glass-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-style: italic;
  font-size: 14px;
  color: #e5e7eb;
}

/* Pricing Section */
.pricing-header {
  text-align: center;
  max-width: 600px;
  margin: 60px auto 40px;
}

.pricing-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-width: 1050px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.pricing-card {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.pricing-card.premium {
  border-color: var(--primary);
  box-shadow: 0 8px 32px var(--primary-glow);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.plan-name {
  font-size: 22px;
  font-weight: 700;
}

.plan-price {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.price-period {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 16px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  flex: 1;
}

.plan-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
  display: inline-block;
  width: 20px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-box::-webkit-scrollbar {
  display: none;
}

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

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

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-family: inherit;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
}

.error-msg {
  color: #ef4444;
  font-size: 13px;
}

.modal-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* Toss Payments Mock Modal */
.checkout-box {
  max-width: 460px;
}

.toss-logo {
  font-size: 24px;
  font-weight: 900;
  color: #3182f6;
  margin-bottom: 24px;
  text-transform: lowercase;
}

.checkout-info {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  margin-bottom: 24px;
}

.checkout-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.checkout-amount {
  font-size: 28px;
  font-weight: 800;
}

.payment-methods {
  margin-bottom: 24px;
}

.method-card {
  border: 1px solid #3182f6;
  background: rgba(49, 130, 246, 0.05);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
}

.toss-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

/* Admin Panel */
.admin-header-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-item-card h4 {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
}

.admin-table-section h3 {
  margin-bottom: 20px;
}

.table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.admin-table td {
  font-size: 14px;
}

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

/* Loader Animation */
.loader {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top: 3px solid white;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 30px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  margin-top: 80px;
}

/* Google Login Styles */
.divider-text {
  text-align: center;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
}

.divider-text::before, .divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--glass-border);
}

.divider-text::before {
  left: 0;
}

.divider-text::after {
  right: 0;
}

.google-btn-container {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  width: 100%;
  min-height: 40px;
}

.custom-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 370px;
  height: 46px;
  background-color: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  color: #3c4043;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Roboto', 'Outfit', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  padding: 0 16px;
}

.custom-google-btn:hover {
  background-color: #f8f9fa;
  border-color: #d2e3fc;
  box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.custom-google-btn:active {
  background-color: #f1f3f4;
}

.custom-google-btn .google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Pricing Billing Toggle Switch */
.billing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.toggle-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.toggle-label.active {
  color: var(--text-main);
  font-weight: 700;
}

.discount-badge {
  background: #10b981;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
  font-weight: bold;
}

/* Switch UI */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border: 1px solid var(--glass-border);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Pricing Card modifications */
.pricing-card.premium {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-surface), var(--bg-surface)), var(--primary-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.25);
}

/* Footer layout */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-info p {
  margin: 0;
  color: var(--text-muted);
}

.footer-links {
  margin: 8px 0;
}

.policy-link {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
  transition: color 0.2s;
}

.policy-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Policy Modals */
.policy-modal-box {
  max-width: 600px;
}

/* Dashboard Analyzer Box */
.dashboard-analyzer-box {
  margin-top: 0px;
  margin-bottom: 32px;
  max-width: 100%;
}

.dashboard-analyzer-box .analyzer-form {
  max-width: 1000px;
  margin: 0 auto;
}

/* Landing Showcase styling */
.landing-showcase {
  margin-top: 80px;
  text-align: center;
}

.showcase-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.showcase-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 40px;
}

.showcase-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.showcase-card {
  text-align: left;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.showcase-card:hover {
  transform: translateY(-4px);
}

.mock-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 16px;
}

.small-ring {
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
}

.mini-details {
  border-top: 1px solid var(--glass-border);
  padding-top: 12px;
  margin-top: 16px;
}

.mock-painpoint-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-hook-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-hook-text {
  font-size: 13px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--glass-border);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 0;
  font-style: italic;
}

/* Painpoint Stage Badges */
.stage-badge {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
}

/* AI Status Badges */
.ai-status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.ai-status-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ai-status-badge.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Stacked Analyzer Form */
.analyzer-form-stacked {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.analyzer-form-stacked .input-wrapper {
  width: 100%;
}

.analyzer-form-stacked input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.analyzer-form-stacked input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Short-form Video Grid & Cards for Structure Analysis */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.video-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25 ease;
  position: relative;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.2);
}

.video-thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-top: 133%; /* 3:4 vertical video aspect ratio */
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(236, 72, 153, 0.1));
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail {
  transform: scale(1.05);
}

.video-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  justify-content: space-between;
}

.video-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.platform-tag {
  padding: 3px 8px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.platform-tag.youtube {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.platform-tag.instagram {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.platform-tag.tiktok {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid var(--glass-border);
}

.platform-tag.other {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* Video Thumbnail Fallback Backgrounds & Icons */
.video-thumbnail-wrapper.platform-bg-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.video-thumbnail-wrapper.platform-bg-tiktok {
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 40%, #00f2fe 85%, #fe0979 100%);
}

.video-thumbnail-wrapper.platform-bg-youtube {
  background: linear-gradient(135deg, #2a0000 0%, #7f0000 70%, #ff0000 100%);
}

.video-thumbnail-wrapper.platform-bg-other {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.video-fallback-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  padding: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
}

.video-fallback-icon {
  font-size: 32px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

.video-fallback-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

