/**
 * TempCover Theme — Premium UI/UX
 * Modern, accessible insurance platform with world-class design.
 * Mobile-first, performant, WCAG 2.1 AA compliant.
 */

/* ── Google Fonts Import ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Custom Properties ──────────────────────────── */
:root {
    /* Brand palette */
    --tc-primary: #1E40AF;
    --tc-primary-light: #3B82F6;
    --tc-primary-dark: #1e3a8a;
    --tc-secondary: #3B82F6;
    --tc-accent: #10B981;
    --tc-accent-light: #34d399;

    /* Neutral scale */
    --tc-dark: #0f172a;
    --tc-gray-900: #1e293b;
    --tc-gray-800: #1e293b;
    --tc-gray-700: #334155;
    --tc-gray-600: #475569;
    --tc-gray-500: #64748b;
    --tc-gray-400: #94a3b8;
    --tc-gray-300: #cbd5e1;
    --tc-gray-200: #e2e8f0;
    --tc-gray-100: #f1f5f9;
    --tc-gray-50: #f8fafc;
    --tc-white: #ffffff;

    /* Semantic */
    --tc-danger: #ef4444;
    --tc-danger-light: #fef2f2;
    --tc-warning: #f59e0b;
    --tc-warning-light: #fffbeb;
    --tc-success: #10b981;
    --tc-success-light: #ecfdf5;
    --tc-info: #3b82f6;
    --tc-info-light: #eff6ff;

    /* Spacing */
    --tc-space-xs: 4px;
    --tc-space-sm: 8px;
    --tc-space-md: 16px;
    --tc-space-lg: 24px;
    --tc-space-xl: 32px;
    --tc-space-2xl: 48px;
    --tc-space-3xl: 64px;
    --tc-space-4xl: 96px;

    /* Radius */
    --tc-radius-sm: 6px;
    --tc-radius: 10px;
    --tc-radius-lg: 16px;
    --tc-radius-xl: 24px;
    --tc-radius-2xl: 32px;
    --tc-radius-full: 9999px;

    /* Shadows */
    --tc-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --tc-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --tc-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --tc-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --tc-shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
    --tc-shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.15);
    --tc-shadow-2xl: 0 25px 60px -15px rgba(0,0,0,0.2);
    --tc-shadow-primary: 0 4px 14px rgba(30,64,175,0.25);
    --tc-shadow-primary-lg: 0 8px 25px rgba(30,64,175,0.3);

    /* Transitions */
    --tc-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --tc-ease-in: cubic-bezier(0.4, 0, 1, 1);
    --tc-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --tc-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --tc-transition: 0.25s var(--tc-ease);
    --tc-transition-fast: 0.15s var(--tc-ease);
    --tc-transition-slow: 0.4s var(--tc-ease);

    /* Typography */
    --tc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tc-font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

    /* Layout */
    --tc-max-width: 1200px;
    --tc-header-height: 64px;
}

/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--tc-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--tc-gray-700);
    background: var(--tc-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tc-primary); text-decoration: none; transition: color var(--tc-transition); }
a:hover { color: var(--tc-primary-light); }
h1, h2, h3, h4, h5, h6 {
    color: var(--tc-gray-900);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Utilities ──────────────────────────────────── */
.tc-container { max-width: var(--tc-max-width); margin: 0 auto; padding: 0 var(--tc-space-lg); }
.tc-main { min-height: 60vh; }
.tc-main--padded { padding: 60px 20px; }
.tc-page-container { max-width: var(--tc-max-width); margin: 0 auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Reveal animation classes */
.tc-reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s var(--tc-ease), transform 0.7s var(--tc-ease);
}
.tc-reveal--visible { opacity: 1; transform: translateY(0); }
.tc-reveal--delay-1 { transition-delay: 0.1s; }
.tc-reveal--delay-2 { transition-delay: 0.2s; }
.tc-reveal--delay-3 { transition-delay: 0.3s; }
.tc-reveal--delay-4 { transition-delay: 0.4s; }

/* ── Skip Link ──────────────────────────────────── */
.skip-link {
    position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
    z-index: 9999; padding: 12px 28px; background: var(--tc-primary); color: #fff;
    font-weight: 600; border-radius: 0 0 var(--tc-radius) var(--tc-radius);
    text-decoration: none; font-size: 14px;
}
.skip-link:focus { top: 0; }

/* ── Header ─────────────────────────────────────── */
.tc-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow var(--tc-transition), background var(--tc-transition);
    height: var(--tc-header-height);
}
.tc-header--scrolled { box-shadow: var(--tc-shadow-md); background: rgba(255,255,255,0.95); }
.tc-header__container {
    max-width: var(--tc-max-width); margin: 0 auto; padding: 0 var(--tc-space-lg);
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}
.tc-header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tc-header__logo img { height: 36px; width: auto; }
.tc-header__brand-name {
    font-size: 22px; font-weight: 800; color: var(--tc-primary); letter-spacing: -0.5px;
}
.tc-header__nav { display: flex; align-items: center; }
.tc-header__menu {
    display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; align-items: center;
}
.tc-header__menu li a {
    display: block; padding: 8px 14px; font-size: 14px; font-weight: 500;
    color: var(--tc-gray-600); border-radius: var(--tc-radius-sm);
    transition: all var(--tc-transition-fast); text-decoration: none;
}
.tc-header__menu li a:hover { background: var(--tc-gray-50); color: var(--tc-primary); }
.tc-header__menu li a.tc-header__cta {
    background: var(--tc-primary); color: #fff !important; font-weight: 600;
    padding: 10px 22px; border-radius: var(--tc-radius-full);
    box-shadow: var(--tc-shadow-primary); margin-left: 8px;
}
.tc-header__menu li a.tc-header__cta:hover {
    background: var(--tc-primary-light); box-shadow: var(--tc-shadow-primary-lg);
    transform: translateY(-1px);
}

/* Mobile nav */
.tc-header__toggle {
    display: none; background: none; border: 1px solid var(--tc-gray-200);
    cursor: pointer; padding: 8px; flex-direction: column; gap: 5px;
    border-radius: var(--tc-radius-sm); width: 42px; height: 42px;
    align-items: center; justify-content: center;
    transition: all var(--tc-transition-fast);
}
.tc-header__toggle:hover { background: var(--tc-gray-50); }
.tc-header__toggle span {
    display: block; width: 20px; height: 2px; background: var(--tc-gray-600);
    border-radius: 2px; transition: all var(--tc-transition);
}
.tc-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.tc-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tc-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .tc-header__toggle { display: flex; }
    .tc-header__menu {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--tc-white); flex-direction: column; padding: 12px 16px;
        border-bottom: 1px solid var(--tc-gray-200); box-shadow: var(--tc-shadow-xl); gap: 2px;
    }
    .tc-header__menu.open { display: flex; animation: tcSlideDown 0.3s var(--tc-ease); }
    .tc-header__menu li a { padding: 14px 16px; border-radius: var(--tc-radius-sm); }
    .tc-header__menu li a.tc-header__cta { text-align: center; margin: 8px 0 4px; margin-left: 0; }
}

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

/* ── Buttons ────────────────────────────────────── */
.tc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; font-size: 15px; font-weight: 600; border: none;
    border-radius: var(--tc-radius); cursor: pointer; transition: all var(--tc-transition);
    text-decoration: none !important; line-height: 1.2; font-family: var(--tc-font);
    position: relative; overflow: hidden; white-space: nowrap;
}
.tc-btn:active { transform: scale(0.98); }

.tc-btn--primary {
    background: var(--tc-primary); color: #fff; box-shadow: var(--tc-shadow-primary);
}
.tc-btn--primary:hover {
    background: var(--tc-primary-light); transform: translateY(-2px);
    box-shadow: var(--tc-shadow-primary-lg);
}
.tc-btn--secondary {
    background: var(--tc-white); color: var(--tc-gray-700);
    border: 1px solid var(--tc-gray-200); box-shadow: var(--tc-shadow-xs);
}
.tc-btn--secondary:hover {
    background: var(--tc-gray-50); border-color: var(--tc-gray-300); box-shadow: var(--tc-shadow-sm);
}
.tc-btn--outline {
    background: rgba(255,255,255,0.1); color: #fff;
    border: 2px solid rgba(255,255,255,0.3); backdrop-filter: blur(4px);
}
.tc-btn--outline:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); }
.tc-btn--large { padding: 18px 40px; font-size: 17px; border-radius: var(--tc-radius-full); }
.tc-btn--small { padding: 8px 16px; font-size: 13px; }
.tc-btn--ghost { background: transparent; color: var(--tc-primary); padding: 10px 20px; }
.tc-btn--ghost:hover { background: var(--tc-gray-50); }
.tc-btn--accent {
    background: var(--tc-accent); color: #fff;
    box-shadow: 0 4px 14px rgba(16,185,129,0.25);
}
.tc-btn--accent:hover { background: var(--tc-accent-light); box-shadow: 0 6px 20px rgba(16,185,129,0.35); }

/* ── Hero ───────────────────────────────────────── */
.tc-hero {
    padding: 120px 24px 130px; text-align: center; color: #fff;
    background: linear-gradient(135deg, var(--tc-primary-dark) 0%, var(--tc-primary) 35%, var(--tc-secondary) 70%, #6366f1 100%);
    position: relative; overflow: hidden;
}
.tc-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(99,102,241,0.3) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(59,130,246,0.25) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.tc-hero::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 80px;
    background: linear-gradient(to top, var(--tc-gray-50), transparent);
    pointer-events: none;
}
.tc-hero__content { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.tc-hero__badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 18px; border-radius: var(--tc-radius-full);
    font-size: 13px; font-weight: 600; margin-bottom: 24px; letter-spacing: 0.02em;
}
.tc-hero__badge::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--tc-accent); animation: tcPulse 2s ease-in-out infinite;
}
.tc-hero__title {
    font-size: clamp(2.5rem, 6vw, 3.75rem); font-weight: 900; line-height: 1.08;
    margin-bottom: 20px; letter-spacing: -0.03em; color: #fff;
}
.tc-hero__title span {
    display: block; font-weight: 500; font-size: 0.55em; opacity: 0.85;
    margin-top: 12px; letter-spacing: -0.01em;
}
.tc-hero__subtitle {
    font-size: 18px; opacity: 0.88; margin-bottom: 40px;
    line-height: 1.7; max-width: 560px; margin-left: auto; margin-right: auto;
}
.tc-hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.tc-hero__trust { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; font-size: 14px; font-weight: 500; opacity: 0.85; }
.tc-hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.tc-hero__trust span::before {
    content: ''; display: inline-block; width: 20px; height: 20px;
    border-radius: 50%; background: rgba(16,185,129,0.3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 12px; background-position: center; background-repeat: no-repeat; flex-shrink: 0;
}
@keyframes tcPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

@media (max-width: 600px) {
    .tc-hero { padding: 80px 20px 90px; }
    .tc-hero__actions { flex-direction: column; align-items: center; }
    .tc-hero__trust { flex-direction: column; gap: 10px; }
}

/* ── Section Titles ─────────────────────────────── */
.tc-section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--tc-primary); margin-bottom: 12px;
}
.tc-section-label::before {
    content: ''; width: 24px; height: 2px; background: var(--tc-primary); border-radius: 1px;
}
.tc-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; text-align: center;
    margin-bottom: 16px; color: var(--tc-gray-900); letter-spacing: -0.03em;
}
.tc-section-subtitle {
    text-align: center; font-size: 17px; color: var(--tc-gray-500);
    max-width: 580px; margin: 0 auto 56px; line-height: 1.7;
}

/* ── Features ───────────────────────────────────── */
.tc-features { padding: var(--tc-space-4xl) var(--tc-space-lg); background: var(--tc-gray-50); }
.tc-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tc-feature-card {
    background: var(--tc-white); border-radius: var(--tc-radius-lg);
    padding: 36px 28px; text-align: center;
    border: 1px solid var(--tc-gray-200);
    transition: all var(--tc-transition); position: relative; overflow: hidden;
}
.tc-feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--tc-primary), var(--tc-secondary));
    transform: scaleX(0); transition: transform var(--tc-transition); transform-origin: left;
}
.tc-feature-card:hover {
    transform: translateY(-6px); box-shadow: var(--tc-shadow-xl); border-color: transparent;
}
.tc-feature-card:hover::before { transform: scaleX(1); }
.tc-feature-card__icon {
    width: 60px; height: 60px; border-radius: var(--tc-radius-lg);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(30,64,175,0.08), rgba(99,102,241,0.08));
    color: var(--tc-primary); transition: all var(--tc-transition);
}
.tc-feature-card:hover .tc-feature-card__icon {
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-secondary));
    color: #fff; transform: scale(1.1);
}
.tc-feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--tc-gray-900); }
.tc-feature-card p { font-size: 14px; color: var(--tc-gray-500); line-height: 1.7; }

@media (max-width: 900px) { .tc-features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .tc-features__grid { grid-template-columns: 1fr; } }

/* ── How It Works ───────────────────────────────── */
.tc-how-it-works { padding: var(--tc-space-4xl) var(--tc-space-lg); }
.tc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; }
.tc-steps::before {
    content: ''; position: absolute; top: 28px; left: 60px; right: 60px; height: 2px;
    background: linear-gradient(90deg, var(--tc-primary), var(--tc-secondary), #6366f1);
    z-index: 0; opacity: 0.3;
}
.tc-step { text-align: center; position: relative; z-index: 1; }
.tc-step__number {
    width: 56px; height: 56px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-secondary)); color: #fff;
    margin-bottom: 20px; box-shadow: 0 4px 14px rgba(30,64,175,0.3);
    transition: all var(--tc-transition);
}
.tc-step:hover .tc-step__number { transform: scale(1.1); box-shadow: 0 6px 20px rgba(30,64,175,0.4); }
.tc-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.tc-step p { font-size: 14px; color: var(--tc-gray-500); line-height: 1.6; }

@media (max-width: 768px) {
    .tc-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .tc-steps::before { display: none; }
}
@media (max-width: 500px) { .tc-steps { grid-template-columns: 1fr; gap: 24px; } }

/* ── Stats ──────────────────────────────────────── */
.tc-stats {
    padding: 72px var(--tc-space-lg); background: var(--tc-white);
    border-top: 1px solid var(--tc-gray-100); border-bottom: 1px solid var(--tc-gray-100);
}
.tc-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.tc-stats__number {
    font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 8px;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tc-stats__label { font-size: 14px; color: var(--tc-gray-500); font-weight: 500; }

@media (max-width: 768px) { .tc-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ── Testimonials ───────────────────────────────── */
.tc-testimonials { padding: var(--tc-space-4xl) var(--tc-space-lg); background: var(--tc-white); }
.tc-testimonials__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    max-width: 960px; margin: 0 auto;
}
.tc-testimonial {
    background: var(--tc-gray-50); border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-lg); padding: 32px;
    transition: all var(--tc-transition);
}
.tc-testimonial:hover { box-shadow: var(--tc-shadow-lg); transform: translateY(-4px); border-color: transparent; }
.tc-testimonial__stars { color: #f59e0b; font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.tc-testimonial__text {
    font-size: 15px; color: var(--tc-gray-600); line-height: 1.7;
    margin-bottom: 18px; font-style: italic;
}
.tc-testimonial__author { font-size: 14px; font-weight: 700; color: var(--tc-gray-900); }
.tc-testimonial__role { font-size: 13px; color: var(--tc-gray-500); font-weight: 400; }

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

/* ── FAQ ────────────────────────────────────────── */
.tc-faq { padding: var(--tc-space-4xl) var(--tc-space-lg); background: var(--tc-gray-50); }
.tc-faq__list { max-width: 720px; margin: 0 auto; }
.tc-faq__item {
    border: 1px solid var(--tc-gray-200); border-radius: var(--tc-radius-lg);
    margin-bottom: 12px; background: var(--tc-white); overflow: hidden;
    transition: all var(--tc-transition);
}
.tc-faq__item:hover { border-color: var(--tc-gray-300); box-shadow: var(--tc-shadow-sm); }
.tc-faq__item[open] { border-color: var(--tc-primary); box-shadow: 0 0 0 3px rgba(30,64,175,0.08); }
.tc-faq__question {
    padding: 22px 24px; font-size: 16px; font-weight: 600; cursor: pointer;
    color: var(--tc-gray-900); list-style: none; display: flex;
    justify-content: space-between; align-items: center; gap: 16px;
    transition: background var(--tc-transition-fast);
}
.tc-faq__question:hover { background: var(--tc-gray-50); }
.tc-faq__question::-webkit-details-marker { display: none; }
.tc-faq__question::after {
    content: '+'; font-size: 20px; color: var(--tc-gray-400);
    width: 32px; height: 32px; display: flex; align-items: center;
    justify-content: center; border-radius: 50%; background: var(--tc-gray-50);
    transition: all var(--tc-transition); flex-shrink: 0; font-weight: 300;
}
.tc-faq__item[open] .tc-faq__question::after {
    content: '\2212'; background: var(--tc-primary); color: #fff; transform: rotate(180deg);
}
.tc-faq__answer { padding: 0 24px 24px; font-size: 15px; color: var(--tc-gray-600); line-height: 1.8; }

/* ── CTA Section ────────────────────────────────── */
.tc-cta {
    padding: var(--tc-space-4xl) var(--tc-space-lg); text-align: center;
    background: linear-gradient(135deg, var(--tc-primary-dark) 0%, var(--tc-primary) 50%, var(--tc-secondary) 100%);
    color: #fff; position: relative; overflow: hidden;
}
.tc-cta::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(99,102,241,0.2) 0%, transparent 50%);
    pointer-events: none;
}
.tc-cta .tc-container { position: relative; z-index: 1; }
.tc-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800;
    margin-bottom: 16px; color: #fff; letter-spacing: -0.02em;
}
.tc-cta p { font-size: 18px; opacity: 0.9; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── Footer ─────────────────────────────────────── */
.tc-footer { background: var(--tc-dark); color: var(--tc-gray-400); padding: 80px var(--tc-space-lg) 32px; }
.tc-footer__container { max-width: var(--tc-max-width); margin: 0 auto; }
.tc-footer__grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px; margin-bottom: 56px;
}
.tc-footer__brand { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -0.5px; }
.tc-footer__tagline { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.tc-footer__social { display: flex; gap: 12px; margin-top: 16px; }
.tc-footer__social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08); display: flex;
    align-items: center; justify-content: center;
    color: var(--tc-gray-400); font-size: 16px;
    transition: all var(--tc-transition-fast); border: 1px solid rgba(255,255,255,0.06);
}
.tc-footer__social a:hover { background: var(--tc-primary); color: #fff; transform: translateY(-2px); }
.tc-footer__col h4 {
    color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 20px;
}
.tc-footer__col ul { list-style: none; }
.tc-footer__col ul li { margin-bottom: 10px; }
.tc-footer__col ul li a {
    color: var(--tc-gray-400); font-size: 14px;
    transition: all var(--tc-transition-fast);
}
.tc-footer__col ul li a:hover { color: #fff; transform: translateX(3px); display: inline-block; }
.tc-footer__col p { font-size: 14px; margin-bottom: 8px; line-height: 1.6; }
.tc-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px;
    text-align: center; font-size: 13px;
}
.tc-footer__bottom p { margin: 4px 0; }
.tc-footer__fca, .tc-footer__reg { font-size: 12px; color: var(--tc-gray-500); }

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

/* ── Page Content / Article ─────────────────────── */
.tc-article { margin-bottom: 40px; }
.tc-article__title { font-size: 36px; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.5px; line-height: 1.2; }
.tc-article__title a { color: var(--tc-gray-900); }
.tc-article__content { line-height: 1.8; color: var(--tc-gray-600); font-size: 16px; }
.tc-article__content h2 { font-size: 24px; margin-top: 40px; margin-bottom: 16px; padding-top: 16px; border-top: 1px solid var(--tc-gray-200); }
.tc-article__content h3 { font-size: 20px; margin-top: 32px; margin-bottom: 12px; }
.tc-article__content ul, .tc-article__content ol { margin-bottom: 20px; padding-left: 24px; }
.tc-article__content li { margin-bottom: 8px; }
.tc-article__content blockquote {
    border-left: 4px solid var(--tc-primary); margin: 24px 0;
    padding: 16px 20px; background: var(--tc-gray-50);
    border-radius: 0 var(--tc-radius) var(--tc-radius) 0;
    font-style: italic; color: var(--tc-gray-600);
}

/* ── Page Header ────────────────────────────────── */
.tc-page-header {
    padding: 72px var(--tc-space-lg) 60px; text-align: center;
    background: linear-gradient(135deg, var(--tc-gray-50) 0%, var(--tc-white) 100%);
    border-bottom: 1px solid var(--tc-gray-200); position: relative;
}
.tc-page-header::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--tc-primary), transparent); opacity: 0.2;
}
.tc-page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.03em; }
.tc-page-header p { font-size: 17px; color: var(--tc-gray-500); max-width: 560px; margin: 0 auto; }
.tc-breadcrumb { font-size: 13px; margin-bottom: 16px; color: var(--tc-gray-500); }
.tc-breadcrumb a { color: var(--tc-gray-500); }
.tc-breadcrumb a:hover { color: var(--tc-primary); }
.tc-breadcrumb span { margin: 0 8px; }

/* ── Contact Page ───────────────────────────────── */
.tc-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.tc-contact-card {
    background: var(--tc-white); border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-lg); padding: 36px; text-align: center;
    transition: all var(--tc-transition); position: relative; overflow: hidden;
}
.tc-contact-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--tc-primary), var(--tc-secondary));
    transform: scaleX(0); transition: transform var(--tc-transition); transform-origin: left;
}
.tc-contact-card:hover { border-color: var(--tc-primary); box-shadow: var(--tc-shadow-lg); transform: translateY(-4px); }
.tc-contact-card:hover::before { transform: scaleX(1); }
.tc-contact-card__icon {
    width: 52px; height: 52px; border-radius: var(--tc-radius-lg);
    background: linear-gradient(135deg, rgba(30,64,175,0.08), rgba(99,102,241,0.08));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 18px; color: var(--tc-primary); transition: all var(--tc-transition);
}
.tc-contact-card:hover .tc-contact-card__icon { background: linear-gradient(135deg, var(--tc-primary), var(--tc-secondary)); color: #fff; }
.tc-contact-card h3 { font-size: 16px; margin-bottom: 8px; }
.tc-contact-card p { font-size: 14px; color: var(--tc-gray-500); }
.tc-contact-card a { font-weight: 600; }
@media (max-width: 768px) { .tc-contact-grid { grid-template-columns: 1fr; } }

/* ── Legal Pages ────────────────────────────────── */
.tc-legal-content { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.tc-legal-content .tc-last-updated { font-size: 14px; color: var(--tc-gray-500); margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--tc-gray-200); }
.tc-legal-content h2 { font-size: 22px; margin-top: 36px; margin-bottom: 14px; }
.tc-legal-content p { font-size: 15px; line-height: 1.8; color: var(--tc-gray-600); }
.tc-legal-content ul { margin: 12px 0 20px; padding-left: 24px; }
.tc-legal-content li { margin-bottom: 8px; font-size: 15px; color: var(--tc-gray-600); }

/* ── About Page ─────────────────────────────────── */
.tc-about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px 0; }
.tc-about-value {
    padding: 36px; border-radius: var(--tc-radius-lg);
    background: var(--tc-white); border: 1px solid var(--tc-gray-200);
    text-align: center; transition: all var(--tc-transition); position: relative; overflow: hidden;
}
.tc-about-value::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--tc-primary), var(--tc-secondary));
    transform: scaleX(0); transition: transform var(--tc-transition); transform-origin: left;
}
.tc-about-value:hover { transform: translateY(-4px); box-shadow: var(--tc-shadow-lg); border-color: transparent; }
.tc-about-value:hover::before { transform: scaleX(1); }
.tc-about-value h3 { font-size: 18px; margin-bottom: 10px; }
.tc-about-value p { font-size: 14px; color: var(--tc-gray-500); }
@media (max-width: 768px) { .tc-about-values { grid-template-columns: 1fr; } }

/* ── Auth Pages ─────────────────────────────────── */
.tc-auth-page {
    display: flex;
    min-height: calc(100vh - var(--tc-header-height));
    background: var(--tc-gray-50);
    position: relative;
}

/* Left branding panel */
.tc-auth-brand {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45%;
    padding: 60px 48px;
    background: linear-gradient(160deg, var(--tc-primary-dark) 0%, var(--tc-primary) 50%, var(--tc-primary-light) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.tc-auth-brand::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.tc-auth-brand::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -15%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.tc-auth-brand__content {
    position: relative;
    z-index: 1;
    max-width: 380px;
    text-align: center;
}
.tc-auth-brand__icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.12);
    border-radius: var(--tc-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
}
.tc-auth-brand__icon svg { width: 36px; height: 36px; }
.tc-auth-brand__title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.2;
}
.tc-auth-brand__desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
}
.tc-auth-brand__features {
    list-style: none;
    padding: 0;
    text-align: left;
}
.tc-auth-brand__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}
.tc-auth-brand__features li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--tc-accent-light);
}

/* Right form panel */
.tc-auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

/* Auth card */
.tc-auth-card {
    width: 100%;
    max-width: 440px;
    animation: tc-fadeUp 0.4s var(--tc-ease) both;
}
.tc-auth-card__header {
    text-align: center;
    margin-bottom: 32px;
}
.tc-auth-card__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-primary-light));
    border-radius: var(--tc-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(30,64,175,0.2);
}
.tc-auth-card__icon svg { width: 28px; height: 28px; color: #fff; }
.tc-auth-card__title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--tc-gray-900);
}
.tc-auth-card__subtitle {
    font-size: 15px;
    color: var(--tc-gray-500);
    line-height: 1.6;
}

/* Form container */
.tc-auth-form-wrap {
    background: var(--tc-white);
    border-radius: var(--tc-radius-xl);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
    padding: 36px 32px;
    border: 1px solid var(--tc-gray-100);
}

/* Alerts */
.tc-auth-card__error {
    background: var(--tc-danger-light);
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: var(--tc-radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.tc-auth-card__error::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23dc2626'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.tc-auth-card__error a { color: #991b1b; font-weight: 600; text-decoration: underline; }
.tc-auth-card__success {
    background: var(--tc-success-light);
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: var(--tc-radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tc-auth-card__success::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23059669'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Info banner (OTP sent message) */
.tc-auth-card__info {
    background: var(--tc-info-light);
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: var(--tc-radius);
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.tc-auth-card__info::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%233b82f6'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Form elements */
.tc-auth-form .tc-form-group { margin-bottom: 20px; }
.tc-auth-form .tc-form-row { display: flex; gap: 16px; }
.tc-auth-form .tc-form-group--half { flex: 1; }
.tc-auth-form .tc-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: var(--tc-gray-700);
    letter-spacing: 0.01em;
}
.tc-auth-form .tc-input-wrap {
    position: relative;
}
.tc-auth-form .tc-input-wrap .tc-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--tc-gray-400);
    pointer-events: none;
    transition: color var(--tc-transition-fast);
}
.tc-auth-form .tc-input {
    padding: 13px 16px 13px 44px;
    font-size: 15px;
    border: 1.5px solid var(--tc-gray-200);
    border-radius: var(--tc-radius);
    width: 100%;
    transition: all var(--tc-transition-fast);
    background: var(--tc-white);
    color: var(--tc-gray-900);
    font-family: var(--tc-font);
}
.tc-auth-form .tc-input--no-icon {
    padding-left: 16px;
}
.tc-auth-form .tc-input:hover {
    border-color: var(--tc-gray-300);
}
.tc-auth-form .tc-input:focus {
    border-color: var(--tc-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30,64,175,0.08);
    background: var(--tc-white);
}
.tc-auth-form .tc-input:focus ~ .tc-input-icon {
    color: var(--tc-primary);
}

/* OTP digit inputs */
.tc-otp-digits {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}
.tc-otp-digit {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    font-family: var(--tc-font-mono);
    border: 2px solid var(--tc-gray-200);
    border-radius: var(--tc-radius);
    background: var(--tc-white);
    color: var(--tc-gray-900);
    transition: all var(--tc-transition-fast);
    caret-color: var(--tc-primary);
}
.tc-otp-digit:hover {
    border-color: var(--tc-gray-300);
}
.tc-otp-digit:focus {
    border-color: var(--tc-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
    background: var(--tc-white);
}
.tc-otp-digit.tc-otp-digit--filled {
    border-color: var(--tc-primary);
    background: var(--tc-info-light);
}

/* Auth buttons */
.tc-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--tc-font);
    border: none;
    border-radius: var(--tc-radius);
    cursor: pointer;
    transition: all var(--tc-transition);
    position: relative;
    overflow: hidden;
}
.tc-auth-btn--primary {
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-primary-light));
    color: #fff;
    box-shadow: 0 4px 14px rgba(30,64,175,0.25);
}
.tc-auth-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30,64,175,0.3);
}
.tc-auth-btn--primary:active {
    transform: translateY(0);
}
.tc-auth-btn--primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.tc-auth-btn svg {
    width: 18px;
    height: 18px;
}
/* Loading spinner */
.tc-auth-btn .tc-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tc-spin 0.6s linear infinite;
}
@keyframes tc-spin { to { transform: rotate(360deg); } }

/* Auth step transitions */
.tc-auth-step {
    animation: tc-fadeUp 0.3s var(--tc-ease) both;
}

/* Link buttons */
.tc-auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
}
.tc-link-btn {
    background: none;
    border: none;
    color: var(--tc-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--tc-font);
    padding: 4px 8px;
    border-radius: var(--tc-radius-sm);
    transition: all var(--tc-transition-fast);
}
.tc-link-btn:hover {
    background: var(--tc-info-light);
    color: var(--tc-primary-dark);
}
.tc-auth-links__sep {
    color: var(--tc-gray-300);
    font-size: 12px;
    user-select: none;
}

/* Footer */
.tc-auth-card__footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--tc-gray-500);
}
.tc-auth-card__footer a {
    color: var(--tc-primary);
    font-weight: 600;
    transition: color var(--tc-transition-fast);
}
.tc-auth-card__footer a:hover {
    color: var(--tc-primary-dark);
}

/* Desktop: show brand panel */
@media (min-width: 900px) {
    .tc-auth-brand { display: flex; }
}

/* Tablet */
@media (max-width: 899px) {
    .tc-auth-form-panel { padding: 40px 20px; }
    .tc-auth-form-wrap { padding: 32px 24px; }
}

/* Mobile */
@media (max-width: 500px) {
    .tc-auth-form-panel { padding: 24px 16px; }
    .tc-auth-form-wrap { padding: 24px 20px; border-radius: var(--tc-radius-lg); }
    .tc-auth-card__title { font-size: 22px; }
    .tc-auth-card__subtitle { font-size: 14px; }
    .tc-auth-form .tc-form-row { flex-direction: column; gap: 0; }
    .tc-otp-digits { gap: 6px; }
    .tc-otp-digit { width: 44px; height: 52px; font-size: 20px; }
    .tc-auth-card__icon { width: 48px; height: 48px; }
    .tc-auth-card__icon svg { width: 24px; height: 24px; }
}

/* ── Dashboard ──────────────────────────────────── */
.tc-dashboard { padding: 32px 0; }
.tc-dashboard__title { font-size: 24px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.02em; }

.tc-success-banner {
    background: var(--tc-success-light); border: 1px solid #a7f3d0;
    border-radius: var(--tc-radius-lg); padding: 20px 24px; margin-bottom: 28px; color: #065f46;
}
.tc-success-banner h3 { font-size: 16px; color: #065f46; margin-bottom: 4px; }
.tc-success-banner p { font-size: 14px; margin: 0; }

.tc-dashboard__tabs {
    display: flex; gap: 4px; margin-bottom: 24px; padding: 4px;
    background: var(--tc-gray-100); border-radius: var(--tc-radius); width: fit-content;
}
.tc-dashboard__tab {
    padding: 10px 20px; font-size: 14px; font-weight: 600;
    color: var(--tc-gray-500); background: transparent; border: none;
    border-radius: var(--tc-radius-sm); cursor: pointer;
    transition: all var(--tc-transition-fast); font-family: var(--tc-font);
}
.tc-dashboard__tab:hover { color: var(--tc-gray-700); }
.tc-dashboard__tab.active { background: var(--tc-white); color: var(--tc-primary); box-shadow: var(--tc-shadow-sm); }

.tc-policy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.tc-policy-card {
    background: var(--tc-white); border-radius: var(--tc-radius-lg);
    border: 1px solid var(--tc-gray-200); overflow: hidden; transition: all var(--tc-transition);
}
.tc-policy-card:hover { box-shadow: var(--tc-shadow-lg); border-color: transparent; transform: translateY(-2px); }
.tc-policy-card__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 20px; border-bottom: 1px solid var(--tc-gray-100);
}
.tc-policy-card__number { font-size: 13px; font-weight: 700; color: var(--tc-gray-900); font-family: var(--tc-font-mono); }
.tc-policy-card__countdown {
    padding: 8px 20px; font-size: 13px; font-weight: 600;
    color: var(--tc-primary); background: var(--tc-info-light); text-align: center;
}
.tc-policy-card__countdown--ended { color: var(--tc-danger); background: var(--tc-danger-light); }
.tc-policy-card__details { padding: 16px 20px; }
.tc-policy-card__row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.tc-policy-card__label { color: var(--tc-gray-500); font-weight: 500; }
.tc-policy-card__actions { display: flex; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--tc-gray-100); }

/* Badges */
.tc-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: var(--tc-radius-full);
    font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}
.tc-badge--active { background: var(--tc-success-light); color: #065f46; }
.tc-badge--upcoming { background: var(--tc-info-light); color: #1e40af; }
.tc-badge--expired { background: var(--tc-gray-100); color: var(--tc-gray-500); }
.tc-badge--error { background: var(--tc-danger-light); color: #991b1b; }

.tc-empty { text-align: center; padding: 64px 24px; color: var(--tc-gray-500); }
.tc-empty p { margin-bottom: 16px; font-size: 16px; }

.tc-dashboard__cta { margin-top: 32px; text-align: center; padding-top: 24px; border-top: 1px solid var(--tc-gray-100); }

/* ── Featured Active Policy ─────────────────────── */
.tc-featured {
    background: linear-gradient(135deg, var(--tc-primary-dark), var(--tc-primary), var(--tc-secondary));
    border-radius: var(--tc-radius-xl); color: #fff;
    overflow: hidden; margin-bottom: 32px;
    box-shadow: var(--tc-shadow-xl); position: relative;
}
.tc-featured::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(99,102,241,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.tc-featured__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 28px; position: relative; z-index: 1;
}
.tc-featured__status { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.tc-featured__pulse {
    width: 10px; height: 10px; border-radius: 50%; background: var(--tc-accent);
    box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
    animation: tcFeaturedPulse 2s ease-in-out infinite;
}
@keyframes tcFeaturedPulse {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
    70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.tc-featured__policy-num { font-size: 13px; font-weight: 600; opacity: 0.7; font-family: var(--tc-font-mono); }
.tc-featured__body {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 28px 24px; position: relative; z-index: 1; gap: 24px; flex-wrap: wrap;
}
.tc-featured__reg { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; letter-spacing: 0.04em; margin-bottom: 4px; }
.tc-featured__car { font-size: 15px; opacity: 0.75; font-weight: 500; }
.tc-featured__countdown { text-align: right; }
.tc-featured__countdown-label { font-size: 12px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; font-weight: 600; }
.tc-featured__countdown-timer { display: flex; gap: 12px; }
.tc-featured__time-unit { text-align: center; }
.tc-featured__time-num {
    display: block; font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; font-family: var(--tc-font-mono);
}
.tc-featured__time-label { font-size: 11px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.tc-featured__countdown-ended { font-size: 18px; font-weight: 700; color: #fca5a5; }
.tc-featured__progress { height: 4px; background: rgba(255,255,255,0.15); position: relative; z-index: 1; }
.tc-featured__progress-bar {
    height: 100%; background: linear-gradient(90deg, var(--tc-accent), #34d399);
    transition: width 1s linear; border-radius: 0 2px 2px 0;
}
.tc-featured__details {
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 20px 28px; position: relative; z-index: 1; gap: 16px; background: rgba(0,0,0,0.1);
}
.tc-featured__detail-label { display: block; font-size: 11px; opacity: 0.55; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 4px; }
.tc-featured__detail-value { font-size: 14px; font-weight: 600; }
.tc-featured__actions {
    display: flex; gap: 12px; padding: 20px 28px; position: relative; z-index: 1; background: rgba(0,0,0,0.05);
}
.tc-featured__actions .tc-btn--secondary { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.tc-featured__actions .tc-btn--secondary:hover { background: rgba(255,255,255,0.25); }
.tc-featured__actions .tc-btn--primary { background: var(--tc-accent); box-shadow: 0 4px 14px rgba(16,185,129,0.3); }
.tc-featured__actions .tc-btn--primary:hover { background: var(--tc-accent-light); }

@media (max-width: 600px) {
    .tc-featured__body { flex-direction: column; align-items: flex-start; }
    .tc-featured__countdown { text-align: left; }
    .tc-featured__details { grid-template-columns: repeat(2, 1fr); }
}

/* ── Loading / Spinners ─────────────────────────── */
.tc-loading { text-align: center; padding: 48px 24px; color: var(--tc-gray-500); }
.tc-spinner {
    width: 36px; height: 36px; border: 3px solid var(--tc-gray-200);
    border-top-color: var(--tc-primary); border-radius: 50%;
    animation: tcSpin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes tcSpin { to { transform: rotate(360deg); } }
.tc-btn-spinner {
    width: 16px; height: 16px; border: 2px solid rgba(0,0,0,0.15);
    border-top-color: currentColor; border-radius: 50%;
    animation: tcSpin 0.6s linear infinite; display: inline-block;
}
.tc-btn-spinner--white { border-color: rgba(255,255,255,0.3); border-top-color: #fff; }

/* ── Modal ──────────────────────────────────────── */
.tc-modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15,23,42,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    opacity: 0; transition: opacity 0.25s var(--tc-ease);
}
.tc-modal-overlay--visible { opacity: 1; }
.tc-modal {
    background: var(--tc-white); border-radius: var(--tc-radius-xl);
    box-shadow: var(--tc-shadow-2xl); max-width: 480px; width: 100%;
    padding: 36px; position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s var(--tc-ease-spring);
}
.tc-modal-overlay--visible .tc-modal { transform: scale(1) translateY(0); }
.tc-modal__close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--tc-gray-50); border: none; cursor: pointer;
    font-size: 20px; color: var(--tc-gray-500);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--tc-transition-fast);
}
.tc-modal__close:hover { background: var(--tc-gray-100); color: var(--tc-gray-900); }
.tc-modal__title { font-size: 22px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; }
.tc-modal__subtitle { font-size: 14px; color: var(--tc-gray-500); margin-bottom: 24px; }
.tc-modal__actions { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; }

.tc-ext-cost {
    background: var(--tc-gray-50); border-radius: var(--tc-radius);
    padding: 16px; margin-top: 16px; border: 1px solid var(--tc-gray-200);
}
.tc-ext-cost__row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--tc-gray-600); }
.tc-ext-cost__row--total {
    font-weight: 700; font-size: 16px; color: var(--tc-gray-900);
    border-top: 1px solid var(--tc-gray-200); padding-top: 10px; margin-top: 6px;
}

/* ── Form helpers ───────────────────────────────── */
.tc-error { display: none; color: var(--tc-danger); font-size: 13px; margin-top: 6px; font-weight: 500; }
.tc-help-text { display: block; font-size: 13px; color: var(--tc-gray-500); margin-top: 4px; }

.tc-auth-prompt { text-align: center; padding: 64px 24px; color: var(--tc-gray-500); }
.tc-auth-prompt h2 { margin-bottom: 12px; }
.tc-auth-prompt a { font-weight: 600; }

/* ── WooCommerce Overrides ──────────────────────── */
.tc-woo-main { max-width: var(--tc-max-width); margin: 0 auto; padding: 40px 24px; }
.woocommerce-checkout .woocommerce-billing-fields h3 { font-size: 20px; margin-bottom: 16px; }
.woocommerce-checkout #payment { border-radius: var(--tc-radius-lg); overflow: hidden; border: 1px solid var(--tc-gray-200); }
.woocommerce-checkout #payment .payment_methods { border: none; border-bottom: 1px solid var(--tc-gray-200); border-radius: 0; }
.woocommerce-checkout #place_order {
    background: var(--tc-primary) !important; border-radius: var(--tc-radius-full) !important;
    font-weight: 600 !important; padding: 16px 32px !important; font-size: 16px !important;
    transition: all var(--tc-transition) !important; box-shadow: var(--tc-shadow-primary) !important;
}
.woocommerce-checkout #place_order:hover {
    background: var(--tc-primary-light) !important; transform: translateY(-2px) !important;
    box-shadow: var(--tc-shadow-primary-lg) !important;
}

/* ── Accessibility ──────────────────────────────── */
:focus-visible { outline: 3px solid var(--tc-primary); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .tc-reveal { opacity: 1; transform: none; }
}

/* ── Comprehensive Responsive Enhancements ─────── */

/* -- Tablet landscape (1024px) -- */
@media (max-width: 1024px) {
    .tc-features__grid { grid-template-columns: repeat(2, 1fr); }
    .tc-steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .tc-steps::before { display: none; }
    .tc-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .tc-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .tc-contact-grid { grid-template-columns: repeat(2, 1fr); }
    .tc-about-values { grid-template-columns: repeat(2, 1fr); }
    .tc-featured__details { grid-template-columns: repeat(2, 1fr); }
    .tc-policy-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* -- Tablet portrait (768px) -- */
@media (max-width: 768px) {
    :root { --tc-space-lg: 16px; }
    .tc-main--padded { padding: 40px 16px; }
    .tc-container { padding: 0 16px; }
    .tc-hero { padding: 72px 16px 80px; }
    .tc-hero__subtitle { font-size: 16px; margin-bottom: 28px; }
    .tc-page-header { padding: 48px 16px 40px; }
    .tc-page-header p { font-size: 15px; }
    .tc-section-subtitle { font-size: 15px; margin-bottom: 36px; }
    .tc-btn--large { padding: 16px 28px; font-size: 15px; }
    .tc-legal-content { padding: 32px 16px; }
    .tc-legal-content h2 { font-size: 19px; }
    .tc-dashboard__tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; scrollbar-width: none; }
    .tc-dashboard__tabs::-webkit-scrollbar { display: none; }
    .tc-dashboard__tab { white-space: nowrap; flex-shrink: 0; }
    .tc-modal { max-width: 90vw; padding: 28px; }
    .tc-modal__title { font-size: 20px; }
    .tc-testimonials__grid { grid-template-columns: repeat(2, 1fr); }
    .tc-faq__question { padding: 18px 20px; font-size: 15px; }
    .tc-faq__answer { padding: 0 20px 20px; font-size: 14px; }
    .tc-footer { padding: 48px 16px 24px; }
    .tc-footer__grid { gap: 28px; margin-bottom: 36px; }
    .tc-woo-main { padding: 24px 16px; }
    .tc-featured__header { padding: 16px 20px; }
    .tc-featured__body { padding: 4px 20px 20px; }
    .tc-featured__details { padding: 16px 20px; gap: 12px; }
    .tc-featured__actions { padding: 16px 20px; flex-wrap: wrap; }
    .tc-policy-card__actions { flex-wrap: wrap; }
}

/* -- Mobile large (600px) -- */
@media (max-width: 600px) {
    .tc-hero__badge { font-size: 12px; padding: 6px 14px; }
    .tc-feature-card { padding: 24px 20px; }
    .tc-feature-card__icon { width: 48px; height: 48px; font-size: 22px; }
    .tc-step__number { width: 44px; height: 44px; font-size: 16px; }
    .tc-testimonial { padding: 20px; }
    .tc-contact-card { padding: 24px; }
    .tc-about-value { padding: 24px; }
    .tc-featured__countdown-timer { gap: 8px; }
    .tc-featured__actions .tc-btn { flex: 1; min-width: 0; }
    .tc-modal__actions { flex-direction: column; }
    .tc-modal__actions .tc-btn { width: 100%; }
    .tc-ext-cost { padding: 12px; }
}

/* -- Mobile small (480px) -- */
@media (max-width: 480px) {
    body { font-size: 15px; }
    h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
    h2 { font-size: clamp(1.25rem, 3.5vw, 1.75rem); }
    .tc-hero { padding: 56px 12px 64px; }
    .tc-hero__title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    .tc-btn { padding: 12px 20px; font-size: 14px; }
    .tc-btn--large { padding: 14px 24px; font-size: 15px; }
    .tc-features { padding: 48px 12px; }
    .tc-how-it-works { padding: 48px 12px; }
    .tc-stats { padding: 48px 12px; }
    .tc-testimonials { padding: 48px 12px; }
    .tc-faq { padding: 48px 12px; }
    .tc-cta { padding: 48px 12px; }
    .tc-section-title { font-size: clamp(1.25rem, 4vw, 1.75rem); }
    .tc-footer { padding: 36px 12px 20px; }
    .tc-footer__col h4 { margin-bottom: 12px; }
    .tc-dashboard__title { font-size: 20px; }
    .tc-legal-content { padding: 24px 12px; }
    .tc-legal-content h2 { font-size: 17px; margin-top: 28px; }
    .tc-legal-content p, .tc-legal-content li { font-size: 14px; }
    .tc-page-header { padding: 36px 12px 28px; }
    .tc-article__title { font-size: 24px; }
    .tc-contact-card__icon { width: 44px; height: 44px; font-size: 20px; }
    .tc-featured__reg { font-size: 1.25rem; }
    .tc-policy-grid { grid-template-columns: 1fr; }
}

/* -- Ultra small (360px) -- */
@media (max-width: 360px) {
    .tc-hero { padding: 44px 8px 52px; }
    .tc-container { padding: 0 12px; }
    .tc-featured__header { padding: 12px 14px; }
    .tc-featured__body { padding: 4px 14px 14px; }
    .tc-featured__details { padding: 12px 14px; }
    .tc-featured__actions { padding: 12px 14px; gap: 8px; }
}

/* ── Print ──────────────────────────────────────── */
@media print {
    .tc-header, .tc-footer, .tc-hero__actions, .tc-cta { display: none !important; }
    body { font-size: 12pt; color: #000; }
}
