/*
  Nexora Social - Custom Web & Mobile Components
  "Connect Beyond Limits"
*/

/* 1. Interactive Phone Simulator Container */
.simulator-section {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.iphone-frame {
  width: var(--iphone-width);
  height: var(--iphone-height);
  background-color: #000000;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 4px #2D3748;
  position: relative;
  overflow: hidden;
  user-select: none;
  flex-shrink: 0;
}

/* Speaker Notch & Dynamic Island */
.iphone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 30px;
  background-color: #000000;
  border-radius: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width var(--transition-normal);
}

.iphone-notch.expanded {
  width: 180px;
  height: 34px;
}

.notch-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1A202C;
  position: absolute;
  right: 18px;
}

.notch-sensor {
  width: 35px;
  height: 4px;
  border-radius: 2px;
  background: #0D1117;
  position: absolute;
  left: 18px;
}

/* Home Indicator */
.iphone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 5px;
  background-color: #E2E8F0;
  border-radius: 10px;
  z-index: 1000;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.iphone-home-indicator:hover {
  background-color: #FFFFFF;
}

/* Screen Wrapper */
.iphone-screen {
  width: 100%;
  height: 100%;
  background-color: #0F172A; /* Dark mode mobile by default for premium look */
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Status Bar inside iPhone */
.iphone-status-bar {
  height: 44px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  z-index: 900;
  pointer-events: none;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* iPhone Screen Views Container */
.phone-view {
  flex-grow: 1;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 70px; /* Space for bottom tab bar */
  scrollbar-width: none; /* Firefox */
}

.phone-view::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.phone-view.active {
  display: flex;
}

/* Splash View */
#view-splash {
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #1E1B4B, #0F172A);
  padding-bottom: 0;
}

.splash-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  animation: pulseLogo 2s infinite ease-in-out;
}

.splash-logo-container img {
  height: 80px;
  width: auto;
}

.splash-text {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.splash-tagline {
  font-size: var(--text-xs);
  color: #94A3B8;
  letter-spacing: 2px;
}

@keyframes pulseLogo {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.6)); }
  100% { transform: scale(0.95); opacity: 0.9; }
}

/* Authentication Screen */
.auth-container {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  justify-content: center;
  height: 100%;
}

.auth-header {
  text-align: center;
}

.auth-header h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: #FFFFFF;
  margin-top: var(--space-2);
}

.auth-header p {
  font-size: var(--text-xs);
  color: #94A3B8;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.phone-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.phone-input-group label {
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
}

.phone-input-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
}

.phone-input-group input:focus {
  border-color: var(--accent);
}

.btn-phone-submit {
  background: var(--gradient-primary);
  color: #FFFFFF;
  font-weight: 700;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-align: center;
  box-shadow: var(--shadow-primary-glow);
}

.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: #64748B;
  font-size: 11px;
  font-weight: 600;
}

.auth-divider::before, .auth-divider::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.btn-oauth {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  transition: background var(--transition-fast);
}

.btn-oauth:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-oauth svg {
  width: 16px;
  height: 16px;
}

/* Feed View UI inside Phone */
.phone-header {
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.phone-header img {
  height: 24px;
}

.phone-header-actions {
  display: flex;
  gap: var(--space-3);
  color: #FFFFFF;
}

.phone-header-actions svg {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Stories Tray */
.stories-tray {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-2) var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.stories-tray::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
  flex-shrink: 0;
}

.story-avatar-container {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-item.viewed .story-avatar-container {
  background: rgba(255, 255, 255, 0.15);
}

.story-avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0F172A;
}

.story-username {
  font-size: 10px;
  color: #94A3B8;
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Reels Tray (Inside feed occasionally) */
.reels-preview-tray {
  padding: var(--space-2) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.reels-tray-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
  font-size: var(--text-xs);
  font-weight: 700;
}

.reels-grid {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
}

.reels-grid::-webkit-scrollbar {
  display: none;
}

.reel-card {
  width: 90px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 6px;
  display: flex;
  align-items: flex-end;
  color: #FFFFFF;
}

.reel-card-views {
  font-size: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Post Card inside Phone */
.phone-post-card {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.post-card-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.author-meta {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-premium, .badge-creator, .badge-ai {
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 800;
}

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

.post-time {
  font-size: 10px;
  color: #64748B;
}

.post-options-btn {
  color: #64748B;
}

.post-caption {
  font-size: 12px;
  color: #E2E8F0;
  line-height: 1.5;
  word-wrap: break-word;
}

.post-media-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #090D1A;
}

.post-media-container img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  display: block;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-2);
}

.post-actions-group {
  display: flex;
  gap: var(--space-4);
}

.post-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.post-action-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.post-action-btn:hover {
  color: #FFFFFF;
}

.post-action-btn.liked {
  color: var(--danger);
}
.post-action-btn.liked svg {
  fill: var(--danger);
  stroke: var(--danger);
}

.post-action-btn.saved {
  color: var(--accent);
}
.post-action-btn.saved svg {
  fill: var(--accent);
  stroke: var(--accent);
}

/* AI Post Summary Box */
.ai-summary-box {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: 11px;
  color: #06B6D4;
  margin-top: var(--space-2);
  display: none;
  animation: slideDown 0.3s ease;
  position: relative;
}

.ai-summary-header {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ai-summary-header svg {
  width: 14px;
  height: 14px;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* iPhone Bottom Navigation Bar */
.iphone-navbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
  padding-bottom: 8px;
}

.iphone-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #64748B;
  font-size: 9px;
  font-weight: 700;
  gap: 4px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.iphone-nav-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.iphone-nav-item.active {
  color: var(--accent);
}

.iphone-nav-item.premium-pulse {
  color: var(--primary);
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(79, 70, 229, 0.6)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 8px rgba(79, 70, 229, 0.8)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(79, 70, 229, 0.6)); }
}

/* Chat Interface inside Phone */
.chat-list-container {
  display: flex;
  flex-direction: column;
  padding: var(--space-2) 0;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.chat-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.chat-avatar-wrapper {
  position: relative;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.online-indicator {
  width: 10px;
  height: 10px;
  background: var(--success);
  border: 2px solid #0F172A;
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  left: 2px;
}

.chat-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-name {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #FFFFFF;
}

.chat-time {
  font-size: 9px;
  color: #64748B;
}

.chat-message-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-preview-text {
  font-size: 11px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.chat-badge {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Chat Room Screen view inside Phone */
.chat-room-view {
  position: absolute;
  top: 44px;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0F172A;
  z-index: 850;
  display: none;
  flex-direction: column;
}

.chat-room-header {
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.9);
}

.btn-back-chat {
  color: #FFFFFF;
}

.chat-room-title {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.chat-room-name {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #FFFFFF;
}

.chat-room-status {
  font-size: 9px;
  color: #10B981;
}

.chat-room-actions {
  display: flex;
  gap: var(--space-4);
  color: #FFFFFF;
}

.chat-messages-scroll {
  flex-grow: 1;
  padding: var(--space-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  scrollbar-width: none;
}

.msg-bubble {
  max-width: 75%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: 12px;
  line-height: 1.5;
  position: relative;
}

.msg-bubble.incoming {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
  border-bottom-right-radius: 4px;
  text-align: right;
}

.msg-bubble.outgoing {
  align-self: flex-end;
  background: var(--gradient-primary);
  color: #FFFFFF;
  border-bottom-left-radius: 4px;
  text-align: right;
}

.msg-bubble-time {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  text-align: left;
}

.chat-input-bar {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0F172A;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chat-input-field {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  color: #FFFFFF;
  font-size: var(--text-xs);
}

.btn-send-message {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-send-message svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  transform: rotate(180deg);
}

/* Premium Page inside Phone */
.premium-container {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  background: linear-gradient(180deg, #1E1B4B 0%, #0F172A 100%);
  height: 100%;
}

.premium-header {
  text-align: center;
}

.premium-header h2 {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: #FFFFFF;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premium-header p {
  font-size: var(--text-xs);
  color: #94A3B8;
  margin-top: var(--space-1);
}

.premium-benefits-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.benefit-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-icon svg {
  width: 16px;
  height: 16px;
}

.benefit-info {
  display: flex;
  flex-direction: column;
}

.benefit-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #FFFFFF;
}

.benefit-desc {
  font-size: 10px;
  color: #94A3B8;
}

.premium-pricing-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.premium-tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.premium-tier-card.selected {
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.tier-card-left {
  display: flex;
  flex-direction: column;
}

.tier-card-name {
  font-size: var(--text-sm);
  font-weight: 800;
  color: #FFFFFF;
}

.tier-card-price {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 700;
  margin-top: 2px;
}

.tier-card-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-tier-card.selected .tier-card-radio {
  border-color: var(--accent);
}

.premium-tier-card.selected .tier-card-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* 2. Web Studio / Dashboard Components */
.panel-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.card-title-row h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-primary);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-active);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 600;
}

.stat-value {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
}

.stat-trend {
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}

.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* Table Components */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: var(--text-sm);
}

.admin-table th {
  background: var(--bg-active);
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--bg-active);
}

/* 3. AI Creator Studio Helper Widget */
.ai-helper-widget {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-6);
}

.ai-helper-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  color: var(--text-primary);
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}

.ai-helper-header svg {
  color: var(--accent);
  animation: rotateGlow 3s infinite linear;
}

@keyframes rotateGlow {
  0% { transform: rotate(0); filter: drop-shadow(0 0 2px var(--accent)); }
  50% { filter: drop-shadow(0 0 8px var(--accent)); }
  100% { transform: rotate(360deg); filter: drop-shadow(0 0 2px var(--accent)); }
}

.ai-helper-input-group {
  display: flex;
  gap: var(--space-3);
}

.ai-helper-textarea {
  flex-grow: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  color: var(--text-primary);
  font-size: var(--text-sm);
  resize: none;
  height: 60px;
}

.btn-ai-generate {
  background: var(--gradient-accent);
  color: #FFFFFF;
  font-weight: 700;
  padding: 0 var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.ai-output-box {
  margin-top: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: none;
}

/* 4. Interactive Earnings Calculator */
.calc-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.calc-slider-header span:last-child {
  color: var(--primary);
}

.calc-input-slider {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
}

.calc-input-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.4);
}

.calc-results-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  box-shadow: var(--shadow-primary-glow);
}

.calc-results-title {
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0.85;
}

.calc-results-value {
  font-size: var(--text-3xl);
  font-weight: 900;
  letter-spacing: -0.5px;
}

.calc-results-note {
  font-size: 10px;
  opacity: 0.7;
}

/* Interactive ERD Diagram & User Flow Visuals */
.erd-node {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.erd-node:hover, .erd-node.selected {
  border-color: var(--primary);
  box-shadow: var(--shadow-primary-glow);
}
