/* ===================================
   TopGrammar Premium Design Layer v1.0
   Glassmorphism · Mesh Gradients · Micro-interactions · 3D Effects
   =================================== */

/* --- Enhanced Variables --- */
:root {
  --glow-primary: 0 0 30px rgba(27,58,92,0.15), 0 0 60px rgba(27,58,92,0.08);
  --glow-accent: 0 0 30px rgba(232,122,58,0.15), 0 0 60px rgba(232,122,58,0.08);
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(42,90,140,0.15) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 20%, rgba(232,122,58,0.1) 0%, transparent 50%),
                   radial-gradient(ellipse at 50% 80%, rgba(27,58,92,0.08) 0%, transparent 50%);
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.3);
  --glass-blur: blur(20px);
  --premium-shadow: 0 1px 1px rgba(0,0,0,0.02), 0 2px 4px rgba(0,0,0,0.02), 0 4px 8px rgba(0,0,0,0.03),
                    0 8px 16px rgba(0,0,0,0.04), 0 16px 32px rgba(0,0,0,0.05);
  --premium-shadow-hover: 0 2px 4px rgba(0,0,0,0.02), 0 4px 8px rgba(0,0,0,0.03), 0 8px 16px rgba(0,0,0,0.04),
                          0 16px 32px rgba(0,0,0,0.06), 0 32px 64px rgba(0,0,0,0.08);
  --accent-gradient: linear-gradient(135deg, #E87A3A 0%, #F5A623 50%, #E87A3A 100%);
  --primary-gradient: linear-gradient(135deg, #0F2640 0%, #1B3A5C 40%, #2A5A8C 100%);
}

/* ========================
   Hero — Mesh Gradient + Floating Shapes
   ======================== */
.hero {
  background: linear-gradient(160deg, #0A1C32 0%, #132D4F 30%, #1B3A5C 50%, #2A5A8C 80%, #1B3A5C 100%);
  background-size: 400% 400%;
  animation: heroMeshShift 20s ease infinite;
  min-height: 650px;
}
@keyframes heroMeshShift {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 50% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
}

/* Floating Orbs */
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,122,58,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: heroOrbFloat 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.05); }
  66% { transform: translate(15px, -15px) scale(0.95); }
}

.hero__title {
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.hero__title em {
  background: linear-gradient(135deg, #F5A623 0%, #FFCF48 50%, #E87A3A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

/* Hero Stats Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-5);
  background: rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-5);
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* Hero Buttons Premium */
.hero__btn--primary {
  background: var(--accent-gradient);
  background-size: 200% auto;
  box-shadow: 0 4px 20px rgba(232,122,58,0.35);
  position: relative;
  overflow: hidden;
}
.hero__btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: rotate(45deg);
  animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
  0% { transform: rotate(45deg) translateX(-200%); }
  50%, 100% { transform: rotate(45deg) translateX(200%); }
}
.hero__btn--primary:hover {
  background-position: right center;
  box-shadow: 0 6px 30px rgba(232,122,58,0.45);
  transform: translateY(-3px);
}

.hero__btn--outline {
  border: 2px solid rgba(255,255,255,0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.05);
}
.hero__btn--outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

/* ========================
   Glassmorphism Cards
   ======================== */
.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--premium-shadow);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.glass-card:hover {
  box-shadow: var(--premium-shadow-hover);
  transform: translateY(-6px);
}

/* ========================
   Premium Feature Cards
   ======================== */
.feature-card {
  position: relative;
  border: 1px solid transparent;
  background: linear-gradient(var(--color-card-bg), var(--color-card-bg)) padding-box,
              linear-gradient(135deg, var(--color-border), transparent 60%) border-box;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary-light));
  background-size: 200% auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card:hover::before {
  opacity: 1;
  animation: gradientSlide 2s linear infinite;
}
@keyframes gradientSlide {
  to { background-position: 200% center; }
}
.feature-card:hover {
  border-color: transparent;
  background: linear-gradient(var(--color-card-bg), var(--color-card-bg)) padding-box,
              linear-gradient(135deg, var(--color-accent), var(--color-primary-light), var(--color-accent)) border-box;
  box-shadow: var(--premium-shadow-hover);
}

/* Premium Feature Icon */
.feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, rgba(27,58,92,0.08), rgba(232,122,58,0.08));
  color: var(--color-primary);
  transition: all 0.4s ease;
  position: relative;
}
.feature-card:hover .feature-card__icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 20px rgba(27,58,92,0.25);
}

/* ========================
   Premium Stats Bar
   ======================== */
.stats-bar {
  background: var(--primary-gradient);
  border: none;
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  box-shadow: 0 8px 40px rgba(27,58,92,0.25);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.stats-bar__value {
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  color: #fff;
  line-height: 1;
  position: relative;
}
.stats-bar__label {
  color: rgba(255,255,255,0.75);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}
.stats-bar__grid > div + div {
  border-left-color: rgba(255,255,255,0.15);
}
.stats-bar__sub {
  color: rgba(245,166,35,0.9);
}

/* ========================
   Premium Quick Buttons
   ======================== */
.quick-btn {
  position: relative;
  overflow: hidden;
}
.quick-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(232,122,58,0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.quick-btn:hover::before {
  opacity: 1;
}
.quick-btn__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232,122,58,0.05), rgba(232,122,58,0.12));
}
.quick-btn:hover .quick-btn__icon {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(232,122,58,0.3);
}

/* ========================
   Premium Course Cards
   ======================== */
.course-card {
  position: relative;
  overflow: hidden;
}
.course-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  background-size: 200% auto;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.course-card:hover::after {
  transform: scaleX(1);
}

.course-card__badge {
  background: var(--accent-gradient);
  background-size: 200% auto;
  box-shadow: 0 2px 8px rgba(232,122,58,0.3);
}

/* ========================
   Premium Buttons
   ======================== */
.btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--accent-gradient);
  background-size: 200% auto;
  transition: all 0.3s ease;
}
.btn--primary:hover {
  background-position: right center;
  box-shadow: 0 4px 16px rgba(232,122,58,0.3);
  transform: translateY(-2px);
}
.btn--secondary {
  position: relative;
  overflow: hidden;
}
.btn--secondary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: rotate(45deg) translateX(-200%);
  transition: transform 0.6s ease;
}
.btn--secondary:hover::after {
  transform: rotate(45deg) translateX(200%);
}

/* ========================
   Premium Badges
   ======================== */
.badge--accent {
  background: linear-gradient(135deg, rgba(232,122,58,0.1), rgba(245,166,35,0.15));
  border: 1px solid rgba(232,122,58,0.2);
}
.badge--primary {
  background: linear-gradient(135deg, rgba(27,58,92,0.08), rgba(42,90,140,0.12));
  border: 1px solid rgba(27,58,92,0.15);
}

/* ========================
   Campus Select Premium
   ======================== */
.campus-select-card {
  background: linear-gradient(145deg, var(--color-card-bg), var(--color-bg-alt));
  border: 2px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.campus-select-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(232,122,58,0.05), transparent, rgba(27,58,92,0.05), transparent);
  animation: campusCardRotate 8s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.campus-select-card:hover::before {
  opacity: 1;
}
@keyframes campusCardRotate {
  to { transform: rotate(360deg); }
}
.campus-select-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--glow-primary);
}
.campus-select-card.is-selected {
  box-shadow: var(--glow-accent);
}

/* ========================
   Section Backgrounds
   ======================== */
.section--mesh {
  position: relative;
}
.section--mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
}
.section--mesh > .container {
  position: relative;
  z-index: 1;
}

/* Decorative Blob */
.section--blob {
  position: relative;
  overflow: hidden;
}
.section--blob::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,122,58,0.06) 0%, transparent 70%);
  bottom: -200px;
  left: -100px;
  pointer-events: none;
}

/* ========================
   Gallery Premium
   ======================== */
.campus-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.campus-gallery__img {
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.campus-gallery__item:hover .campus-gallery__img {
  transform: scale(1.05);
}
.campus-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.campus-gallery__item:hover::after {
  opacity: 1;
}

/* ========================
   Pricing Premium
   ======================== */
.pricing-card {
  position: relative;
  overflow: hidden;
}
.pricing-card--featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--color-card-bg), var(--color-card-bg)) padding-box,
              linear-gradient(135deg, var(--color-accent), var(--color-primary-light), var(--color-accent)) border-box;
  box-shadow: var(--glow-accent);
}
.pricing-card--featured::before {
  background: var(--accent-gradient);
  background-size: 200% auto;
  animation: gradientSlide 3s linear infinite;
}

/* ========================
   Form Premium
   ======================== */
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,58,92,0.12), 0 1px 2px rgba(0,0,0,0.05);
}

/* ========================
   Scroll Progress Bar
   ======================== */
.scroll-progress {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent-gradient);
  background-size: 200% auto;
  animation: gradientSlide 2s linear infinite;
  z-index: 1001;
  transition: width 100ms linear;
}

/* ========================
   Number Counter Animation
   ======================== */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.stats-bar.is-visible .stats-bar__value {
  animation: countUp 0.6s ease forwards;
}
.stats-bar.is-visible .stats-bar__grid > div:nth-child(2) .stats-bar__value { animation-delay: 0.15s; }
.stats-bar.is-visible .stats-bar__grid > div:nth-child(3) .stats-bar__value { animation-delay: 0.3s; }
.stats-bar.is-visible .stats-bar__grid > div:nth-child(4) .stats-bar__value { animation-delay: 0.45s; }

/* ========================
   Premium Testimonial
   ======================== */
.testimonial-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  box-shadow: var(--premium-shadow);
  transition: all 0.4s ease;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card:hover {
  box-shadow: var(--premium-shadow-hover);
  transform: translateY(-4px);
}
.testimonial-card__text {
  font-size: var(--text-base);
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: var(--space-5);
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}
.testimonial-card__name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

/* ========================
   Premium CTA Section
   ======================== */
.cta-premium {
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,122,58,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(42,90,140,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.cta-premium > * {
  position: relative;
  z-index: 1;
}
.cta-premium__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: #fff;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.cta-premium__desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

/* ========================
   Floating Elements
   ======================== */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes floatReverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(15px) rotate(-3deg); }
}
.float { animation: float 6s ease-in-out infinite; }
.float-reverse { animation: floatReverse 7s ease-in-out infinite; }

/* Hero decorative shapes */
.hero__shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.hero__shape--1 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  top: 10%;
  right: 5%;
  animation: float 10s ease-in-out infinite;
}
.hero__shape--2 {
  width: 150px;
  height: 150px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: rgba(232,122,58,0.06);
  bottom: 15%;
  right: 15%;
  animation: floatReverse 12s ease-in-out infinite;
}
.hero__shape--3 {
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20%;
  top: 30%;
  right: 30%;
  animation: float 8s ease-in-out infinite;
  transform-origin: center;
}

/* ========================
   Responsive Premium
   ======================== */
@media (max-width: 768px) {
  .hero { min-height: 550px; }
  .hero__shape { display: none; }
  .stats-bar { padding: var(--space-8) var(--space-4); }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .stats-bar__grid > div + div { border-left: none; }
  .stats-bar__grid > div:nth-child(3),
  .stats-bar__grid > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--space-6); }
  .stats-bar__value { font-size: var(--text-4xl); }
  .cta-premium { padding: var(--space-10) var(--space-4); border-radius: var(--radius-lg); }
  .cta-premium__title { font-size: var(--text-3xl); }
  .testimonial-card { padding: var(--space-6); }
}

@media (max-width: 480px) {
  .stats-bar__value { font-size: var(--text-3xl); }
  .hero__badge { font-size: var(--text-xs); }
}

/* ========================
   Dark Mode Premium
   ======================== */
.dark .hero,
html:not(.light) .hero {
  background: linear-gradient(160deg, #060E18 0%, #0A1C32 30%, #132D4F 50%, #1B3A5C 80%, #0F2640 100%);
}
.dark .glass-card,
html:not(.light) .glass-card {
  --glass-bg: rgba(30,30,58,0.7);
  --glass-border: rgba(255,255,255,0.08);
}
.dark .feature-card,
html:not(.light) .feature-card {
  background: linear-gradient(var(--color-card-bg), var(--color-card-bg)) padding-box,
              linear-gradient(135deg, rgba(255,255,255,0.08), transparent 60%) border-box;
}
.dark .feature-card:hover,
html:not(.light) .feature-card:hover {
  background: linear-gradient(var(--color-card-bg), var(--color-card-bg)) padding-box,
              linear-gradient(135deg, var(--color-accent), var(--color-primary-light), var(--color-accent)) border-box;
}
.dark .stats-bar,
html:not(.light) .stats-bar {
  background: linear-gradient(135deg, #060E18 0%, #0A1C32 40%, #132D4F 100%);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.dark .campus-select-card,
html:not(.light) .campus-select-card {
  background: linear-gradient(145deg, var(--color-card-bg), var(--color-bg-alt));
}
.dark .cta-premium,
html:not(.light) .cta-premium {
  background: linear-gradient(135deg, #060E18 0%, #0A1C32 40%, #132D4F 100%);
}

@media (prefers-color-scheme: dark) {
  html:not(.light) .glass-card {
    --glass-bg: rgba(30,30,58,0.7);
    --glass-border: rgba(255,255,255,0.08);
  }
}

/* ========================
   Smooth Entrance Animations
   ======================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.anim-fade-up { animation: fadeInUp 0.7s ease forwards; }
.anim-fade-left { animation: fadeInLeft 0.7s ease forwards; }
.anim-fade-right { animation: fadeInRight 0.7s ease forwards; }
.anim-scale { animation: scaleIn 0.5s ease forwards; }

/* ===================================
   Premium Design Layer v2.0
   Header · Footer · Auth · Dashboard · 404 · Timeline · Tabs
   =================================== */

/* ========================
   Enhanced Header
   ======================== */
.site-header {
  border-bottom: none;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), rgba(232,122,58,0.3), var(--color-border), transparent);
}
.site-header--scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.site-nav__link {
  position: relative;
}
.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.site-nav__link:hover::after,
.site-nav__link--active::after {
  width: 60%;
}
.site-nav__cta {
  background: var(--accent-gradient, linear-gradient(135deg, #E87A3A, #F5A623));
  background-size: 200% auto;
  transition: all 0.3s ease;
}
.site-nav__cta:hover {
  background-position: right center;
  box-shadow: 0 4px 16px rgba(232,122,58,0.3);
  transform: translateY(-1px);
}

/* Enhanced Mobile Menu */
@media (max-width: 768px) {
  .site-nav {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  }
  .site-nav__link {
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
  }
  .site-nav__link:hover {
    background: rgba(232,122,58,0.06);
    padding-left: calc(var(--space-4) + 4px);
  }
  .site-nav__link::after { display: none; }
}

/* ========================
   Enhanced Footer
   ======================== */
.site-footer {
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary-light), var(--color-accent), var(--color-primary));
  background-size: 400% auto;
  animation: gradientSlide 6s linear infinite;
}
.site-footer__link {
  position: relative;
  transition: all 0.2s ease;
}
.site-footer__link:hover {
  padding-left: 4px;
}

/* ========================
   Premium Auth Pages (Login/Register)
   ======================== */
.auth-wrap {
  background: var(--gradient-mesh, var(--color-bg));
  position: relative;
}
.auth-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(27,58,92,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(232,122,58,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.auth-card {
  position: relative;
  z-index: 1;
  border: 1px solid transparent;
  background: linear-gradient(var(--color-card-bg), var(--color-card-bg)) padding-box,
              linear-gradient(135deg, var(--color-border), transparent 50%, var(--color-border)) border-box;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 8px 16px rgba(0,0,0,0.04), 0 16px 32px rgba(0,0,0,0.06), 0 32px 64px rgba(0,0,0,0.08);
}
.auth-card__title {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Social login divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  color: var(--color-text-light);
  font-size: var(--text-xs);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ========================
   Premium Dashboard Cards (MyPage)
   ======================== */
.dashboard-hero {
  background: var(--primary-gradient, linear-gradient(135deg, #0F2640, #1B3A5C, #2A5A8C));
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.dashboard-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(232,122,58,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.dashboard-stat {
  background: rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  transition: all 0.3s ease;
}
.dashboard-stat:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* ========================
   Premium Tabs
   ======================== */
.tabs {
  position: relative;
  border-bottom: 2px solid var(--color-border-light);
  gap: 0;
}
.tab-btn {
  position: relative;
  padding: var(--space-3) var(--space-6);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.tab-btn:hover {
  color: var(--color-primary);
  background: rgba(27,58,92,0.03);
}
.tab-btn.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  background: rgba(232,122,58,0.03);
}

/* ========================
   Premium 404 Page
   ======================== */
.error-page {
  min-height: calc(100vh - var(--header-height) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: var(--gradient-mesh, var(--color-bg));
}
.error-card {
  text-align: center;
  max-width: 500px;
  position: relative;
}
.error-card__code {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-2);
  letter-spacing: -0.05em;
  position: relative;
}
.error-card__code::after {
  content: '404';
  position: absolute;
  inset: 0;
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(30px);
  opacity: 0.3;
}
.error-card__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}
.error-card__desc {
  color: var(--color-text-sub);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}
.error-card__links {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.error-card__divider {
  width: 48px;
  height: 2px;
  background: var(--color-border);
  margin: var(--space-6) auto;
}

/* ========================
   Premium Timeline / Roadmap
   ======================== */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-primary), var(--color-accent));
}
.timeline__item {
  position: relative;
  padding-bottom: var(--space-8);
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 3px rgba(232,122,58,0.2);
  z-index: 1;
}
.timeline__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}
.timeline__desc {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ========================
   Tier / Access Level Cards
   ======================== */
.tier-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.tier-guide__card {
  background: var(--color-card-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.tier-guide__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}
.tier-guide__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--premium-shadow-hover);
}
.tier-guide__card:hover::before {
  opacity: 1;
}
.tier-guide__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}
.tier-guide__label {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}
.tier-guide__desc {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .tier-guide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tier-guide { grid-template-columns: 1fr; }
}

/* ========================
   Resource Card Premium
   ======================== */
.resource-card {
  position: relative;
  overflow: hidden;
}
.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.resource-card:hover::before {
  opacity: 1;
}

/* ========================
   Page Hero (sub-pages)
   ======================== */
.hero--compact {
  min-height: 280px;
  text-align: center;
}
.hero--compact .hero__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

/* ========================
   Animated Number Counter
   ======================== */
.counter-value {
  display: inline-block;
  transition: all 0.6s ease;
}
.counter-value.is-counting {
  animation: countPulse 0.3s ease;
}
@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ========================
   Premium Notification Bar
   ======================== */
.notice-bar {
  background: linear-gradient(135deg, var(--color-accent), #F5A623);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  position: relative;
  z-index: 1001;
}
.notice-bar a {
  color: #fff;
  text-decoration: underline;
  font-weight: var(--weight-semibold);
}

/* ========================
   Premium Comparison Table
   ======================== */
.tier-comparison {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tier-comparison__cell {
  padding: var(--space-5);
  text-align: center;
  border-right: 1px solid var(--color-border-light);
  transition: background 0.3s ease;
}
.tier-comparison__cell:last-child {
  border-right: none;
}
.tier-comparison__cell:hover {
  background: var(--color-bg-alt);
}
.tier-comparison__label {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}
.tier-comparison__desc {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .tier-comparison { grid-template-columns: repeat(2, 1fr); }
  .tier-comparison__cell:nth-child(2) { border-right: none; }
  .tier-comparison__cell:nth-child(1),
  .tier-comparison__cell:nth-child(2) { border-bottom: 1px solid var(--color-border-light); }
}

/* ========================
   Homework / Task List Premium
   ======================== */
.hw-item {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.hw-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-border);
  transition: background 0.3s ease;
}
.hw-item:hover {
  border-color: var(--color-primary-light);
  transform: translateX(4px);
}
.hw-item:hover::before {
  background: var(--color-accent);
}

/* ========================
   Section Accent Top Line
   ======================== */
.section-accent-top {
  position: relative;
}
.section-accent-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(200px, 30%);
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  border-radius: 2px;
}

/* ========================
   Evaluation Score Ring
   ======================== */
.score-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.score-ring__circle {
  transform: rotate(-90deg);
}
.score-ring__bg {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 6;
}
.score-ring__fill {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}
.score-ring__label {
  position: absolute;
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--color-accent);
}

/* ========================
   Page Transition
   ======================== */
.page-enter {
  animation: pageEnter 0.4s ease forwards;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================
   Smooth Image Reveal
   ======================== */
.img-reveal {
  position: relative;
  overflow: hidden;
}
.img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  transform-origin: right;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.img-reveal.is-visible::after {
  transform: scaleX(0);
}

/* ========================
   Subtle Noise Texture
   ======================== */
.texture-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
