/* Dashboard & Protected Pages Styles */

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flash {
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

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

.flash-success {
    background: rgba(10, 30, 20, 0.95);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #34d399;
}

.flash-error {
    background: rgba(30, 10, 10, 0.95);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #f87171;
}

.flash-warning {
    background: rgba(30, 25, 10, 0.95);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.flash-info {
    background: rgba(15, 15, 35, 0.95);
    border: 1px solid rgba(233,201,126, 0.4);
    color: #e9c97e;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.flash-close:hover {
    opacity: 1;
}

/* =============================================
   CONFIRM MODAL — Reusable
   ============================================= */
.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.2s ease-out;
    padding: 1.5rem;
}

.confirm-modal-backdrop.visible {
    opacity: 1;
}

.confirm-modal {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 2rem 2.2rem 1.6rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.confirm-modal-backdrop.visible .confirm-modal {
    transform: translateY(0) scale(1);
}

.confirm-modal-title {
    font-family: var(--heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.6rem;
    letter-spacing: -0.01em;
}

.confirm-modal-msg {
    font-size: 0.92rem;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0 0 1.4rem;
}

.confirm-modal-field {
    margin: 0 0 1.4rem;
}

.confirm-modal-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
}

.confirm-modal-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
}

.confirm-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.confirm-modal-input:focus {
    outline: none;
    border-color: rgba(234,210,155, 0.6);
    background: rgba(255, 255, 255, 0.06);
}

.confirm-modal-error {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: #fca5a5;
    line-height: 1.4;
}

.confirm-modal-link {
    display: inline-block;
    margin: 0 0 1.2rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--accent-bright, #ead29b);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
}

.confirm-modal-link:hover {
    text-decoration: underline;
}

.confirm-modal-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

.confirm-modal-btn {
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.confirm-modal-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirm-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.confirm-modal-primary {
    background: var(--grad);
    color: #fff;
}

.confirm-modal-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(212,169,87, 0.35);
}

.confirm-modal-danger {
    background: #ef4444;
    color: #fff;
}

.confirm-modal-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

@media (max-width: 480px) {
    .confirm-modal {
        padding: 1.6rem 1.5rem 1.3rem;
    }
    .confirm-modal-actions {
        flex-direction: column-reverse;
    }
    .confirm-modal-btn {
        width: 100%;
    }
}

/* =============================================
   DASHBOARD — Premium UI
   ============================================= */
.dash {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 5rem 0 5rem;
    min-height: 100vh;
}

/* Animated background gradient blob */
.dash-bg {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 600px;
    background: rgba(212,169,87,0.06);
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    animation: dashBgFloat 12s ease-in-out infinite;
}

@keyframes dashBgFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(20px); }
}

.dash > *:not(.dash-bg) {
    position: relative;
    z-index: 1;
}

/* ---------- Hero ---------- */
.dash-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3.5rem;
    animation: dashFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-signout {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-3);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    transition: all 0.2s;
}

/* Mobile-only dashboard elements hidden on desktop */
.dash-signout-mobile,
.dash-stat-studio-mobile,
.dash-action-signout-mobile { display: none; }

.dash-signout:hover {
    color: #f87171;
    border-color: rgba(248,113,113,0.3);
    background: rgba(248,113,113,0.06);
}

@keyframes dashFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dash-avatar {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #d4a957;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    box-shadow: 0 8px 32px rgba(212,169,87, 0.3);
}

.dash-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid rgba(212,169,87, 0.3);
    animation: dashRingPulse 3s ease-in-out infinite;
}

@keyframes dashRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.dash-greet {
    flex: 1;
    min-width: 0;
}

.dash-greet-time {
    display: block;
    font-size: 0.95rem;
    color: var(--text-3);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.dash-greet h1 {
    font-family: var(--heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 0.9rem;
    color: #ead29b;
}

.dash-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.dash-badge svg {
    width: 11px;
    height: 11px;
}

.dash-badge-beta {
    background: rgba(212,169,87, 0.12);
    border: 1px solid rgba(212,169,87, 0.3);
    color: #e9c97e;
}

.dash-badge-pre {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #6ee7b7;
}

.dash-badge-plan {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-2);
}

/* ---------- Stats row ---------- */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: dashFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

.dash-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-stat:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212,169,87, 0.2);
    transform: translateY(-2px);
}

.dash-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(212,169,87, 0.1);
    border: 1px solid rgba(212,169,87, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e9c97e;
    flex-shrink: 0;
}

.dash-stat-content {
    flex: 1;
    min-width: 0;
}

.dash-stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.dash-stat-value {
    font-family: var(--heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Cards ---------- */
.dash-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 2rem 2.2rem;
    backdrop-filter: blur(12px);
    margin-bottom: 1.5rem;
}

.dash-card-head {
    margin-bottom: 2rem;
}

.dash-card-head h2 {
    font-family: var(--heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.3rem;
    letter-spacing: -0.01em;
}

.dash-card-head p {
    color: var(--text-3);
    font-size: 0.88rem;
    margin: 0;
}

/* ---------- Journey timeline ---------- */
.dash-journey {
    position: relative;
    animation: dashFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.dash-journey-line {
    position: absolute;
    left: calc(2.2rem + 13px);
    top: 6.5rem;
    bottom: 2rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.dash-journey-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--grad);
    border-radius: 2px;
    transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px rgba(212,169,87, 0.5);
}

.dash-journey-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dash-jstep {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    position: relative;
}

.dash-jstep-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-family: var(--heading);
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.dash-jstep.done .dash-jstep-marker {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 18px rgba(212,169,87, 0.5);
}

.dash-jstep.active .dash-jstep-marker {
    background: rgba(212,169,87, 0.15);
    border-color: rgba(212,169,87, 0.5);
    color: #e9c97e;
}

.dash-jstep-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e9c97e;
    box-shadow: 0 0 0 0 rgba(233,201,126, 0.7);
    animation: dashPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes dashPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233,201,126, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(233,201,126, 0); }
}

.dash-jstep-text {
    flex: 1;
    padding-top: 0.15rem;
}

.dash-jstep-text h3 {
    font-family: var(--heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.2rem;
}

.dash-jstep:not(.done):not(.active) .dash-jstep-text h3 {
    color: var(--text-2);
}

.dash-jstep-text p {
    font-size: 0.82rem;
    color: var(--text-3);
    margin: 0;
    line-height: 1.5;
}

.dash-jstep-btn {
    margin-top: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    background: rgba(212,169,87, 0.12);
    border: 1px solid rgba(212,169,87, 0.3);
    border-radius: 8px;
    color: #e9c97e;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.dash-jstep-btn:hover {
    background: rgba(212,169,87, 0.2);
    border-color: rgba(212,169,87, 0.5);
    color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212,169,87, 0.25);
}

.dash-jstep-btn svg {
    flex-shrink: 0;
}

.dash-jstep-btn-muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-3);
}

.dash-jstep-btn-muted:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
    color: #fca5a5;
    box-shadow: 0 6px 18px rgba(248, 113, 113, 0.15);
}

/* ---------- Quick actions ---------- */
.dash-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    animation: dashFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

.dash-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.dash-action:hover {
    background: rgba(212,169,87, 0.08);
    border-color: rgba(212,169,87, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.dash-action:hover .dash-action-arrow {
    transform: translateX(4px);
    color: #e9c97e;
}

.dash-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(212,169,87, 0.1);
    border: 1px solid rgba(212,169,87, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e9c97e;
    flex-shrink: 0;
}

.dash-action-text {
    flex: 1;
    min-width: 0;
}

.dash-action-text h3 {
    font-family: var(--heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.2rem;
}

.dash-action-text p {
    font-size: 0.78rem;
    color: var(--text-3);
    margin: 0;
}

.dash-action-arrow {
    color: var(--text-3);
    transition: all 0.3s;
    flex-shrink: 0;
}

.dash-action-muted .dash-action-icon {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .dash {
        padding: 3rem 1.2rem 4rem;
    }
    .dash-hero {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    .dash-greet h1 {
        font-size: 1.9rem;
    }
    .dash-badges {
        justify-content: center;
    }
    .dash-card {
        padding: 1.5rem 1.4rem;
    }
    .dash-journey-line {
        left: calc(1.4rem + 13px);
    }
}

/* ---------- Legacy classes (kept for non-dashboard pages) ---------- */
.btn-nav {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-nav-primary {
    background: var(--grad);
    color: #fff;
}

.btn-nav-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(212,169,87, 0.3);
}

.btn-nav-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-nav-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Pricing Page */
.pricing-page {
    min-height: 100vh;
    background: var(--bg);
    padding: 1rem 2rem;
}

.pricing-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.pricing-hero h1 {
    font-family: var(--heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.pricing-hero p {
    font-size: 0.95rem;
    color: var(--text-2);
}

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

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card .pricing-features {
    flex: 1;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,169,87, 0.5);
}

.pricing-card.popular {
    border: 2px solid #d4a957;
    box-shadow: 0 8px 30px rgba(212,169,87, 0.2);
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-family: var(--heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.pricing-price .currency {
    font-size: 1.2rem;
    color: var(--text-2);
}

.pricing-price .amount {
    font-family: var(--heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0.2rem;
}

.pricing-price .period {
    color: var(--text-3);
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    color: var(--text-2);
}

.pricing-features svg {
    flex-shrink: 0;
}

.pricing-features-includes {
    font-size: 0.8rem;
    color: var(--text-3);
    padding-bottom: 0.3rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    list-style: none;
}

.pricing-cta-note {
    font-size: 0.75rem;
    color: var(--text-3);
    text-align: center;
    margin-top: 0.6rem;
}

.btn-pricing {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-pricing-primary {
    background: var(--grad);
    color: #fff;
}

.btn-pricing-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(212,169,87, 0.3);
}

.btn-pricing-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-pricing-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-pricing:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== REFERRAL CARD (on dashboard) ===== */
.dash-referral {
    margin-top: 1.5rem;
}

.dash-referral-row {
    display: flex;
    gap: 0.5rem;
    margin: 1.25rem 0 1rem;
}

.dash-referral-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text, #e4e4e7);
    font-family: 'DM Mono', 'SF Mono', Menlo, monospace;
    font-size: 0.85rem;
    outline: none;
    min-width: 0;
}

.dash-referral-input:focus {
    border-color: rgba(212,169,87, 0.5);
    background: rgba(0, 0, 0, 0.45);
}

.dash-referral-copy {
    background: #d4a957;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 0 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.dash-referral-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,169,87, 0.35);
}

.dash-referral-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.06));
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}

.dash-referral-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-2, #a1a1aa);
    font-size: 0.85rem;
}

.dash-referral-stat strong {
    color: var(--text, #fff);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.dash-referral-stat-code code {
    background: rgba(212,169,87, 0.12);
    border: 1px solid rgba(212,169,87, 0.25);
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    color: #ead29b;
    font-family: 'DM Mono', 'SF Mono', Menlo, monospace;
    font-size: 0.85rem;
}

.dash-referral-future {
    display: flex;
    gap: 0.625rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(212,169,87, 0.06);
    border-left: 2px solid rgba(212,169,87, 0.5);
    border-radius: 6px;
    color: var(--text-2, #a1a1aa);
    font-size: 0.8rem;
    line-height: 1.5;
}

.dash-referral-future svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: #ead29b;
}

/* (account-promo-form moved to auth.css as .acct-promo-form) */

/* ===== DASHBOARD: REFERRAL REWARDS PENDING CARD ===== */
.dash-rewards-card {
    margin-top: 1.5rem;
    background: rgba(212,169,87, 0.05);
    border: 1px solid rgba(212,169,87, 0.25);
}

.dash-rewards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.dash-reward-item {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.dash-reward-item-copy {
    color: var(--text-2, #a1a1aa);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.dash-reward-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dash-reward-btn {
    flex: 1;
    min-width: 140px;
    background: #d4a957;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.dash-reward-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,169,87, 0.35);
}

.dash-reward-btn-alt {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(234,210,155, 0.35);
    color: #ead29b;
}

.dash-reward-btn-alt:hover:not(:disabled) {
    background: rgba(234,210,155, 0.15);
}

.dash-reward-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== DASHBOARD: PRO TRIAL UPGRADE CTA ===== */
.dash-upgrade-cta {
    margin-top: 1.5rem;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.dash-upgrade-cta-head h2 {
    color: #fbbf24;
}

.dash-upgrade-cta-head p {
    color: var(--text-2, #a1a1aa);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.dash-upgrade-cta-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.dash-upgrade-cta-btn {
    background: #f59e0b;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-upgrade-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.dash-upgrade-cta-dismiss {
    background: transparent;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    color: var(--text-2, #a1a1aa);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
}

.dash-upgrade-cta-dismiss:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text, #fff);
}

/* (account-refund moved to auth.css as .acct-card-muted) */

/* ===== FEEDBACK WIDGET — glass design =====
   Floating glass pill (auth only) + frosted modal. */

/* --- Floating pill (bottom-right, auth users only) --- */
.fb-pill {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    background: rgba(15, 17, 23, 0.82);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: #ead29b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 28px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212,169,87, 0.06);
    opacity: 0;
    transform: translateY(8px);
    animation: fb-pill-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

@keyframes fb-pill-in {
    to { opacity: 1; transform: translateY(0); }
}

.fb-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212,169,87, 0.15);
    color: #f5e4bf;
}

.fb-pill svg { flex-shrink: 0; color: #ead29b; }

.fb-pill-out {
    opacity: 0 !important;
    transform: translateY(8px) !important;
    transition: all 0.2s ease !important;
}

@media (max-width: 480px) {
    .fb-pill { right: 0.75rem; bottom: 5rem; }
}

/* --- Modal backdrop --- */
.fb-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: rgba(5, 7, 14, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.fb-backdrop.fb-show { opacity: 1; }

/* --- Modal card --- */
.fb-card {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
    background: rgba(15, 17, 23, 0.88);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
    color: #d4d4d8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    transform: translateY(10px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fb-backdrop.fb-show .fb-card {
    transform: translateY(0) scale(1);
}

/* --- Top row: icon + title + close --- */
.fb-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.fb-top-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,169,87, 0.12);
    border-radius: 9px;
    flex-shrink: 0;
}

.fb-top h3 {
    margin: 0;
    font-family: var(--heading, 'Space Grotesk', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
}

.fb-close {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
    display: flex;
}

.fb-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.fb-sub {
    margin: 0 0 1rem;
    color: #71717a;
    font-size: 0.8rem;
    line-height: 1.45;
}

/* --- Category chips --- */
.fb-chips {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.fb-chip {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.45rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    color: #a1a1aa;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.15s ease;
}

.fb-chip:hover { background: rgba(255, 255, 255, 0.07); color: #e4e4e7; }

.fb-chip-on {
    background: rgba(212,169,87, 0.14);
    border-color: rgba(212,169,87, 0.45);
    color: #ead29b;
    font-weight: 600;
}

.fb-chip-icon { font-size: 0.85rem; line-height: 1; }

/* --- Textarea --- */
.fb-ta {
    width: 100%;
    min-height: 110px;
    padding: 0.75rem 0.85rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #e4e4e7;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.5;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fb-ta::placeholder { color: rgba(255, 255, 255, 0.25); }
.fb-ta:focus { border-color: rgba(212,169,87, 0.5); background: rgba(0, 0, 0, 0.45); }

/* Honeypot */
.fb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* Error */
.fb-err {
    color: #f87171;
    font-size: 0.8rem;
    margin: 0.6rem 0 0;
    padding: 0.4rem 0.65rem;
    background: rgba(239, 68, 68, 0.08);
    border-left: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 6px;
}

/* --- Actions --- */
.fb-actions {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.fb-act {
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 9px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s ease;
}

.fb-act:disabled { opacity: 0.55; cursor: not-allowed; }

.fb-act-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-act-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); color: #e4e4e7; }

.fb-act-send {
    background: #d4a957;
    color: #fff;
    box-shadow: 0 2px 8px -2px rgba(212,169,87, 0.5);
}

.fb-act-send:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px rgba(212,169,87, 0.6);
}

.fb-act-send svg { flex-shrink: 0; }

/* Spinner */
.fb-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fb-spin 0.6s linear infinite;
}

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

/* --- Success state --- */
.fb-done {
    padding: 2rem 1rem;
    text-align: center;
}

.fb-done-icon { margin-bottom: 0.75rem; }

.fb-done h3 {
    margin: 0 0 0.3rem;
    font-family: var(--heading, 'Space Grotesk', sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.fb-done p {
    margin: 0;
    color: #71717a;
    font-size: 0.85rem;
}

/* ===== PRICING PAGE: BILLING TOGGLE + BADGES ===== */

.pricing-toggle {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin: 0 auto 1.5rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
}

.pricing-toggle-btn {
    padding: 0.6rem 1.25rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-2, #a1a1aa);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-toggle-btn.active {
    background: #d4a957;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px -4px rgba(212,169,87, 0.5);
}

.pricing-toggle-badge {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pricing-trial-badge {
    background: rgba(212,169,87, 0.15);
    color: #ead29b;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: auto;
}

.pricing-tax {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    margin-top: -0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pricing-savings {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.5rem;
    text-align: center;
}

.pricing-first-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.pricing-discount-badge {
    color: #ead29b;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.pricing-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- Studio coming soon ---------- */
.studio-coming-soon {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.studio-coming-soon-inner {
    text-align: center;
    max-width: 520px;
}

.studio-coming-soon-icon {
    margin-bottom: 1.5rem;
}

.studio-coming-soon-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.studio-coming-soon-beta {
    color: var(--accent-bright, #e9c97e);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.studio-coming-soon-desc {
    color: var(--text-2);
    line-height: 1.7;
}

.studio-coming-soon-actions {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.studio-coming-soon-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

/* ---------- Studio Project Manager ---------- */

.studio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1.5rem 0;
}

.studio-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.studio-new-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.studio-new-btn:hover { background: #b78d3a; }

.studio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.studio-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.studio-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,169,87,0.1);
}

.studio-card-thumb {
    height: 150px;
    background: #0d0d1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.studio-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.studio-card-thumb-empty {
    color: #333;
}

.studio-card-body {
    padding: 12px 14px;
}
.studio-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ddd;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.studio-card-date {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
}

.studio-card-actions {
    display: flex;
    gap: 4px;
    padding: 0 10px 10px;
}
.studio-card-act {
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    background: transparent;
    color: rgba(255,255,255,0.4);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s;
}
.studio-card-act:hover { border-color: rgba(255,255,255,0.2); color: #ccc; }
.studio-card-act-danger:hover { border-color: #ef4444; color: #ef4444; }

.studio-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.studio-empty svg { margin-bottom: 1rem; }
.studio-empty h2 { font-size: 1.1rem; color: rgba(255,255,255,0.3); margin-bottom: 0.5rem; }
.studio-empty p { font-size: 0.85rem; color: rgba(255,255,255,0.2); }

.studio-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}
.studio-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Rendered Videos List ---------- */

.studio-videos {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.studio-video-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    transition: border-color 0.15s;
}
.studio-video-row:hover { border-color: rgba(255,255,255,0.12); }
.studio-video-icon { color: rgba(255,255,255,0.25); flex-shrink: 0; }
.studio-video-info { flex: 1; min-width: 0; }
.studio-video-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.studio-video-project {
    font-weight: 400;
    color: rgba(255,255,255,0.3);
    font-size: 0.7rem;
}
.studio-video-meta {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    margin-top: 2px;
}
.studio-video-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* ---------- Compact modal (single-input prompts) ---------- */
.confirm-modal-compact .confirm-modal {
    max-width: 360px;
}
