/*
 * Wyll Cloud Dashboard Styles
 * Based on landing page design system
 */

:root {
    /* Wyll Cloud Official Palette */
    --primary-dark: #1b365d;
    --primary-light: #2b7bb9;
    --neon-accent: #2563eb;
    --bg-gradient-start: #f4f7f9;
    --bg-gradient-end: #e0e8ef;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --glass-bg: rgba(255, 255, 255, 0.28);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-border-strong: rgba(255, 255, 255, 0.25);
    --shadow-elevation: 0 8px 32px rgba(27, 54, 93, 0.08);
    --shadow-hover: 0 16px 48px rgba(27, 54, 93, 0.16), 0 0 0 2px rgba(37, 99, 235, 0.3);

    /* Semantic colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);

    /* Dashboard specific */
    --card-radius: 16px;
    --card-padding: 24px;
    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ambient background grid pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(27, 54, 93, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 54, 93, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Floating ambient clouds */
.cloud-ambient {
    position: fixed;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
    filter: blur(40px);
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
    animation: floatCloud 20s ease-in-out infinite;
}

.cloud-ambient:nth-child(1) {
    width: 300px;
    height: 200px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.cloud-ambient:nth-child(2) {
    width: 400px;
    height: 250px;
    top: 40%;
    right: -10%;
    animation-delay: -8s;
}

.cloud-ambient:nth-child(3) {
    width: 250px;
    height: 150px;
    bottom: 10%;
    left: 20%;
    animation-delay: -15s;
}

@keyframes floatCloud {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-dark);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

code, pre {
    font-family: 'Fira Code', monospace;
}

/* ============================================
   DASHBOARD HEADER - WYLL.CLOUD PATTERN
   ============================================ */

/* Navigation - matches wyll.cloud landing exactly */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(244, 247, 249, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 54, 93, 0.06);
    padding: clamp(10px, 2vw, 16px) clamp(16px, 4vw, 24px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: var(--nav-hidden);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.visible {
    transform: var(--nav-visible);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-dark);
}

.nav-logo img {
    height: clamp(32px, 5.5vw, 44px);
    width: auto;
}

.nav-logo span {
    margin-left: 12px;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: clamp(16px, 3vw, 24px);
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white !important;
    padding: clamp(8px, 2vw, 12px) clamp(16px, 3vw, 24px);
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 54, 93, 0.3);
}

/* Language Switcher - matches landing exactly */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(6px, 1.5vw, 10px) clamp(12px, 2.5vw, 18px);
    background: rgba(27, 54, 93, 0.05);
    border: 1px solid rgba(43, 123, 185, 0.3);
    border-radius: 999px;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang-switch:hover {
    background: rgba(43, 123, 185, 0.1);
    transform: translateY(-1px);
}

.lang-switch svg {
    width: clamp(14px, 2.5vw, 18px);
    height: clamp(14px, 2.5vw, 18px);
}

/* Dashboard tabs in nav (desktop only) */
.nav-tab {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1rem);
    padding: clamp(8px, 1.5vw, 12px) clamp(16px, 2.5vw, 20px);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    color: var(--primary-dark);
    background: rgba(27, 54, 93, 0.05);
}

.nav-tab.active {
    color: var(--primary-dark);
    background: rgba(37, 99, 235, 0.1);
}

/* Mobile Nav Dropdown - matches landing mobile menu style */
.mobile-nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 12px 20px;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-elevation);
}

.mobile-nav-dropdown.active {
    display: flex;
}

.mobile-nav-link {
    display: block;
    padding: 14px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-dark);
    background: rgba(27, 54, 93, 0.05);
}

.mobile-nav-link.active {
    background: rgba(37, 99, 235, 0.1);
}

/* Desktop tab bar (below nav) */
.tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(27, 54, 93, 0.1);
    padding-bottom: 0;
}

.tab-btn {
    position: relative;
    padding: 12px 24px;
    background: transparent;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-dark);
}

.tab-btn.active {
    color: var(--primary-dark);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--neon-accent));
    border-radius: 3px 3px 0 0;
}

.tab-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-right: 8px;
    vertical-align: middle;
}

/* User Avatar & Dropdown */
.user-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.user-avatar svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: var(--shadow-elevation);
    border: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.user-dropdown a:hover {
    background: rgba(27, 54, 93, 0.05);
}

.user-dropdown a svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

.user-dropdown .dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 4px 0;
}

.user-dropdown .logout {
    color: var(--danger);
}

.user-dropdown .logout svg {
    fill: var(--danger);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* Responsive: same pattern as landing page */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 12px 16px;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--shadow-elevation);
    }

    .lang-switch {
        display: inline-flex;
        margin-left: auto;
        margin-right: 8px;
    }
}

@media (min-width: 769px) {
    .mobile-nav-dropdown {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex !important;
    }

    .lang-switch {
        display: inline-flex;
    }
}

/* ============================================
   DASHBOARD MAIN CONTENT
   ============================================ */

.dashboard-main {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 48px;
    min-height: 100vh;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
}

/* Tab Navigation - Desktop */
.tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(27, 54, 93, 0.1);
    padding-bottom: 0;
}

.tab-btn {
    position: relative;
    padding: 12px 24px;
    background: transparent;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-dark);
}

.tab-btn.active {
    color: var(--primary-dark);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--neon-accent));
    border-radius: 3px 3px 0 0;
}

.tab-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-right: 8px;
    vertical-align: middle;
}

/* Tab Content */
.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

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

/* ============================================
   GLASS CARD COMPONENT
   ============================================ */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-elevation);
    padding: var(--card-padding);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 54, 93, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--glass-border-strong);
}

.btn-secondary:hover {
    background: rgba(27, 54, 93, 0.05);
    border-color: var(--primary-dark);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

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

.btn-icon {
    padding: 10px;
    border-radius: 50%;
}

/* ============================================
   STAT CARDS & PROGRESS
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 20px;
    text-align: center;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-card .stat-unit {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}

.stat-card .progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(27, 54, 93, 0.1);
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.stat-card .progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.stat-card .progress-fill.green { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card .progress-fill.blue { background: linear-gradient(90deg, var(--neon-accent), #3b82f6); }
.stat-card .progress-fill.orange { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card .progress-fill.purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.stat-card .progress-fill.teal { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }

/* ============================================
   TABLES
   ============================================ */

.table-wrapper {
    overflow-x: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(27, 54, 93, 0.03);
}

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

tr:hover td {
    background: rgba(27, 54, 93, 0.02);
}

.table-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   PLAN CARD (Subscription Tab)
   ============================================ */

.plan-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .plan-card {
        flex-direction: row;
        align-items: center;
    }
}

.plan-info {
    flex: 1;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-cycle {
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.plan-cycle::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.next-billing {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================
   PAYMENT METHOD CARD
   ============================================ */

.payment-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.payment-details {
    flex: 1;
}

.payment-type {
    font-weight: 600;
    color: var(--text-dark);
}

.payment-last4 {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   DOMAIN LIST (Website Tab)
   ============================================ */

.domain-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
}

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

.domain-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.domain-name {
    font-weight: 600;
    color: var(--primary-dark);
}

.domain-status {
    font-size: 0.85rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.domain-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.domain-status.ssl-warning {
    color: var(--warning);
}

.domain-status.ssl-warning::before {
    background: var(--warning);
}

.domain-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   AI LAB (AI Credits, Models, API Keys)
   ============================================ */

.credits-display {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.credits-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--neon-accent) 0deg,
        var(--neon-accent) calc(12500 / 50000 * 360deg),
        rgba(37, 99, 235, 0.1) calc(12500 / 50000 * 360deg)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.credits-circle::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.credits-circle-text {
    position: relative;
    text-align: center;
}

.credits-circle-text .used {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.credits-circle-text .total {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.credits-info {
    flex: 1;
}

.credits-bar {
    height: 12px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.credits-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-accent), #60a5fa);
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* Model Cards */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.model-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 20px;
    text-align: center;
}

.model-card .model-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary-dark), var(--neon-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-card .model-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.model-card .model-name {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.model-card .model-status {
    font-size: 0.8rem;
    color: var(--success);
}

.model-card .model-status.disabled {
    color: var(--text-muted);
}

/* API Keys Section */
.api-key-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 12px;
}

.api-key-value {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.03);
    padding: 6px 12px;
    border-radius: 8px;
}

.api-key-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--primary-dark);
    color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }


/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tabs-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

    .plan-card {
        flex-direction: column;
        text-align: center;
    }

    .plan-actions {
        justify-content: center;
    }

    .payment-card {
        flex-direction: column;
        text-align: center;
    }

    .domain-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .domain-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .credits-display {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --nav-height: 56px;
        --card-padding: 16px;
    }

    .dashboard-header {
        padding: 0 12px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }
}

/* Utility: hide on mobile/desktop */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ============================================
   CHECKOUT MODE
   ============================================ */

.checkout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.checkout-card {
    max-width: 480px;
    width: 100%;
    padding: 40px;
    text-align: center;
}

.checkout-card h2 {
    margin-bottom: 32px;
    font-weight: 600;
}

.checkout-summary {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-row:last-of-type {
    border-bottom: none;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 12px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
}

.checkout-total strong {
    color: var(--neon-accent);
}

.btn-lg {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 600;
}

.checkout-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hide entire subscription admin panel when checkout mode is active */
