/* =====================================================
   DASHBOARD — Личный кабинет IBB DEV
   ===================================================== */

:root {
    --bg-main:     #0a0a0f;
    --bg-card:     #111118;
    --bg-card2:    #16161f;
    --bg-input:    #1a1a25;
    --accent-red:  #ff3b5c;
    --accent-grad: linear-gradient(135deg, #ff3b5c, #e00c33);
    --accent-glow: rgba(255, 59, 92, 0.2);
    --border:      rgba(255, 255, 255, 0.07);
    --border-red:  rgba(255, 59, 92, 0.3);
    --text-main:   #f0f0f8;
    --text-muted:  #6b7280;
    --text-dim:    #4b5563;
    --success:     #22c55e;
    --warning:     #f59e0b;
    --shadow:      0 8px 32px rgba(0, 0, 0, 0.4);
    --radius:      14px;
    --font:        'Plus Jakarta Sans', sans-serif;
    --mono:        'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.dash-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.dash-header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-logo img { display: block; }

.dash-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.dash-nav-link:hover {
    color: var(--text-main);
    background: var(--bg-card2);
    border-color: var(--border);
}

.dash-logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 59, 92, 0.1);
    color: var(--accent-red);
    border: 1px solid var(--border-red);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}
.dash-logout-btn:hover {
    background: rgba(255, 59, 92, 0.2);
    transform: translateY(-1px);
}

/* ===== MAIN ===== */
.dash-main {
    flex: 1;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 32px 28px 48px;
}

/* ===== LOADING ===== */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 120px 0;
    color: var(--text-muted);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== NOT LOGGED IN / AUTH CARD ===== */
.not-logged-in {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0 80px;
    width: 100%;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-grad);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-icon-badge {
    width: 64px;
    height: 64px;
    background: rgba(255, 59, 92, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: var(--accent-red);
    border: 1px solid var(--border-red);
    box-shadow: 0 0 20px rgba(255, 59, 92, 0.2);
}

.auth-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-main);
}

.auth-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: var(--font);
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-tab-btn.active {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 59, 92, 0.35);
}

.auth-tab-btn:hover:not(.active) {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

/* Auth Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dash-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.15);
}

.pass-wrapper {
    position: relative;
    width: 100%;
}

.pass-wrapper .dash-input {
    padding-right: 42px;
}

.pass-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    transition: color 0.2s;
}

.pass-toggle:hover {
    color: var(--accent-red);
}

/* Alerts */
.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.auth-alert.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Submit Button */
.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent-grad);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 59, 92, 0.35);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 59, 92, 0.5);
}

.auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.auth-card-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-card-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-card-footer a:hover {
    color: var(--accent-red);
}

/* Layout Columns */
.dash-right-col {
    display: flex;
    flex-direction: column;
}

/* Portfolios List */
.portfolios-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.portfolio-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.4);
}

.portfolio-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portfolio-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.portfolio-prof {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.portfolio-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.portfolio-socials-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent-grad);
}

.welcome-banner::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,59,92,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 72px;
    height: 72px;
    background: var(--accent-grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 24px var(--accent-glow);
}

.welcome-greeting {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.welcome-name {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.welcome-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.welcome-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.welcome-meta i { color: var(--accent-red); }

.welcome-stats {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.welcome-stat-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 22px;
    text-align: center;
    min-width: 80px;
}

.ws-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: 4px;
}

.ws-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== DASHBOARD GRID ===== */
.dash-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

/* ===== CARD SHARED ===== */
.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.card-title i { color: var(--accent-red); }

/* ===== PROFILE CARD ===== */
.dash-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.profile-field {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.profile-field:last-of-type { border-bottom: none; }

.profile-field label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
}

.profile-value.muted { color: var(--text-muted); font-style: italic; font-weight: 400; }
.profile-value.mono  { font-family: var(--mono); font-size: 0.8rem; }

.edit-profile-btn {
    width: 100%;
    padding: 10px;
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.edit-profile-btn:hover { border-color: var(--accent-red); color: var(--accent-red); }

.dash-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.dash-input:focus { border-color: var(--accent-red); }
.form-group { margin-bottom: 10px; }

.save-btn {
    flex: 1;
    padding: 9px;
    background: var(--accent-grad);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.save-btn:hover { opacity: 0.9; }

.cancel-btn {
    padding: 9px 16px;
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.cancel-btn:hover { border-color: var(--accent-red); color: var(--accent-red); }

/* Quick Links */
.quick-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.quick-links h4 {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 4px;
}
.quick-link-item:hover {
    background: var(--bg-card2);
    color: var(--accent-red);
}
.quick-link-item i {
    color: var(--accent-red);
    width: 18px;
    text-align: center;
}

/* ===== ORDERS SECTION ===== */
.dash-orders-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

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

.orders-header .card-title { margin-bottom: 0; }

.new-order-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-grad);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: opacity 0.2s, transform 0.2s;
}
.new-order-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Empty State */
.orders-empty {
    text-align: center;
    padding: 60px 20px;
}

.oe-icon {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.orders-empty h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.orders-empty p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 24px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.oe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-grad);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.oe-btn:hover { opacity: 0.9; }

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    transition: border-color 0.2s, transform 0.2s;
    animation: fadeInUp 0.4s ease both;
}

.order-card:hover {
    border-color: rgba(255, 59, 92, 0.25);
    transform: translateY(-2px);
}

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

.order-left { flex: 1; }

.order-id {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent-red);
    font-weight: 600;
    margin-bottom: 4px;
}

.order-service {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.order-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.order-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-meta-item i { color: var(--accent-red); font-size: 0.75rem; }

.order-notes {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    padding: 8px 12px;
    border-left: 2px solid var(--border-red);
    line-height: 1.5;
}

.order-right { flex-shrink: 0; }

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending  { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.status-active   { background: rgba(59,130,246,0.12); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.status-done     { background: rgba(34,197,94,0.12);  color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.status-canceled { background: rgba(239,68,68,0.12);  color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }

/* ===== FOOTER ===== */
.dash-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dash-footer p { font-size: 0.85rem; color: var(--text-muted); }

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .dash-profile-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .dash-header-inner { padding: 12px 16px; }
    .dash-main         { padding: 20px 16px 40px; }

    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 18px;
        gap: 16px;
    }

    .welcome-left {
        gap: 14px;
    }

    .welcome-stats {
        width: 100%;
        justify-content: space-around;
    }

    .welcome-name { font-size: 1.35rem; }
    .welcome-greeting { font-size: 0.8rem; }

    .orders-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .new-order-btn { width: 100%; justify-content: center; }

    .dash-nav-link span { display: none; }

    /* Order cards stack on mobile */
    .order-card {
        flex-direction: column;
        gap: 12px;
    }
    .order-right {
        align-self: flex-start;
    }

    /* Auth card */
    .auth-card {
        padding: 28px 22px;
    }

    /* Bio tips banner */
    .bio-tips-banner {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 14px 16px;
    }

    /* Bio link buttons */
    .cbl-btns {
        flex-direction: column;
    }
    .cbl-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dash-main { padding: 16px 12px 40px; }

    .user-avatar { width: 52px; height: 52px; font-size: 1.3rem; }
    .welcome-stat-card { padding: 10px 12px; min-width: 70px; }
    .ws-num { font-size: 1.3rem; }
    .ws-label { font-size: 0.68rem; }

    .welcome-banner { padding: 16px 14px; }
    .welcome-left { gap: 12px; }
    .welcome-name { font-size: 1.2rem; }

    .portfolio-card { padding: 16px; }

    /* Auth card full-width */
    .auth-card { padding: 24px 16px; }
    .auth-header h2 { font-size: 1.35rem; }

    /* Dashboard header */
    .dash-header-inner { padding: 10px 12px; }
    .dash-logout-btn span { display: none; }

    /* QR Modal */
    .dash-modal-card { padding: 22px 18px; }
}

@media (max-width: 380px) {
    .dash-logo img { height: 30px; }
    .welcome-stats { gap: 8px; }
    .welcome-stat-card { padding: 8px 10px; min-width: 62px; }
    .ws-num { font-size: 1.1rem; }

    /* Portfolios single column always */
    .portfolios-list {
        grid-template-columns: 1fr;
    }
}

/* ===== BIO LINK & QR CODE STYLES ===== */
.bio-tips-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(255, 59, 92, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.btb-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.btb-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.btb-text strong {
    color: var(--text-main);
}

.card-bio-link-box {
    background: var(--bg-card2);
    border: 1px dashed rgba(139, 92, 246, 0.4);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cbl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cbl-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #a78bfa;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cbl-slug {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent-red);
    background: rgba(255, 59, 92, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.cbl-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--text-main);
    word-break: break-all;
    user-select: all;
}

.cbl-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.cbl-btn {
    text-decoration: none;
    border: none;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.cbl-btn.copy {
    background: linear-gradient(135deg, #ff3b5c, #e00c33);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 59, 92, 0.3);
}

.cbl-btn.copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 92, 0.4);
}

.cbl-btn.open {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.cbl-btn.open:hover {
    border-color: #a78bfa;
    color: #a78bfa;
}

.cbl-btn.qr {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.cbl-btn.qr:hover {
    background: rgba(139, 92, 246, 0.25);
}

/* DASHBOARD MODAL & TOAST */
.dash-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

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

.dash-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-modal-copy-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff3b5c, #e00c33);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(255, 59, 92, 0.35);
}

.dash-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #10b981;
    color: #fff;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Keep dashboard cards and form fields inside narrow screens. */
*, *::before, *::after { box-sizing: border-box; }
.dash-main, .dash-grid, .auth-card, .dash-modal-card, .portfolio-card { min-width: 0; max-width: 100%; }
.dash-main :where(h1, h2, h3, p, label, a, button) { overflow-wrap: anywhere; }
.dash-input, .form-group, .pass-wrapper { min-width: 0; max-width: 100%; }
.dash-input::placeholder { color: #9299aa; opacity: 1; }
.dash-input:focus::placeholder { color: #b3bac8; }
.auth-card { width: min(100%, 520px); max-width: 520px; }
.privacy-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 12px 14px;
    color: #9299aa;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.55;
    cursor: pointer;
}
.privacy-consent input {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    color: #fff;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.privacy-consent input::before {
    content: "✓";
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    transform: scale(0);
    transition: transform 0.12s ease;
}
.privacy-consent input:checked { background: var(--accent-red); border-color: var(--accent-red); }
.privacy-consent input:checked::before { transform: scale(1); }
.privacy-consent input:focus-visible { outline: 3px solid rgba(255, 59, 92, 0.28); outline-offset: 2px; }
.privacy-consent a { color: #ff8294; text-decoration: underline; text-decoration-color: rgba(255, 130, 148, 0.45); text-underline-offset: 2px; }
.privacy-consent a:hover { color: #ffb0bd; }
@media (max-width: 768px) {
    .dash-header-inner { gap: 10px; }
    .auth-card { width: 100%; max-width: 520px; }
    .welcome-stats { flex-wrap: wrap; }
    .welcome-stat-card { flex: 1 1 90px; }
}
@media (max-width: 380px) {
    .auth-card { padding: 20px 14px; }
    .dash-main { padding-left: 10px; padding-right: 10px; }
    .auth-tab-btn { padding-left: 8px; padding-right: 8px; font-size: 0.82rem; }
}
