/* Dashboard */
.dashboard {
    display: none;
    padding: 20px;
    padding-bottom: calc(40px + var(--safe-bottom));
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Pull to Refresh */
.pull-indicator {
    position: fixed;
    top: calc(var(--safe-top) + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-subtle);
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    opacity: 0;
}

.pull-indicator.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.pull-indicator.refreshing {
    color: var(--gold);
    border-color: var(--border-accent);
}

.pull-indicator svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.pull-indicator.ready svg {
    transform: rotate(180deg);
}

.pull-indicator.refreshing svg {
    display: none;
}

.pull-indicator .pulse-dot {
    display: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.6);
}

.pull-indicator.refreshing .pulse-dot {
    display: block;
    animation: pulseGlow 1.2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 12px 4px rgba(201, 169, 98, 0.3);
    }
}

/* Account Type Tabs */
.account-type-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    position: relative;
    z-index: 1;
}

.account-type-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
}

.account-type-tab:active {
    transform: scale(0.97);
}

.account-type-tab.active {
    background: var(--bg-card-elevated);
    color: var(--gold);
    border: 1px solid var(--border-accent);
    box-shadow: 0 2px 8px rgba(201, 169, 98, 0.15);
}

.account-type-tab[data-type="live"].active {
    color: var(--positive);
    border-color: rgba(52, 211, 153, 0.3);
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.1);
}

.account-type-tab[data-type="demo"].active {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.1);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-top: 8px;
    position: relative;
    z-index: 1;
}

.header-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--champagne);
}

.header-updated {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-top: 6px;
    letter-spacing: 0.02em;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:active {
    transform: scale(0.95);
    background: var(--bg-card-elevated);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

.btn-icon.danger {
    color: var(--negative);
    border-color: rgba(248, 113, 113, 0.2);
}

/* Notification bell button */
.btn-icon.notification {
    position: relative;
}

.btn-icon.notification.subscribed {
    color: var(--gold);
    border-color: rgba(201, 169, 98, 0.3);
}

.btn-icon.notification.denied {
    color: var(--text-tertiary);
    opacity: 0.5;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.notification-badge.active {
    background: var(--positive);
    color: #fff;
}

.notification-badge.denied {
    background: var(--negative);
    color: #fff;
}

.notification-badge svg {
    width: 8px;
    height: 8px;
    stroke-width: 3;
}

.btn-icon.loading svg {
    animation: spin 1s linear infinite;
}

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

/* Cache Version Footer */
.cache-version {
    text-align: center;
    padding: 4px 0 calc(8px + var(--safe-bottom));
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}
