:root {
    --bg: #0b1114;
    --bg-soft: #142126;
    --card-bg: rgba(11, 17, 20, 0.86);
    --card-bg-strong: rgba(20, 33, 38, 0.94);
    --text: #ffffff;
    --text-dim: #a0a0a0;
    --text-soft: #d2d2d2;
    --accent: #ffffff;
    --accent-deep: #d7d7d7;
    --border: rgba(207, 216, 214, 0.14);
    --success: #54d78b;
    --danger: #ff8e8e;
    --shadow: rgba(0, 0, 0, 0.35);
}

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

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 24%),
        linear-gradient(135deg, #091014 0%, #0d171b 45%, #101a1f 100%);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 36px 18px 48px;
}

.container {
    max-width: 1120px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 28px;
}

header h1 {
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

header p {
    color: var(--text-dim);
    font-size: 1.02rem;
}

.user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(8, 13, 16, 0.72);
    backdrop-filter: blur(16px);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.user-name {
    font-weight: 600;
    color: var(--text);
}

.user-subtitle {
    color: var(--text-dim);
    font-size: 0.88rem;
}

.saved-setup {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.saved-pill {
    flex: 1 1 220px;
    min-height: 76px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(8, 13, 16, 0.62));
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.saved-pill.is-complete {
    border-color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(18, 28, 34, 0.9));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.saved-pill strong {
    display: block;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.45;
    word-break: break-word;
}

.saved-pill-meta {
    display: block;
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-top: 4px;
    line-height: 1.4;
}

.saved-pill-wide {
    flex-basis: 320px;
}


.saved-pill-label {
    display: block;
    color: var(--text-dim);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.setup-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.setup-sidebar {
    position: sticky;
    top: 24px;
}

.setup-sidebar-card {
    background: rgba(8, 13, 16, 0.68);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
}

.setup-sidebar-title {
    font-size: 1.28rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.setup-sidebar-copy {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin-bottom: 20px;
}

.setup-steps-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.setup-step-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.setup-step-item:first-child {
    border-top: none;
    padding-top: 0;
}

.setup-step-number {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 700;
    flex-shrink: 0;
}

.setup-step-item strong {
    display: block;
    color: var(--text);
    font-size: 0.96rem;
    margin-bottom: 3px;
}

.setup-step-item p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.5;
}

.setup-main {
    min-width: 0;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 24px;
    margin-bottom: 28px;
}

.auth-panel,
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 24px 80px var(--shadow);
    backdrop-filter: blur(14px);
}

.setup-card {
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.setup-card.is-active {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(14, 21, 26, 0.95);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 50px rgba(0, 0, 0, 0.28);
}

.current-step-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-copy-card {
    position: relative;
    overflow: hidden;
}

.auth-copy-card::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-panel h2,
.card h2 {
    font-size: 1.45rem;
    line-height: 1.2;
    margin-bottom: 14px;
    font-weight: 600;
}

.auth-lead,
.signin-copy,
.summary-intro {
    color: var(--text-soft);
    font-size: 0.98rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.step-card {
    position: relative;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card h3 {
    color: var(--text);
    margin: 0 0 6px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
}

.step-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

.auth-signin-card {
    background: linear-gradient(180deg, rgba(20, 33, 38, 0.98), rgba(12, 20, 24, 0.94));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.google-slot-wrap {
    display: flex;
    justify-content: center;
    margin: 28px 0 20px;
}

.auth-signin-card .signin-copy {
    margin-bottom: 4px;
}

.auth-signin-card .auth-note {
    margin-top: 24px;
}

.google-slot {
    min-height: 44px;
    display: flex;
    justify-content: center;
}

.auth-note {
    margin-top: 18px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
}

.auth-note strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
}

.auth-note p {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.input-group,
.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.input-group-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.input-group-row input {
    flex: 1;
}

input,
select {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(0, 0, 0, 0.5);
}

button,
.btn {
    background: var(--accent);
    color: #000000;
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.10);
}

button:hover,
.btn:hover {
    opacity: 0.96;
    transform: translateY(-1px);
}

#verify-btn,
.compact-btn {
    width: auto;
    min-width: 124px;
    margin-top: 0;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-highlight {
    background: var(--text);
    color: #0d1619;
}

.hidden {
    display: none !important;
}

h3 {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inline-status {
    margin-top: 14px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 10, 12, 0.74);
    color: var(--text-soft);
}

.inline-status.error {
    border-color: rgba(255, 142, 142, 0.3);
    color: #ffd3d3;
    background: rgba(97, 29, 29, 0.3);
}

.inline-status.info,
.inline-status.success {
    color: var(--text-soft);
}

.helper-banner {
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(8, 14, 17, 0.8);
    color: var(--text-dim);
    font-size: 0.92rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.helper-banner a,
footer a {
    color: var(--text);
}

.helper-link-btn {
    width: auto;
    margin-top: 0;
    padding: 0;
    background: none;
    color: var(--text-dim);
    border: none;
    text-decoration: underline;
    font-size: 0.92rem;
    box-shadow: none;
}

.helper-link-btn:hover {
    transform: none;
    color: var(--text);
}

.inbox-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.inbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
}

.inbox-helper,
.warning-text,
.field-label,
.modal-subtitle,
.modal-note {
    color: var(--text-dim);
}

.field-label {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.section-intro {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.field-help {
    color: var(--text-dim);
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 8px;
}

.warning-text {
    font-size: 0.82rem;
    margin-top: 6px;
}

.empty-inbox-state,
.empty-summary-state {
    background: rgba(8, 14, 17, 0.76);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
}

.empty-inbox-state h3,
.empty-summary-state strong {
    margin: 0 0 8px;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
    font-size: 1.02rem;
}

.empty-inbox-state p,
.empty-summary-state p {
    color: var(--text-dim);
    font-size: 0.94rem;
}

.premium {
    text-align: center;
    background: linear-gradient(180deg, rgba(20, 33, 38, 0.96), rgba(11, 17, 20, 0.92));
}

.status-dot {
    width: 12px;
    height: 12px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 0 18px rgba(84, 215, 139, 0.8);
    animation: pulse 2s infinite;
}

.summary-text {
    white-space: pre-wrap;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

footer {
    text-align: center;
    margin-top: 38px;
    color: var(--text-dim);
    font-size: 0.82rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 10, 0.84);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: var(--card-bg-strong);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.56);
}

.modal-box h3 {
    font-size: 1.24rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    text-transform: none;
    letter-spacing: 0;
}

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

.modal-actions .btn {
    margin-top: 0;
}

.modal-status {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.92rem;
    margin-bottom: 18px;
    background: rgba(7, 10, 12, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
}

.modal-status.success {
    border-color: rgba(84, 215, 139, 0.3);
    color: #d0ffe2;
}

.modal-status.error {
    border-color: rgba(255, 142, 142, 0.3);
    color: #ffd3d3;
}

.info-box {
    display: block;
    line-height: 1.8;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    body {
        padding: 20px 12px 36px;
    }

    .auth-panel,
    .card,
    .modal-box {
        padding: 22px;
    }

    .user-bar,
    .modal-actions,
    .input-group-row,
    .steps-grid,
    .saved-setup,
    .setup-shell {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .setup-sidebar {
        position: static;
    }

    .saved-pill {
        border-radius: 10px;
    }

    #verify-btn,
    .compact-btn {
        width: 100%;
    }

    .user-bar {
        align-items: stretch;
    }
}







