:root {
    --bg: #030712;
    --card-bg: rgba(17, 24, 39, 0.85);
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.3);
    --secondary: #6366f1;
    --danger: #f43f5e;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.glow-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.15), transparent 50%);
    z-index: -1;
}

/* Navbar */
.navbar { padding: 1.5rem 0; z-index: 100; }
.nav-container { max-width: 650px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 1rem; position: relative; }

.btn-menu {
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: white;
    width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* Dropdown Glassmorphism */
.dropdown {
    position: absolute; top: 55px; right: 1rem; width: 180px; padding: 0.5rem;
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(25px); border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.dropdown button {
    width: 100%; text-align: left; padding: 0.8rem 1rem; background: transparent; border: none; color: white;
    font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 0.75rem; border-radius: 0.5rem; cursor: pointer;
}
.dropdown button:hover { background: rgba(255, 255, 255, 0.1); }

/* Logo */
.logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.4rem; font-weight: 800; }
.logo-icon { width: 34px; height: 34px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--bg); }
.logo span span { color: var(--primary); }

#app { flex: 1; display: flex; justify-content: center; padding: 1rem; }
.container { width: 100%; max-width: 500px; }

/* Cards */
.glass-premium { 
    background: var(--card-bg); backdrop-filter: blur(30px); border: 1px solid var(--border); border-radius: 2rem; padding: 2rem; 
}

/* Modal FIX */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 1rem;
}
.modal-card { width: 100%; max-width: 380px; text-align: center; }
.modal-card h2 { font-size: 1.5rem; margin-bottom: 2rem; font-weight: 800; }

.input-group-vertical { display: flex; flex-direction: column; gap: 1.25rem; text-align: left; }
.input-group-vertical label { font-size: 0.7rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* Global Input FIX */
input, select {
    background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: 1rem;
    padding: 0.85rem 1.25rem; color: white; font-family: inherit; font-size: 0.9rem; outline: none; width: 100%;
}
input:focus { border-color: var(--primary); }

.modal-actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }

/* Buttons FIX */
button { cursor: pointer; transition: 0.3s; border: none; font-family: inherit; }

.btn-primary-glow {
    width: 100%; background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white; padding: 1rem; border-radius: 1rem; font-weight: 700;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); color: white;
    padding: 0.85rem; border-radius: 1rem; font-weight: 600;
}

/* Cancel Button FIX (No white background) */
.btn-link-danger {
    background: transparent !important;
    border: none !important;
    color: var(--danger) !important;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.5rem;
    width: fit-content;
    margin: 0 auto;
}

/* Landing Page Form FIX */
.hero { text-align: center; margin-bottom: 2.5rem; }
.hero-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.text-gradient { background: linear-gradient(to right, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { color: var(--text-muted); font-size: 0.85rem; }

.action-card { display: flex; flex-direction: column; gap: 1.25rem; }

/* Input Group FIX (Cohesive look) */
.input-group { 
    display: flex; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden;
}
.input-group input { border: none; background: transparent; flex: 1; }
.btn-secondary {
    background: rgba(255, 255, 255, 0.05); border: none; border-left: 1px solid var(--border);
    color: white; width: 50px; display: flex; align-items: center; justify-content: center;
}

/* Inbox UI FIX */
.active-session { margin-bottom: 2.5rem; text-align: center; }
.session-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 1rem; }

.email-input-wrapper { position: relative; max-width: 420px; margin: 0 auto 1.5rem; }
.email-input-wrapper input {
    text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--primary); border: 1px solid rgba(56, 189, 248, 0.2);
}
.btn-copy-icon {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: var(--primary); width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--bg);
}

.session-actions { display: flex; gap: 0.75rem; justify-content: center; }
.btn-action {
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); padding: 0.6rem 1rem; border-radius: 0.75rem; 
    color: white; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem;
}

/* Footer FIX */
footer { padding: 1.5rem; text-align: center; border-top: 1px solid var(--border); background: rgba(0, 0, 0, 0.4); margin-top: auto; }
footer p { color: var(--text-muted); font-size: 0.75rem; margin: 2px 0; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spinning { animation: spin 0.6s linear; }

@media (max-width: 640px) {
    .hero-title { font-size: 1.8rem; }
    .session-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .btn-action.danger { grid-column: span 2; justify-content: center; }
}
