/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Material Design 3 Typography System */
:root {
    /* Display Large - Main Title */
    --md-display-large: 400 57px/64px 'Google Sans', 'Roboto', sans-serif;
    --md-display-large-letter-spacing: -0.25px;
    
    /* Display Medium - Section Headers */
    --md-display-medium: 400 45px/52px 'Google Sans', 'Roboto', sans-serif;
    --md-display-medium-letter-spacing: 0px;
    
    /* Headline Large - Panel Headers */
    --md-headline-large: 400 32px/40px 'Google Sans', 'Roboto', sans-serif;
    --md-headline-large-letter-spacing: 0px;
    
    /* Headline Medium - Sub Headers */
    --md-headline-medium: 400 28px/36px 'Google Sans', 'Roboto', sans-serif;
    --md-headline-medium-letter-spacing: 0px;
    
    /* Headline Small - Card Headers */
    --md-headline-small: 400 24px/32px 'Google Sans', 'Roboto', sans-serif;
    --md-headline-small-letter-spacing: 0px;
    
    /* Title Large - Important Text */
    --md-title-large: 400 22px/28px 'Google Sans', 'Roboto', sans-serif;
    --md-title-large-letter-spacing: 0px;
    
    /* Title Medium - Labels */
    --md-title-medium: 500 16px/24px 'Google Sans', 'Roboto', sans-serif;
    --md-title-medium-letter-spacing: 0.15px;
    
    /* Title Small - Small Labels */
    --md-title-small: 500 14px/20px 'Google Sans', 'Roboto', sans-serif;
    --md-title-small-letter-spacing: 0.1px;
    
    /* Body Large - Main Content */
    --md-body-large: 400 16px/24px 'Roboto', sans-serif;
    --md-body-large-letter-spacing: 0.5px;
    
    /* Body Medium - Regular Text */
    --md-body-medium: 400 14px/20px 'Roboto', sans-serif;
    --md-body-medium-letter-spacing: 0.25px;
    
    /* Body Small - Captions */
    --md-body-small: 400 12px/16px 'Roboto', sans-serif;
    --md-body-small-letter-spacing: 0.4px;
    
    /* Label Large - Buttons */
    --md-label-large: 500 14px/20px 'Roboto', sans-serif;
    --md-label-large-letter-spacing: 0.1px;
    
    /* Label Medium - Small Buttons */
    --md-label-medium: 500 12px/16px 'Roboto', sans-serif;
    --md-label-medium-letter-spacing: 0.5px;
    
    /* Label Small - Tiny Text */
    --md-label-small: 500 11px/16px 'Roboto', sans-serif;
    --md-label-small-letter-spacing: 0.5px;
}

/* Light Theme (Default) */
:root {
    /* Colors */
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-secondary: rgba(255, 255, 255, 0.95);
    --bg-tertiary: rgba(255, 255, 255, 0.1);
    --bg-card: #f8f9fa;
    --bg-input: #fafafa;
    
    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-tertiary: #e3f2fd;
    --text-white: #ffffff;
    
    /* Borders */
    --border-primary: rgba(255, 255, 255, 0.2);
    --border-secondary: #e0e0e0;
    --border-card: #e9ecef;
    
    /* Shadows */
    --shadow-primary: rgba(0, 0, 0, 0.08);
    --shadow-secondary: rgba(0, 0, 0, 0.12);
    --shadow-tertiary: rgba(0, 0, 0, 0.1);
    
    /* Accent Colors */
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-success: #4caf50;
    --accent-warning: #f39c12;
    --accent-error: #e74c3c;
}

/* Dark Theme */
[data-theme="dark"] {
    /* Colors */
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-secondary: rgba(30, 30, 46, 0.95);
    --bg-tertiary: rgba(255, 255, 255, 0.05);
    --bg-card: #2a2a3e;
    --bg-input: #3a3a4e;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #e3f2fd;
    --text-white: #ffffff;
    
    /* Borders */
    --border-primary: rgba(255, 255, 255, 0.15);
    --border-secondary: #505050;
    --border-card: #505050;
    
    /* Shadows */
    --shadow-primary: rgba(0, 0, 0, 0.3);
    --shadow-secondary: rgba(0, 0, 0, 0.4);
    --shadow-tertiary: rgba(0, 0, 0, 0.2);
    
    /* Accent Colors */
    --accent-primary: #7c93f3;
    --accent-secondary: #9c7cf3;
    --accent-success: #66bb6a;
    --accent-warning: #ffb74d;
    --accent-error: #ef5350;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    background-attachment: fixed;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Header */
header {
    margin-bottom: 32px;
    color: white;
    padding: 20px;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    box-shadow: 0 6px 20px var(--shadow-tertiary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.header-content {
    flex: 1;
    text-align: center;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.bitcoin-icon {
    font-size: 3rem;
    font-weight: 900;
    color: #f7931a;
    text-shadow: 0 2px 8px rgba(247, 147, 26, 0.3);
    animation: bitcoin-glow 2s ease-in-out infinite alternate;
}

@keyframes bitcoin-glow {
    from {
        text-shadow: 0 2px 8px rgba(247, 147, 26, 0.3);
        transform: scale(1);
    }
    to {
        text-shadow: 0 4px 16px rgba(247, 147, 26, 0.6);
        transform: scale(1.05);
    }
}

.header-content h1 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.header-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    text-align: center;
}

.bitcoin-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-item:hover {
    background: rgba(247, 147, 26, 0.15);
    border-color: rgba(247, 147, 26, 0.3);
    transform: translateY(-2px);
}

.info-item .label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f7931a;
}

/* Theme Toggle */
.theme-toggle-container {
    flex-shrink: 0;
    margin-left: 24px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.toggle-track {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-secondary);
}

.toggle-thumb {
    position: relative;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

[data-theme="dark"] .toggle-thumb {
    transform: translateX(24px);
}

.sun-icon,
.moon-icon {
    position: absolute;
    width: 14px;
    height: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-icon {
    opacity: 1;
    transform: scale(1);
}

.moon-icon {
    opacity: 0;
    transform: scale(0.8);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: scale(0.8);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: scale(1);
}

header h1 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

header p {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
    color: #e3f2fd;
}

/* Main layout */
.calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

/* Control panel */
.control-panel {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 20px var(--shadow-primary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Info banner */
.info-banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.info-banner p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-banner strong {
    color: var(--accent-primary);
}

/* Dark theme info banner overrides */
[data-theme="dark"] .info-banner {
    background: linear-gradient(135deg, rgba(124, 147, 243, 0.15) 0%, rgba(156, 124, 243, 0.15) 100%);
    border-color: var(--accent-primary);
}

.control-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.control-panel h2 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.input-group {
    margin-bottom: 18px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font: var(--md-title-medium);
    letter-spacing: var(--md-title-medium-letter-spacing);
}

.input-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-secondary);
    border-radius: 12px;
    font: var(--md-body-large);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-input);
    color: var(--text-primary);
    box-sizing: border-box;
    height: 48px;
    display: flex;
    align-items: center;
}

.input-group input[type="number"]:hover {
    background: #f5f5f5;
    border-color: #bdbdbd;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* Dark theme input overrides */
[data-theme="dark"] .input-group input[type="number"]:hover {
    background: #4a4a5e;
    border-color: #606060;
}

[data-theme="dark"] .input-group input[type="number"]:focus {
    background: #3a3a4e;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(124, 147, 243, 0.2);
}

/* Select styling */
.input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-secondary);
    border-radius: 12px;
    font: var(--md-body-large);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-input);
    color: var(--text-primary);
    box-sizing: border-box;
    height: 48px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

.input-group select option {
    background: var(--bg-input);
    color: var(--text-primary);
    padding: 8px;
}

[data-theme="dark"] .input-group select option {
    background: var(--bg-input);
    color: var(--text-primary);
}

.input-group select:hover {
    background-color: #f5f5f5;
    border-color: #bdbdbd;
}

.input-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* Dark theme select overrides */
[data-theme="dark"] .input-group select {
    background-color: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

[data-theme="dark"] .input-group select:hover {
    background-color: #4a4a5e;
    border-color: #606060;
}

[data-theme="dark"] .input-group select:focus {
    background: #3a3a4e;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(124, 147, 243, 0.2);
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 12px;
    border: 2px solid var(--border-secondary);
    background: var(--bg-input);
    box-shadow: 0 2px 8px var(--shadow-tertiary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-sizing: border-box;
    height: 48px;
}

.input-with-unit:hover {
    border-color: var(--border-primary);
    box-shadow: 0 4px 16px var(--shadow-secondary);
    transform: translateY(-1px);
}

/* Asegurar que todos los inputs tengan la misma apariencia */
.input-group input[type="number"],
.input-with-unit {
    min-height: 48px;
    max-height: 48px;
}

/* Centrar texto verticalmente en todos los inputs */
.input-group input[type="number"]::placeholder,
.input-with-unit input::placeholder {
    line-height: 48px;
}

.input-with-unit input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    background: transparent;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none !important;
    outline: none;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.input-with-unit input:hover {
    background: rgba(255, 255, 255, 0.05);
    border: none !important;
    box-shadow: none !important;
}

.input-with-unit input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border: none !important;
    box-shadow: none !important;
}

.input-with-unit:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    background: var(--bg-input);
}

.input-with-unit .unit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 0;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    height: 100%;
    flex-shrink: 0;
}

/* Dark theme input-with-unit overrides */
[data-theme="dark"] .input-with-unit input:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .input-with-unit input:focus {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .input-with-unit:focus-within {
    background: #3a3a4e;
    box-shadow: 0 0 0 4px rgba(124, 147, 243, 0.2);
}

.input-with-unit .unit::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
}

.input-with-unit:hover .unit {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.refresh-price-btn {
    margin-top: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font: var(--md-label-medium);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    letter-spacing: var(--md-label-medium-letter-spacing);
}

.refresh-price-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.refresh-price-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.refresh-price-btn:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Sliders */
.slider-container {
    margin-bottom: 16px;
    position: relative;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #e0e0e0 0%, #bdbdbd 100%);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-container input[type="range"]:hover {
    background: linear-gradient(90deg, #d5d5d5 0%, #b0b0b0 100%);
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid white;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.slider-value {
    text-align: center;
    font-weight: 700;
    color: #667eea;
    font: var(--md-title-large);
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    min-width: 80px;
}

/* Dark theme slider overrides */
[data-theme="dark"] .slider-container input[type="range"] {
    background: linear-gradient(90deg, #404040 0%, #505050 100%);
}

[data-theme="dark"] .slider-container input[type="range"]:hover {
    background: linear-gradient(90deg, #505050 0%, #606060 100%);
}

[data-theme="dark"] .slider-value {
    background: rgba(124, 147, 243, 0.2);
    color: #7c93f3;
}

/* Toggle switch */
.strategy-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.strategy-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.strategy-toggle span {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
}

/* Dark theme toggle overrides */
[data-theme="dark"] .strategy-toggle {
    background: linear-gradient(135deg, #2a2a3e 0%, #3a3a4e 100%);
    border: 1px solid rgba(124, 147, 243, 0.2);
}

[data-theme="dark"] .strategy-toggle span {
    color: #e0e0e0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 36px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 36px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

input:checked + .slider-round {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .slider-round:before {
    transform: translateX(28px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.info-icon {
    background: #667eea;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    cursor: help;
}

/* Calculate button */
.calculate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font: var(--md-label-large);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.3);
    letter-spacing: var(--md-label-large-letter-spacing);
    text-transform: uppercase;
}

.calculate-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.calculate-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Results panel */
.results-panel {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.results-panel h2 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

/* Dark theme results panel overrides */
[data-theme="dark"] .results-panel {
    background: rgba(42, 42, 62, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .results-panel h2 {
    color: #ffffff;
}

.results-content {
    flex: 1;
    display: flex;
    align-items: top;
    justify-content: center;
    text-align: center;
}

.welcome-message h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message p {
    color: #666;
    line-height: 1.7;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Dark theme welcome message overrides */
[data-theme="dark"] .welcome-message p {
    color: #b0b0b0;
}

/* Resultados del cálculo */
.calculation-result {
    width: 100%;
    text-align: center;
}

/* Highlight result for optimal retirement age */
.highlight-result {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid var(--accent-primary);
    border-radius: 0;
    padding: 12px;
    margin: 0;
    text-align: center;
}

/* Special styling for immediate retirement */
.highlight-result h3:contains("retire NOW") {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Alternative approach for immediate retirement styling */
.highlight-result h3 {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Input placeholder styling for calculated fields */
.input-group input[readonly]::placeholder {
    color: var(--accent-primary);
    font-style: italic;
    font-weight: 500;
}

[data-theme="dark"] .input-group input[readonly]::placeholder {
    color: #7c93f3;
}

.highlight-result h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-result p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

/* Dark theme highlight overrides */
[data-theme="dark"] .highlight-result {
    background: linear-gradient(135deg, rgba(124, 147, 243, 0.15) 0%, rgba(156, 124, 243, 0.15) 100%);
    border-color: var(--accent-primary);
    color: #ffffff;
}

[data-theme="dark"] .highlight-result h3 {
    color: #ffffff;
}

[data-theme="dark"] .highlight-result p {
    color: #b0b0b0;
}

.result-success {
    color: #27ae60;
}

.result-warning {
    color: #f39c12;
}

.result-danger {
    color: #e74c3c;
}

.result-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 8px 0;
}

.result-details {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 0;
    margin: 0;
    text-align: left;
}

.result-details h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.result-details ul {
    list-style: none;
    padding: 0;
}

.result-details li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
}

.result-details li:last-child {
    border-bottom: none;
}

.result-details .label {
    font-weight: 500;
    color: #34495e;
}

.result-details .value {
    font-weight: 600;
    color: #667eea;
}

/* Compact layout for results */
.calculation-result {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Dark theme for calculation result container */
[data-theme="dark"] .calculation-result {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Info icon styling */
.info-icon {
    font-size: 0.8rem;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.info-icon:hover {
    opacity: 1;
}

/* View options tabs */
.view-options {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.view-tab {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    background: none;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.view-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.view-tab:hover {
    color: #495057;
}

/* Dark theme for view tabs */
[data-theme="dark"] .view-options {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .view-tab {
    color: #b0b0b0;
}

[data-theme="dark"] .view-tab.active {
    color: #7c93f3;
    border-bottom-color: #7c93f3;
}

[data-theme="dark"] .view-tab:hover {
    color: #ffffff;
}



/* Table styles */
.table-container {
    margin: 20px 0;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.projection-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.projection-table th,
.projection-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.projection-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.projection-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Dark theme for table */
[data-theme="dark"] .table-wrapper {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .projection-table th {
    background: rgba(30, 30, 30, 0.95);
    color: #ffffff;
}

[data-theme="dark"] .projection-table td {
    color: #b0b0b0;
}

[data-theme="dark"] .projection-table tr:hover {
    background: rgba(124, 147, 243, 0.1);
}

/* Explanation text styling */
.explanation {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
    margin-left: 8px;
}

[data-theme="dark"] .explanation {
    color: #8a8a8a;
}

/* Important note styling */
.result-details h4 + p {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
}

[data-theme="dark"] .result-details h4 + p {
    background: rgba(124, 147, 243, 0.1);
    border-left-color: #7c93f3;
}

/* Phase badges */
.phase-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phase-badge.accumulation {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.phase-badge.peak {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.phase-badge.retirement {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Dark theme for phase badges */
[data-theme="dark"] .phase-badge.accumulation {
    background: rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.5);
}

[data-theme="dark"] .phase-badge.peak {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.5);
}

[data-theme="dark"] .phase-badge.retirement {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

.calculation-result > * {
    margin: 0;
}

/* Reduce spacing for danger results */
.result-danger .result-details {
    margin: 0;
    padding: 12px;
}

.result-danger .result-amount {
    margin: 0;
}

/* Make all result elements stick together */
.highlight-result,
.result-details,
.chart-panel {
    margin: 0 !important;
    border-radius: 0;
}

/* First element gets top rounded corners */
.calculation-result > *:first-child {
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}

/* Last element gets bottom rounded corners */
.calculation-result > *:last-child {
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
}

/* Remove gaps between elements */
.calculation-result > * + * {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chart panel */
.chart-panel {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.chart-panel h2 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.chart-container {
    position: relative;
    height: 350px;
    margin-bottom: 16px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #34495e;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-block;
}

/* Dark theme chart panel overrides */
[data-theme="dark"] .chart-panel {
    background: rgba(42, 42, 62, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .chart-panel h2 {
    color: #ffffff;
}

[data-theme="dark"] .legend-item {
    color: #e0e0e0;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    opacity: 0.9;
    font: var(--md-body-medium);
    font-weight: 400;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

/* Dark theme footer overrides */
[data-theme="dark"] footer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* SEO Content Styles */
.seo-content {
    margin-top: 24px;
    text-align: center;
}

.seo-content h2 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e3f2fd;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.seo-content p {
    font-size: 1.1rem;
    color: #e3f2fd;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Dark theme SEO content overrides */
[data-theme="dark"] .seo-content h2 {
    color: #ffffff;
}

[data-theme="dark"] .seo-content p {
    color: #e0e0e0;
}

/* FAQ Section */
.faq-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-section h2 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    text-align: center;
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.faq-container {
    display: grid;
    gap: 24px;
}

.faq-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.faq-item h3 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Dark theme FAQ overrides */
[data-theme="dark"] .faq-section {
    background: rgba(42, 42, 62, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .faq-section h2 {
    color: #ffffff;
}

[data-theme="dark"] .faq-item {
    background: #3a3a4e;
    border-left-color: #7c93f3;
}

[data-theme="dark"] .faq-item:hover {
    background: #4a4a5e;
}

[data-theme="dark"] .faq-item h3 {
    color: #ffffff;
}

[data-theme="dark"] .faq-item p {
    color: #b0b0b0;
}

/* SEO Info Section */
.seo-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.seo-info h2 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    text-align: center;
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.seo-info > p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Dark theme SEO info overrides */
[data-theme="dark"] .seo-info {
    background: rgba(42, 42, 62, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .seo-info h2 {
    color: #ffffff;
}

[data-theme="dark"] .seo-info > p {
    color: #b0b0b0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.info-card {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Dark theme info cards overrides */
[data-theme="dark"] .info-card {
    background: #3a3a4e;
    border: 1px solid #505050;
}

[data-theme="dark"] .info-card:hover {
    background: #4a4a5e;
}

[data-theme="dark"] .info-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .info-card p {
    color: #b0b0b0;
}

/* Validation messages */
.validation-message {
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    min-height: 16px;
    transition: all 0.3s ease;
}

.validation-message.error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    padding: 6px 10px;
    border-radius: 8px;
    border-left: 3px solid #dc3545;
}

.validation-message.success {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 6px 10px;
    border-radius: 8px;
    border-left: 3px solid #28a745;
}

.validation-message.warning {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    padding: 6px 10px;
    border-radius: 8px;
    border-left: 3px solid #ffc107;
}

/* Dark theme validation messages overrides */
[data-theme="dark"] .validation-message.error {
    background: rgba(220, 53, 69, 0.2);
}

[data-theme="dark"] .validation-message.success {
    background: rgba(40, 167, 69, 0.2);
}

[data-theme="dark"] .validation-message.warning {
    background: rgba(255, 193, 7, 0.2);
}

/* Dark theme result styles */
[data-theme="dark"] .result-details {
    background: rgb(41 42 61);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .result-details h4 {
    color: #ffffff;
}

[data-theme="dark"] .result-details .label {
    color: #b0b0b0;
}

[data-theme="dark"] .result-details .value {
    color: #7c93f3;
}

[data-theme="dark"] .chart-panel {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .chart-panel h2 {
    color: #ffffff;
}

[data-theme="dark"] .legend-item {
    color: #b0b0b0;
}

/* Dark theme for strategy lists and other text elements */
[data-theme="dark"] .result-details ul {
    color: #ffffff;
}

[data-theme="dark"] .result-details li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .result-details li:last-child {
    border-bottom: none;
}

/* Input validation states */
.input-group input:invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.input-group input:valid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.input-group input:invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.input-group input:valid:focus {
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
}

/* Dark theme input validation overrides */
[data-theme="dark"] .input-group input:invalid {
    background: rgba(220, 53, 69, 0.1);
}

[data-theme="dark"] .input-group input:valid {
    background: rgba(40, 167, 69, 0.1);
}

/* Material Design Modal */
.material-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.material-modal.show {
    display: flex;
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: white;
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8);
    animation: modalScaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-header {
    padding: 24px 24px 16px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.modal-icon.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.modal-icon.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.modal-icon.warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-content {
    padding: 20px 24px;
    text-align: center;
}

.modal-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 1rem;
}

.modal-actions {
    padding: 16px 24px 24px 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Dark theme modal overrides */
[data-theme="dark"] .modal-container {
    background: #2a2a3e;
}

[data-theme="dark"] .modal-header {
    background: linear-gradient(135deg, #3a3a4e 0%, #2a2a3e 100%);
}

[data-theme="dark"] .modal-title {
    color: #ffffff;
}

[data-theme="dark"] .modal-content p {
    color: #b0b0b0;
}

.modal-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.modal-btn.secondary:hover {
    background: #e9ecef;
    color: #1a1a1a;
}

/* Animaciones del modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalScaleIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

/* Responsive del modal */
@media (max-width: 480px) {
    .modal-container {
        width: 95%;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 12px 20px;
    }
    
    .modal-content {
        padding: 16px 20px;
    }
    
    .modal-actions {
        padding: 12px 20px 20px 20px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-content p {
        font-size: 0.95rem;
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .calculator {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .control-panel,
    .results-panel,
    .chart-panel,
    .faq-section,
    .seo-info {
        padding: 24px;
    }
    
    .strategy-toggle {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .input-with-unit {
        flex-direction: column;
        box-shadow: none;
        border: none;
        background: transparent;
        height: auto;
    }
    
    .input-with-unit input {
        border-radius: 16px;
        margin-bottom: 12px;
        border: 2px solid var(--border-secondary);
        background: var(--bg-input);
        height: 48px;
    }
    
    .input-with-unit .unit {
        border-radius: 16px;
        width: 100%;
        height: 48px;
    }
    
    .input-with-unit .unit::before {
        display: none;
    }
    
    .input-with-unit:hover {
        transform: none;
        box-shadow: none;
    }
    
    .input-with-unit:focus-within {
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    header {
        padding: 24px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .header-content h1 {
        font-size: 2.25rem;
        text-align: center;
    }
    
    .theme-toggle-container {
        margin-left: 0;
        margin-top: 16px;
    }
    

    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    .control-panel h2,
    .results-panel h2,
    .chart-panel h2,
    .faq-section h2,
    .seo-info h2 {
        font-size: 1.5rem;
    }
    
    .result-amount {
        font-size: 2.25rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .chart-legend {
        gap: 16px;
    }
    
    .legend-item {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 16px;
    }
    
    .control-panel,
    .results-panel,
    .chart-panel,
    .faq-section,
    .seo-info {
        padding: 20px;
    }
    
    .seo-content h2 {
        font-size: 1.3rem;
    }
    
    .seo-content p {
        font-size: 1rem;
    }
    

    
    .faq-item {
        padding: 16px;
    }
    
    .info-card {
        padding: 20px;
    }
}

/* Dark theme Bitcoin info overrides */
[data-theme="dark"] .bitcoin-info {
    background: rgba(247, 147, 26, 0.05);
}

[data-theme="dark"] .info-item {
    background: rgba(247, 147, 26, 0.08);
    border-color: rgba(247, 147, 26, 0.15);
}

[data-theme="dark"] .info-item:hover {
    background: rgba(247, 147, 26, 0.12);
    border-color: rgba(247, 147, 26, 0.25);
}

[data-theme="dark"] .info-item .label {
    color: #b0b0b0;
}
