/* ============================================
   ASOCIAR TAX CALCULATOR - MODERN UI/UX
   ============================================ */

/* === ROOT VARIABLES === */
:root {
    /* Color Palette */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #10b981;
    --accent-red: #ef4444;

    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --error: #ef4444;
    --error-bg: #fee2e2;
    --info: #3b82f6;
    --info-bg: #dbeafe;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundPulse 20s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

svg {
    display: block;
}

/* === NAVIGATION === */
.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0);
    transition: all var(--transition-base);
}

.navbar:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-logo {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--gray-100);
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        );
    animation: slide 40s linear infinite;
    pointer-events: none;
}

@keyframes slide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* === MAIN CONTAINER === */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    flex: 1;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* === CARD COMPONENT === */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card:hover::before {
    left: 100%;
}

.upload-card {
    /* Specific styling for upload card if needed */
}

.card-header {
    margin-bottom: var(--space-xl);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.card-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* === FILE DROP ZONE === */
.file-drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    text-align: center;
    transition: all var(--transition-base);
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.file-drop-zone::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 200%;
    opacity: 0;
    z-index: -1;
    border-radius: var(--radius-lg);
    transition: opacity var(--transition-base);
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.file-drop-zone:hover {
    border-color: var(--primary);
    background: var(--info-bg);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.file-drop-zone:hover::before {
    opacity: 0.3;
}

.file-drop-zone.dragover {
    border-color: var(--primary);
    background: var(--info-bg);
    border-style: solid;
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
}

.file-drop-zone.dragover::before {
    opacity: 0.5;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
    stroke-width: 1.5;
    transition: all var(--transition-base);
}

.file-drop-zone:hover .upload-icon {
    color: var(--primary);
    transform: translateY(-4px);
}

.drop-zone-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-700);
}

.drop-zone-subtext {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.browse-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.browse-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s;
}

.browse-button:hover::before {
    left: 100%;
}

.browse-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.browse-button input[type="file"] {
    display: none;
}

.file-name-display {
    margin-top: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: white;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

.file-name-display:empty {
    display: none;
}

/* === FILE REQUIREMENTS === */
.file-requirements {
    margin-top: var(--space-xl);
}

.requirements-details {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.requirements-summary {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--gray-50);
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    list-style: none;
}

.requirements-summary::-webkit-details-marker {
    display: none;
}

.requirements-summary:hover {
    background: var(--gray-100);
}

.info-icon {
    width: 20px;
    height: 20px;
    color: var(--info);
    flex-shrink: 0;
}

.requirements-content {
    padding: var(--space-xl);
    background: white;
}

.requirements-intro {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--gray-700);
}

.requirement-icon {
    font-size: 1.25rem;
}

.requirements-note {
    padding: var(--space-md);
    background: var(--info-bg);
    border-left: 3px solid var(--info);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
}

.sample-download-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--gray-900);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.sample-download-link:hover {
    background: var(--gray-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sample-download-link svg {
    width: 18px;
    height: 18px;
}

/* === SETTINGS SECTION === */
.settings-section {
    margin-top: var(--space-xl);
}

.settings-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.settings-toggle:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.settings-toggle svg {
    width: 20px;
    height: 20px;
}

.settings-icon {
    margin-right: auto;
}

.chevron-icon {
    transition: transform var(--transition-base);
}

.settings-toggle.collapsed .chevron-icon {
    transform: rotate(-90deg);
}

.settings-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.settings-content:not(.collapsed) {
    max-height: 2000px;
    padding: var(--space-xl);
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: white;
}

.settings-content.collapsed {
    max-height: 0;
    padding: 0;
    border: none;
}

.settings-group {
    margin-bottom: var(--space-xl);
}

.settings-heading {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--gray-200);
}

.heading-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

/* === INPUT GROUPS === */
.input-group {
    margin-bottom: var(--space-lg);
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.input-field {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: var(--font-mono);
    transition: all var(--transition-fast);
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

/* === CHECKBOX STYLES === */
.setting-option {
    margin-bottom: var(--space-lg);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.checkbox-label:hover {
    background: var(--gray-50);
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
    animation: checkboxPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkboxPop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkmarkDraw 0.3s ease-out 0.1s;
}

@keyframes checkmarkDraw {
    0% {
        height: 0;
    }
    100% {
        height: 9px;
    }
}

.checkbox-text {
    font-size: 0.9375rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* === NESTED OPTIONS === */
.nested-options {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition-slow);
    margin-left: var(--space-2xl);
}

.nested-options.active {
    max-height: 1000px;
    opacity: 1;
    margin-top: var(--space-lg);
}

/* === INFO BOX === */
.info-box {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--info-bg);
    border-left: 3px solid var(--info);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.info-box-icon {
    width: 24px;
    height: 24px;
    color: var(--info);
    flex-shrink: 0;
}

.info-box-content {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.info-box-content p {
    margin-bottom: var(--space-sm);
}

.info-box-content p:last-child {
    margin-bottom: 0;
}

/* === FORM FOOTER === */
.form-footer {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.captcha-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.captcha-error {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    color: var(--error);
    font-size: 0.875rem;
    margin-top: var(--space-md);
}

.captcha-error svg {
    width: 18px;
    height: 18px;
}

.terms-acceptance {
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: center;
}

/* === BUTTONS === */
.primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-lg) var(--space-2xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.primary-button:hover::before {
    width: 300px;
    height: 300px;
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

.primary-button:active:not(:disabled) {
    transform: translateY(-1px);
}

.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: var(--shadow-sm);
}

.button-icon {
    width: 20px;
    height: 20px;
}

/* === LOADER === */
.loader {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite, pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
    }
}

.loader-text {
    color: var(--gray-600);
    font-weight: 500;
}

/* === ERROR MESSAGE === */
.error-message {
    display: none;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--error-bg);
    border-left: 3px solid var(--error);
    border-radius: var(--radius-md);
    margin-top: var(--space-xl);
}

.error-message svg {
    width: 24px;
    height: 24px;
    color: var(--error);
    flex-shrink: 0;
}

.error-text {
    color: var(--error);
    font-weight: 500;
}

/* === RESULTS SECTION === */
.results-section {
    display: none;
    margin-top: var(--space-3xl);
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2xl);
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.6s ease-out;
}

.results-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
}

.export-buttons {
    display: flex;
    gap: var(--space-md);
}

.export-button {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.export-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s;
}

.export-button:hover::before {
    left: 100%;
}

.export-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.export-button svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.export-button:hover svg {
    transform: scale(1.2) rotate(5deg);
}

.export-button.pdf:hover {
    border-color: var(--error);
    color: var(--error);
    background: linear-gradient(135deg, #fff 0%, #fee2e2 100%);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.export-button.csv:hover {
    border-color: var(--success);
    color: var(--success);
    background: linear-gradient(135deg, #fff 0%, #d1fae5 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* === SECTION TITLES === */
.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-xl);
    position: relative;
    padding-bottom: var(--space-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

.title-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.title-icon.warning {
    color: var(--warning);
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 transparent);
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
    }
}

/* === TAX YEAR CARDS === */
.tax-summary-section {
    margin-bottom: var(--space-2xl);
}

.tax-year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.tax-year-grid .tax-year-card {
    animation: cardSlideIn 0.5s ease-out backwards;
}

.tax-year-grid .tax-year-card:nth-child(1) {
    animation-delay: 0.1s;
}

.tax-year-grid .tax-year-card:nth-child(2) {
    animation-delay: 0.2s;
}

.tax-year-grid .tax-year-card:nth-child(3) {
    animation-delay: 0.3s;
}

.tax-year-grid .tax-year-card:nth-child(4) {
    animation-delay: 0.4s;
}

.tax-year-grid .tax-year-card:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tax-year-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tax-year-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.tax-year-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tax-year-card:hover::before {
    opacity: 0.3;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tax-year-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.tax-amount {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
    background-clip: text;
    -webkit-background-clip: text;
    position: relative;
    display: inline-block;
    animation: numberPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes numberPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.tax-year-card.tax-positive {
    border-color: var(--error);
    background: linear-gradient(135deg, #fff 0%, #fee2e2 100%);
}

.tax-year-card.tax-positive .tax-amount {
    color: var(--error);
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    animation: glowPulseRed 3s ease-in-out infinite;
}

@keyframes glowPulseRed {
    0%, 100% {
        text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
    }
}

.tax-year-card.tax-negative {
    border-color: var(--success);
    background: linear-gradient(135deg, #fff 0%, #d1fae5 100%);
}

.tax-year-card.tax-negative .tax-amount {
    color: var(--success);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    animation: glowPulseGreen 3s ease-in-out infinite;
}

@keyframes glowPulseGreen {
    0%, 100% {
        text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
    }
}

.tax-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.loss-indicator, .tax-due-indicator {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.loss-indicator {
    background: var(--success);
    color: white;
}

.tax-due-indicator {
    background: var(--error);
    color: white;
}

.tax-breakdown {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

.tax-breakdown > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    color: var(--gray-700);
}

.tax-breakdown .label {
    font-weight: 500;
}

.tax-breakdown .negative-value {
    color: var(--success);
}

/* === WARNING CARD === */
.warning-card {
    border-left: 4px solid var(--warning);
    background: linear-gradient(135deg, #fff 0%, var(--warning-bg) 100%);
}

/* === DATA TABLES === */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-top: var(--space-lg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

.data-table th {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 0 var(--primary);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table td {
    padding: var(--space-lg);
    color: var(--gray-700);
}

.data-table tbody tr.long-term {
    background: var(--success-bg);
}

.data-table tbody tr.short-term {
    background: var(--warning-bg);
}

/* === HOLDING PERIOD TAGS === */
.holding-period-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.holding-period-tag.long-term {
    background: var(--success);
    color: white;
}

.holding-period-tag.short-term {
    background: var(--warning);
    color: white;
}

.holding-period-tag.na {
    background: var(--gray-300);
    color: var(--gray-700);
}

/* === HOLDING PERIOD CARDS === */
.holding-period-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.period-info-card {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 2px solid;
}

.period-info-card.short-term {
    border-color: var(--warning);
    background: linear-gradient(135deg, #fff 0%, var(--warning-bg) 100%);
}

.period-info-card.long-term {
    border-color: var(--success);
    background: linear-gradient(135deg, #fff 0%, var(--success-bg) 100%);
}

.period-info-card h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.period-info-card .amount {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: var(--space-sm);
}

.period-info-card .rate {
    color: var(--gray-600);
    font-weight: 500;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    position: relative;
    padding: var(--space-2xl);
}

.close-button {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-button:hover {
    color: var(--gray-700);
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--gray-900);
}

.modal-buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.modal-buttons .button {
    flex: 1;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-base);
}

.modal-buttons .button.secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.modal-buttons .button.secondary:hover {
    background: var(--gray-300);
}

.modal-buttons .button:not(.secondary) {
    background: var(--primary);
    color: white;
}

.modal-buttons .button:not(.secondary):hover {
    background: var(--primary-dark);
}

/* === PROGRESS BAR === */
.download-progress {
    margin: var(--space-xl) 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-xl);
    transition: width var(--transition-base);
}

#downloadStatus {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.download-options {
    margin: var(--space-lg) 0;
}

.option-group {
    margin-bottom: var(--space-md);
}

.pdf-only {
    /* Show only for PDF downloads */
}

.modal-terms {
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.modal-terms ul {
    padding-left: var(--space-xl);
    margin: var(--space-md) 0;
}

.modal-terms li {
    margin-bottom: var(--space-sm);
}

/* === FOOTER === */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-2xl) var(--space-xl);
    margin-top: var(--space-3xl);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.875rem;
}

.footer-link {
    color: var(--gray-300);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: white;
}

.footer-divider {
    color: var(--gray-600);
}

.footer-copy {
    color: var(--gray-500);
}

/* === LINK STYLES === */
.link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color var(--transition-fast);
}

.link:hover {
    text-decoration-color: var(--primary);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-2xl) var(--space-lg);
    }

    .hero-title {
        font-size: 2rem;
    }

    .main-container {
        padding: var(--space-xl) var(--space-lg);
    }

    .card {
        padding: var(--space-lg);
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
    }

    .export-buttons {
        width: 100%;
        flex-direction: column;
    }

    .export-button {
        width: 100%;
        justify-content: center;
    }

    .tax-year-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .table-wrapper {
        font-size: 0.75rem;
    }

    .data-table th,
    .data-table td {
        padding: var(--space-sm) var(--space-md);
    }
}

/* === UTILITIES === */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* === TOOLTIP === */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-900);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* === FEES SUMMARY === */
.fees-summary-card {
    margin-top: var(--space-lg);
}

.fees-total {
    text-align: center;
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.fees-total h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    color: var(--gray-700);
}

.fees-total .total-amount {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--gray-900);
}

.fees-total .fee-info {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: var(--space-sm);
}

.fees-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.fee-category {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.fee-category.buy {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff 0%, var(--info-bg) 100%);
}

.fee-category.sell {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #fff 0%, #ede9fe 100%);
}

.fee-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.fee-icon.buy {
    background: var(--primary);
}

.fee-icon.sell {
    background: var(--secondary);
}

.fee-details h5 {
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
    color: var(--gray-600);
}

.fee-details p {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: var(--space-xs);
}

.fee-details .fee-info {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.fees-explanation {
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.fees-explanation h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.fees-explanation p {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.fee-info-disabled {
    color: var(--warning);
    font-weight: 500;
}

.fees-by-asset {
    margin-top: var(--space-xl);
}

.fees-by-asset h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
}

.fees-table th {
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.fees-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

/* === WASH SALE STYLES === */
.wash-sale-disabled {
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--gray-600);
}

.disallowed-summary {
    margin-bottom: var(--space-xl);
}

.disallowed-summary h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.wash-sale-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-md);
}

.wash-sale-table th {
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.wash-sale-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

.wash-sale-details {
    margin-top: var(--space-xl);
}

.wash-sale-details h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.wash-sale-detail {
    padding: var(--space-lg);
    background: var(--gray-50);
    border-left: 3px solid var(--warning);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
}

.wash-sale-detail > div {
    margin-bottom: var(--space-sm);
}

.wash-sale-asset {
    font-weight: 600;
    color: var(--gray-900);
}

.wash-sale-date {
    color: var(--gray-600);
}

.wash-sale-amount {
    font-family: var(--font-mono);
    font-weight: 600;
}

.replacement-buys {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
}

.replacement-buy-item {
    padding: var(--space-sm);
    background: white;
    border-radius: var(--radius-sm);
    margin-top: var(--space-sm);
}

.wash-sale-explanation {
    padding: var(--space-lg);
    background: var(--info-bg);
    border-left: 3px solid var(--info);
    border-radius: var(--radius-md);
    margin-top: var(--space-xl);
}

.wash-sale-explanation h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.wash-sale-explanation p {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

/* === INSUFFICIENT HOLDINGS === */
.warning-explanation {
    padding: var(--space-lg);
    background: var(--warning-bg);
    border-left: 3px solid var(--warning);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.warning-explanation p {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.warning-explanation ul {
    padding-left: var(--space-xl);
    margin: var(--space-md) 0;
}

.warning-explanation li {
    margin-bottom: var(--space-sm);
}

.warning-suggestion {
    font-weight: 600;
    color: var(--warning);
}

.insufficient-holdings-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
}

.insufficient-holdings-table th {
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

.insufficient-holdings-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

.warning-row {
    background: var(--warning-bg);
}

/* === HOLDING PERIOD STATS === */
.holding-period-stats {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.holding-period-stats p {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

/* === TERMS PAGE STYLES === */
.terms-card {
    max-width: 900px;
    margin: 0 auto var(--space-2xl) auto;
}

.terms-intro {
    text-align: center;
    padding-bottom: var(--space-2xl);
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: var(--space-2xl);
}

.terms-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.terms-date {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.terms-welcome {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.terms-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    transition: all var(--transition-base);
}

.terms-section:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.terms-section.disclaimer-section {
    border-left-color: var(--warning);
    background: var(--warning-bg);
}

.terms-section.disclaimer-section:hover {
    background: linear-gradient(135deg, #fff 0%, var(--warning-bg) 100%);
}

.terms-heading {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
}

.terms-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.terms-subsection {
    margin-bottom: var(--space-lg);
}

.terms-subsection:last-child {
    margin-bottom: 0;
}

.terms-subheading {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-md);
}

.terms-section p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--space-md);
}

.terms-section p:last-child {
    margin-bottom: 0;
}

.terms-section a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color var(--transition-fast);
}

.terms-section a:hover {
    text-decoration-color: var(--primary);
}

.warning-box {
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--warning);
}

.caps-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.8;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.disclaimer-list {
    margin: var(--space-lg) 0;
    padding-left: var(--space-xl);
}

.disclaimer-list li {
    font-size: 0.875rem;
    color: var(--gray-800);
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

.contact-email {
    display: flex;
    align-items: center;
    padding: var(--space-lg);
    background: var(--info-bg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--gray-800);
    margin-top: var(--space-md);
}

.contact-email svg {
    color: var(--primary);
}

.terms-final {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.terms-final p {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
}

.back-link-container {
    text-align: center;
    margin: var(--space-2xl) 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

.back-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}
