/* 
 * Investment Calculator Styles
 * Version: 2025.06.15.1650
 * Complete CSS with all components: Modal, Progress, Info, Share systems
 * Added comprehensive mobile responsive design
 * Added utility classes for replaced inline styles
 * Added asset breakdown table styles
 * Removed @import for Google Fonts (moved to HTML preconnect)
 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #1f2937;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 24px auto 48px auto;
    padding: 48px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 48px;
    font-size: 20px;
    font-weight: 500;
    max-width: 600px;
}

.form-section {
    margin-bottom: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.form-section h3 {
    margin: 0 0 24px 0;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.tooltip {
    font-weight: 400;
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

select option {
    padding: 12px;
    font-size: 15px;
    background: white;
    color: #1f2937;
}

input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.preset-description {
    margin-top: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
    font-size: 15px;
    color: #0c4a6e;
    display: none;
}

.preset-description.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.ticker-group {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ticker-group:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.add-ticker {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    font-family: inherit;
}

.add-ticker:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.remove-ticker {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-left: 12px;
    transition: box-shadow 0.2s ease;
    font-family: inherit;
}

.remove-ticker:hover {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    width: 100%;
    margin-top: 32px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    font-family: inherit;
    letter-spacing: -0.025em;
}

.calculate-btn:hover {
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
}

.results {
    margin-top: 48px;
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.results h2 {
    color: #111827;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.025em;
}

.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    aspect-ratio: 1.1 / 1;
}

.summary-card .card-header {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.3;
}

.summary-card .card-value {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.summary-card .card-subtitle {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    line-height: 1.3;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.summary-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.summary-value {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.summary-label {
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-table {
    overflow-x: auto;
    margin-top: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    font-size: 15px;
}

th, td {
    padding: 20px 16px;
    text-align: right;
    border-bottom: 1px solid #f3f4f6;
}

th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 700;
    color: #374151;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background: #f8fafc;
}

tbody tr:last-child td {
    border-bottom: none;
}

.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    padding: 20px;
    border-radius: 12px;
    margin: 16px 0;
    border: 1px solid #fca5a5;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.allocation-display {
    font-size: 14px;
    color: #6b7280;
    margin-top: 12px;
    font-weight: 500;
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Allocation Summary Styles */
.allocation-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid;
    transition: all 0.3s ease;
    margin-top: 12px;
    font-weight: 600;
}

.allocation-perfect {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #10b981;
    color: #065f46;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.allocation-over {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    color: #7f1d1d;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.allocation-under {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
    color: #78350f;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.allocation-empty {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #e5e7eb;
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.allocation-total {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.allocation-status {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Inline styles converted to classes */
.duration-display {
    background: #f0f9ff;
    color: #1e40af;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.flex-align-center {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flex-1 {
    flex: 1;
}

.share-plan-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    transition: box-shadow 0.2s ease;
}

.share-plan-btn:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.test-sharing-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-family: inherit;
}

.debug-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    cursor: pointer;
    display: none;
}

.version-info {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 24px;
    font-size: 12px;
    color: #9ca3af;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.share-card-preview {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Broker Selection */
.broker-selection {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    animation: fadeInUp 0.3s ease-out;
}

.broker-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.broker-tile {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.broker-tile:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.broker-tile.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.broker-tile .broker-emoji {
    font-size: 24px;
    margin-bottom: 8px;
}

.broker-tile .broker-name {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
    margin-bottom: 4px;
}

.broker-tile .broker-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* === ASSET BREAKDOWN TABLE SYSTEM === */
.breakdown-toggle-container {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    animation: fadeInUp 0.3s ease-out;
}

.breakdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toggle-label:hover {
    transform: translateY(-1px);
}

.toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #667eea;
    cursor: pointer;
}

.toggle-text {
    color: #1e40af;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.025em;
    user-select: none;
}

/* Asset breakdown table styles */
.allocation-text {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    display: block;
    margin-top: 4px;
    line-height: 1.2;
}

.asset-payment {
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    color: #1e40af;
    font-weight: 600;
    border-left: 3px solid #3b82f6;
    position: relative;
}

.asset-payment:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.total-payment {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #059669;
    font-weight: 700;
    border-left: 3px solid #10b981;
    font-size: 16px;
}

.total-payment:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

/* Enhanced table styles for breakdown view */
table.breakdown-table {
    border-spacing: 0;
}

table.breakdown-table th {
    position: relative;
}

table.breakdown-table th[colspan] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 16px;
}

table.breakdown-table th[rowspan] {
    vertical-align: middle;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-width: 120px;
}

/* ============================================= */
/* T-BANK AFFILIATE INTEGRATION STYLES */
/* ============================================= */

/* Phase 1: Basic affiliate styles (legacy) */

.affiliate-recommendation-container {
    margin: 32px 0;
}

.broker-recommendation-simple {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
    border: 1px solid #cbd5e1;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.4s ease-out;
}

.broker-recommendation-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.recommendation-header h3 {
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.offer-text {
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.bonus-text {
    color: #059669;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.recommendation-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-button.primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
    text-decoration: none;
    color: white;
}

.cta-button.primary:active {
    transform: translateY(0);
}

.affiliate-disclosure {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.affiliate-disclosure small {
    font-size: inherit;
}

/* ============================================= */
/* PHASE 2: SMART RECOMMENDATIONS STYLES */
/* ============================================= */

.broker-recommendation-smart {
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border-radius: 20px;
    padding: 32px;
    margin: 40px 0;
    border: 1px solid #93c5fd;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.4s ease-out;
}

.broker-recommendation-smart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.recommendation-header h3 {
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.strategy-badge {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
}

.tbank-card.featured {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin: 24px 0;
    border: 2px solid #3b82f6;
    position: relative;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.tbank-card.featured::before {
    content: "🏆 РЕКОМЕНДУЕТСЯ";
    position: absolute;
    top: -12px;
    left: 24px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.broker-logo {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.strategy-name {
    font-size: 16px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 12px;
}

.key-benefit {
    font-size: 16px;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.6;
}

.savings-highlight {
    font-size: 15px;
    color: #059669;
    font-weight: 600;
    margin-bottom: 16px;
}

.calculated-savings {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    margin: 16px 0;
    text-align: center;
    font-size: 16px;
}

.benefits-list {
    margin: 20px 0;
}

.benefit {
    padding: 8px 0;
    color: #374151;
    font-size: 15px;
    line-height: 1.5;
}

.cta-button.featured {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 18px 36px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.cta-button.featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    text-decoration: none;
    color: white;
}

.cta-button.featured:active {
    transform: translateY(0);
}

.affiliate-disclosure-smart {
    display: flex;
    align-items: flex-start;
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.disclosure-icon {
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
    color: #3b82f6;
}

.disclosure-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.disclosure-text strong {
    color: #374151;
    font-weight: 600;
}

/* Mobile responsive for smart recommendations */
@media (max-width: 768px) {
    .broker-recommendation-smart {
        padding: 20px;
        margin: 24px 0;
    }
    
    .recommendation-header h3 {
        font-size: 20px;
    }
    
    .tbank-card.featured {
        padding: 20px;
    }
    
    .tbank-card.featured::before {
        font-size: 11px;
        padding: 3px 12px;
        top: -10px;
        left: 16px;
    }
    
    .cta-button.featured {
        padding: 16px 24px;
        font-size: 15px;
        min-height: 44px; /* Touch target size */
    }
    
    .calculated-savings {
        padding: 10px 16px;
        font-size: 15px;
    }
    
    .affiliate-disclosure-smart {
        padding: 12px;
    }
    
    .disclosure-text {
        font-size: 13px;
    }
}

/* ============================================= */
/* RESPONSIVE DESIGN UPDATES */
/* ============================================= */

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    .container {
        margin: 16px auto 32px auto;
        padding: 32px 24px;
    }
    
    /* Affiliate widget mobile styles */
    .broker-recommendation-simple {
        padding: 20px;
        margin: 24px 0;
    }
    
    .recommendation-header h3 {
        font-size: 20px;
    }
    
    .offer-text,
    .bonus-text {
        font-size: 15px;
    }
    
    .cta-button.primary {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 44px; /* Touch target size */
        width: 100%;
        max-width: 320px;
    }
    
    .affiliate-disclosure {
        font-size: 13px;
        padding: 0 16px;
    }

    h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 18px;
    }

    .ticker-group {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .summary,
    .summary-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: none;
    }
    
    .summary-card {
        min-height: auto;
        aspect-ratio: auto;
        padding: 20px 16px;
    }
    
    .summary-card .card-header {
        font-size: 13px;
    }
    
    .summary-card .card-value {
        font-size: 20px;
    }

    th, td {
        padding: 12px 8px;
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes shimmer {
    0% { 
        transform: translateX(-100%); 
    }
    100% { 
        transform: translateX(100%); 
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1); 
    }
    50% { 
        transform: translateX(-50%) scale(1.05); 
    }
}

/* === MODAL SYSTEM === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
    transition: color 0.2s ease;
    font-family: inherit;
}

.modal-close:hover {
    color: #374151;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    font-family: inherit;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* === PROGRESS BAR SYSTEM === */
.progress-container {
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.progress-container h3 {
    margin: 0 0 32px 0;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.025em;
}

.progress-bar-wrapper {
    margin-bottom: 32px;
}

.progress-bar {
    width: 100%;
    margin: 24px 0;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

.milestone {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.milestone[data-milestone="25"] { left: 25%; }
.milestone[data-milestone="50"] { left: 50%; }
.milestone[data-milestone="75"] { left: 75%; }
.milestone[data-milestone="100"] { right: 0; left: auto; transform: translateX(50%); }

.milestone-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 3px solid #d1d5db;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.milestone-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s ease;
}

.milestone.completed .milestone-dot {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.milestone.completed .milestone-dot::before {
    background: white;
    content: '✓';
    width: auto;
    height: auto;
    font-size: 14px;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.milestone.current {
    animation: pulse 2s infinite;
}

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

.milestone.current .milestone-dot::before {
    background: white;
    color: white;
}

.milestone:hover .milestone-dot {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.milestone-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.milestone.completed .milestone-label {
    color: #10b981;
    font-weight: 600;
}

.milestone.current .milestone-label {
    color: #667eea;
    font-weight: 600;
}

.progress-info {
    text-align: center;
    margin-top: 24px;
}

.current-progress {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-text {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.progress-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.progress-amount {
    font-size: 14px;
    color: #9ca3af;
}

.update-progress-btn {
    display: block;
    margin: 0 auto;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    font-family: inherit;
    letter-spacing: -0.025em;
}

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

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.progress-stat {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.progress-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.progress-stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.milestone-info {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.next-milestone {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.milestone-text {
    font-size: 14px;
    color: #1e40af;
    font-weight: 500;
}

.milestone-target {
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
}

.milestone-amount {
    font-size: 14px;
    color: #1e40af;
    font-weight: 600;
}

/* === INFO SECTION SYSTEM === */
.info-section {
    margin: 32px 0 48px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.info-header {
    padding: 24px 32px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.info-header:hover {
    background: rgba(102, 126, 234, 0.05);
}

.info-header h3 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.toggle-icon {
    font-size: 18px;
    color: #667eea;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.info-content {
    display: none;
    padding: 32px;
    animation: fadeInUp 0.3s ease-out;
}

.info-content.active {
    display: block;
}

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

.info-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

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

.info-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.info-card h4 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.info-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 15px;
}

.example-section {
    margin: 32px 0;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.example-section h4 {
    margin: 0 0 20px 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.example-content {
    display: grid;
    gap: 20px;
}

.example-scenario {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    font-size: 15px;
    line-height: 1.6;
}

.example-steps {
    display: grid;
    gap: 16px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.step-icon {
    font-size: 20px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.step-icon.green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.step-icon.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.benefits-section {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.benefits-section h4 {
    margin: 0 0 16px 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.benefits-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.benefits-list li {
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    position: relative;
    padding-left: 24px;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #10b981;
    font-weight: bold;
    font-size: 16px;
}

.author-section {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 1px solid #f59e0b;
}

.author-section h4 {
    margin: 0 0 20px 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.author-content {
    display: grid;
    gap: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #f59e0b;
}

.author-avatar {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.author-details {
    flex: 1;
}

.author-details strong {
    font-size: 18px;
    color: #111827;
    display: block;
    margin-bottom: 4px;
}

.author-title {
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
}

.author-description {
    margin: 0;
    color: #374151;
    line-height: 1.6;
    font-size: 15px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.links-section h5 {
    margin: 0 0 16px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.links-grid {
    display: grid;
    gap: 12px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.resource-link:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.link-icon {
    font-size: 24px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-content {
    flex: 1;
}

.link-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.link-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.link-arrow {
    font-size: 18px;
    color: #667eea;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.resource-link:hover .link-arrow {
    transform: translateX(4px);
}

.book-link:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.book-link:hover .link-arrow {
    color: #f59e0b;
}

.wiki-link:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.wiki-link:hover .link-arrow {
    color: #3b82f6;
}

/* === SHARE MODAL SYSTEM === */
.share-modal {
    max-width: 520px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
}

.share-preview {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.share-preview img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
}

.share-preview img:hover {
    transform: scale(1.02);
}

.share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-copy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.share-copy:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.share-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.share-download:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.share-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: white;
}

.share-telegram:hover {
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.3);
}

.share-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    color: white;
}

.share-whatsapp:hover {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.share-url-container {
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.share-url-container input {
    width: 100%;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    color: #6b7280;
    font-family: 'Courier New', monospace;
}

.share-url-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* === MOBILE RESPONSIVE ENHANCEMENTS === */
@media (max-width: 768px) {
    /* Progress System Mobile */
    .progress-container {
        margin-top: 32px;
        padding: 24px 20px;
    }
    
    .progress-container h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .milestone-label {
        font-size: 10px;
    }
    
    .current-progress {
        padding: 12px 16px;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .progress-text {
        font-size: 14px;
    }
    
    .progress-value {
        font-size: 18px;
    }
    
    .update-progress-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    /* Modal System Mobile */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 0 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 0 20px 20px 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Info Section Mobile */
    .info-section {
        margin: 24px 0 32px 0;
    }
    
    .info-header {
        padding: 20px 24px;
    }
    
    .info-header h3 {
        font-size: 18px;
    }
    
    .info-content {
        padding: 24px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .example-content {
        gap: 16px;
    }
    
    .step {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-icon {
        align-self: flex-start;
    }
    
    .author-section {
        margin-top: 24px;
        padding: 20px;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .author-details strong {
        font-size: 16px;
    }
    
    .links-grid {
        gap: 10px;
    }
    
    .resource-link {
        padding: 14px 16px;
    }
    
    .link-title {
        font-size: 15px;
    }
    
    .link-description {
        font-size: 12px;
    }
    
    /* Share Modal Mobile */
    .share-modal {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .share-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .share-btn {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .share-preview {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    /* Asset Breakdown Table Mobile */
    .breakdown-toggle-container {
        margin-bottom: 16px;
        padding: 16px;
    }
    
    .toggle-text {
        font-size: 14px;
    }
    
    .toggle-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    
    .allocation-text {
        font-size: 10px;
        margin-top: 2px;
    }
    
    .asset-payment,
    .total-payment {
        font-size: 12px;
        padding: 8px 6px;
    }
    
    .total-payment {
        font-size: 13px;
    }
    
    /* Enhanced mobile table for breakdown */
    table.breakdown-table th[rowspan] {
        writing-mode: initial;
        text-orientation: initial;
        min-width: 80px;
        font-size: 10px;
        padding: 8px 4px;
    }
    
    table.breakdown-table th[colspan] {
        padding: 12px 8px;
        font-size: 11px;
    }

    /* Button Mobile Improvements */
    .share-plan-btn,
    .test-sharing-btn {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .debug-btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .version-info {
        margin-bottom: 16px;
    }
    
    /* Allocation Summary Mobile */
    .allocation-summary {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
        text-align: center;
    }
    
    .allocation-total {
        font-size: 14px;
        justify-content: center;
    }
    
    .allocation-status {
        font-size: 13px;
        justify-content: center;
    }
}

/* === ERROR PAGE SYSTEM === */
.error-page {
    text-align: center;
    padding: 80px 40px;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

.error-icon {
    font-size: 120px;
    margin-bottom: 32px;
    opacity: 0.8;
    display: block;
    animation: pulse 3s infinite;
}

.error-message {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.error-details {
    margin-bottom: 48px;
}

.error-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.error-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.error-card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.error-card h3 {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.error-reasons {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.error-reasons li {
    padding: 8px 0;
    font-size: 15px;
    color: #4b5563;
    position: relative;
    padding-left: 24px;
    line-height: 1.5;
}

.error-reasons li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 8px;
    color: #ef4444;
    font-weight: bold;
    font-size: 16px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.error-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.025em;
}

.error-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.error-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.error-btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-help {
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    max-width: 600px;
    margin: 0 auto;
}

.help-text {
    color: #1e40af;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.help-tips {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.help-tip {
    background: white;
    color: #1e40af;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #bfdbfe;
    transition: all 0.2s ease;
}

.help-tip:hover {
    background: #f0f9ff;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

/* Error Page Mobile Responsive */
@media (max-width: 768px) {
    .error-page {
        padding: 60px 20px;
    }
    
    .error-icon {
        font-size: 80px;
        margin-bottom: 24px;
    }
    
    .error-message {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .error-card {
        padding: 24px 20px;
        margin-bottom: 32px;
    }
    
    .error-card-icon {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .error-card h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 12px;
        max-width: 280px;
        margin: 0 auto 32px auto;
    }
    
    .error-btn-primary,
    .error-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .error-help {
        padding: 20px 16px;
        margin-bottom: 24px;
    }
    
    .help-text {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .help-tips {
        flex-direction: column;
        gap: 8px;
    }
    
    .help-tip {
        font-size: 13px;
        padding: 6px 12px;
        text-align: center;
    }
    
    .error-reasons {
        max-width: none;
    }
    
    .error-reasons li {
        font-size: 14px;
        padding: 6px 0;
    }
}