/* ── Reset & Base ── */
html {
    background-color: #0c0c1d;
    background-image: linear-gradient(135deg, #0c0c1d 0%, #1a1a3e 50%, #2d1b69 100%);
    min-height: 100%;
    overflow-x: hidden;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    color: #f0f0f0;
    overflow-x: hidden;
}

/* ── Layout ── */
.container { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 520px; width: 100%; padding: 1.5rem; }
.container-small { max-width: 420px; width: 100%; padding: 2rem 1.5rem; text-align: center; }

.centered-page {
    display: flex; flex-direction: column; align-items: center;
}
.centered-both {
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; min-height: 100dvh;
}

/* ── Links ── */
.back-link {
    color: #a0a0cc; text-decoration: none; font-size: 0.85rem;
    display: inline-block; margin-bottom: 1.5rem;
}
.back-link:hover { color: #fff; }

/* ── Buttons ── */
.btn {
    display: inline-block; padding: 0.9rem 2rem; border-radius: 50px;
    font-size: 1rem; font-weight: 600; text-decoration: none;
    transition: all 0.2s ease; cursor: pointer; border: none;
    text-align: center;
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-primary {
    background: linear-gradient(135deg, #6C5CE7, #a29bfe); color: #fff;
    box-shadow: 0 4px 20px rgba(108,92,231,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(108,92,231,0.6); }
.btn-primary:disabled { opacity: 0.6; transform: none; cursor: wait; }
.btn-primary-full { width: 100%; max-width: 300px; }
.btn-outline {
    background: transparent; color: #a0a0cc;
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); }
.btn-danger {
    background: rgba(214,48,49,0.15); color: #ff7675;
    border: 1px solid rgba(214,48,49,0.3);
    font-size: 0.85rem; padding: 0.6rem 1.5rem;
}
.btn-danger:hover { background: rgba(214,48,49,0.25); }
.btn-join {
    background: rgba(255,255,255,0.1); color: #fff;
    border: 1px solid rgba(255,255,255,0.15); padding: 0.9rem 1.5rem;
}
.btn-join:hover { background: rgba(255,255,255,0.18); }

/* ── Shared UI Components ── */
.share-url {
    background: rgba(0,0,0,0.3); padding: 0.6rem 1rem; border-radius: 8px;
    font-size: 0.8rem; color: #81ecec; cursor: pointer;
    word-break: break-all; transition: background 0.2s; position: relative;
}
.share-url:hover { background: rgba(0,0,0,0.5); }
.share-url.copied::after {
    content: 'Copied!'; position: absolute; top: -28px; left: 50%;
    transform: translateX(-50%); background: #00b894; color: #fff;
    padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.75rem;
}

/* ── Card Component ── */
.card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; overflow: hidden;
}
.card-header { padding: 1.5rem 1.5rem 1rem; text-align: center; }
.card-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.card-category {
    display: inline-block; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 2px; padding: 0.25rem 0.8rem; border-radius: 20px;
    background: rgba(255,255,255,0.1); margin-bottom: 0.8rem;
}
.card-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.5px; }
.card-body { padding: 0 1.5rem 1.5rem; }
.section-label {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px;
    color: #888; margin-bottom: 0.4rem; margin-top: 1.2rem;
}
.challenge-text { font-size: 1rem; line-height: 1.6; color: #ddd; }
.meeting-prompt {
    font-size: 0.95rem; line-height: 1.6; color: #b8b8d0;
    border-left: 3px solid; padding-left: 0.8rem;
}
.card-footer {
    padding: 1rem 1.5rem; background: rgba(0,0,0,0.15);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: #666;
}
.remaining-badge {
    background: rgba(255,255,255,0.08); padding: 0.3rem 0.7rem;
    border-radius: 20px; font-size: 0.75rem;
}

/* ── Stats ── */
.stats {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 1.2rem; margin-bottom: 1.5rem;
}
.stats-row { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; }
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 700; color: #a29bfe; }
.stat-label { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.progress-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.progress-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #6C5CE7, #a29bfe);
    transition: width 0.4s ease;
}

/* ── Glass Panels ── */
.glass-panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 1rem; text-align: center;
}

/* ── Actions Row ── */
.actions {
    display: flex; gap: 0.8rem; justify-content: center;
    flex-wrap: wrap; text-align: center;
}
.actions-col {
    display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}

/* ── Utilities ── */
.big-icon { font-size: 4rem; margin-bottom: 1rem; }
.muted-text { color: #a0a0cc; margin-bottom: 1.5rem; line-height: 1.6; }
.muted-text-lg { color: #a0a0cc; margin-bottom: 2rem; line-height: 1.6; }

/* ── Footer ── */
.site-footer {
    padding: 2rem 0; text-align: center; color: #d8d8d8;
    font-size: 0.75rem; border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 1rem;
}
.site-footer-bottom {
    margin-top: auto; padding: 1.5rem; color: #d6d6d6;
    font-size: 0.72rem; text-align: center;
}

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardAppear {
    0%   { opacity: 0; transform: scale(0.8) rotateY(90deg); }
    50%  { opacity: 1; transform: scale(1.05) rotateY(0deg); }
    100% { opacity: 1; transform: scale(1) rotateY(0deg); }
}
