:root {
    --fp-bg: #081120;
    --fp-bg-soft: #0c1628;
    --fp-header: #081120;
    --fp-surface: #ffffff;
    --fp-surface-2: #f8fafc;
    --fp-border: #e2e8f0;
    --fp-text: #0f172a;
    --fp-muted: #64748b;
    --fp-primary: #2563eb;
    --fp-primary-dark: #1d4ed8;
    --fp-primary-soft: rgba(37, 99, 235, 0.12);
    --fp-success: #059669;
    --fp-danger: #dc2626;
    --fp-sidebar: #081120;
    --fp-sidebar-hover: rgba(255, 255, 255, 0.06);
    --fp-sidebar-active: rgba(37, 99, 235, 0.22);
    --fp-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --fp-radius: 16px;
    --fp-radius-sm: 10px;
}

body.fp-app,
body.fp-auth {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--fp-text);
    background: var(--fp-surface-2);
}

.fp-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    flex-shrink: 0;
    background: var(--fp-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.fp-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    padding: 0 1.5rem;
    gap: 1rem;
}

.fp-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--fp-text);
    font-weight: 700;
    font-size: 1.05rem;
}

.fp-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.fp-topbar .fp-brand-logo {
    width: auto;
    max-width: 360px;
    height: 88px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.fp-brand-logo {
    width: auto;
    max-width: 180px;
    height: 44px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.fp-auth-panel-logo {
    max-width: 160px;
    height: 44px;
}

.fp-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.fp-topbar-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-weight: 500;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.fp-topbar-link:hover { color: #fff; }

.fp-user-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.5rem 0.2rem 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.1;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.fp-user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.fp-user-btn .bi-chevron-down {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.65rem;
}

.fp-user-avatar {
    flex-shrink: 0;
    line-height: 0;
}

.fp-user-meta { text-align: left; line-height: 1.15; }
.fp-user-meta strong { display: block; font-size: 0.78rem; color: #fff; font-weight: 600; }
.fp-user-meta small { color: rgba(255, 255, 255, 0.5); font-size: 0.68rem; }

.fp-user-menu {
    min-width: 260px;
    border: 1px solid var(--fp-border);
    box-shadow: var(--fp-shadow);
    border-radius: var(--fp-radius-sm);
    padding: 0.5rem;
}

.fp-user-menu-head,
.fp-user-menu-balance { padding: 0.75rem 0.85rem; }

.fp-user-menu-balance strong {
    display: block;
    font-size: 1.25rem;
    color: var(--fp-primary);
}

.fp-nav-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    transition: background 0.2s ease;
}

.fp-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fp-nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.fp-shell {
    display: flex;
    min-height: calc(100vh - 96px);
}

.fp-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--fp-sidebar);
    color: #fff;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.fp-sidebar-inner {
    position: sticky;
    top: 96px;
    height: calc(100vh - 96px);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.fp-sidebar-user {
    text-align: center;
    padding: 1rem 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.fp-sidebar-avatar .avator,
.fp-sidebar-avatar img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.fp-user-avatar .avator,
.fp-user-avatar img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 700;
    font-size: 0.68rem;
}

.fp-sidebar-user h6 { margin: 0.85rem 0 0.35rem; font-weight: 600; }

.fp-account-id {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

.fp-nav { display: flex; flex-direction: column; gap: 0.35rem; }

.fp-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s ease;
}

.fp-nav-link i { font-size: 1.15rem; width: 1.25rem; }
.fp-nav-link:hover { background: var(--fp-sidebar-hover); color: #fff; }
.fp-nav-link.active {
    background: var(--fp-sidebar-active);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25);
}

.fp-nav-logout { margin-top: 0.5rem; color: #fca5a5; }

.fp-sidebar-support {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
}

.fp-sidebar-support a { color: #93c5fd; text-decoration: none; word-break: break-all; }

.fp-main { flex: 1; min-width: 0; width: 100%; }
.fp-main-inner { padding: 1.5rem; width: 100%; max-width: none; margin: 0; }

.fp-page-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fp-page-head h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.fp-page-head p { margin: 0; color: var(--fp-muted); }
.fp-quick-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.fp-card {
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow);
    padding: 1.25rem;
    height: 100%;
}

.fp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.fp-card-head h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.fp-btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
}

.fp-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fp-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fp-stat-card {
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    padding: 1.25rem;
    box-shadow: var(--fp-shadow);
    position: relative;
    overflow: hidden;
}

.fp-stat-card::after {
    content: '';
    position: absolute;
    inset: auto -20px -20px auto;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    opacity: 0.12;
}

.fp-stat-card.primary::after { background: var(--fp-primary); }
.fp-stat-card.btc::after { background: #f7931a; }
.fp-stat-card.eth::after { background: #627eea; }
.fp-stat-card.usdt::after { background: #26a17b; }

.fp-stat-label {
    color: var(--fp-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.fp-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.fp-stat-sub {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--fp-muted);
    font-weight: 600;
}

.fp-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    font-size: 1.2rem;
    overflow: hidden;
}

.fp-stat-icon .fp-crypto-icon {
    display: block;
}

.fp-stat-card.primary .fp-stat-icon { background: var(--fp-primary-soft); color: var(--fp-primary); }
.fp-stat-card.btc .fp-stat-icon,
.fp-stat-card.eth .fp-stat-icon,
.fp-stat-card.usdt .fp-stat-icon {
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.fp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.fp-btn-primary {
    background: linear-gradient(135deg, var(--fp-primary), #4f46e5);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.fp-btn-primary:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.05); }

.fp-btn-outline {
    background: #fff;
    color: var(--fp-text);
    border: 1px solid var(--fp-border);
}

.fp-btn-outline:hover { border-color: var(--fp-primary); color: var(--fp-primary); }

.fp-table-wrap {
    overflow: auto;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
}

.fp-table { width: 100%; margin: 0; border-collapse: collapse; }

.fp-table th,
.fp-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--fp-border);
    text-align: left;
}

.fp-table th {
    background: var(--fp-surface-2);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fp-muted);
}

.fp-table tr:last-child td { border-bottom: none; }

.fp-coin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.fp-coin-badge .fp-crypto-icon {
    display: block;
    flex-shrink: 0;
}

.fp-coin-btc { background: rgba(247, 147, 26, 0.12); color: #b45309; }
.fp-coin-eth { background: rgba(98, 126, 234, 0.12); color: #4338ca; }
.fp-coin-usdt { background: rgba(38, 161, 123, 0.12); color: #047857; }

.fp-address-box {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: var(--fp-surface-2);
    border: 1px dashed var(--fp-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-top: 1rem;
}

.fp-address-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
    color: var(--fp-text);
}

.fp-copy-btn {
    border: none;
    background: var(--fp-primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fp-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

.fp-tab {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--fp-border);
    background: #fff;
    color: var(--fp-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.fp-tab.active,
.fp-tab:hover {
    color: var(--fp-primary);
    border-color: rgba(37, 99, 235, 0.35);
    background: var(--fp-primary-soft);
}

.fp-tab-pane { display: none; }
.fp-tab-pane.active { display: block; }

.fp-qr-wrap {
    text-align: center;
    padding: 1rem;
    background: var(--fp-surface-2);
    border-radius: var(--fp-radius-sm);
    margin: 1rem 0;
}

.fp-qr-wrap img {
    border-radius: 12px;
    background: #fff;
    padding: 0.75rem;
}

.fp-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.925rem;
}

.fp-alert-success {
    background: rgba(5, 150, 105, 0.1);
    color: #065f46;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.fp-alert-danger {
    background: rgba(220, 38, 38, 0.08);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.18);
}

.fp-alert-info {
    background: rgba(37, 99, 235, 0.08);
    color: #1e40af;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.fp-auth { min-height: 100vh; background: var(--fp-bg); }
.fp-auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }

@media (min-width: 992px) {
    .fp-auth-wrap { grid-template-columns: 1.1fr 0.9fr; }
}

.fp-auth-visual {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 42%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.12), transparent 38%),
        linear-gradient(160deg, #081120 0%, #0c1628 100%);
    color: #fff;
    padding: 3rem;
    align-items: center;
}

.fp-auth-visual-content { max-width: 520px; }

.fp-auth-visual-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
}

.fp-auth-brand-logo {
    max-width: 220px;
    height: 72px;
    object-fit: contain;
}

.fp-auth-visual h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.fp-auth-features { list-style: none; padding: 0; margin: 2rem 0 0; }

.fp-auth-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.fp-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: #fff;
}

.fp-auth-card { width: 100%; max-width: 420px; }

.fp-auth-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.fp-auth-card h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.35rem; }
.fp-auth-subtitle { color: var(--fp-muted); margin-bottom: 1.5rem; }

.fp-form-group { margin-bottom: 1rem; }
.fp-form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }

.fp-input {
    width: 100%;
    border: 1px solid var(--fp-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font: inherit;
    background: #fff;
    transition: 0.2s ease;
}

.fp-input:focus {
    outline: none;
    border-color: var(--fp-primary);
    box-shadow: 0 0 0 4px var(--fp-primary-soft);
}

.fp-auth-footer {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--fp-muted);
    font-size: 0.925rem;
}

.fp-auth-footer a { color: var(--fp-primary); font-weight: 600; text-decoration: none; }

.fp-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.fp-profile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    text-decoration: none;
    color: var(--fp-text);
    background: #fff;
    transition: 0.2s ease;
}

.fp-profile-link:hover {
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
    box-shadow: var(--fp-shadow);
    color: var(--fp-text);
}

.fp-profile-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--fp-primary-soft);
    color: var(--fp-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.fp-wallet-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.fp-wallet-row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.fp-wallet-row-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.fp-wallet-list p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: ui-monospace, monospace;
    font-size: 0.78rem;
    word-break: break-all;
    margin-bottom: 0.65rem;
}

.fp-wallet-list .fp-address-box {
    margin-top: 0;
}

.fp-wallet-qr-panel {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fp-border);
}

.fp-wallet-qr-panel.is-open {
    display: block;
}

.fp-wallet-qr-panel .fp-tabs {
    margin-bottom: 1rem;
}

.fp-wallet-qr-panel .fp-qr-wrap img {
    max-width: 100%;
    height: auto;
}

.fp-price-widget {
    border: none;
    border-radius: var(--fp-radius-sm);
    overflow: hidden;
    background: transparent;
}

.fp-live-prices-card .fp-card-head {
    align-items: center;
}

.fp-live-sync-note {
    font-size: 0.78rem;
    color: var(--fp-muted);
    font-weight: 600;
}

.fp-live-sync-note i {
    margin-right: 0.25rem;
}

.fp-live-portfolio-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
    border: 1px solid var(--fp-border);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(79, 70, 229, 0.06));
}

.fp-live-portfolio-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fp-muted);
    margin-bottom: 0.25rem;
}

.fp-live-portfolio-value {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fp-live-portfolio-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.82rem;
    color: var(--fp-muted);
    text-align: right;
}

.fp-live-price-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.fp-live-price-icon img {
    width: 32px;
    height: 32px;
    display: block;
}

.fp-live-price-row.btc .fp-live-price-icon,
.fp-live-price-row.eth .fp-live-price-icon,
.fp-live-price-row.usdt .fp-live-price-icon {
    background: #fff;
}

.fp-live-prices-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fp-live-price-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--fp-border);
    border-radius: 12px;
    background: var(--fp-surface-2);
}

.fp-live-price-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.fp-live-price-left strong {
    display: block;
    font-size: 0.95rem;
}

.fp-live-price-left small {
    color: var(--fp-muted);
}

.fp-live-price-center {
    text-align: center;
}

.fp-live-balance-label,
.fp-live-market-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fp-muted);
    margin-bottom: 0.2rem;
}

.fp-live-balance-value {
    display: block;
    font-size: 0.95rem;
}

.fp-live-balance-usd {
    display: block;
    color: var(--fp-muted);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.fp-live-price-right {
    text-align: right;
}

.fp-live-price-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
}

.fp-live-price-change {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.fp-live-price-change.up { color: #059669; }
.fp-live-price-change.down { color: #dc2626; }

.fp-live-prices-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--fp-border);
    color: var(--fp-muted);
    font-size: 0.82rem;
}

.fp-live-prices-loading,
.fp-live-prices-error {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--fp-muted);
}

.fp-live-prices-loading i {
    animation: fp-spin 1s linear infinite;
    margin-right: 0.35rem;
}

.fp-live-retry {
    margin-left: 0.5rem;
    border: 1px solid var(--fp-border);
    background: #fff;
    border-radius: 8px;
    padding: 0.25rem 0.65rem;
    cursor: pointer;
}

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

@media (max-width: 767.98px) {
    .fp-live-price-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .fp-live-price-center,
    .fp-live-price-right {
        text-align: left;
    }

    .fp-live-portfolio-meta {
        text-align: left;
    }

    .fp-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .fp-sidebar {
        position: fixed;
        inset: 96px 0 0 0;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1020;
    }

    .fp-sidebar.open { transform: translateX(0); }

    .fp-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 96px 0 0 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: -1;
    }

    .fp-sidebar.open .fp-sidebar-overlay {
        display: block;
        z-index: 1019;
        left: 280px;
    }

    .fp-main-inner { padding: 1rem; }
}

.fp-app .btn-primary {
    background: linear-gradient(135deg, var(--fp-primary), #4f46e5);
    border: none;
    border-radius: 10px;
    font-weight: 600;
}

.fp-app .input-bordered,
.fp-app .input-item input,
.fp-app .input-item select,
.fp-app .input-item textarea {
    border-radius: 12px !important;
    border-color: var(--fp-border) !important;
}
