/* ==========================================================================
   Will It Fit? — Ultimate Social Media Preview Dashboard CSS Stylesheet
   Theme: Cyber-Emerald Matrix
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --bg-color: #060a0f;
  --bg-grid: rgba(46, 213, 115, 0.02);
  --card-bg: rgba(12, 22, 33, 0.65);
  --card-hover-bg: rgba(18, 33, 49, 0.75);
  --card-border: rgba(46, 213, 115, 0.15);
  --card-border-hover: rgba(0, 255, 255, 0.35);
  
  /* Cyber Matrix Neon Palette */
  --accent-mint: #2ed573;
  --accent-cyan: #00ffff;
  --accent-gradient: linear-gradient(135deg, var(--accent-mint) 0%, var(--accent-cyan) 100%);
  --accent-gradient-hover: linear-gradient(135deg, #3eed85 0%, #33ffff 100%);
  --accent-glow: rgba(46, 213, 115, 0.3);
  --cyan-glow: rgba(0, 255, 255, 0.3);
  
  /* Neutral Palette */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --text-success: #2ed573;
  --text-danger: #ff4757;
  
  /* Utility & Layout */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
  --shadow-premium: 0 15px 35px -10px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 20px rgba(46, 213, 115, 0.15);
  
  /* Mockup Overlay Constants */
  --overlay-bg: rgba(0, 0, 0, 0.45);
  --overlay-text: #ffffff;
}

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

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, rgba(46, 213, 115, 0.08) 0, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 255, 255, 0.08) 0, transparent 50%),
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  padding-bottom: 110px; /* offset for bottom banner */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.app-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 15, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  background: var(--accent-gradient);
  color: #060a0f;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(46, 213, 115, 0.45);
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text h1 {
  font-size: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  background: rgba(46, 213, 115, 0.15);
  border: 1px solid rgba(46, 213, 115, 0.3);
  color: var(--accent-mint);
  padding: 2px 6px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 8px rgba(46, 213, 115, 0.1);
}

.subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   Dashboard Container
   ========================================================================== */
.dashboard-container {
  max-width: 1400px;
  margin: 40px auto 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Upload Section & Drop Zone
   ========================================================================== */
.upload-section {
  margin-bottom: 40px;
}

.drop-zone {
  background: var(--card-bg);
  border: 2px dashed rgba(46, 213, 115, 0.25);
  border-radius: var(--border-radius-lg);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent-cyan);
  background: var(--card-hover-bg);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
  transform: translateY(-2px);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.upload-icon-wrapper {
  color: var(--text-secondary);
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.drop-zone:hover .upload-icon-wrapper {
  color: var(--accent-mint);
  transform: translateY(-4px) scale(1.05);
}

.drop-zone h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.drop-zone-subtext {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.drop-zone-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 10;
}

.privacy-note {
  font-size: 11px;
  color: var(--text-muted);
}

/* Image/Video Status Bar */
.image-status-bar {
  background: rgba(46, 213, 115, 0.08);
  border: 1px solid rgba(46, 213, 115, 0.2);
  border-radius: var(--border-radius-md);
  padding: 12px 24px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.status-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--text-success);
  animation: pulse 1.8s infinite;
}

.file-details {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #060a0f;
  box-shadow: 0 4px 12px rgba(46, 213, 115, 0.3);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 4px 18px rgba(0, 255, 255, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(46, 213, 115, 0.15);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-mint);
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  font-weight: 500;
}

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

.btn-danger {
  color: #fda4af;
}

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

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--border-radius-sm);
}

/* ==========================================================================
   Empty State Placeholder
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.empty-icon {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto;
}

/* ==========================================================================
   Grid Layout & Preview Cards
   ========================================================================== */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
  align-items: start;
}

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

.preview-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-premium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.preview-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 255, 255, 0.1);
  transform: translateY(-4px);
}

.card-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
}

.platform-tiktok { background: linear-gradient(90deg, #ff0050 0%, #00f2fe 100%); }
.platform-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.platform-youtube { background: #ff0000; }
.platform-pinterest { background: #bd081c; }

/* Viewports for crop boxes */
.mockup-container {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: #000;
  box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.9);
}

/* Aspect Ratios */
.ratio-9-16 { aspect-ratio: 9 / 16; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-2-3 { aspect-ratio: 2 / 3; }

/* Viewport for images and videos */
.crop-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Unified Media Elements Styling */
.preview-img, .preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Hardware Accelerated Transforms */
  transform: translate3d(var(--x, 0%), var(--y, 0%), 0) scale(var(--zoom, 1.0));
  will-change: transform;
  transform-origin: center center;
  pointer-events: none;
}

/* ==========================================================================
   Social Media Native Overlay Layouts
   ========================================================================== */
.native-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--overlay-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

/* 1. TikTok / Reels Overlay Details */
.tiktok-overlay {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 15%, transparent 70%, rgba(0,0,0,0.6) 100%);
}

.tiktok-top-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  padding-top: 8px;
}

.tiktok-top-tabs span {
  opacity: 0.65;
}

.tiktok-top-tabs span.active {
  opacity: 1;
  border-bottom: 2px solid #fff;
  padding-bottom: 4px;
}

.tiktok-sidebar {
  position: absolute;
  right: 8px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
}

.overlay-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.profile-avatar {
  position: relative;
  margin-bottom: 4px;
}

.avatar-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #e2e8f0;
  border: 1px solid #fff;
}

.plus-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ff0050;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: none;
}

.disc-rotate {
  margin-top: 4px;
}

.disc-placeholder {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, #334155 40%, #000 45%, #000 100%);
  border: 4px solid #1e293b;
  animation: rotateDisc 4s linear infinite;
}

.tiktok-caption {
  font-size: 12px;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tiktok-caption .username {
  font-weight: 700;
  font-size: 13px;
}

.tiktok-caption .desc-text {
  font-weight: 400;
  line-height: 1.4;
}

.tiktok-caption .music-track {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 500;
  width: 120px;
  overflow: hidden;
  white-space: nowrap;
}

.music-icon {
  flex-shrink: 0;
}

.marquee-text {
  display: inline-block;
  padding-left: 10%;
  animation: marquee 10s linear infinite;
}

/* 2. Instagram Feed Mockup Layout */
.instagram-feed-frame {
  background: #000;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.feed-header {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.feed-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  margin-right: 8px;
}

.feed-user-info {
  flex-grow: 1;
}

.feed-username {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.feed-location {
  font-size: 10px;
  color: #a3a3a3;
}

.feed-menu-dots {
  display: flex;
  gap: 3px;
  cursor: pointer;
}

.feed-menu-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.feed-actions {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px 6px 12px;
  color: #fff;
}

.left-actions {
  display: flex;
  gap: 12px;
}

.feed-details {
  padding: 0 12px 12px 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
}

.feed-likes {
  font-weight: 600;
  margin-bottom: 4px;
}

.feed-caption-text {
  font-weight: 400;
  color: #e5e5e5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ratio-toggle-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--card-border);
}

.ratio-toggle-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ratio-toggle-btn.active {
  background: var(--accent-mint);
  color: #060a0f;
  box-shadow: 0 0 8px rgba(46, 213, 115, 0.4);
}

/* 3. YouTube Player Overlay Details */
.youtube-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 8px;
}

.youtube-player-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mockup-container:hover .youtube-player-controls {
  opacity: 1;
}

.youtube-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.youtube-play-icon:hover {
  transform: scale(1.1);
}

.youtube-timestamp {
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 2px 5px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.youtube-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  position: absolute;
  bottom: 0;
  left: 0;
}

.progress-filled {
  width: 45%;
  height: 100%;
  background-color: #ff0000;
}

.youtube-meta-row {
  display: flex;
  gap: 10px;
  padding: 10px 2px;
}

.youtube-channel-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2c3e50;
  flex-shrink: 0;
}

.youtube-text-details {
  flex-grow: 1;
}

.youtube-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.youtube-subtext {
  font-size: 10px;
  color: var(--text-secondary);
}

.youtube-subtext .checkmark {
  background: var(--text-secondary);
  color: var(--bg-color);
  border-radius: 50%;
  padding: 0px 2px;
  font-size: 7px;
  font-weight: bold;
}

.youtube-menu-dots {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  align-self: flex-start;
  padding-top: 4px;
}

.youtube-menu-dots span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-secondary);
}

/* 4. Pinterest Pin layout */
.pinterest-frame {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.pinterest-overlay {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pinterest-frame:hover .pinterest-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.45);
}

.pinterest-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.pinterest-destination-link {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 20px;
}

.pinterest-save-btn {
  background-color: #e60023;
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.pinterest-bottom-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.pinterest-icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pinterest-details {
  padding: 10px 4px;
}

.pinterest-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pinterest-creator-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pinterest-avatar {
  width: 20px;
  height: 20px;
  background: var(--accent-mint);
  color: #060a0f;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.pinterest-creator-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   Crop Controller Interface (Individual Card Control Panel)
   ========================================================================== */
.control-panel {
  border-top: 1px solid var(--card-border);
  margin-top: 16px;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.slider-val {
  color: var(--accent-cyan);
}

/* Custom Styled Range Input Sliders */
.control-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  transition: background 0.15s ease;
}

.control-slider:hover {
  background: rgba(255, 255, 255, 0.15);
}

.control-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-mint);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(46, 213, 115, 0.4);
  transition: transform 0.1s ease;
}

.control-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.control-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: var(--accent-mint);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(46, 213, 115, 0.4);
  transition: transform 0.1s ease;
}

.control-slider::-moz-range-thumb:hover {
  transform: scale(1.3);
}

/* Card CTA Action Row */
.card-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.card-action-row .btn-primary {
  flex-grow: 1;
}

.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px dashed rgba(255, 255, 255, 0.15) !important;
  color: var(--text-secondary) !important;
  box-shadow: none !important;
}

.btn-disabled:hover {
  transform: none !important;
}

/* ==========================================================================
   SEO Educational Info & Footer Section Styling
   ========================================================================== */
.seo-education-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  margin-top: 48px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.seo-education-section h2 {
  font-size: 22px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

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

@media (min-width: 768px) {
  .seo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.seo-grid article {
  background: rgba(6, 10, 15, 0.4);
  padding: 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.seo-grid h3 {
  font-size: 15px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.seo-grid p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer Section */
.app-footer {
  border-top: 1px solid var(--card-border);
  padding: 24px 40px;
  background: rgba(6, 10, 15, 0.9);
  margin-top: 60px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon-small {
  width: 28px;
  height: 28px;
  border-radius: var(--border-radius-sm);
  background: var(--accent-gradient);
  color: #060a0f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Cross-Promotion Floating Banner (Emerald-Matrix Glassmorphism)
   ========================================================================== */
.promo-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 1000;
  background: rgba(6, 15, 22, 0.8);
  border: 1px solid var(--card-border);
  box-shadow: 
    0 15px 35px -5px rgba(0, 0, 0, 0.9),
    0 0 25px rgba(46, 213, 115, 0.1);
  border-radius: 100px;
  padding: 12px 24px;
  width: calc(100% - 48px);
  max-width: 820px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: bannerSlideIn 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.promo-banner:hover {
  border-color: var(--accent-cyan);
  box-shadow: 
    0 20px 45px -5px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(0, 255, 255, 0.2);
  transform: translateX(-50%) translateY(-2px);
}

.promo-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.promo-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(46, 213, 115, 0.15);
  color: var(--accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(46, 213, 115, 0.2);
}

.promo-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
  flex-grow: 1;
}

.promo-text strong {
  color: #fff;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-cta {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-gradient);
  color: #060a0f;
  padding: 8px 18px;
  border-radius: 100px;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(46, 213, 115, 0.2);
  transition: all 0.2s ease;
  animation: pulseButton 2s infinite;
}

.promo-banner:hover .promo-cta {
  background: var(--accent-gradient-hover);
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .promo-banner {
    border-radius: var(--border-radius-lg);
    padding: 16px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
  
  .promo-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .promo-icon-box {
    display: none;
  }
  
  .promo-text {
    font-size: 12px;
  }
}

/* ==========================================================================
   Utility Classes & Keyframe Animations
   ========================================================================== */
.hidden {
  display: none !important;
}

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

@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(40px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(46, 213, 115, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}

@keyframes pulseButton {
  0% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4); }
  70% { box-shadow: 0 0 12px 6px rgba(0, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}

@keyframes rotateDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}
