/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #252542;
    --bg-card: #1e1e35;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --accent-primary: #6c5ce7;
    --accent-secondary: #a29bfe;
    --accent-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --success: #00d9a5;
    --success-bg: rgba(0, 217, 165, 0.1);
    --danger: #ff6b6b;
    --danger-bg: rgba(255, 107, 107, 0.1);
    --warning: #ffd93d;
    --border-color: #2d2d4a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== Pages ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ===== Navigation ===== */
.landing-nav, .app-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

/* ===== Hero Section ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    align-items: center;
    position: relative;
}

/* Finance Background */
.hero-bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-effects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 10% 10%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 90% 90%, rgba(0, 217, 165, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(162, 155, 254, 0.05) 0%, transparent 50%);
    animation: financeBgPulse 20s ease-in-out infinite;
}

@keyframes financeBgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Chart Lines Pattern */
.hero-bg-effects::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80 Q25 60 50 70 T100 50' fill='none' stroke='%236c5ce7' stroke-width='0.5' opacity='0.08'/%3E%3Cpath d='M0 60 Q25 40 50 50 T100 30' fill='none' stroke='%2300d9a5' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
    animation: chartScroll 40s linear infinite;
}

@keyframes chartScroll {
    0% { background-position: 0 0; }
    100% { background-position: 200px 0; }
}

/* Floating Stock Decorations */
.stock-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
}

.stock-decoration.chart {
    top: 15%;
    left: 5%;
    width: 80px;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M0 25 L10 15 L20 20 L30 8 L40 12' fill='none' stroke='%236c5ce7' stroke-width='2'/%3E%3Cpath d='M0 25 L10 15 L20 20 L30 8 L40 12 L40 30 L0 30 Z' fill='%236c5ce7' opacity='0.2'/%3E%3C/svg%3E") center/contain no-repeat;
    animation: chartFloat 15s ease-in-out infinite;
}

.stock-decoration.coin {
    bottom: 25%;
    right: 8%;
    width: 50px;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300d9a5'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ctext x='12' y='16' text-anchor='middle' font-size='10' fill='%231a1a2e'>$%3C/text%3E%3C/svg%3E") center/contain no-repeat;
    animation: coinFloat 12s ease-in-out infinite;
}

@keyframes chartFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes coinFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Dashboard Preview */
.dashboard-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.preview-header {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dot.red { background: #ff5f57; }
.preview-dot.yellow { background: #febc2e; }
.preview-dot.green { background: #28c840; }

.preview-content {
    padding: 2rem;
}

.preview-stat {
    margin-bottom: 1.5rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-change {
    display: block;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

.preview-chart {
    height: 120px;
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.2) 0%, transparent 100%);
    border-radius: var(--radius-sm);
    position: relative;
}

.preview-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
}

/* ===== Features Section ===== */
.features-section {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15) 0%, rgba(0, 217, 165, 0.1) 100%);
    border-radius: 16px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 35px -10px rgba(108, 92, 231, 0.4);
}

/* Trend indicator on hover */
.feature-card:hover .feature-icon::after {
    content: '📈';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1rem;
    animation: trendBounce 0.5s ease;
}

@keyframes trendBounce {
    0% { transform: scale(0) translateY(10px); }
    50% { transform: scale(1.3) translateY(-5px); }
    100% { transform: scale(1) translateY(0); }
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===== Pricing Section ===== */
.pricing-section {
    padding: 5rem 2rem;
}

.pricing-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
}

.price span {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

.pricing-features li.disabled {
    color: var(--text-muted);
}

.pricing-card .btn {
    width: 100%;
}

/* ===== Footer ===== */
.landing-footer {
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== App Dashboard ===== */
.app-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.portfolio-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    cursor: pointer;
}

.app-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.summary-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Mini chart background */
.summary-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, transparent 0%, rgba(108, 92, 231, 0.05) 100%);
    pointer-events: none;
}

/* Positive/negative indicator bar */
.summary-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-card:hover::after {
    opacity: 1;
}

.summary-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.summary-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
}

.summary-change {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.summary-change.positive { color: var(--success); }
.summary-change.negative { color: var(--danger); }

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.chart-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.chart-container {
    position: relative;
    height: 250px;
}

/* Holdings Table */
.holdings-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.holdings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.holdings-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.holdings-table-wrapper {
    overflow-x: auto;
}

.holdings-table {
    width: 100%;
    border-collapse: collapse;
}

.holdings-table th,
.holdings-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    white-space: nowrap;
}

.holdings-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.holdings-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.holdings-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.holdings-table .symbol {
    font-weight: 700;
    color: var(--accent-secondary);
}

.holdings-table .type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.holdings-table .positive { color: var(--success); }
.holdings-table .negative { color: var(--danger); }

.holdings-table .actions {
    display: flex;
    gap: 0.5rem;
}

.holdings-table .action-btn {
    padding: 0.375rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.holdings-table .action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.holdings-table .action-btn.delete:hover {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger);
}

.empty-state {
    text-align: center;
}

.empty-message {
    padding: 3rem;
    color: var(--text-muted);
}

.empty-message p {
    margin-bottom: 1rem;
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.offline-indicator.hidden {
    display: none;
}

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
    padding: 0 1.5rem;
}

.form-group:first-of-type {
    padding-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 1.5rem;
    margin-bottom: 1.25rem;
}

.form-row .form-group {
    padding: 0;
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

input, select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

input::placeholder {
    color: var(--text-muted);
}

.suggestions {
    position: absolute;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-item:hover {
    background: var(--bg-card);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Settings Modal */
.settings-content {
    padding: 1.5rem;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.settings-row strong {
    display: block;
    margin-bottom: 0.25rem;
}

.settings-row p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.settings-row.danger {
    border: 1px solid var(--danger);
    background: var(--danger-bg);
}

.premium-feature {
    color: var(--accent-secondary) !important;
}

.account-status {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.status-badge.free {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.status-badge.premium {
    background: var(--accent-gradient);
    color: white;
}

.account-status p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Upgrade Modal */
.upgrade-modal-content {
    max-width: 450px;
}

.upgrade-content {
    padding: 2rem;
    text-align: center;
}

.upgrade-benefits {
    margin-bottom: 2rem;
}

.upgrade-benefits h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.upgrade-benefits ul {
    list-style: none;
    text-align: left;
}

.upgrade-benefits li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.upgrade-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.upgrade-option {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.upgrade-option:hover,
.upgrade-option.selected {
    border-color: var(--accent-primary);
}

.upgrade-option.featured {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.1);
}

.upgrade-option input {
    position: absolute;
    opacity: 0;
}

.upgrade-option label {
    display: block;
    cursor: pointer;
}

.option-price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.option-period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.save-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--success);
    color: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.upgrade-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

.toast.warning {
    border-color: var(--warning);
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem 4rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .holdings-table th:nth-child(2),
    .holdings-table td:nth-child(2),
    .holdings-table th:nth-child(3),
    .holdings-table td:nth-child(3) {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    #toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .landing-nav, .app-nav {
        padding: 1rem;
    }

    .app-main {
        padding: 1rem;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .summary-card {
        padding: 1rem;
    }

    .summary-value {
        font-size: 1.5rem;
    }

    .chart-card {
        padding: 1rem;
    }

    .chart-container {
        height: 200px;
    }

    .holdings-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .holdings-table th:nth-child(5),
    .holdings-table td:nth-child(5) {
        display: none;
    }

    .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Price updating animation */
.price-updating {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
