/* ============================================
   SkillsAge Certificate Generator — Style System
   Premium design with Light & Dark themes
   Inspired by plexxel.com design language
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 2rem;
    --fs-4xl: 2.75rem;
    --fs-5xl: 3.5rem;

    --section-py: 120px;
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s var(--ease);
}

/* ---- Light Theme ---- */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fb;
    --bg-tertiary: #f1f3f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fb;
    --bg-nav: rgba(255, 255, 255, 0.85);
    --bg-input: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --border-input: #d1d5db;

    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-soft: rgba(99, 102, 241, 0.08);
    --accent-glow: rgba(99, 102, 241, 0.15);

    --gradient-start: #6366f1;
    --gradient-mid: #8b5cf6;
    --gradient-end: #a855f7;

    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.1);
    --error: #ef4444;
    --error-soft: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.1);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ---- Dark Theme ---- */
[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --bg-card: #141420;
    --bg-card-hover: #1a1a2a;
    --bg-nav: rgba(10, 10, 15, 0.9);
    --bg-input: #1a1a24;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    --border: #1e293b;
    --border-hover: #334155;
    --border-input: #2d3748;

    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-soft: rgba(129, 140, 248, 0.1);
    --accent-glow: rgba(129, 140, 248, 0.2);

    --gradient-start: #818cf8;
    --gradient-mid: #a78bfa;
    --gradient-end: #c084fc;

    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.1);
    --error: #f87171;
    --error-soft: rgba(248, 113, 113, 0.1);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.1);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.5s;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--accent-glow), 0 0 60px var(--accent-soft);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 18px;
    font-size: var(--fs-sm);
}

.btn-lg {
    padding: 14px 32px;
    font-size: var(--fs-md);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), border var(--transition);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: var(--fs-xl);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

[data-theme="light"] .icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: none;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    border: 1px solid var(--border);
}

.role-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 100px;
}

.role-tag.admin {
    background: var(--error-soft);
    color: var(--error);
}

.role-tag.user {
    background: var(--success-soft);
    color: var(--success);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    padding: 140px 0 80px;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    margin-bottom: 24px;
}

.hero-title {
    font-size: var(--fs-5xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 64px;
}

.hero-visual {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

/* Certificate Mockup */
.cert-mockup {
    position: relative;
    z-index: 1;
}

.cert-mockup-inner {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}

.cert-header-bar {
    background: var(--bg-tertiary);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.cert-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.cert-dot.red {
    background: #ef4444;
}

.cert-dot.yellow {
    background: #f59e0b;
}

.cert-dot.green {
    background: #22c55e;
}

.cert-tab {
    margin-left: 8px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--accent);
    padding: 3px 12px;
    background: var(--accent-soft);
    border-radius: 4px;
}

.cert-preview-content {
    padding: 40px 48px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.cert-preview-badge {
    font-size: var(--fs-xl);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
}

.cert-preview-subtitle {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.cert-preview-label {
    font-size: var(--fs-sm);
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.cert-preview-name {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cert-preview-line {
    width: 200px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 16px;
    border-radius: 1px;
}

.cert-preview-text {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.cert-preview-dates {
    display: flex;
    gap: 24px;
    justify-content: center;
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.cert-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.cert-preview-qr {
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-tertiary);
}

.cert-preview-seal {
    font-size: 36px;
}

.cert-preview-id {
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
    font-family: monospace;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 16px;
}

.accent-badge {
    background: var(--warning-soft);
    color: var(--warning);
}

.section-header h2 {
    font-size: var(--fs-4xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-header p {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

/* ========================================
   FEATURES
   ======================================== */
.features {
    padding: var(--section-py) 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition);
    position: relative;
}

.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--accent);
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
    padding: var(--section-py) 0;
    background: var(--bg-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    position: relative;
}

.step-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-4px);
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.step-card h3 {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   CERTIFICATES SECTION
   ======================================== */
.certificates-section {
    padding: var(--section-py) 0;
    background: var(--bg-secondary);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.cert-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-4px);
}

.cert-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 16px;
}

.cert-card-badge.skillsage {
    background: var(--warning-soft);
    color: var(--warning);
}

.cert-card-preview {
    height: 140px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.oracle-preview {
    background: linear-gradient(135deg, #667eea22, #764ba222);
    border: 1px solid var(--border);
}

.skillsage-preview {
    background: linear-gradient(135deg, #f59e0b22, #ef444422);
    border: 1px solid var(--border);
}

.cert-card-icon {
    color: var(--text-tertiary);
    opacity: 0.5;
}

.cert-card h3 {
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: 8px;
}

.cert-card p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.cert-fields {
    list-style: none;
}

.cert-fields li {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    padding: 4px 0;
}

/* ========================================
   CTA
   ======================================== */
.cta {
    padding: var(--section-py) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: var(--fs-4xl);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo-text {
    font-size: var(--fs-xl);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
    text-align: center;
}

/* ========================================
   LOGIN PAGE
   ======================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.login-header h1 {
    font-size: var(--fs-2xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    font-size: var(--fs-sm);
    color: var(--text-tertiary);
    margin-top: 4px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    font-size: var(--fs-sm);
    color: var(--text-tertiary);
}

.login-footer a:hover {
    color: var(--accent);
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-input);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.input-wrapper svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font);
    font-size: var(--fs-md);
    color: var(--text-primary);
}

.input-wrapper input::placeholder {
    color: var(--text-tertiary);
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-input);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: var(--fs-md);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    transition: all var(--transition);
    padding-right: 36px;
}

.select-wrapper::after {
    content: '▾';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.select-wrapper select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-hint {
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
    margin-top: 2px;
}

.form-row {
    margin-bottom: 16px;
}

.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row.three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-actions {
    margin-top: 8px;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-error {
    background: var(--error-soft);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ========================================
   DASHBOARD
   ======================================== */
.dashboard-page {
    padding-top: 64px;
}

.dashboard-main {
    padding: 40px 0 80px;
    min-height: calc(100vh - 64px);
}

.dashboard-section {
    margin-bottom: 48px;
}

.section-header-dash {
    margin-bottom: 24px;
}

.section-header-dash h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: 4px;
}

.section-header-dash h2 svg {
    color: var(--accent);
}

.section-header-dash p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-left: 36px;
}

/* Form Card */
.cert-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.form-card-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* Data Table */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table th {
    padding: 12px 16px;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 10px;
    border-radius: 100px;
}

.type-badge.oracle_p6 {
    background: var(--accent-soft);
    color: var(--accent);
}

.type-badge.skillsage_p6 {
    background: var(--warning-soft);
    color: var(--warning);
}

.serial-code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-primary);
}

.dates-cell {
    font-size: var(--fs-xs) !important;
}

.date-cell {
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 40px !important;
    color: var(--text-tertiary) !important;
    font-style: italic;
}

.actions-cell {
    display: flex;
    gap: 6px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.btn-icon.danger:hover {
    color: var(--error);
    border-color: var(--error);
    background: var(--error-soft);
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s var(--ease);
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s var(--ease);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    margin-bottom: 20px;
}

.modal-icon.success {
    color: var(--success);
}

.modal-icon.error {
    color: var(--error);
}

.modal-card h3 {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-card p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-details {
    text-align: left;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    font-size: var(--fs-sm);
}

.modal-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.modal-details .detail-label {
    color: var(--text-tertiary);
}

.modal-details .detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ========================================
   VERIFY PAGE
   ======================================== */
.verify-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 40px 24px;
}

.verify-wrapper {
    max-width: 520px;
    width: 100%;
}

.verify-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.verify-card.error-card {
    border-color: var(--error);
}

.verify-icon {
    margin-bottom: 20px;
}

.verify-icon.success {
    color: var(--success);
}

.verify-icon.error {
    color: var(--error);
}

.verify-badge {
    display: inline-block;
    background: var(--success-soft);
    color: var(--success);
    font-size: var(--fs-sm);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.verify-card h1 {
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: 12px;
}

.verify-type {
    margin-bottom: 24px;
}

.verify-details {
    text-align: left;
    margin-bottom: 28px;
}

.verify-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.verify-details .detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: var(--fs-sm);
    color: var(--text-tertiary);
    font-weight: 500;
}

.detail-value {
    font-size: var(--fs-sm);
    color: var(--text-primary);
    font-weight: 500;
}

.detail-value code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
}

.verify-actions {
    margin-bottom: 24px;
}

.verify-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.verify-footer p {
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.verify-footer a {
    font-size: var(--fs-sm);
    color: var(--accent);
    font-weight: 500;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: var(--fs-4xl);
    }

    .form-row.three-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 80px;
    }

    .nav-links {
        display: none;
    }

    .user-badge {
        display: none;
    }

    .hero-title {
        font-size: var(--fs-3xl);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .certs-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: var(--fs-3xl);
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }

    .form-row.two-col {
        grid-template-columns: 1fr;
    }

    .cert-form-card {
        padding: 24px 16px;
    }

    .login-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .cert-preview-content {
        padding: 24px 20px;
    }
}