@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Base Colors - Dark with grid pattern */
    --background: 0 0% 3%;
    --foreground: 48 96% 88%;

    --card: 0 0% 6%;
    --card-foreground: 48 96% 88%;

    --popover: 0 0% 6%;
    --popover-foreground: 48 96% 88%;

    /* Primary - Bright Yellow/Gold */
    --primary: 48 100% 60%;
    --primary-glow: 48 100% 70%;
    --primary-dark: 48 90% 50%;
    --primary-foreground: 0 0% 5%;

    /* Secondary - Amber */
    --secondary: 43 96% 56%;
    --secondary-foreground: 0 0% 5%;

    /* Accent - Electric Yellow */
    --accent: 54 100% 62%;
    --accent-foreground: 0 0% 5%;

    --muted: 0 0% 10%;
    --muted-foreground: 48 40% 60%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 98%;

    --border: 48 60% 25%;
    --input: 0 0% 15%;
    --ring: 48 100% 60%;

    --radius: 0.75rem;

    /* Gradients - Yellow themed */
    --gradient-primary: linear-gradient(135deg, hsl(48 100% 60%) 0%, hsl(54 100% 62%) 100%);
    --gradient-secondary: linear-gradient(135deg, hsl(43 96% 56%) 0%, hsl(48 100% 60%) 100%);
    --gradient-rainbow: linear-gradient(135deg, hsl(48 100% 60%) 0%, hsl(43 96% 56%) 50%, hsl(38 92% 50%) 100%);
    --gradient-dark: linear-gradient(180deg, hsl(0 0% 3%) 0%, hsl(0 0% 6%) 100%);
    
    /* Shadows & Effects - Yellow glow */
    --shadow-glow: 0 0 60px hsl(48 100% 60% / 0.4);
    --shadow-glow-strong: 0 0 80px hsl(48 100% 60% / 0.6);
    --shadow-elevation: 0 20px 60px hsl(48 100% 60% / 0.2);
    --shadow-card: 0 10px 40px hsl(48 100% 60% / 0.15);
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-antialiased: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fixed background layer */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -10;
    background: hsl(var(--background));
    pointer-events: none;
}

/* Animated grid background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -9;
    background-image: 
        linear-gradient(to right, hsl(var(--border) / 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, hsl(var(--border) / 0.08) 1px, transparent 1px);
    background-size: 4rem 4rem;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

html {
    background: radial-gradient(circle at 20% 20%, hsl(263 80% 50% / 0.15), transparent 35%),
        radial-gradient(circle at 80% 0%, hsl(180 100% 50% / 0.15), transparent 30%),
        radial-gradient(ellipse at center, hsl(48 100% 60% / 0.08), transparent 70%),
        hsl(var(--background));
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
    position: relative;
}

.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: 
        linear-gradient(0deg, hsl(48 60% 25% / 0.05) 1px, transparent 1px),
        linear-gradient(90deg, hsl(48 60% 25% / 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: hsl(var(--background) / 0.3);
    border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    min-height: 3.5rem;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.04em;
    font-family: 'Syne', 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 8px;
    }
    .nav-links a:not(.btn) {
        display: none;
    }
}

.nav-links a {
    padding: 8px 12px;
    border-radius: 10px;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: hsl(var(--foreground));
    background: hsl(255 255 255 / 0.04);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-strong);
}

.btn-ghost {
    background: hsl(255 255 255 / 0.06);
    color: hsl(var(--foreground));
    border-color: hsl(var(--border) / 0.5);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(var(--muted-foreground));
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 70px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, hsl(var(--primary) / 0.2), transparent 60%);
    filter: blur(40px);
    z-index: 0;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    place-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.1rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(120deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 60%, hsl(312 81% 60%) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 8s ease infinite;
}

.hero-lead {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
}

.hero-cta {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.note {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
}

.slideshow-section {
    margin: 40px 0 10px;
}

.slideshow {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: hsl(255 255 255 / 0.02);
    border: 1px solid hsl(var(--border) / 0.5);
    box-shadow: 0 16px 42px hsl(0 0% 0% / 0.35);
}

.slides-fade {
    position: relative;
    height: clamp(320px, 40vw, 440px);
}

.slide-frame {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    background: radial-gradient(circle at 50% 50%, hsl(255 255 255 / 0.04), transparent 55%);
}

.slide-frame img {
    width: 100%;
    max-height: clamp(320px, 40vw, 440px);
    object-fit: contain;
}

.slide-frame.active {
    opacity: 1;
    z-index: 1;
}

.section {
    padding: 64px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 28px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.01em;
}

.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 32px hsl(0 0% 0% / 0.35);
}

.muted {
    color: hsl(var(--muted-foreground));
}

.course-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.list-title {
    color: hsl(var(--primary));
    font-weight: 700;
    margin-bottom: 12px;
}

.list-items li {
    display: flex;
    gap: 8px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.list-items li span {
    color: hsl(var(--primary));
    font-weight: 700;
}

.grid-2 {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.badge-block {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: hsl(255 255 255 / 0.05);
    color: hsl(var(--foreground));
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    justify-items: center;
}

.testimonial {
    display: grid;
    gap: 8px;
    text-align: center;
}

.testimonial img {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 2px solid hsl(var(--primary) / 0.5);
    object-fit: cover;
}

.testimonial p {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    font-style: italic;
}

/* Mobile tweaks for testimonials */
@media (max-width: 640px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-items: stretch;
    }
    .testimonial {
        display: grid;
        grid-auto-flow: row;
        justify-items: center;
        align-items: start;
        text-align: center;
        gap: 8px;
        padding: 14px;
        border: 1px solid hsl(var(--border) / 0.4);
        border-radius: 12px;
        background: hsl(255 255 255 / 0.04);
    }
    .testimonial img {
        width: clamp(56px, 18vw, 72px);
        height: clamp(56px, 18vw, 72px);
    }
    .testimonial strong {
        font-size: clamp(1rem, 3.8vw, 1.1rem);
    }
    .testimonial p {
        font-size: clamp(0.9rem, 3.4vw, 1rem);
        line-height: 1.5;
    }
}

.footer {
    border-top: 1px solid hsl(var(--border) / 0.5);
    padding: 32px 0 40px;
    text-align: center;
    background: hsl(0 0% 3% / 0.7);
    margin-top: 40px;
}

.footer h3 {
    color: hsl(var(--primary));
    margin-bottom: 6px;
}

.form {
    display: grid;
    gap: 12px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: hsl(var(--muted-foreground));
    font-weight: 600;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border) / 0.5);
    background: hsl(255 255 255 / 0.04);
    color: hsl(var(--foreground));
}

input:focus, textarea:focus {
    outline: 2px solid hsl(var(--primary) / 0.4);
}

.status {
    display: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.status.show {
    display: block;
}

.status.success {
    background: hsl(142 71% 45% / 0.15);
    color: #bbf7d0;
}

.status.error {
    background: hsl(0 84% 60% / 0.15);
    color: #fecdd3;
}

.portal-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 12px;
}

.portal-card {
    width: min(640px, 100%);
    background: hsl(255 255 255 / 0.06);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 16px;
    box-shadow: 0 20px 50px hsl(0 0% 0% / 0.35);
    backdrop-filter: blur(12px);
}

.portal-card-inner {
    padding: 28px;
    display: grid;
    gap: 16px;
}

.perk-list {
    display: grid;
    gap: 10px;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.perk {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--foreground);
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.2), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.25), transparent 40%),
        linear-gradient(135deg, #0b1021, #0f172a);
}

.login-card {
    width: min(480px, 100%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.alert {
    padding: 12px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.12);
    color: #fecdd3;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-shell {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #0b1021, #0f172a, #0b1226);
}

.admin-nav {
    width: 240px;
    padding: 20px;
    border-right: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    gap: 10px;
}

.admin-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    border: 1px solid transparent;
}

.admin-nav a.active,
.admin-nav a:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--foreground);
}

.admin-main {
    flex: 1;
    padding: 22px;
    display: grid;
    gap: 18px;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    color: var(--muted);
    font-weight: 700;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.pill {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Email Portal - White Card Style */
.portal-card-white {
    width: min(640px, 100%);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.portal-header {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.portal-title {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .portal-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .portal-title {
        font-size: 3rem;
    }
}

.portal-subtitle {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .portal-subtitle {
        font-size: 1.125rem;
    }
}

.portal-perks-section {
    padding: 0 1.5rem 2rem;
    text-align: center;
}

.portal-perks-intro {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .portal-perks-intro {
        font-size: 1rem;
    }
}

.portal-perks-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.portal-perk-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #1f2937;
}

@media (min-width: 640px) {
    .portal-perk-item {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

.portal-perk-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.portal-form-section {
    padding: 0 1.5rem 2.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .portal-form-section {
        padding: 0 2.5rem 3rem;
    }
}

.portal-form-intro {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .portal-form-intro {
        font-size: 1rem;
    }
}

.portal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portal-form-group {
    width: 100%;
}

.portal-input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem;
    font-size: 1rem;
    color: #111827;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

@media (min-width: 640px) {
    .portal-input {
        font-size: 1.125rem;
    }
}

.portal-input::placeholder {
    color: #9ca3af;
}

.portal-input:focus {
    outline: 2px solid hsl(var(--primary) / 0.5);
    outline-offset: 0;
    background: #ffffff;
}

.portal-submit-btn {
    width: 100%;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (min-width: 640px) {
    .portal-submit-btn {
        font-size: 1.125rem;
    }
}

.portal-submit-btn:hover {
    background: hsl(var(--primary) / 0.9);
}

.portal-btn-icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 2;
}

.portal-status {
    display: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
}

.portal-status.show {
    display: block;
}

.portal-status.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #047857;
}

.portal-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #dc2626;
}
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 10px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .admin-nav { display: none; }
    .admin-shell { flex-direction: column; }
}
