/*
 * Top5Mindset Design System v2.0
 * Premium Dark Theme - 9.2/10 Quality Standard
 * Based on ReadyToDeploy best practices
 */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
    /* ===== BRAND COLORS ===== */

    /* Primary - Brand Blue (Professional, Trust) */
    --t5-primary-50: rgba(0, 87, 204, 0.05);
    --t5-primary-100: rgba(0, 87, 204, 0.1);
    --t5-primary-200: rgba(0, 87, 204, 0.2);
    --t5-primary: #0057CC;
    --t5-primary-dark: #004099;
    --t5-primary-light: #3378D9;
    --t5-primary-lighter: #5A94E5;

    /* Gold - Premium Accent (Achievement, Success) */
    --t5-gold-50: rgba(212, 175, 55, 0.05);
    --t5-gold-100: rgba(212, 175, 55, 0.1);
    --t5-gold-200: rgba(212, 175, 55, 0.2);
    --t5-gold: #D4AF37;
    --t5-gold-light: #E5C158;
    --t5-gold-dark: #B8962D;

    /* Trading Colors */
    --t5-green-50: rgba(31, 218, 154, 0.05);
    --t5-green-100: rgba(31, 218, 154, 0.1);
    --t5-green-200: rgba(31, 218, 154, 0.2);
    --t5-green: #1FDA9A;
    --t5-green-light: #4AEDB5;
    --t5-green-dark: #17C584;

    --t5-red-50: rgba(255, 75, 75, 0.05);
    --t5-red-100: rgba(255, 75, 75, 0.1);
    --t5-red-200: rgba(255, 75, 75, 0.2);
    --t5-red: #FF4B4B;
    --t5-red-light: #FF6B6B;
    --t5-red-dark: #E63939;

    /* ===== DARK THEME SURFACES ===== */
    --t5-bg-base: #080C15;
    --t5-bg-dark: #0B1020;
    --t5-bg-card: #101827;
    --t5-bg-elevated: #1a2332;
    --t5-bg-input: #1c2534;
    --t5-bg-hover: #242f42;

    /* Borders */
    --t5-border: #2d3748;
    --t5-border-light: rgba(255, 255, 255, 0.08);
    --t5-border-focus: var(--t5-primary);

    /* ===== TEXT COLORS ===== */
    --t5-text-primary: #FFFFFF;
    --t5-text-secondary: #AAB4BD;
    --t5-text-muted: #6B7280;
    --t5-text-disabled: #4B5563;

    /* ===== SPACING SCALE (8px base) ===== */
    --t5-space-0: 0;
    --t5-space-1: 0.25rem;   /* 4px */
    --t5-space-2: 0.5rem;    /* 8px */
    --t5-space-3: 0.75rem;   /* 12px */
    --t5-space-4: 1rem;      /* 16px */
    --t5-space-5: 1.25rem;   /* 20px */
    --t5-space-6: 1.5rem;    /* 24px */
    --t5-space-8: 2rem;      /* 32px */
    --t5-space-10: 2.5rem;   /* 40px */
    --t5-space-12: 3rem;     /* 48px */
    --t5-space-16: 4rem;     /* 64px */
    --t5-space-20: 5rem;     /* 80px */
    --t5-space-24: 6rem;     /* 96px */

    /* ===== TYPOGRAPHY ===== */
    --t5-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --t5-font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

    /* Font Sizes */
    --t5-text-xs: 0.75rem;    /* 12px */
    --t5-text-sm: 0.875rem;   /* 14px */
    --t5-text-base: 1rem;     /* 16px */
    --t5-text-lg: 1.125rem;   /* 18px */
    --t5-text-xl: 1.25rem;    /* 20px */
    --t5-text-2xl: 1.5rem;    /* 24px */
    --t5-text-3xl: 2rem;      /* 32px */
    --t5-text-4xl: 2.5rem;    /* 40px */
    --t5-text-5xl: 3.5rem;    /* 56px */
    --t5-text-6xl: 4.5rem;    /* 72px */

    /* Font Weights */
    --t5-font-normal: 400;
    --t5-font-medium: 500;
    --t5-font-semibold: 600;
    --t5-font-bold: 700;
    --t5-font-extrabold: 800;

    /* Line Heights */
    --t5-leading-none: 1;
    --t5-leading-tight: 1.15;
    --t5-leading-snug: 1.375;
    --t5-leading-normal: 1.5;
    --t5-leading-relaxed: 1.7;

    /* Letter Spacing */
    --t5-tracking-tighter: -0.03em;
    --t5-tracking-tight: -0.02em;
    --t5-tracking-normal: 0;
    --t5-tracking-wide: 0.02em;
    --t5-tracking-wider: 0.05em;
    --t5-tracking-widest: 0.1em;

    /* ===== BORDER RADIUS ===== */
    --t5-radius-sm: 6px;
    --t5-radius-md: 8px;
    --t5-radius-lg: 12px;
    --t5-radius-xl: 16px;
    --t5-radius-2xl: 20px;
    --t5-radius-3xl: 24px;
    --t5-radius-full: 9999px;

    /* ===== SHADOWS (Dark Theme Optimized) ===== */
    --t5-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --t5-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --t5-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --t5-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --t5-shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.7);

    /* Card Shadows */
    --t5-shadow-card: 0 4px 20px -4px rgba(0, 0, 0, 0.4);
    --t5-shadow-card-hover: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
    --t5-shadow-card-featured: 0 8px 32px -8px rgba(212, 175, 55, 0.15);

    /* Glow Effects */
    --t5-glow-primary: 0 0 40px rgba(0, 87, 204, 0.15);
    --t5-glow-gold: 0 0 40px rgba(212, 175, 55, 0.12);
    --t5-glow-green: 0 0 40px rgba(31, 218, 154, 0.12);
    --t5-glow-red: 0 0 40px rgba(255, 75, 75, 0.12);

    /* ===== TRANSITIONS ===== */
    --t5-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --t5-ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --t5-ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --t5-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --t5-duration-instant: 100ms;
    --t5-duration-fast: 200ms;
    --t5-duration-normal: 300ms;
    --t5-duration-slow: 500ms;
    --t5-duration-slower: 800ms;
    --t5-duration-slowest: 1200ms;

    /* ===== Z-INDEX SCALE ===== */
    --t5-z-base: 0;
    --t5-z-dropdown: 100;
    --t5-z-sticky: 200;
    --t5-z-fixed: 300;
    --t5-z-modal-backdrop: 400;
    --t5-z-modal: 500;
    --t5-z-tooltip: 600;
    --t5-z-toast: 700;

    /* ===== GRADIENTS ===== */
    --t5-gradient-primary: linear-gradient(135deg, var(--t5-primary) 0%, var(--t5-primary-light) 100%);
    --t5-gradient-gold: linear-gradient(135deg, var(--t5-gold) 0%, var(--t5-gold-light) 100%);
    --t5-gradient-green: linear-gradient(135deg, var(--t5-green) 0%, var(--t5-green-light) 100%);
    --t5-gradient-surface: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    --t5-gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(0, 87, 204, 0.08) 0%, transparent 60%);

    /* Icon Container Gradients */
    --t5-gradient-icon-blue: linear-gradient(135deg, rgba(0, 87, 204, 0.15) 0%, rgba(51, 120, 217, 0.06) 100%);
    --t5-gradient-icon-gold: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(229, 193, 88, 0.06) 100%);
    --t5-gradient-icon-green: linear-gradient(135deg, rgba(31, 218, 154, 0.15) 0%, rgba(74, 237, 181, 0.06) 100%);
    --t5-gradient-icon-red: linear-gradient(135deg, rgba(255, 75, 75, 0.15) 0%, rgba(255, 107, 107, 0.06) 100%);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background-color: var(--t5-bg-base);
}

body {
    font-family: var(--t5-font-sans);
    font-size: var(--t5-text-base);
    font-weight: var(--t5-font-normal);
    line-height: var(--t5-leading-normal);
    color: var(--t5-text-primary);
    background-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--t5-primary);
    color: white;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--t5-primary-light);
    text-decoration: none;
    transition: color var(--t5-duration-fast) ease;
}

a:hover {
    color: var(--t5-primary-lighter);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--t5-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--t5-font-bold);
    line-height: var(--t5-leading-tight);
    color: var(--t5-text-primary);
    letter-spacing: var(--t5-tracking-tight);
}

h1 {
    font-size: clamp(2.5rem, 6vw, var(--t5-text-6xl));
    font-weight: var(--t5-font-extrabold);
    letter-spacing: var(--t5-tracking-tighter);
}

h2 {
    font-size: clamp(2rem, 4vw, var(--t5-text-4xl));
    font-weight: var(--t5-font-bold);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, var(--t5-text-2xl));
    font-weight: var(--t5-font-semibold);
}

h4 {
    font-size: var(--t5-text-xl);
    font-weight: var(--t5-font-semibold);
}

h5 {
    font-size: var(--t5-text-lg);
    font-weight: var(--t5-font-medium);
}

h6 {
    font-size: var(--t5-text-base);
    font-weight: var(--t5-font-medium);
}

p {
    color: var(--t5-text-secondary);
    line-height: var(--t5-leading-relaxed);
    margin-bottom: var(--t5-space-4);
}

p:last-child {
    margin-bottom: 0;
}

.t5-lead {
    font-size: var(--t5-text-lg);
    line-height: var(--t5-leading-relaxed);
    color: var(--t5-text-secondary);
}

.t5-small {
    font-size: var(--t5-text-sm);
}

.t5-caption {
    font-size: var(--t5-text-xs);
    color: var(--t5-text-muted);
}

.t5-mono {
    font-family: var(--t5-font-mono);
}

/* Text colors */
.t5-text-gradient {
    background: var(--t5-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.t5-text-gold {
    color: var(--t5-gold);
}

.t5-text-green {
    color: var(--t5-green);
}

.t5-text-red {
    color: var(--t5-red);
}

.t5-text-muted {
    color: var(--t5-text-muted);
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.t5-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--t5-space-4);
}

@media (min-width: 768px) {
    .t5-container {
        padding: 0 var(--t5-space-6);
    }
}

@media (min-width: 1024px) {
    .t5-container {
        padding: 0 var(--t5-space-8);
    }
}

.t5-container--narrow {
    max-width: 800px;
}

.t5-container--wide {
    max-width: 1400px;
}

/* Sections */
.t5-section {
    padding: var(--t5-space-16) 0;
    position: relative;
}

@media (min-width: 768px) {
    .t5-section {
        padding: var(--t5-space-20) 0;
    }
}

@media (min-width: 1024px) {
    .t5-section {
        padding: var(--t5-space-24) 0;
    }
}

.t5-section--sm {
    padding: var(--t5-space-12) 0;
}

.t5-section--lg {
    padding: var(--t5-space-24) 0;
}

@media (min-width: 1024px) {
    .t5-section--lg {
        padding: 120px 0;
    }
}

/* Section backgrounds */
.t5-section--alt {
    background: var(--t5-bg-card);
}

.t5-section--dark {
    background: var(--t5-bg-base);
}

.t5-section--gradient {
    background: linear-gradient(180deg, var(--t5-bg-card) 0%, var(--t5-bg-dark) 100%);
}

/* Section headers */
.t5-section-header {
    margin-bottom: var(--t5-space-12);
}

.t5-section-header--center {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.t5-section-header h2 {
    margin-bottom: var(--t5-space-4);
}

.t5-section-header p {
    font-size: var(--t5-text-lg);
    max-width: 600px;
}

.t5-section-header--center p {
    margin-left: auto;
    margin-right: auto;
}

/* Grid */
.t5-grid {
    display: grid;
    gap: var(--t5-space-6);
}

.t5-grid--2 {
    grid-template-columns: repeat(1, 1fr);
}

.t5-grid--3 {
    grid-template-columns: repeat(1, 1fr);
}

.t5-grid--4 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .t5-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .t5-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .t5-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .t5-grid { gap: var(--t5-space-8); }
}

@media (min-width: 1024px) {
    .t5-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .t5-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   5. PREMIUM ANIMATIONS
   ========================================================================== */

/* Fade in from bottom */
.t5-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.4s var(--t5-ease-out-expo),
                transform 1.4s var(--t5-ease-out-expo);
}

.t5-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in from left */
.t5-fade-in-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 1.4s var(--t5-ease-out-expo),
                transform 1.4s var(--t5-ease-out-expo);
}

.t5-fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.t5-fade-in-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 1.4s var(--t5-ease-out-expo),
                transform 1.4s var(--t5-ease-out-expo);
}

.t5-fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in */
.t5-scale-in {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 1.3s var(--t5-ease-out-expo),
                transform 1.3s var(--t5-ease-out-expo);
}

.t5-scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays */
.t5-stagger-1 { transition-delay: 0.05s; }
.t5-stagger-2 { transition-delay: 0.1s; }
.t5-stagger-3 { transition-delay: 0.15s; }
.t5-stagger-4 { transition-delay: 0.2s; }
.t5-stagger-5 { transition-delay: 0.25s; }
.t5-stagger-6 { transition-delay: 0.3s; }

/* Auto-stagger children */
.t5-stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.t5-stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.t5-stagger-children > *:nth-child(3) { transition-delay: 0.15s; }
.t5-stagger-children > *:nth-child(4) { transition-delay: 0.2s; }
.t5-stagger-children > *:nth-child(5) { transition-delay: 0.25s; }
.t5-stagger-children > *:nth-child(6) { transition-delay: 0.3s; }
.t5-stagger-children > *:nth-child(7) { transition-delay: 0.35s; }
.t5-stagger-children > *:nth-child(8) { transition-delay: 0.4s; }

/* Mobile: Opacity-only animations (no transforms) */
@media (max-width: 767px) {
    .t5-fade-in,
    .t5-fade-in-left,
    .t5-fade-in-right,
    .t5-scale-in {
        transform: none !important;
        transition: opacity 0.8s ease-out !important;
    }

    .t5-fade-in.is-visible,
    .t5-fade-in-left.is-visible,
    .t5-fade-in-right.is-visible,
    .t5-scale-in.is-visible {
        transform: none !important;
    }
}

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.t5-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--t5-space-2);
    padding: var(--t5-space-3) var(--t5-space-6);
    font-family: var(--t5-font-sans);
    font-size: var(--t5-text-sm);
    font-weight: var(--t5-font-semibold);
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--t5-radius-lg);
    cursor: pointer;
    transition: all var(--t5-duration-fast) var(--t5-ease-smooth);
    white-space: nowrap;
}

.t5-btn:disabled,
.t5-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary button */
.t5-btn--primary {
    background: var(--t5-gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 87, 204, 0.3);
}

@media (hover: hover) {
    .t5-btn--primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 87, 204, 0.4);
    }
}

/* Success button */
.t5-btn--success {
    background: var(--t5-gradient-green);
    color: var(--t5-bg-dark);
    box-shadow: 0 4px 16px rgba(31, 218, 154, 0.3);
}

@media (hover: hover) {
    .t5-btn--success:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(31, 218, 154, 0.4);
    }
}

/* Gold/Premium button */
.t5-btn--gold {
    background: var(--t5-gradient-gold);
    color: var(--t5-bg-dark);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

@media (hover: hover) {
    .t5-btn--gold:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    }
}

/* Outline button */
.t5-btn--outline {
    background: transparent;
    color: var(--t5-text-primary);
    border-color: var(--t5-border);
}

@media (hover: hover) {
    .t5-btn--outline:hover {
        border-color: var(--t5-primary);
        color: var(--t5-primary-light);
        background: var(--t5-primary-50);
    }
}

/* Outline light */
.t5-btn--outline-light {
    background: transparent;
    color: var(--t5-text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (hover: hover) {
    .t5-btn--outline-light:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.4);
    }
}

/* Ghost button */
.t5-btn--ghost {
    background: transparent;
    color: var(--t5-text-secondary);
    border-color: transparent;
}

@media (hover: hover) {
    .t5-btn--ghost:hover {
        background: var(--t5-bg-elevated);
        color: var(--t5-text-primary);
    }
}

/* Button sizes */
.t5-btn--sm {
    padding: var(--t5-space-2) var(--t5-space-4);
    font-size: var(--t5-text-xs);
    border-radius: var(--t5-radius-md);
    gap: var(--t5-space-1);
}

.t5-btn--lg {
    padding: var(--t5-space-4) var(--t5-space-8);
    font-size: var(--t5-text-base);
    border-radius: var(--t5-radius-xl);
}

.t5-btn--xl {
    padding: var(--t5-space-5) var(--t5-space-10);
    font-size: var(--t5-text-lg);
    border-radius: var(--t5-radius-xl);
}

/* Full width */
.t5-btn--full {
    width: 100%;
}

/* Icon in button */
.t5-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform var(--t5-duration-fast) ease;
}

.t5-btn--sm svg {
    width: 14px;
    height: 14px;
}

.t5-btn--lg svg {
    width: 20px;
    height: 20px;
}

@media (hover: hover) {
    .t5-btn:hover svg {
        transform: translateX(3px);
    }
}

/* Icon-only button */
.t5-btn--icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--t5-radius-lg);
}

.t5-btn--icon.t5-btn--sm {
    width: 36px;
    height: 36px;
}

.t5-btn--icon.t5-btn--lg {
    width: 52px;
    height: 52px;
}

/* Mobile: No transforms */
@media (max-width: 767px) {
    .t5-btn:hover {
        transform: none !important;
    }

    .t5-btn:hover svg {
        transform: none !important;
    }
}

/* ==========================================================================
   7. CARDS
   ========================================================================== */

.t5-card {
    background: var(--t5-bg-card);
    background-image: var(--t5-gradient-surface);
    border: 1px solid var(--t5-border);
    border-radius: var(--t5-radius-2xl);
    padding: var(--t5-space-6);
    transition: all var(--t5-duration-fast) var(--t5-ease-smooth);
}

/* Desktop hover */
@media (hover: hover) and (min-width: 768px) {
    .t5-card:hover {
        border-color: var(--t5-primary-200);
        box-shadow: var(--t5-shadow-card-hover);
        transform: translateY(-4px);
    }
}

/* Mobile: No transforms */
@media (max-width: 767px) {
    .t5-card {
        padding: var(--t5-space-5);
        border-radius: var(--t5-radius-xl);
    }

    .t5-card:hover {
        transform: none !important;
    }
}

/* Card variants */
.t5-card--featured {
    border: 2px solid var(--t5-gold);
    box-shadow: var(--t5-shadow-card-featured);
}

@media (hover: hover) and (min-width: 768px) {
    .t5-card--featured:hover {
        border-color: var(--t5-gold-light);
        box-shadow: 0 24px 60px -16px rgba(212, 175, 55, 0.25);
    }
}

.t5-card--interactive {
    cursor: pointer;
}

/* Card sections */
.t5-card__header {
    margin-bottom: var(--t5-space-4);
}

.t5-card__body {
    flex: 1;
}

.t5-card__footer {
    margin-top: var(--t5-space-6);
    padding-top: var(--t5-space-4);
    border-top: 1px solid var(--t5-border);
}

/* ==========================================================================
   8. ICON CONTAINERS
   ========================================================================== */

.t5-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--t5-radius-xl);
    flex-shrink: 0;
    transition: all var(--t5-duration-fast) var(--t5-ease-smooth);
}

.t5-icon svg {
    width: 26px;
    height: 26px;
}

/* Variants */
.t5-icon--primary {
    background: var(--t5-gradient-icon-blue);
    color: var(--t5-primary-light);
}

.t5-icon--gold {
    background: var(--t5-gradient-icon-gold);
    color: var(--t5-gold);
}

.t5-icon--green {
    background: var(--t5-gradient-icon-green);
    color: var(--t5-green);
}

.t5-icon--red {
    background: var(--t5-gradient-icon-red);
    color: var(--t5-red);
}

/* Sizes */
.t5-icon--sm {
    width: 40px;
    height: 40px;
    border-radius: var(--t5-radius-lg);
}

.t5-icon--sm svg {
    width: 20px;
    height: 20px;
}

.t5-icon--lg {
    width: 72px;
    height: 72px;
    border-radius: var(--t5-radius-2xl);
}

.t5-icon--lg svg {
    width: 36px;
    height: 36px;
}

.t5-icon--xl {
    width: 88px;
    height: 88px;
    border-radius: var(--t5-radius-2xl);
}

.t5-icon--xl svg {
    width: 44px;
    height: 44px;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .t5-icon {
        width: 48px;
        height: 48px;
        border-radius: var(--t5-radius-lg);
    }

    .t5-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* ==========================================================================
   9. TAGS & BADGES
   ========================================================================== */

.t5-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--t5-space-2);
    padding: var(--t5-space-2) var(--t5-space-4);
    background: var(--t5-primary-100);
    border: 1px solid var(--t5-primary-200);
    color: var(--t5-primary-light);
    font-size: var(--t5-text-xs);
    font-weight: var(--t5-font-bold);
    text-transform: uppercase;
    letter-spacing: var(--t5-tracking-widest);
    border-radius: var(--t5-radius-full);
}

.t5-tag--gold {
    background: var(--t5-gold-100);
    border-color: var(--t5-gold-200);
    color: var(--t5-gold);
}

.t5-tag--green {
    background: var(--t5-green-100);
    border-color: var(--t5-green-200);
    color: var(--t5-green);
}

.t5-tag--red {
    background: var(--t5-red-100);
    border-color: var(--t5-red-200);
    color: var(--t5-red);
}

/* Badge - smaller, inline */
.t5-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--t5-space-1) var(--t5-space-3);
    font-size: 10px;
    font-weight: var(--t5-font-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--t5-radius-full);
}

.t5-badge--primary {
    background: var(--t5-primary);
    color: white;
}

.t5-badge--gold {
    background: var(--t5-gradient-gold);
    color: var(--t5-bg-dark);
}

.t5-badge--green {
    background: var(--t5-green);
    color: var(--t5-bg-dark);
}

.t5-badge--red {
    background: var(--t5-red);
    color: white;
}

/* ==========================================================================
   10. FORM ELEMENTS
   ========================================================================== */

.t5-input {
    display: block;
    width: 100%;
    padding: var(--t5-space-3) var(--t5-space-4);
    font-family: var(--t5-font-sans);
    font-size: var(--t5-text-base);
    color: var(--t5-text-primary);
    background: var(--t5-bg-input);
    border: 1px solid var(--t5-border);
    border-radius: var(--t5-radius-lg);
    transition: all var(--t5-duration-fast) ease;
}

.t5-input::placeholder {
    color: var(--t5-text-muted);
}

.t5-input:focus {
    outline: none;
    border-color: var(--t5-primary);
    box-shadow: 0 0 0 3px var(--t5-primary-100);
}

.t5-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Input sizes */
.t5-input--sm {
    padding: var(--t5-space-2) var(--t5-space-3);
    font-size: var(--t5-text-sm);
}

.t5-input--lg {
    padding: var(--t5-space-4) var(--t5-space-5);
    font-size: var(--t5-text-lg);
}

/* Input states */
.t5-input--error {
    border-color: var(--t5-red);
}

.t5-input--error:focus {
    box-shadow: 0 0 0 3px var(--t5-red-100);
}

.t5-input--success {
    border-color: var(--t5-green);
}

/* Label */
.t5-label {
    display: block;
    margin-bottom: var(--t5-space-2);
    font-size: var(--t5-text-sm);
    font-weight: var(--t5-font-medium);
    color: var(--t5-text-secondary);
}

/* Helper text */
.t5-helper {
    margin-top: var(--t5-space-2);
    font-size: var(--t5-text-sm);
    color: var(--t5-text-muted);
}

.t5-helper--error {
    color: var(--t5-red);
}

/* ==========================================================================
   11. TABLES
   ========================================================================== */

.t5-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--t5-radius-2xl);
    background: var(--t5-bg-card);
    border: 1px solid var(--t5-border);
}

.t5-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.t5-table th {
    padding: var(--t5-space-4) var(--t5-space-5);
    text-align: left;
    font-size: var(--t5-text-xs);
    font-weight: var(--t5-font-bold);
    text-transform: uppercase;
    letter-spacing: var(--t5-tracking-wider);
    color: var(--t5-text-muted);
    background: var(--t5-bg-elevated);
    border-bottom: 1px solid var(--t5-border);
}

.t5-table td {
    padding: var(--t5-space-4) var(--t5-space-5);
    font-size: var(--t5-text-sm);
    color: var(--t5-text-secondary);
    border-bottom: 1px solid var(--t5-border);
    vertical-align: middle;
}

.t5-table tr:last-child td {
    border-bottom: none;
}

@media (hover: hover) and (min-width: 768px) {
    .t5-table tbody tr:hover td {
        background: var(--t5-primary-50);
    }
}

/* ==========================================================================
   12. ALERTS & FEEDBACK
   ========================================================================== */

.t5-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--t5-space-3);
    padding: var(--t5-space-4);
    border-radius: var(--t5-radius-lg);
    font-size: var(--t5-text-sm);
}

.t5-alert--info {
    background: var(--t5-primary-50);
    border: 1px solid var(--t5-primary-200);
    color: var(--t5-primary-light);
}

.t5-alert--success {
    background: var(--t5-green-50);
    border: 1px solid var(--t5-green-200);
    color: var(--t5-green);
}

.t5-alert--warning {
    background: var(--t5-gold-50);
    border: 1px solid var(--t5-gold-200);
    color: var(--t5-gold);
}

.t5-alert--error {
    background: var(--t5-red-50);
    border: 1px solid var(--t5-red-200);
    color: var(--t5-red);
}

/* ==========================================================================
   13. DIVIDERS & SPACERS
   ========================================================================== */

.t5-divider {
    height: 1px;
    background: var(--t5-border);
    border: none;
    margin: var(--t5-space-8) 0;
}

.t5-divider--light {
    background: var(--t5-border-light);
}

/* Spacers */
.t5-spacer-sm { height: var(--t5-space-4); }
.t5-spacer-md { height: var(--t5-space-8); }
.t5-spacer-lg { height: var(--t5-space-12); }
.t5-spacer-xl { height: var(--t5-space-16); }

/* ==========================================================================
   14. UTILITY CLASSES
   ========================================================================== */

/* Display */
.t5-hidden { display: none !important; }
.t5-block { display: block; }
.t5-inline-block { display: inline-block; }
.t5-flex { display: flex; }
.t5-inline-flex { display: inline-flex; }
.t5-grid { display: grid; }

/* Flex utilities */
.t5-items-center { align-items: center; }
.t5-items-start { align-items: flex-start; }
.t5-items-end { align-items: flex-end; }
.t5-justify-center { justify-content: center; }
.t5-justify-between { justify-content: space-between; }
.t5-justify-end { justify-content: flex-end; }
.t5-flex-wrap { flex-wrap: wrap; }
.t5-flex-col { flex-direction: column; }
.t5-gap-2 { gap: var(--t5-space-2); }
.t5-gap-3 { gap: var(--t5-space-3); }
.t5-gap-4 { gap: var(--t5-space-4); }
.t5-gap-6 { gap: var(--t5-space-6); }
.t5-gap-8 { gap: var(--t5-space-8); }

/* Text alignment */
.t5-text-left { text-align: left; }
.t5-text-center { text-align: center; }
.t5-text-right { text-align: right; }

/* Margin utilities */
.t5-mt-0 { margin-top: 0; }
.t5-mt-4 { margin-top: var(--t5-space-4); }
.t5-mt-6 { margin-top: var(--t5-space-6); }
.t5-mt-8 { margin-top: var(--t5-space-8); }
.t5-mb-0 { margin-bottom: 0; }
.t5-mb-4 { margin-bottom: var(--t5-space-4); }
.t5-mb-6 { margin-bottom: var(--t5-space-6); }
.t5-mb-8 { margin-bottom: var(--t5-space-8); }
.t5-mx-auto { margin-left: auto; margin-right: auto; }

/* Padding utilities */
.t5-p-4 { padding: var(--t5-space-4); }
.t5-p-6 { padding: var(--t5-space-6); }
.t5-p-8 { padding: var(--t5-space-8); }

/* Border radius */
.t5-rounded { border-radius: var(--t5-radius-md); }
.t5-rounded-lg { border-radius: var(--t5-radius-lg); }
.t5-rounded-xl { border-radius: var(--t5-radius-xl); }
.t5-rounded-full { border-radius: var(--t5-radius-full); }

/* Shadows */
.t5-shadow { box-shadow: var(--t5-shadow-md); }
.t5-shadow-lg { box-shadow: var(--t5-shadow-lg); }
.t5-shadow-xl { box-shadow: var(--t5-shadow-xl); }

/* Screen reader only */
.t5-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   15. RESPONSIVE VISIBILITY
   ========================================================================== */

.t5-hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .t5-hide-mobile {
        display: block;
    }

    .t5-hide-desktop {
        display: none !important;
    }
}

/* ==========================================================================
   16. LOADING STATES
   ========================================================================== */

.t5-skeleton {
    background: linear-gradient(
        90deg,
        var(--t5-bg-elevated) 0%,
        var(--t5-bg-hover) 50%,
        var(--t5-bg-elevated) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--t5-radius-md);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.t5-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--t5-border);
    border-top-color: var(--t5-primary);
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

.t5-spinner--sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.t5-spinner--lg {
    width: 32px;
    height: 32px;
    border-width: 4px;
}
