/* Premium SaaS Design System for GlowBot */
:root {
    --bg: #050505;
    --surface: #0c0c0c;
    --surface-light: #161616;
    --primary: #EAB308; /* Vibrant Golden */
    --primary-dim: rgba(234, 179, 8, 0.1);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.06);
    --accent-blue: #38BDF8;
    --accent-green: #22C55E;
    
    --glass-bg: rgba(12, 12, 12, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --grad-gold: linear-gradient(135deg, #FACC15 0%, #EAB308 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background effects */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, var(--primary-dim) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
    min-height: 100vh;
}

/* Auth / Login View */
#login-view {
    display: none;
    margin-top: 8vh;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 48px;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

.login-card h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

input {
    width: 100%;
    padding: 16px 20px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-dim);
}

.primary-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: var(--grad-gold);
    color: #000;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(234, 179, 8, 0.4);
}

/* Dashboard View */
#main-view {
    display: none;
    animation: fadeIn 0.8s ease;
}

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

header h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Project Card */
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.tag-active {
    background: rgba(34, 197, 94, 0.1);
    color: #4ADE80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.project-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Stepper Component */
.stepper {
    position: relative;
    margin: 40px 0;
}

.progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    position: relative;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--grad-gold);
    border-radius: 10px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 0 0 15px var(--primary-dim);
}

.steps-labels {
    display: flex;
    justify-content: space-between;
}

.step-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: 0.3s;
}

.step-item.active .step-label {
    color: var(--primary);
}

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.glass-item {
    background: var(--surface-light);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.glass-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}

.label-cap {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.val-text {
    font-size: 17px;
    font-weight: 600;
}

/* Actions Section */
.actions-stack {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-secondary {
    background: #111;
    border: 1px solid var(--border);
    color: #fff;
}

.btn-secondary:hover {
    background: #181818;
}

.support-btn {
    background: #0088cc;
    color: #fff;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
}

/* Modal Styling */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    width: 100%;
    max-width: 520px;
    padding: 48px;
    position: relative;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

#loader {
    background: var(--bg);
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--surface-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite cubic-bezier(0.5, 0.1, 0.4, 0.9);
}

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