/* ========================================
   Divine Energy - 40 Day Meditation Challenge
   Matching Design System from divine-energy.me
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #6d28d9;
    --color-primary-light: #7c3aed;
    --color-primary-dark: #5b21b6;
    --color-secondary: #6d28d9;
    --color-secondary-light: #8b5cf6;
    --color-accent: #6d28d9;

    --color-bg: #ffffff;
    --color-bg-card: #f9fafb;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --color-success: #10b981;
    --color-error: #ef4444;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.2s ease;

    --container-padding: 2rem;
    --nav-height: 60px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Account for fixed nav */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevent horizontal scroll */
    /* Remove animation that might cause mobile flicker */
}

.page-wrapper {
    min-height: 100vh;
    min-height: 100dvh; /* Use dynamic viewport height on supported browsers */
    display: flex;
    flex-direction: column;
}

/* Page Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Stagger animation delays for cards */
.dashboard-card {
    animation: slideInUp 0.5s ease-out backwards;
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }
.dashboard-card:nth-child(5) { animation-delay: 0.5s; }
.dashboard-card:nth-child(6) { animation-delay: 0.6s; }

/* Navigation */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 24px;
    z-index: 100;
    height: var(--nav-height); /* Fixed height for consistency */
    box-sizing: border-box;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    background: linear-gradient(120deg, #6d28d9 0%, #a855f7 50%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 8px 4px; /* Add touch target padding */
    min-height: 44px; /* WCAG touch target minimum */
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--color-text);
}

/* Page Title Section */
.page-title-section {
    padding: 100px 24px 40px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-title-section .challenge-dates {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 550px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 100px 24px 40px; /* Reduced from 140px to prevent jumping */
    margin-top: var(--nav-height); /* Account for fixed nav */
    text-align: center;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.challenge-dates {
    font-size: 2rem; /* Reduced from 2.5rem for less mobile shift */
    color: #8B5CF6;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-proof {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.participant-count {
    font-weight: 600;
    color: var(--color-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 2rem 3rem;
    padding-top: 0;
    background: var(--color-bg);
}

.container {
    max-width: 880px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--color-bg-card);
    margin: 0 calc(var(--container-padding) * -1);
    padding: 4rem var(--container-padding);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: var(--nav-height);
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* Challenge Info Box */
.challenge-info-box {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.05), rgba(139, 92, 246, 0.05));
    border-left: 4px solid var(--color-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.challenge-info-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.challenge-info-box p {
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.challenge-info-box p:last-child {
    margin-bottom: 0;
}

/* Info Box - Blue variant */
.info-box-blue {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 6px;
}

.info-box-blue h3 {
    color: #1e40af;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.info-box-blue p {
    margin: 0;
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-box-blue p + p {
    margin-top: 0.5rem;
}

.info-box-blue ul {
    color: #1e40af;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
    padding-left: 1.5rem;
}

/* How It Works Image */
.how-it-works-image {
    text-align: center;
    margin-bottom: 3rem;
}

.how-it-works-image img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border: none;
    background: none;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.benefit-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Social Accountability Section */
.accountability-content {
    max-width: 800px;
    margin: 0 auto;
}

.accountability-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.accountability-text > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.accountability-points {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.point {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.point-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.point-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.point-content p {
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .point {
        flex-direction: column;
        gap: 1rem;
    }

    .point-icon {
        text-align: left;
    }
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features-list {
        grid-template-columns: 1fr;
    }

    .resources-list {
        grid-template-columns: 1fr !important;
    }
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.feature-check {
    width: 28px;
    height: 28px;
    background: var(--color-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Status Timeline - OpenAI Style */
.status-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.month-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    padding: 1.5rem 0 1rem 0;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 1.5rem;
}

.month-header:first-child {
    padding-top: 0;
}

.timeline-entry {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.date-stamp {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    padding-top: 0.5rem;
}

.date-weekday {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1;
}

.date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.entry-card {
    flex: 1;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.entry-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.entry-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    flex: 1;
}

.entry-time {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.entry-description {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.entry-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.entry-actions .btn {
    margin: 0;
}

@media (max-width: 640px) {
    .timeline-entry {
        flex-direction: column;
        gap: 0.75rem;
    }

    .date-stamp {
        width: auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-align: left;
        padding-top: 0;
    }

    .date-weekday {
        margin-bottom: 0;
    }

    .date-day {
        font-size: 1.25rem;
    }

    .date-month {
        margin-top: 0;
    }

    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .entry-time {
        font-size: 0.8125rem;
    }

    .entry-actions {
        flex-direction: column;
    }

    .entry-actions .btn {
        width: 100%;
    }
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border-left: 3px solid var(--color-primary);
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary-light) 100%);
    color: white;
    margin: 0 -2rem;
    padding: 4rem 2rem;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-section .btn-primary {
    background: white;
    color: var(--color-primary);
}

.cta-section .btn-primary:hover {
    background: #f3f4f6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    min-height: 44px; /* WCAG touch target minimum */
    text-align: center;
    white-space: nowrap; /* Prevent awkward wrapping */
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(109, 40, 217, 0.2);
}

.btn-primary:disabled {
    background: var(--color-border);
    color: var(--color-text-muted);
    cursor: not-allowed;
    transform: none;
}

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

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(109, 40, 217, 0.05);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-success {
    background: var(--color-success);
    color: #ffffff;
    border: 1px solid var(--color-success);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
    border: 1px solid #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

/* Session buttons for multi-meditation users */
.session-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

.session-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.25);
}

.session-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--color-success);
}

.session-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-danger:disabled {
    background: var(--color-border);
    color: var(--color-text-muted);
    cursor: not-allowed;
    transform: none;
}

.btn-info {
    background: #3b82f6;
    color: #ffffff;
    border: 1px solid #3b82f6;
}

.btn-info:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-info:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-info:disabled {
    background: var(--color-border);
    color: var(--color-text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Button Size Variants
 * .btn (default): 0.875rem x 1.75rem padding, 0.9rem font
 * .btn-small: 0.5rem x 1rem padding, 0.85rem font
 * .btn-large: 1rem x 2rem padding, 1rem font
 */
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-height: 36px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Form Card */
.form-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.form-card-narrow {
    max-width: 450px;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border-light);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.required {
    color: var(--color-error);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
}

.field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.field-error {
    display: block;
    font-size: 0.85rem;
    color: var(--color-error);
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--color-error);
    border-radius: 4px;
}

.field-error:empty {
    display: none;
}

.field-error::before {
    content: "⚠ ";
    margin-right: 0.25rem;
}

.form-group input.error,
.form-group select.error {
    border-color: var(--color-error);
}

/* Phone Input Container */
.phone-input-container {
    display: flex;
    gap: 0.5rem;
}

.phone-input-container .country-code-select {
    flex: 0 0 180px;
    min-width: 180px;
}

.phone-input-container input[type="tel"] {
    flex: 1;
}

@media (max-width: 768px) {
    .phone-input-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .phone-input-container .country-code-select {
        flex: 1;
        min-width: 100%;
        width: 100%; /* Full width on mobile */
    }

    /* Better form input sizing on mobile */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
}

/* Frequency Options */
.frequency-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.frequency-option {
    display: flex;
}

.frequency-option input[type="radio"] {
    display: none;
}

.frequency-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    height: 140px;
}

.frequency-option input[type="radio"]:checked + .frequency-card {
    border-color: var(--color-primary);
    background: rgba(109, 40, 217, 0.05);
}

.frequency-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.frequency-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.frequency-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\2713';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Consent Box */
.consent-box {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
}

.consent-box:hover {
    border-color: var(--color-primary);
    background: #faf5ff;
}

.consent-checkbox {
    align-items: flex-start;
}

.consent-checkbox .checkbox-custom {
    margin-top: 0.1rem;
}

.consent-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.consent-text strong {
    color: var(--color-text);
    font-size: 0.95rem;
}

/* Info Box */
.info-box {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
}

.info-box h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-box ul, .info-box ol {
    margin: 0;
    padding-left: 1.25rem;
}

.info-box li {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

/* Form Actions */
.form-actions {
    margin-top: 1.5rem;
}

.form-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-footer-text a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Success Container */
.success-container {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 80px; /* Account for fixed nav (60px) + spacing */
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
    overflow: visible;
    line-height: 1;
}

.success-container h2 {
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.success-message {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.email-display {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Success Details */
.success-details {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--color-text-light);
}

.detail-value {
    font-weight: 600;
}

.success-next-steps {
    text-align: left;
}

.save-page-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

.notice-icon {
    font-size: 1.5rem;
}

/* Login Info */
.login-info {
    text-align: center;
    padding: 1rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.login-info p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Motivation Banner */
.motivation-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(109, 40, 217, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.quote-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.quote-content {
    flex: 1;
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.quote-author {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(109, 40, 217, 0.2);
}

.dashboard-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Progress Card */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.header-badges {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.streak-badge {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.streak-badge.streak-fire {
    background: linear-gradient(135deg, #f97316, #ea580c);
    animation: fireGlow 2s ease-in-out infinite;
}

.streak-badge.streak-fire-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    animation: fireGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

/* Streak styles removed - simplified streak system */
}

@keyframes fireGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(249, 115, 22, 0.3); }
    50% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.6); }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-bar-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 12px;
    background: var(--color-border-light);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary-light));
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
}

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

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Time Invested Banner */
.time-invested-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(109, 40, 217, 0.2);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.time-invested-banner:hover {
    border-color: rgba(109, 40, 217, 0.4);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.15);
}

.time-invested-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.time-invested-content {
    flex: 1;
}

.time-invested-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.time-invested-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.time-invested-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Today Card */
.today-progress {
    text-align: center;
    padding: 1rem 0;
}

.meditation-circles {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meditation-circle {
    width: 60px;
    height: var(--nav-height);
    border-radius: 50%;
    border: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.meditation-circle.completed {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.today-status {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.status-complete {
    color: var(--color-success);
    font-weight: 600;
}

/* Completed Card */
.completed-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: none;
}

.completion-celebration {
    text-align: center;
}

.celebration-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.total-sessions {
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
}

.activity-item.complete {
    background: #f0fdf4;
}

.activity-date {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 60px;
}

.activity-progress {
    flex: 1;
}

.activity-bar {
    height: 8px;
    background: var(--color-border-light);
    border-radius: 4px;
    overflow: hidden;
}

.activity-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
}

.activity-item.complete .activity-fill {
    background: var(--color-success);
}

.activity-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    min-width: 40px;
    text-align: right;
}

.activity-check {
    color: var(--color-success);
    font-weight: bold;
}

/* Milestone Tracker */
.milestones-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.milestone {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    transition: var(--transition);
}

.milestone.active {
    border-color: var(--color-primary);
    background: rgba(109, 40, 217, 0.05);
}

.milestone.achieved {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    border-color: var(--color-success);
}

.milestone-day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.milestone.achieved .milestone-day {
    color: var(--color-success);
}

.milestone-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.milestone-countdown {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.milestone-achieved {
    font-size: 0.85rem;
    color: var(--color-success);
    font-weight: 600;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border);
    background: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.calendar-day.completed {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.calendar-day.today {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.calendar-day.milestone {
    border-width: 3px;
}

.calendar-day.milestone.completed {
    background: linear-gradient(135deg, var(--color-success) 0%, #34d399 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.calendar-day.milestone.today {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary-light) 100%);
    box-shadow: 0 0 10px rgba(109, 40, 217, 0.3);
}

.day-check {
    font-size: 1rem;
}

.day-number {
    color: var(--color-text-muted);
}

.calendar-day.today .day-number {
    color: white;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid var(--color-border);
}

.legend-dot.completed {
    background: var(--color-success);
    border-color: var(--color-success);
}

.legend-dot.today {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.legend-dot.upcoming {
    background: var(--color-bg);
    border-color: var(--color-border);
}

.legend-dot.milestone {
    border-width: 3px;
    border-color: var(--color-primary);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Community Feed */
.community-feed-card .community-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.gratitude-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gratitude-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(109, 40, 217, 0.05));
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.gratitude-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.1);
}

.gratitude-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.gratitude-content {
    flex: 1;
}

.gratitude-text {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.gratitude-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* Settings Card */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.setting-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.setting-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-border);
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Footer */
.footer {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border-light);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-admin-link {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    opacity: 0.5;
    transition: var(--transition);
}

.footer-admin-link:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* ========================================
   Registration Banner & Donation
   ======================================== */

.registration-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%; /* Prevent overflow */
    box-sizing: border-box;
}

.banner-dates {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.banner-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.banner-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.banner-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

.donation-description {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.donation-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.donation-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.donation-option:hover {
    border-color: var(--color-primary-light);
    background: var(--color-bg-alt);
}

.donation-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.donation-option input[type="radio"]:checked + .donation-radio-label {
    color: var(--color-primary);
    font-weight: 500;
}

.donation-radio-label {
    color: var(--color-text);
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .registration-banner {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        max-width: 100%; /* Prevent overflow */
    }

    .banner-dates {
        width: 100%; /* Full width for better centering */
    }

    .banner-divider {
        width: 60px;
        height: 1px;
        margin: 0 auto; /* Center the divider */
    }

    .banner-value {
        font-size: 1rem; /* Smaller text to prevent wrapping */
    }
}

/* Countdown Timer */
.countdown-container {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, #ffffff 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.countdown-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .countdown-grid {
        gap: 0.5rem; /* Tighter spacing on small screens */
    }

    .countdown-value {
        font-size: 1.75rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .countdown-container {
        padding: 1rem;
    }

    .countdown-item {
        min-width: 0; /* Allow shrinking */
    }
}

/* ========================================
   Modal Styles
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body .form-group:last-of-type {
    margin-bottom: 0;
}

.modal-body label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.modal-body .optional {
    font-weight: 400;
    color: var(--color-text-muted);
}

.modal-body textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    resize: vertical;
    transition: var(--transition);
}

.modal-body textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.modal-body textarea::placeholder {
    color: var(--color-text-muted);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--color-border-light);
    margin-top: 1.5rem;
}

/* Mood Selector */
.mood-selector {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.mood-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
}

.mood-option input {
    display: none;
}

.mood-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
    border: 3px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    background: white;
}

.mood-option input:checked + .mood-emoji {
    border-color: var(--color-primary);
    background: rgba(109, 40, 217, 0.15);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.2);
}

.mood-option:hover .mood-emoji {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.mood-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    line-height: 1.2;
}

.mood-option input:checked ~ .mood-label {
    color: var(--color-primary);
    font-weight: 600;
}

.mood-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Today's Gratitude Display */
.todays-gratitude {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-success);
}

.todays-gratitude h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-success);
    margin-bottom: 0.5rem;
}

.todays-gratitude p {
    font-style: italic;
    color: var(--color-text);
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .mood-selector {
        gap: 0.5rem;
    }

    .mood-emoji {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .mood-label {
        font-size: 0.65rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* Batch logging session forms on mobile */
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
    }

    .session-form {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .session-form select {
        font-size: 0.9rem;
    }

    .session-form .form-group {
        margin-bottom: 0.75rem;
    }

    /* Ensure modal body is scrollable on mobile */
    .modal-body {
        padding: 1rem;
        max-height: calc(95vh - 120px); /* Account for header and footer */
        overflow-y: auto;
    }
}

/* ========================================
   Leaderboard Styles
   ======================================== */

/* Community Stats */
.community-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.community-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, #ffffff 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
}

.community-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.community-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Top Countries Card */
.top-countries-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.top-countries-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
}

.country-rank {
    flex-shrink: 0;
}

.country-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.country-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.country-stats {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.country-count {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Your Rank Card */
.your-rank-card {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(109, 40, 217, 0.2);
}

.your-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.rank-item {
    text-align: center;
    padding: 1rem;
}

.rank-position {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

.rank-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0.25rem 0;
}

.rank-value {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
}

/* Leaderboard Tabs */
.leaderboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
}

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

.tab-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Leaderboard Content */
.leaderboard-content {
    display: none;
}

.leaderboard-content.active {
    display: block;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.leaderboard-item:hover {
    background: var(--color-border-light);
}

.leaderboard-item.is-you {
    background: rgba(109, 40, 217, 0.1);
    border: 1px solid rgba(109, 40, 217, 0.3);
}

.leaderboard-rank {
    width: 40px;
    text-align: center;
}

.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.medal.gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.medal.silver {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    color: white;
}

.medal.bronze {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
}

.rank-num {
    font-weight: 600;
    color: var(--color-text-muted);
}

.leaderboard-name {
    flex: 1;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.you-badge {
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.leaderboard-value {
    font-weight: 600;
    color: var(--color-primary);
    min-width: 80px;
    text-align: right;
}

.no-data {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem;
}

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

    .top-countries-grid {
        gap: 0.5rem;
    }

    .country-item {
        padding: 0.75rem;
    }

    .country-name {
        font-size: 1rem;
    }

    .country-stats {
        font-size: 0.8rem;
    }

    .your-rank-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .leaderboard-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav {
        height: var(--nav-height); /* Maintain consistent height */
    }

    .hero-section {
        margin-top: var(--nav-height); /* Match nav height */
        padding: 80px 1rem 40px; /* Increased top padding to prevent nav overlap */
    }

    .hero-content {
        padding: 0 1rem; /* Additional inner padding */
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .challenge-dates {
        font-size: 1.5rem; /* Less drastic size change */
    }

    .page-title-section .challenge-dates {
        font-size: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .how-it-works-image {
        margin-bottom: 2rem;
    }

    .how-it-works-image img {
        max-width: 100%;
        padding: 0 1rem;
    }

    .motivation-banner {
        flex-direction: column;
        text-align: center;
    }

    .quote-text {
        font-size: 1rem;
    }

    .milestones-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 0.4rem;
    }

    .calendar-day {
        font-size: 0.7rem;
        min-width: 36px;
        min-height: 36px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .frequency-options {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-title {
        font-size: 1.75rem;
    }

    .main-content {
        padding: 1.5rem 1rem;
        padding-top: 0; /* Remove extra padding, hero handles spacing */
    }

    .page-title-section {
        margin-top: var(--nav-height); /* Account for fixed nav on internal pages */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 12px;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero-section {
        margin-top: var(--nav-height); /* Consistent with nav height */
        padding: 90px 0.5rem 40px; /* Increased top padding to prevent nav overlap on very small screens */
        overflow-x: hidden; /* Prevent horizontal overflow */
    }

    .hero-content {
        max-width: 100%;
        padding: 0 1.5rem; /* Additional inner padding for very small screens */
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .challenge-dates {
        font-size: 1.25rem; /* Gentler size reduction */
    }

    .page-title-section .challenge-dates {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 0 0.5rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .meditation-circles {
        gap: 0.5rem;
    }

    .meditation-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .frequency-options {
        grid-template-columns: 1fr;
    }

    .frequency-card {
        height: auto;
        min-height: 100px;
        padding: 1rem;
    }

    /* Allow long button text to wrap on very small screens */
    .btn-large {
        white-space: normal;
        line-height: 1.4;
    }

    .btn {
        font-size: 0.85rem; /* Slightly smaller on mobile */
    }

    .calendar-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.4rem;
        min-width: 100%;
    }

    .calendar-day {
        font-size: 0.7rem;
        min-width: 40px;
        min-height: 40px;
    }

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

/* ========================================
   Admin Styles
   ======================================== */

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.admin-table th {
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--color-bg-card);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-table tbody tr:hover {
    background: var(--color-bg-card);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50px;
    margin-left: 0.5rem;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.btn-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

.progress-mini {
    width: 60px;
    height: 6px;
    background: var(--color-border-light);
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.progress-mini-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
}

.progress-mini-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    padding: 1rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
}

.detail-item .detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.detail-item .detail-value {
    font-weight: 500;
}

.gratitude-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===========================================
   ENHANCED ADMIN DASHBOARD STYLES
   =========================================== */

/* Admin Header */
.admin-header {
    background: var(--color-bg);
    padding: 1rem 2rem;
    padding-top: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Admin Content Area */
.admin-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Enhanced Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left-color: var(--color-primary);
}

.stat-card h3 {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card .stat-description {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* Tabs Container */
.tabs-container {
    margin-top: 2rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-light);
    transition: all 0.2s;
    font-family: inherit;
}

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

.tab-btn:hover:not(.active) {
    background: var(--color-bg-card);
    color: var(--color-text);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

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

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Code Elements */
code {
    font-size: 0.85em;
    font-family: 'Courier New', Courier, monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

/* Table Container */
.table-container {
    background: var(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg);
}

.table-header h2 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin: 0;
}

.table-wrapper {
    overflow-x: auto;
}

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

.table-wrapper th,
.table-wrapper td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table-wrapper th {
    background: #e8e6e1;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.table-wrapper tr:hover {
    background: #faf9f7;
}

.table-wrapper tbody tr:last-child td {
    border-bottom: none;
}

/* Enhanced Status Badges */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 0.5rem;
}

.badge-completed {
    background: rgba(109, 40, 217, 0.15);
    color: var(--color-primary);
}

.badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.badge-inactive {
    background: rgba(107, 114, 128, 0.15);
    color: var(--color-text-light);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Progress Bar Mini */
.progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar-mini {
    width: 60px;
    height: 6px;
    background: var(--color-border-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text-mini {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    min-width: 35px;
}

/* Streak Value */
.streak-value {
    font-weight: 600;
    color: var(--color-primary);
}

/* Action Buttons */
.action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 0.25rem;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.2s;
}

.action-view {
    background: var(--color-primary);
    color: white;
}

.action-view:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.action-btn.cancel {
    background: var(--color-error);
    color: white;
}

.action-btn.cancel:hover {
    background: #dc2626;
}

.action-btn.resend {
    background: #3b82f6;
    color: white;
}

.action-btn.resend:hover {
    background: #2563eb;
}

.action-btn.delete {
    background: #991b1b;
    color: white;
}

.action-btn.delete:hover {
    background: #7f1d1d;
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Lock/Unlock Buttons */
.action-lock {
    background: #f59e0b;
    color: white;
}

.action-lock:hover {
    background: #d97706;
}

.action-unlock {
    background: #10b981;
    color: white;
}

.action-unlock:hover {
    background: #059669;
}

/* Delete Button */
.action-delete {
    background: #dc2626;
    color: white;
}

.action-delete:hover {
    background: #991b1b;
}

/* Email Button */
.action-email {
    background: #3b82f6;
    color: white;
}

.action-email:hover {
    background: #2563eb;
}

/* WhatsApp Button */
.action-whatsapp {
    background: #25D366;
    color: white;
}

.action-whatsapp:hover {
    background: #1da851;
}

/* Mood Badges */
.mood-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.mood-1 {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
}

.mood-2 {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.mood-3 {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.mood-4 {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.mood-5 {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-muted);
}

.empty-state p {
    font-size: 1rem;
}

/* Analytics Container */
.analytics-container {
    padding: 1.5rem;
}

.insights-section {
    margin-top: 2rem;
}

.insight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.insight-card {
    background: var(--color-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.insight-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.insight-content h4 {
    color: var(--color-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.insight-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0.25rem 0;
}

.insight-description {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Export Container */
.export-container {
    padding: 1.5rem;
}

.export-card {
    background: var(--color-bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--color-border);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.export-icon {
    font-size: 4rem;
    line-height: 1;
}

.export-info {
    flex: 1;
}

.export-info h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.export-info p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.export-includes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.export-includes li {
    padding: 0.25rem 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.export-includes li:before {
    content: "✓ ";
    color: var(--color-success);
    font-weight: bold;
    margin-right: 0.5rem;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

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

/* Responsive Design for Admin Dashboard */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

@media (max-width: 768px) {
    .admin-content {
        padding: 1rem;
    }

    .admin-header {
        padding: 1rem;
        padding-top: 70px;
    }

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

    .stat-card .stat-value {
        font-size: 2rem;
    }

    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .table-wrapper {
        overflow-x: scroll;
    }

    .table-wrapper table {
        min-width: 800px;
    }

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

    .insight-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .admin-header h1 {
        font-size: 1.2rem;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .header-actions .btn {
        width: 100%;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-value {
        font-size: 1.75rem;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ========================================
   Achievement Badges
   ======================================== */

.badges-card {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.03), rgba(139, 92, 246, 0.03));
}

.badges-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.badges-header h2 {
    margin: 0;
}

.badges-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.badges-card .badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: var(--color-bg-card);
    border-radius: 12px;
    border: 2px solid var(--color-border-light);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.4;
    filter: grayscale(100%);
    position: relative;
}

.badges-card .badge.earned {
    opacity: 1;
    filter: grayscale(0%);
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.08), rgba(139, 92, 246, 0.08));
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.15);
}

.badges-card .badge.earned:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.25);
}

.badge-icon {
    font-size: 2rem;
    line-height: 1;
}

.badge-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

.badges-card .badge:not(.earned) .badge-name {
    color: var(--color-text-muted);
}

.badge-status {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--color-success);
    color: white;
    border-radius: 50%;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

/* Mobile adjustments for badges */
@media (max-width: 768px) {
    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .badges-card .badge {
        padding: 1rem 0.5rem;
    }

    .badge-icon {
        font-size: 1.5rem;
    }

    .badge-name {
        font-size: 0.65rem;
    }
}

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

/* ========================================
   Meditation Heatmap (GitHub-style)
   ======================================== */

/* Heatmap intensity levels - Green gradient like GitHub */
.calendar-day.heatmap-level-0 {
    background: #ebedf0;
    border-color: #d0d7de;
    color: #57606a;
}

.calendar-day.heatmap-level-1 {
    background: #9be9a8;
    border-color: #7bc96f;
    color: #1a7f37;
}

.calendar-day.heatmap-level-2 {
    background: #40c463;
    border-color: #30a14e;
    color: white;
}

.calendar-day.heatmap-level-3 {
    background: #30a14e;
    border-color: #238636;
    color: white;
}

.calendar-day.heatmap-level-4 {
    background: #216e39;
    border-color: #196127;
    color: white;
}

/* Checkmark styling for completed days */
.calendar-day.heatmap-level-1 .day-check,
.calendar-day.heatmap-level-2 .day-check,
.calendar-day.heatmap-level-3 .day-check,
.calendar-day.heatmap-level-4 .day-check {
    color: inherit;
}

/* Heatmap legend styling */
.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.heatmap-legend .legend-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0 0.25rem;
}

.heatmap-legend .legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

.heatmap-legend .legend-dot.heatmap-level-0 {
    background: #ebedf0;
    border: 1px solid #d0d7de;
}

.heatmap-legend .legend-dot.heatmap-level-1 {
    background: #9be9a8;
}

.heatmap-legend .legend-dot.heatmap-level-2 {
    background: #40c463;
}

.heatmap-legend .legend-dot.heatmap-level-3 {
    background: #30a14e;
}

.heatmap-legend .legend-dot.heatmap-level-4 {
    background: #216e39;
}

.heatmap-legend .legend-divider {
    width: 1px;
    height: 16px;
    background: var(--color-border);
    margin: 0 0.75rem;
}

.heatmap-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.heatmap-legend .legend-dot.today {
    background: var(--color-primary);
}

.heatmap-legend .legend-dot.milestone-marker {
    background: transparent;
    border: 2px solid var(--color-primary);
}
