/* Market Titan Wireframe CSS - Robinhood-Inspired Dark Theme */

/* ========== CSS Variables ========== */
:root {
    --primary-green: #00C805;
    --primary-green-hover: #00A804;
    --negative-red: #FF5000;
    --background: #000000;
    --surface: #1E1E1E;
    --surface-hover: #2A2A2A;
    --surface-light: #2E2E2E;
    --text-primary: #FFFFFF;
    --text-secondary: #9E9E9E;
    --text-muted: #6E6E6E;
    --border-color: #333333;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-green-hover);
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }

.text-green { color: var(--primary-green); }
.text-red { color: var(--negative-red); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* ========== Layout ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 20px 0;
}

/* ========== Navigation ========== */
.navbar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-green), #00A804);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.navbar-game-name {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-left: 8px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.navbar-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--text-primary);
}

.navbar-balance {
    display: flex;
    align-items: center;
    gap: 20px;
}

.balance-item {
    text-align: right;
}

.balance-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 1.125rem;
    font-weight: 600;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--background);
}

.btn-primary:hover {
    background-color: var(--primary-green-hover);
    color: var(--background);
}

.btn-secondary {
    background-color: var(--surface-light);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--surface-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--background);
}

.btn-red {
    background-color: var(--negative-red);
    color: var(--text-primary);
}

.btn-red:hover {
    background-color: #E04500;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

/* ========== Cards ========== */
.card {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green), #00A804);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

/* ========== Hero Section ========== */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ========== Features Grid ========== */
.features-section {
    padding: 80px 20px;
}

.features-title {
    text-align: center;
    margin-bottom: 48px;
}

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

.feature-card {
    text-align: center;
    padding: 32px;
}

.feature-card .card-icon {
    margin: 0 auto 16px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
}

/* ========== Portfolio Chart ========== */
.portfolio-section {
    margin-bottom: 32px;
}

.portfolio-value {
    margin-bottom: 24px;
}

.portfolio-amount {
    font-size: 3rem;
    font-weight: 700;
}

.portfolio-change {
    font-size: 1.25rem;
    margin-top: 8px;
}

.chart-container {
    height: 300px;
    background-color: var(--surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.chart-line {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    height: 200px;
}

.chart-line svg {
    width: 100%;
    height: 100%;
}

.chart-line path {
    fill: none;
    stroke: var(--primary-green);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-gradient {
    fill: url(#chartGradient);
    opacity: 0.3;
}

.chart-timeframes {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.timeframe-btn {
    padding: 8px 16px;
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all var(--transition-fast);
}

.timeframe-btn:hover,
.timeframe-btn.active {
    background-color: var(--surface);
    color: var(--primary-green);
}

/* ========== Holdings List ========== */
.holdings-section {
    margin-top: 32px;
}

.holdings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.holdings-list {
    background-color: var(--surface);
    border-radius: 12px;
    overflow: hidden;
}

.holding-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.holding-item:hover {
    background-color: var(--surface-hover);
}

.holding-item:last-child {
    border-bottom: none;
}

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

.holding-logo {
    width: 44px;
    height: 44px;
    background-color: var(--surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.holding-name h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.holding-name span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.holding-value {
    text-align: right;
}

.holding-value h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.holding-value span {
    font-size: 0.875rem;
}

/* ========== Quick Actions ========== */
.quick-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ========== Floating AI Button ========== */
.floating-ai-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), #00A804);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 200, 5, 0.4);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 100;
    text-decoration: none;
    color: var(--background);
    font-size: 1.5rem;
}

.floating-ai-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 200, 5, 0.5);
    color: var(--background);
}

/* ========== Stock Detail Page ========== */
.stock-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.stock-info h1 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.stock-info .company-name {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.stock-price {
    text-align: right;
}

.stock-price .current-price {
    font-size: 2.5rem;
    font-weight: 700;
}

.stock-price .price-change {
    font-size: 1.125rem;
    margin-top: 4px;
}

.stock-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.company-info {
    margin-top: 32px;
}

.company-info h3 {
    margin-bottom: 16px;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-item {
    background-color: var(--surface);
    padding: 16px;
    border-radius: 8px;
}

.stat-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 1.125rem;
    font-weight: 600;
}

/* ========== Trade Form ========== */
.trade-page {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
}

.trade-header {
    text-align: center;
    margin-bottom: 32px;
}

.trade-header h1 {
    margin-bottom: 8px;
}

.trade-symbol {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--surface);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.trade-symbol .symbol {
    font-size: 1.5rem;
    font-weight: 700;
}

.trade-symbol .price {
    color: var(--text-secondary);
}

.trade-form {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 24px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239E9E9E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.toggle-group {
    display: flex;
    background-color: var(--surface-light);
    border-radius: 8px;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    padding: 14px;
    border: none;
    background-color: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-btn.active {
    background-color: var(--primary-green);
    color: var(--background);
}

.toggle-btn.active.sell {
    background-color: var(--negative-red);
    color: var(--text-primary);
}

.order-summary {
    background-color: var(--surface-light);
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 600;
    padding-top: 12px;
}

.limit-price-group {
    display: none;
}

.limit-price-group.show {
    display: block;
}

/* ========== AI Advisor Chat ========== */
.chat-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    max-width: 800px;
    margin: 0 auto;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.ai-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-green), #00A804);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.75rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.5;
}

.message.ai {
    background-color: var(--surface);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background-color: var(--primary-green);
    color: var(--background);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--surface);
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 14px 18px;
    background-color: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 1rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.strategy-card {
    background-color: var(--surface);
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.strategy-card h4 {
    color: var(--primary-green);
    margin-bottom: 12px;
}

.strategy-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.strategy-item:last-child {
    border-bottom: none;
}

/* ========== Backtest Page ========== */
.backtest-page {
    padding: 40px 20px;
}

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

.period-card {
    background-color: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.period-card:hover {
    border-color: var(--primary-green);
}

.period-card.selected {
    border-color: var(--primary-green);
    background-color: rgba(0, 200, 5, 0.1);
}

.period-card h4 {
    margin-bottom: 8px;
}

.period-card .dates {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.difficulty-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-badge.hard {
    background-color: rgba(255, 80, 0, 0.2);
    color: var(--negative-red);
}

.difficulty-badge.medium {
    background-color: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.difficulty-badge.easy {
    background-color: rgba(0, 200, 5, 0.2);
    color: var(--primary-green);
}

.backtest-config {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.config-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.backtest-results {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 24px;
}

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

.metric-card {
    background-color: var(--surface-light);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.metric-card label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.metric-card .value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ========== Games Page ========== */
.games-page {
    padding: 40px 20px;
}

.games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-card {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

.game-card:hover {
    border-color: var(--primary-green);
}

.game-info h4 {
    margin-bottom: 4px;
}

.game-info .period {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.game-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.game-stat {
    text-align: center;
}

.game-stat label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.game-stat .value {
    font-size: 1.125rem;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.active {
    background-color: rgba(0, 200, 5, 0.2);
    color: var(--primary-green);
}

.status-badge.completed {
    background-color: rgba(158, 158, 158, 0.2);
    color: var(--text-secondary);
}

/* ========== Bottom Navigation ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
    display: none;
    z-index: 1000;
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color var(--transition-fast);
}

.bottom-nav-item .icon {
    font-size: 1.5rem;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary-green);
}

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--surface);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.show .modal {
    transform: translateY(0);
}

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

.modal-close {
    width: 36px;
    height: 36px;
    background-color: var(--surface-light);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

/* ========== Review Section ========== */
.review-section {
    display: none;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.review-section.show {
    display: block;
}

.review-details {
    background-color: var(--surface-light);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.review-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 16px;
    font-weight: 600;
    font-size: 1.125rem;
}

/* ========== Landing Page Specific ========== */
.landing-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.landing-nav .navbar-brand {
    color: var(--text-primary);
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .navbar-nav {
        display: none;
    }

    .bottom-nav {
        display: block;
    }

    .main-content {
        padding-bottom: 80px;
    }

    .portfolio-amount {
        font-size: 2rem;
    }

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

    .stock-header {
        flex-direction: column;
        gap: 16px;
    }

    .stock-price {
        text-align: left;
    }

    .game-card {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .game-stats {
        width: 100%;
        justify-content: space-between;
    }

    .floating-ai-btn {
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .card {
        padding: 16px;
    }

    .hero {
        padding: 60px 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Chart Animation */
.chart-line path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}
