/* ==========================================================================
   revisinc.id Style System
   Vanilla CSS (Dark Theme, Glassmorphism, Premium Gradients, Micro-animations)
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #030712;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-card-hover: rgba(31, 41, 55, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-focus: rgba(99, 102, 241, 0.4);
  
  --primary: #6366f1; /* Indigo */
  --primary-hover: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --secondary: rgba(255, 255, 255, 0.05);
  --secondary-hover: rgba(255, 255, 255, 0.1);
  
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-detail: #d1d5db;
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html, body {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, video, iframe, svg {
  max-width: 100%;
}

/* Background Glowing Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -10;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.12);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: rgba(139, 92, 246, 0.1);
  top: 40%;
  right: -200px;
}

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

p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  background: linear-gradient(to right, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  outline: none;
}

.btn-link:hover {
  color: white;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 10px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* HEADER STYLE */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.logo-icon i {
  width: 20px;
  height: 20px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
}

.logo-ext {
  color: var(--primary);
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-admin-link {
  color: #a5b4fc;
}

.nav-admin-link:hover {
  color: #c084fc;
}

/* SPA PAGES ROUTING SYSTEM */
.page-section {
  display: none;
  padding: 40px 0 80px;
  animation: fadeIn 0.4s ease-out forwards;
}

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

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

/* ==========================================================================
   LANDING PAGE STYLES
   ========================================================================== */

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge-premium {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Preview Block Mockup */
.preview-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-glow);
}

.preview-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.window-dots {
  display: flex;
  gap: 6px;
  margin-right: 16px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.preview-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.preview-body {
  padding: 24px;
}

.preview-metric {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.metric-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 5px solid var(--danger);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.metric-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.metric-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.metric-info p {
  font-size: 0.85rem;
}

.preview-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.line {
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  width: 100%;
}

.line.highlight-red {
  background: var(--danger-bg);
  border-bottom: 1px dashed var(--danger);
  width: 85%;
}

.line.highlight-orange {
  background: var(--warning-bg);
  border-bottom: 1px dashed var(--warning);
  width: 70%;
}

.line-blur {
  height: 15px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
  filter: blur(2px);
  width: 100%;
}

.preview-upgrade-banner {
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.preview-upgrade-banner i {
  width: 16px;
  height: 16px;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.feature-icon i {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: white;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px;
}

.active-card {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, rgba(17, 24, 39, 0.5) 100%);
}

.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--primary-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-detail);
}

.pricing-features li i {
  width: 18px;
  height: 18px;
  color: var(--success);
}

.pricing-features li.disabled {
  color: rgba(255,255,255,0.25);
}

.pricing-features li.disabled i {
  color: var(--danger);
  opacity: 0.5;
}

/* API Section */
.api-card {
  padding: 40px;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.4) 0%, rgba(17, 24, 39, 0.8) 100%);
}

.api-content h2 {
  font-size: 1.85rem;
  margin-bottom: 16px;
}

.api-steps {
  margin: 24px 0;
  padding-left: 20px;
  color: var(--text-detail);
}

.api-steps li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.api-code-header {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.api-code-block {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
  padding: 16px;
  overflow-x: auto;
}

.api-code-block code {
  font-family: monospace;
  font-size: 0.85rem;
  color: #a5b4fc;
}

/* ==========================================================================
   CHECKER CONSOLE STYLES
   ========================================================================== */

.checker-container {
  max-width: 900px;
  margin: 0 auto;
}

.checker-header {
  text-align: center;
  margin-bottom: 30px;
}

.checker-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.checker-card {
  padding: 0;
  overflow: hidden;
}

.checker-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.01);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(99, 102, 241, 0.03);
}

.tab-btn i {
  width: 18px;
  height: 18px;
}

.checker-form-body {
  padding: 24px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

#check-textarea {
  width: 100%;
  height: 280px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  resize: none;
  outline: none;
  transition: var(--transition);
}

#check-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.textarea-footer {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* File Upload zone */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 50px 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
}

.upload-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.upload-dropzone h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: white;
}

.upload-dropzone p {
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.upload-btn-wrapper input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

.file-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 8px 16px;
  border-radius: 6px;
  margin-top: 16px;
  max-width: 320px;
  color: var(--text-main);
}

.file-display i {
  width: 16px;
  height: 16px;
  color: #a5b4fc;
}

.remove-file-btn {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.remove-file-btn i {
  width: 16px;
  height: 16px;
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.checker-footer {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-container input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-container label {
  font-size: 0.9rem;
  color: var(--text-detail);
  cursor: pointer;
}

/* ==========================================================================
   SCANNING LOADER SCREEN
   ========================================================================== */

.scanning-container {
  max-width: 600px;
  margin: 40px auto;
}

.scanning-card {
  text-align: center;
  padding: 50px 40px;
}

.scanner-visual {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.15);
}

.scanner-radar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  animation: rotateRadar 1.5s linear infinite;
}

.center-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  animation: pulseIcon 1.5s ease-in-out infinite;
}

@keyframes rotateRadar {
  to { transform: rotate(360deg); }
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.progress-bar-container {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin: 24px 0;
  overflow: hidden;
}

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

.scanning-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 320px;
  margin: 0 auto;
}

.scanning-steps .step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #475569;
  font-size: 0.95rem;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  display: inline-block;
  transition: var(--transition);
}

.scanning-steps .step.active {
  color: #7c3aed;
  font-weight: 700;
}

.scanning-steps .step.active .step-dot {
  background: #7c3aed;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

.scanning-steps .step.done {
  color: #16a34a;
  font-weight: 600;
}

.scanning-steps .step.done .step-dot {
  background: #16a34a;
}

/* ==========================================================================
   DETAILED REPORT VIEW STYLES
   ========================================================================== */

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

.back-area {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.back-area:hover {
  color: white;
}

.back-area i {
  width: 18px;
  height: 18px;
}

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

.report-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 30px;
}

.card-header-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.card-header-label span {
  font-weight: 600;
  font-family: var(--font-display);
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge i {
  width: 12px;
  height: 12px;
}

.badge-locked {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-unlocked {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.text-display-card {
  height: 620px;
  display: flex;
  flex-direction: column;
}

.report-text-body {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 8px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-detail);
  white-space: pre-wrap;
}

/* Plagiarism markup styles */
.highlight-plagiarized {
  background: var(--danger-bg);
  border-bottom: 2px dashed var(--danger);
  border-radius: 2px;
  cursor: help;
  padding: 2px 0;
  transition: var(--transition);
}

.highlight-plagiarized:hover {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

.highlight-plagiarized.locked {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 2px dashed var(--text-muted);
  cursor: not-allowed;
}

.report-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Radial percentage gauge */
.stat-gauge-card {
  padding: 30px;
}

.gauge-content {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: center;
}

.gauge-outer {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-progress {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gauge-inner {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #0e1322;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.score-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.score-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.gauge-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-stat {
  display: flex;
  flex-direction: column;
}

.mini-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.mini-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Paywall card styles */
.paywall-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.6) 0%, rgba(17, 24, 39, 0.9) 100%);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.paywall-lock-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--warning);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.paywall-lock-icon i {
  width: 20px;
  height: 20px;
}

.paywall-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.paywall-card p {
  font-size: 0.85rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.paywall-pricing-box {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.paywall-price-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.paywall-price-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 4px 0;
}

.paywall-security-note {
  font-size: 0.75rem;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.paywall-security-note i {
  width: 12px;
  height: 12px;
}

.blur-demo-sources {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  opacity: 0.2;
  filter: blur(2px);
  pointer-events: none;
}

.blur-source-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 6px;
}

.blur-source-item .pct {
  font-family: monospace;
  font-weight: bold;
}

.blur-source-item .lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.blur-source-item .lines .ln {
  height: 6px;
  background: white;
  border-radius: 20px;
}

.blur-source-item .lines .ln-1 { width: 80%; }
.blur-source-item .lines .ln-2 { width: 50%; }

/* Premium Sources card styles */
.sources-list-card {
  height: 440px;
  display: flex;
  flex-direction: column;
}

.sources-list-container {
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.source-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.source-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateX(2px);
}

.source-percentage-chip {
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--danger);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.9rem;
}

.source-item.src-warning .source-percentage-chip {
  background: var(--warning-bg);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--warning);
}

.source-meta {
  flex-grow: 1;
  overflow: hidden;
}

.source-title-str {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-url-str {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.source-url-str i {
  width: 10px;
  height: 10px;
}

/* Comparison side-by-side pane */
.comparison-card {
  animation: slideIn 0.3s ease-out forwards;
}

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

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.comparison-header h4 {
  font-size: 1.05rem;
}

.close-comparison-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.close-comparison-btn i {
  width: 16px;
  height: 16px;
}

.comparison-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-pane {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
}

.compare-pane h5 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.compare-pane p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.text-highlight-red {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
}

.text-highlight-green {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
}

.source-external-link {
  color: var(--primary);
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.source-external-link:hover {
  text-decoration: underline;
}

.source-external-link i {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   ADMIN PANEL DASHBOARD DESIGN
   ========================================================================== */

.admin-container {
  max-width: 1100px;
}

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

.admin-header h2 {
  font-size: 2rem;
  color: white;
}

.header-right-control {
  display: flex;
  align-items: center;
}

.api-toggle-container {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}

.api-toggle-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-toggle {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 6px 14px 6px 28px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.toggle-dot {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition);
}

.btn-toggle.live-active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
  padding: 6px 28px 6px 14px;
}

.btn-toggle.live-active .toggle-dot {
  left: calc(100% - 20px);
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* Admin Grid Widget */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.admin-stat-box .box-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-stat-box:nth-child(2) .box-icon {
  background: rgba(192, 132, 252, 0.08);
  border-color: rgba(192, 132, 252, 0.2);
  color: #c084fc;
}

.admin-stat-box:nth-child(4) .box-icon {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.admin-stat-box .box-icon i {
  width: 24px;
  height: 24px;
}

.box-data {
  display: flex;
  flex-direction: column;
}

.box-data .val {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
}

.box-data .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Charts styles */
.chart-container-card {
  margin-bottom: 30px;
}

.bar-chart-wrapper {
  display: flex;
  height: 220px;
  padding: 10px 0;
  position: relative;
}

.bar-chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 70px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-right: 1px solid var(--border-color);
  padding-right: 12px;
  text-align: right;
}

.bar-chart-bars {
  flex-grow: 1;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding-left: 20px;
}

.chart-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  width: 50px;
}

.bar-fill {
  background: linear-gradient(180deg, #818cf8 0%, rgba(99, 102, 241, 0.2) 100%);
  width: 32px;
  border-radius: 6px 6px 0 0;
  transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
  position: relative;
}

.bar-fill:hover {
  background: linear-gradient(180deg, #c084fc 0%, rgba(99, 102, 241, 0.4) 100%);
}

.bar-tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.7rem;
  color: white;
  white-space: nowrap;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.bar-fill:hover .bar-tooltip {
  opacity: 1;
}

.bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Admin Split Tables Row */
.admin-tables-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.admin-table-card {
  padding: 0;
  overflow: hidden;
}

.admin-table-card .card-header-label {
  padding: 20px 24px;
  margin-bottom: 0;
}

.table-scroll-wrapper {
  max-height: 320px;
  overflow-y: auto;
}

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

.admin-table th {
  background: rgba(255, 255, 255, 0.01);
  padding: 14px 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 14px 24px;
  font-size: 0.9rem;
  color: var(--text-detail);
  border-bottom: 1px solid var(--border-color);
}

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

.admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.01);
  color: white;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-badge.success {
  background: var(--success-bg);
  color: var(--success);
}

.status-badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

/* ==========================================================================
   CHECKOUT / BILLING MODAL
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  max-width: 480px;
  width: 90%;
  padding: 30px;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

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

.modal-header h3 {
  font-size: 1.35rem;
  color: white;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: white;
}

.modal-close i {
  width: 20px;
  height: 20px;
}

.billing-summary-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.billing-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-detail);
}

.billing-row.total {
  margin-top: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: white;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-detail);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  color: white;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
}

.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.input-icon-wrapper input {
  padding-left: 42px;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Modal states display */
.payment-processing-area, .payment-success-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  text-align: center;
  animation: fadeIn 0.3s ease-out forwards;
}

.payment-loader {
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.success-checkmark-box {
  color: var(--success);
  margin-bottom: 20px;
}

.success-icon {
  width: 60px;
  height: 60px;
}

.payment-success-area p {
  font-size: 0.9rem;
  margin-bottom: 24px;
  max-width: 320px;
}

/* APP FOOTER */
.app-footer-bar {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  background: rgba(3, 7, 18, 0.8);
}

.footer-content {
  text-align: center;
}

.footer-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVENESS / MEDIA QUERIES
   ========================================================================== */

/* Menu Toggle Button default state */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  outline: none;
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--primary);
}

/* Order Details Grid default state */
.order-details-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-subtitle {
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .report-layout {
    grid-template-columns: 1fr;
  }
  
  .text-display-card {
    height: 450px;
  }
  
  .sources-list-card {
    height: 350px;
  }
  
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-tables-row {
    grid-template-columns: 1fr;
  }

  .report-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .report-actions-right {
    width: 100%;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .report-actions-right .btn {
    flex: 1 1 180px;
  }

  .order-status-container {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .section-padding {
    padding: 56px 0;
  }

  .page-section {
    padding: 24px 0 64px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  /* Responsive Navigation Menu Dropdown */
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-menu .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  .nav-menu span[id^="nav-"] {
    width: 100%;
  }

  .user-profile-widget {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Stack grid layouts on mobile */
  .order-details-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  
  .checker-footer {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  #submit-scan-btn {
    width: 100%;
  }
  
  /* Responsive Modal Dialog card for small viewports */
  .modal-card {
    width: 92% !important;
    margin: 20px auto;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px !important;
  }
  
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .header-right-control {
    width: 100%;
  }
  
  .api-toggle-container {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    width: 100%;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .stat-item {
    align-items: center;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .report-layout {
    grid-template-columns: 1fr;
  }

  .text-display-card,
  .sources-list-card {
    height: auto;
    min-height: 320px;
  }

  .gauge-content {
    flex-direction: column;
    gap: 18px;
  }

  .checker-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    min-width: 130px;
    white-space: nowrap;
  }

  #check-textarea {
    height: 240px;
    font-size: 0.95rem;
  }

  .upload-dropzone {
    padding: 36px 16px;
  }

  .upload-dropzone h3 {
    font-size: 1rem;
  }

  .order-status-container > div,
  #order-status-search-box,
  #order-status-details-box {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #order-status-search-box > div {
    flex-direction: column;
    max-width: 100% !important;
  }

  #track-order-code-input {
    width: 100%;
  }

  .card-header-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ==========================================================================
   THEME STYLE OVERRIDES (LIGHT MODE & CUSTOM UTILITIES)
   ========================================================================== */

/* Light Mode Theme Variables */
:root[data-theme="light"] {
  --bg-primary: #faf9fe;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;
  --border-color: #ede9fe;
  --border-color-focus: #7c3aed;
  --text-primary: #1f2937;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-detail: #4b5563;
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --secondary: #f5f3ff;
  --secondary-hover: #ede9fe;
  
  /* Glowing Orbs */
  --orb-1-color: rgba(124, 58, 237, 0.02);
  --orb-2-color: rgba(139, 92, 246, 0.01);
}

/* Light mode overrides for layout elements */
:root[data-theme="light"] body {
  background-color: #ffffff;
  color: #1f2937;
}

:root[data-theme="light"] #page-landing {
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
  padding-top: 50px;
  padding-bottom: 50px;
}

:root[data-theme="light"] .app-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ede9fe;
}

:root[data-theme="light"] .logo-text {
  color: #1f2937;
}

:root[data-theme="light"] .logo-ext {
  color: #7c3aed;
}

:root[data-theme="light"] .nav-menu a {
  color: #4b5563;
  font-weight: 500;
}

:root[data-theme="light"] .nav-menu a:hover {
  color: #7c3aed;
}

:root[data-theme="light"] .badge-premium {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #7c3aed;
}

:root[data-theme="light"] .hero-title {
  color: #111827;
  background: none;
  -webkit-text-fill-color: initial;
}

:root[data-theme="light"] .hero-subtitle {
  color: #4b5563;
}

:root[data-theme="light"] .section-header h2 {
  color: #111827;
  background: none;
  -webkit-text-fill-color: initial;
}

:root[data-theme="light"] .section-header p {
  color: #4b5563;
}

:root[data-theme="light"] .stat-item {
  border-left: 1px solid #ede9fe;
}
:root[data-theme="light"] .stat-item:first-child {
  border-left: none;
}
:root[data-theme="light"] .stat-num {
  color: #7c3aed;
}
:root[data-theme="light"] .stat-label {
  color: #6b7280;
}

:root[data-theme="light"] .btn-secondary {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}
:root[data-theme="light"] .btn-secondary:hover {
  background: #ede9fe;
}

:root[data-theme="light"] .section-title {
  color: #111827;
}

:root[data-theme="light"] .section-subtitle {
  color: #4b5563;
}

:root[data-theme="light"] .pricing-card, 
:root[data-theme="light"] .service-card, 
:root[data-theme="light"] .blog-card,
:root[data-theme="light"] .glass-card {
  background: #ffffff;
  border: 1px solid #ede9fe;
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.05), 0 8px 10px -6px rgba(124, 58, 237, 0.05);
}

:root[data-theme="light"] .blog-card-title {
  color: #1f2937;
}

:root[data-theme="light"] .pricing-header h3 {
  color: #111827;
}

:root[data-theme="light"] .pricing-header .price {
  color: #7c3aed;
}

:root[data-theme="light"] .feature-list li {
  color: #4b5563;
}

:root[data-theme="light"] .faq-question {
  color: #1f2937;
}

:root[data-theme="light"] .faq-answer {
  color: #4b5563;
}

:root[data-theme="light"] .footer-container {
  color: #ffffff;
}

:root[data-theme="light"] .app-footer {
  background: #111827 !important;
  color: #f9fafb !important;
}

:root[data-theme="light"] .footer-logo-text {
  color: #ffffff !important;
}

:root[data-theme="light"] .footer-links a {
  color: #9ca3af !important;
}

:root[data-theme="light"] .footer-links a:hover {
  color: #7c3aed !important;
}

:root[data-theme="light"] .footer-bottom p {
  color: #9ca3af !important;
}

:root[data-theme="light"] .footer-section h4 {
  color: #ffffff !important;
}

:root[data-theme="light"] .footer-section p {
  color: #9ca3af !important;
}

/* Update glow orbs to use dynamic variables */
.orb-1 {
  background: var(--orb-1-color, rgba(99, 102, 241, 0.12));
}
.orb-2 {
  background: var(--orb-2-color, rgba(139, 92, 246, 0.1));
}

/* Light mode specific card and input styling overrides */
:root[data-theme="light"] .glass-card {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 
              0 1px 3px rgba(15, 23, 42, 0.02),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.02);
}

:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder {
  color: #94a3b8;
}

:root[data-theme="light"] .app-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(248, 250, 252, 0.8);
}

:root[data-theme="light"] .nav-menu {
  background: rgba(248, 250, 252, 0.98);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Custom UI Elements: Order Closed Banner */
.order-closed-banner {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 14px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05);
  animation: slideDown 0.3s ease-out;
}

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

/* Admin Toggles & Custom buttons */
.btn-toggle.closed-active {
  background: #ef4444;
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

:root[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.05);
}

/* Table light mode tweaks */
:root[data-theme="light"] .admin-table th {
  color: #475569;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .admin-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

:root[data-theme="light"] .doc-title,
:root[data-theme="light"] .contact-email,
:root[data-theme="light"] .admin-title-area h1,
:root[data-theme="light"] .table-header-row h2 {
  color: #0f172a;
}

/* Responsive adjustments for very small screens (phones, mobile) */
@media (max-width: 480px) {
  .header-container {
    gap: 12px;
  }

  .glass-card {
    padding: 18px !important;
  }
  .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
  .checker-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .checker-tabs {
    width: 100%;
    justify-content: stretch;
  }
  .checker-tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
  }
  .app-header {
    padding: 12px 16px !important;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr !important;
  }

  .menu-toggle {
    padding: 6px;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .badge-premium {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .hero-image-area {
    padding: 8px !important;
  }

  .hero-stats .stat-num {
    font-size: 1.65rem;
  }

  .checker-header h2,
  .admin-header h2,
  .order-status-container h2 {
    font-size: 1.55rem !important;
  }

  .report-actions-right {
    flex-direction: column;
  }

  .report-actions-right .btn {
    width: 100%;
  }

  .gauge-outer {
    width: 110px;
    height: 110px;
  }

  .gauge-inner {
    width: 94px;
    height: 94px;
  }

  .score-number {
    font-size: 1.8rem;
  }

  .file-display {
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-title {
    font-size: 1.9rem !important;
  }

  .btn {
    width: 100%;
  }

  .btn-sm,
  .btn-lg {
    padding-left: 16px;
    padding-right: 16px;
  }

  .checker-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Custom Services and Packages Styling */
.services-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 30px auto 0 auto;
}

@media (max-width: 900px) {
  .services-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .services-grid-3 {
    grid-template-columns: 1fr;
  }
}

.services-grid-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 30px auto 0 auto;
}

.packages-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 30px auto 0 auto;
}

@media (max-width: 768px) {
  .packages-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Blog Section Styling */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.blog-card-image-placeholder {
  height: 160px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
  line-height: 1.4;
  flex-grow: 1;
}

.blog-card-link {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-link:hover {
  color: var(--accent-hover);
}

/* ==========================================================================
   CUSTOMER ACCOUNT MODALS & CHECKER IMPROVEMENTS
   ========================================================================== */

/* Checker Panel Enhancements for Light Theme */
:root[data-theme="light"] .checker-card {
  background: #ffffff !important;
  border: 1px solid #ede9fe !important;
  box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.08) !important;
  border-radius: 16px !important;
  padding: 35px 30px !important;
}

:root[data-theme="light"] .form-group label {
  color: #1f2937 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  margin-bottom: 8px !important;
  display: block;
}

:root[data-theme="light"] .form-input,
:root[data-theme="light"] select.form-input,
:root[data-theme="light"] input.form-input {
  background: #ffffff !important;
  border: 2px solid #e5e7eb !important;
  color: #1f2937 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 0.95rem !important;
  font-family: 'Inter', sans-serif !important;
  width: 100% !important;
  outline: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

:root[data-theme="light"] .form-input:focus,
:root[data-theme="light"] select.form-input:focus,
:root[data-theme="light"] input.form-input:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12) !important;
  background: #ffffff !important;
}

/* Drop-zone file uploader styling */
:root[data-theme="light"] .upload-dropzone {
  border: 2px dashed #c084fc !important;
  background: #fdfcff !important;
  border-radius: 12px !important;
  padding: 40px 20px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

:root[data-theme="light"] .upload-dropzone:hover {
  background: #f5f3ff !important;
  border-color: #7c3aed !important;
}

/* Customer Auth Modals styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.customer-modal {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 35px 30px;
  box-shadow: 0 25px 50px -12px rgba(124, 58, 237, 0.15);
  border: 1px solid #ede9fe;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  font-family: 'Inter', sans-serif;
  color: #1f2937;
}

.modal-overlay.active .customer-modal {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #111827;
  margin-bottom: 8px;
  text-align: center;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 24px;
}

.modal-footer-text {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  margin-top: 20px;
}

.modal-footer-text a {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 600;
}

.modal-footer-text a:hover {
  text-decoration: underline;
}

/* User profile header widget on navbar */
.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f3ff;
  border: 1px solid #ede9fe;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7c3aed;
}

.user-profile-quota {
  background: #7c3aed;
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.nav-user-logout {
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin-left: 8px;
}

.nav-user-logout:hover {
  text-decoration: underline;
}

