/* Custom Properties (Design System) */
:root {
  --bg-primary: #0a0813;
  --bg-secondary: #120f26;
  --bg-card: rgba(22, 19, 45, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #7c4dff;

  --text-main: #f5f4f8;
  --text-muted: #9e9bb6;
  --text-inverse: #0b0914;

  --color-primary: #7c4dff;
  --color-primary-glow: rgba(124, 77, 255, 0.35);
  --color-secondary: #00e5ff;
  --color-secondary-glow: rgba(0, 229, 255, 0.3);
  --color-success: #00e676;
  --color-success-glow: rgba(0, 230, 118, 0.25);
  --color-warning: #ffea00;
  --color-danger: #ff1744;

  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme variables */
:root.light-theme {
  --bg-primary: #f5f4fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.75);
  --border-color: rgba(0, 0, 0, 0.09);
  --border-focus: #6200ee;

  --text-main: #151329;
  --text-muted: #6f6b8a;
  --text-inverse: #ffffff;

  --color-primary: #6200ee;
  --color-primary-glow: rgba(98, 0, 238, 0.15);
  --color-secondary: #00a4bd;
  --color-secondary-glow: rgba(0, 164, 189, 0.15);
  --color-success: #00c853;
  --color-success-glow: rgba(0, 200, 83, 0.15);
  --color-warning: #e5b800;
  --color-danger: #d50000;
}

.light-theme .glow-1 {
  opacity: 0.12;
}

.light-theme .glow-2 {
  opacity: 0.12;
}

.light-theme .card,
.light-theme .admin-card-wide {
  box-shadow: 0 16px 48px rgba(21, 19, 41, 0.08);
}

.light-theme .qr-frame {
  background: #f0f0f5;
  border: 1px solid var(--border-color);
}

.light-theme .copy-wrapper input,
.light-theme .input-wrapper input,
.light-theme .input-wrapper select {
  background: rgba(0, 0, 0, 0.02);
}

.light-theme .input-wrapper input:focus,
.light-theme .input-wrapper select:focus {
  background: #ffffff;
}

.light-theme .summary-box {
  background: rgba(0, 0, 0, 0.02);
}

.light-theme .checkbox-custom {
  background: rgba(0, 0, 0, 0.02);
}

.light-theme .metric-card {
  background: rgba(0, 0, 0, 0.02);
}

.light-theme .admin-table {
  background: rgba(255, 255, 255, 0.5);
}

.light-theme .admin-table th {
  background: rgba(0, 0, 0, 0.02);
}

.light-theme .toast {
  background: var(--bg-secondary);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

/* Adjust letters and headings for light theme */
.light-theme .hero-copy h1,
.light-theme .main-title {
  background: linear-gradient(135deg, #151329 45%, #4614cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.light-theme .content-grid h2 {
  background: linear-gradient(135deg, #151329 50%, #4614cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
}

/* Background animated glow circles */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}

.glow-1 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: float-slow 18s infinite alternate;
}

.glow-2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
  bottom: -15%;
  right: -10%;
  animation: float-slow 24s infinite alternate-reverse;
}

@keyframes float-slow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, 30px) scale(1.1);
  }

  100% {
    transform: translate(-20px, -40px) scale(0.95);
  }
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 650px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 8px;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.logo {
  max-height: 75px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.subtitle {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--color-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 0 10px var(--color-secondary-glow);
}

.main-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(135deg, #ffffff 40%, #c1b9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Premium Card */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  padding: 36px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

/* Stepper Progress bar */
.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-smooth);
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.step-connector {
  flex-grow: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 12px;
  margin-bottom: 20px;
  /* offset label */
  z-index: 1;
  transition: var(--transition-smooth);
}

/* Stepper Active States */
.step.active .step-num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-main);
  box-shadow: 0 0 16px var(--color-primary-glow);
}

.step.active .step-label {
  color: var(--text-main);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.step.completed .step-num {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--text-inverse);
  box-shadow: 0 0 16px var(--color-secondary-glow);
}

.step.completed .step-label {
  color: var(--color-secondary);
}

.step-connector.completed {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

/* Forms & Steps */
.form-step {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-title i {
  color: var(--color-secondary);
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Inputs & Form layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: var(--transition-smooth);
}

.input-wrapper select {
  appearance: none;
  cursor: pointer;
}

select option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Focus and Validation */
.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 14px var(--color-primary-glow);
}

.input-wrapper input:focus+.input-icon,
.input-wrapper select:focus+.input-icon {
  color: var(--color-primary);
}

/* Form Validation Styles */
.form-group.error .input-wrapper input,
.form-group.error .input-wrapper select {
  border-color: var(--color-danger);
  background: rgba(255, 23, 68, 0.04);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.15);
}

.form-group.error .input-icon {
  color: var(--color-danger);
}

.error-msg {
  display: none;
  font-size: 11px;
  color: var(--color-danger);
  font-weight: 500;
}

.form-group.error .error-msg {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #5e25ff 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 18px var(--color-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 77, 255, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

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

.btn-success {
  background: linear-gradient(135deg, var(--color-success) 0%, #00b0ff 100%);
  border: none;
  color: var(--text-inverse);
  box-shadow: 0 4px 18px var(--color-success-glow);
  width: 100%;
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 230, 118, 0.4);
}

.btn-success:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.form-actions .btn {
  min-width: 130px;
}

.form-actions .btn-success {
  flex-grow: 1;
}

/* Spinner inside button */
.btn-spinner {
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-spinner {
  display: inline-block;
}

/* Specific CEP Lookup Layout */
.cep-group {
  position: relative;
}

.btn-inside {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  color: white;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.btn-inside:hover {
  background: #6a3aff;
}

.loading-cep {
  display: none;
  font-size: 11px;
  color: var(--color-secondary);
}

.loading-cep i {
  margin-right: 4px;
}

.loading-cep.active {
  display: inline-block;
}

/* Address Fields Group Sizes */
.num-group {
  grid-column: span 1;
}

.address-main-group {
  grid-column: span 1;
}

/* Step 3 - Ticket Summary Card */
.summary-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.summary-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

.summary-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-secondary);
  text-shadow: 0 0 10px var(--color-secondary-glow);
}

.summary-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}

.summary-item span {
  color: var(--text-muted);
}

.summary-item strong {
  color: var(--text-main);
  font-weight: 500;
}

/* Terms and Checkboxes */
.terms-container {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-label input {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
  margin-top: 2px;
}

.checkbox-label input:checked+.checkbox-custom {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.checkbox-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: white;
  display: none;
}

.checkbox-label input:checked+.checkbox-custom::after {
  display: block;
}

.checkbox-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.terms-link {
  color: var(--color-secondary);
  text-decoration: none;
  border-bottom: 1px dashed var(--color-secondary-glow);
}

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

.select-terms-error {
  margin-top: 8px;
}

/* ----------------------------------------------------
   PIX PAYMENT CARD
   ---------------------------------------------------- */
.payment-header {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  box-shadow: 0 0 16px var(--color-secondary-glow);
}

.pix-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 16px var(--color-secondary-glow);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.5);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 16px var(--color-secondary-glow);
  }
}

.payment-value-display {
  font-size: 16px;
  color: var(--text-muted);
}

.payment-value-display strong {
  color: var(--color-secondary);
  font-size: 20px;
}

.pix-instruction {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.qr-frame {
  background: white;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-frame img {
  width: 180px;
  height: 180px;
}

.timer-badge {
  background: rgba(255, 234, 0, 0.1);
  border: 1px solid var(--color-warning);
  color: var(--color-warning);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Copy Paste Field */
.copy-paste-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.copy-paste-container label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.copy-wrapper {
  display: flex;
  gap: 8px;
}

.copy-wrapper input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 13px;
  color: var(--text-muted);
  font-size: 13px;
  outline: none;
}

.btn-copy {
  background: var(--color-primary);
  border: none;
  color: white;
  border-radius: var(--radius-md);
  padding: 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-copy:hover {
  background: #6a3aff;
}

.copied-text {
  display: none;
}

.btn-copy.copied {
  background: var(--color-success);
  color: var(--text-inverse);
}

.btn-copy.copied .copy-text {
  display: none;
}

.btn-copy.copied .copied-text {
  display: inline-block;
}

/* Status Box polling info */
.status-box {
  background: rgba(124, 77, 255, 0.05);
  border: 1px solid rgba(124, 77, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pulse-indicator {
  position: relative;
  display: flex;
  margin-top: 4px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: ripple 1.5s infinite;
  left: 0;
  top: 0;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

.status-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-text strong {
  font-size: 13.5px;
  color: var(--text-main);
}

.status-text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ----------------------------------------------------
   SUCCESS SCREEN
   ---------------------------------------------------- */
.success-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px;
}

.success-icon-wrapper {
  margin-bottom: 24px;
}

/* Success Checkmark Animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.success-checkmark .check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid var(--color-success);
}

.success-checkmark .check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
}

.success-checkmark .check-icon .icon-line {
  height: 5px;
  background-color: var(--color-success);
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
  top: 46px;
  left: 19px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.success-checkmark .check-icon .icon-line.line-long {
  top: 38px;
  right: 18px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.success-checkmark .check-icon .icon-circle {
  top: -4px;
  left: -4px;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(0, 230, 118, 0.2);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  z-index: 2;
}

.success-checkmark .check-icon .icon-fix {
  top: 8px;
  width: 5px;
  left: 28px;
  position: absolute;
  z-index: 1;
  height: 85px;
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }

  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }

  100% {
    width: 25px;
    left: 19px;
    top: 46px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }

  100% {
    width: 47px;
    right: 18px;
    top: 38px;
  }
}

.success-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-subtitle {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 28px;
}

.success-details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  width: 100%;
  margin-bottom: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.success-details p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-main);
}

.success-details strong {
  color: var(--color-secondary);
}

.alert-box-success {
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-box-success i {
  color: var(--color-success);
  font-size: 18px;
  margin-top: 2px;
}

.alert-box-success div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alert-box-success strong {
  color: var(--text-main) !important;
  font-size: 13.5px;
}

.alert-box-success span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.success-actions {
  width: 100%;
}

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

/* Footer Section */
.footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

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

.admin-link {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  padding: 4px 8px;
  border-radius: 4px;
}

.admin-link:hover {
  color: var(--color-secondary);
  background: rgba(0, 229, 255, 0.05);
}

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

/* ----------------------------------------------------
   LANDING PAGE STYLES
   ---------------------------------------------------- */

.container.container-lg {
  max-width: 1000px;
}

.hero {
  width: 100%;
  margin-bottom: 48px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 48px;
  width: 100%;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-smooth);
  border-bottom: 1px dashed transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary-glow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

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

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--color-secondary);
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--color-secondary-glow);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 40%, #c1b9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: 32px;
  }
}

.hero-copy .subtitle {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-main);
  text-transform: none;
  letter-spacing: normal;
  text-shadow: none;
  margin-bottom: 4px;
}

.intro {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.primary-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
  text-decoration: none;
  background: linear-gradient(135deg, var(--color-primary) 0%, #5e25ff 50%, var(--color-secondary) 100%);
  background-size: 200% auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--color-primary-glow), 0 0 0 1px rgba(124, 77, 255, 0.1);
  align-self: flex-start;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.primary-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.primary-link:hover::before {
  animation: shine 1.5s infinite;
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

.primary-link:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(124, 77, 255, 0.45), 0 0 15px var(--color-secondary-glow);
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}

.primary-link:active {
  transform: translateY(-1px) scale(0.99);
}

.primary-link i {
  transition: var(--transition-smooth);
  font-size: 15px;
}

.primary-link:hover i {
  transform: scale(1.15) rotate(5deg);
  color: var(--color-secondary);
  text-shadow: 0 0 8px var(--color-secondary-glow);
}

.cta-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 32px;
  margin-bottom: 24px;
}

.cta-container .primary-link {
  align-self: center;
  padding: 18px 44px;
  font-size: 16.5px;
}

.hero-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.hero-panel span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-panel strong {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--color-secondary);
  text-shadow: 0 0 16px var(--color-secondary-glow);
}

.hero-panel p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.section-band {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 48px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

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

.content-grid h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 50%, #c1b9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-grid p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  font-size: 14.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--color-success);
  font-size: 18px;
  text-shadow: 0 0 8px var(--color-success-glow);
}

/* Theme Toggle Floating Button */
.theme-toggle-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
  outline: none;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 6px 18px var(--color-primary-glow);
}

.theme-toggle-btn i {
  font-size: 18px;
}

@media (max-width: 768px) {
  .theme-toggle-btn {
    top: auto;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.12);
    z-index: 1001;
  }

  .light-theme .theme-toggle-btn {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  }
}

/* ----------------------------------------------------
   CURRICULUM / SYLLABUS SECTION
   ---------------------------------------------------- */
.curriculum-section {
  margin-top: 12px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.curriculum-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curriculum-header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(135deg, #ffffff 40%, #c1b9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.light-theme .curriculum-header h2 {
  background: linear-gradient(135deg, #151329 45%, #4614cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.curriculum-intro {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.module-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  overflow: hidden;
}

details.module-card[open] {
  border-color: rgba(124, 77, 255, 0.35);
  box-shadow: 0 12px 40px rgba(124, 77, 255, 0.08);
}

.module-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: var(--transition-smooth);
}

.module-header::-webkit-details-marker {
  display: none;
}

.module-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.light-theme .module-header:hover {
  background: rgba(0, 0, 0, 0.01);
}

.module-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.module-badge {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.light-theme .module-badge {
  background: rgba(0, 164, 189, 0.08);
  border: 1px solid rgba(0, 164, 189, 0.2);
  color: var(--color-secondary);
}

.module-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

.module-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lesson-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.toggle-icon {
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  font-size: 14px;
  width: 14px;
  text-align: center;
}

details.module-card[open] .toggle-icon {
  transform: rotate(180deg);
  color: var(--color-secondary);
}

.module-content {
  padding: 0 24px 28px 24px;
  border-top: 1px solid var(--border-color);
  animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.lesson-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lesson-item:hover {
  border-color: rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.01);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.04);
}

.light-theme .lesson-item:hover {
  border-color: rgba(98, 0, 238, 0.2);
  background: rgba(98, 0, 238, 0.015);
  box-shadow: 0 8px 24px rgba(98, 0, 238, 0.04);
}

.lesson-item h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.4;
}

.lesson-topics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.lesson-topics li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.lesson-topics li::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--color-primary);
  font-size: 13px;
  margin-top: 1px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.lesson-item:hover .lesson-topics li::before {
  color: var(--color-secondary);
  transform: translateX(2px);
}

@media (max-width: 576px) {
  .module-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .module-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .module-meta {
    width: 100%;
    justify-content: space-between;
  }

  .module-content {
    padding: 0 20px 24px 20px;
  }

  .lessons-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}