/* ==========================================
   Velent Website Styles
   Modern, minimal design matching the app
   ========================================== */

/* CSS Variables - Design Tokens */
:root {
    /* Colors */
    --primary: #000000;
    --primary-light: #1a1a1a;
    --accent: #7357FF;
    --accent-dark: #5E41E0;
    --accent-gradient: linear-gradient(135deg, #7357FF 0%, #5E41E0 100%);

    /* Routine Colors */
    --morning: linear-gradient(135deg, #FFA53E 0%, #FF7D50 100%);
    --night: linear-gradient(135deg, #2E3A59 0%, #4A5A82 100%);
    --daily: linear-gradient(135deg, #6A6CFF 0%, #4F51E2 100%);
    --weekly: linear-gradient(135deg, #2ECAA0 0%, #1DAF89 100%);

    /* Neutrals */
    --white: #FFFFFF;
    --background: #FFFFFF;
    --surface: #F8F9FF;
    --surface-dark: #F0F3FF;
    --border: #EAEEF9;
    --text: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;

    /* Achievement Colors */
    --gold: #FFD700;
    --gold-bg: #FFF9E6;
    --silver: #C0C0C0;
    --silver-bg: #F5F5F5;
    --bronze: #CD7F32;
    --bronze-bg: #FFF5EB;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
    --space-4xl: 64px;
    --space-5xl: 96px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 100px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    --font-size-4xl: 48px;
    --font-size-5xl: 64px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-4xl);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-family);
    font-weight: 500;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-base);
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    border-color: var(--text);
    transform: translateY(-2px);
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    color: var(--primary);
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-links a {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    padding: 160px 0 var(--space-5xl);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-lg);
}

.hero-mobile-logo {
    display: none;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: var(--surface);
    border-radius: 0 0 0 100px;
    z-index: -1;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--white);
    border-radius: 40px;
    box-shadow: var(--shadow-xl);
    padding: 12px;
    border: 1px solid var(--border);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--surface);
    border-radius: 32px;
    padding: 12px 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Week Navigation */
.week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.week-arrow {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 2px;
    line-height: 1;
}

.week-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
}

/* Day Selector */
.day-selector {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 4px 3px;
    margin-bottom: 6px;
}

.day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 2px;
    border-radius: 6px;
    cursor: pointer;
}

.day.selected {
    background: var(--text);
}

.day-letter {
    font-size: 8px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 1px;
}

.day.selected .day-letter {
    color: rgba(255, 255, 255, 0.7);
}

.day-num {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}

.day.selected .day-num {
    color: var(--white);
}

/* Tasks Header */
.tasks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 0 2px;
}

.tasks-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.3px;
}

.header-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.icon-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 10px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.icon-btn svg {
    opacity: 0.6;
}

.icon-btn.active {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text);
}

.icon-btn.active svg {
    opacity: 1;
}

/* Routine List */
.routine-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.routine-list::-webkit-scrollbar {
    display: none;
}

/* Routine Card */
.routine-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.routine-card.completed {
    background: #4a4a6a;
    border: none;
}

/* Routine Icon */
.routine-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.routine-icon svg {
    width: 16px;
    height: 16px;
}

.routine-icon.morning {
    background: rgba(255, 167, 38, 0.12);
    color: #FFA726;
}

.routine-icon.daily {
    background: rgba(66, 165, 245, 0.12);
    color: #42A5F5;
}

.routine-icon.today {
    background: rgba(102, 187, 106, 0.12);
    color: #66BB6A;
}

.routine-icon.night {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.routine-card:not(.completed) .routine-icon.night {
    background: rgba(92, 107, 192, 0.12);
    color: #5C6BC0;
}

/* Routine Content */
.routine-content {
    flex: 1;
    min-width: 0;
}

.routine-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.routine-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.2px;
}

.routine-card.completed .routine-title {
    color: rgba(255, 255, 255, 0.9);
}

.routine-count {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.6);
}

.routine-count.done {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

/* Routine Progress Bar */
.routine-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.routine-progress .progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease-out;
}

.routine-progress .progress-fill.morning {
    background: #FFA726;
}

.routine-progress .progress-fill.daily {
    background: #42A5F5;
}

.routine-progress .progress-fill.today {
    background: #66BB6A;
}

.routine-progress .progress-fill.night {
    background: #5C6BC0;
}

/* Routine Chevron */
.routine-chevron {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.routine-card.completed .routine-chevron {
    color: rgba(255, 255, 255, 0.5);
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: auto;
    background: var(--white);
    margin: 0 -14px -12px -14px;
    padding: 6px 0 4px;
    border-radius: 0 0 32px 32px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 2px 6px;
}

.nav-item svg {
    width: 16px;
    height: 16px;
}

.nav-item span {
    font-size: 7px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--text);
}

/* Mockup Content Area */
.mockup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mockup-content::-webkit-scrollbar {
    display: none;
}

/* Screen Header (for detail views) */
.screen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.back-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-size: 16px;
    color: var(--text);
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.screen-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

/* Task Item (in detail view) */
.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.task-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.task-item.completed {
    background: rgba(102, 187, 106, 0.08);
}

.task-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.task-item.completed .task-checkbox {
    background: #66BB6A;
    border-color: #66BB6A;
    color: white;
}

.task-text {
    font-size: 13px;
    color: var(--text);
    flex: 1;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: rgba(0, 0, 0, 0.5);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 24px;
    color: rgba(0, 0, 0, 0.4);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: rgba(0, 0, 0, 0.6);
}

.empty-state-text {
    font-size: 11px;
}

/* Screen-specific styles */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px 0;
}

.schedule-card {
    background: var(--white);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.schedule-card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.schedule-card-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.schedule-card-label {
    font-size: 9px;
    color: rgba(0, 0, 0, 0.5);
}

/* Friend Item */
.friend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 6px;
}

.friend-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7357FF, #5E41E0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.friend-status {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
}

/* Challenge Card */
.challenge-card {
    background: var(--white);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
}

.challenge-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.challenge-meta {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

.challenge-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.challenge-progress-fill {
    height: 100%;
    background: #9C27B0;
    border-radius: 2px;
}

/* Profile Section */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 12px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7357FF, #5E41E0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.profile-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.profile-stat-label {
    font-size: 9px;
    color: rgba(0, 0, 0, 0.5);
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 6px;
    cursor: pointer;
}

.settings-item svg {
    width: 16px;
    height: 16px;
    color: rgba(0, 0, 0, 0.5);
}

.settings-item span {
    font-size: 12px;
    color: var(--text);
    flex: 1;
}

.settings-item .chevron {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Daily Quote Styles
   ========================================== */
.daily-quote {
    text-align: center;
    padding: 4px 4px;
    margin-bottom: 4px;
}

.quote-text {
    font-size: 9px;
    font-style: italic;
    color: rgba(0, 0, 0, 0.45);
    line-height: 1.3;
    margin: 0 0 1px 0;
}

.quote-author {
    font-size: 8px;
    color: rgba(0, 0, 0, 0.35);
    margin: 0;
}

/* ==========================================
   XP Bar Styles
   ========================================== */
.xp-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
}

.level-badge {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--text);
    color: white;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    flex-shrink: 0;
}

.level-badge svg {
    width: 8px;
    height: 8px;
}

.xp-progress {
    flex: 1;
    height: 5px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.xp-progress-fill {
    height: 100%;
    background: var(--text);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.xp-text {
    font-size: 9px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

/* ==========================================
   Bottom Sheet Styles
   ========================================== */
.bottom-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.bottom-sheet-overlay.active {
    opacity: 1;
}

.bottom-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70%;
    background: var(--surface);
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 101;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.sheet-handle {
    width: 36px;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    margin: 8px auto;
    flex-shrink: 0;
}

.sheet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin: 0 12px;
    border-radius: 16px;
    flex-shrink: 0;
}

.sheet-header.morning { background: linear-gradient(135deg, #FFA53E 0%, #FF7D50 100%); }
.sheet-header.daily { background: linear-gradient(135deg, #42A5F5 0%, #2196F3 100%); }
.sheet-header.today { background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%); }
.sheet-header.night { background: linear-gradient(135deg, #5C6BC0 0%, #3F51B5 100%); }

.sheet-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.sheet-icon svg {
    width: 22px;
    height: 22px;
}

.sheet-header-content {
    flex: 1;
}

.sheet-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.sheet-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.sheet-count {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 8px;
}

.sheet-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.sheet-progress-fill {
    height: 100%;
    background: white;
    border-radius: 3px;
}

.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.sheet-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.sheet-task-count {
    font-size: 11px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
}

.sheet-task-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sheet-task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.2s;
}

.sheet-task:hover {
    background: rgba(0, 0, 0, 0.02);
}

.sheet-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    order: 1;
    margin-left: auto;
}

.sheet-checkbox.checked {
    border: none;
    color: white;
}

.sheet-checkbox.checked.morning { background: #FFA726; }
.sheet-checkbox.checked.daily { background: #42A5F5; }
.sheet-checkbox.checked.today { background: #66BB6A; }
.sheet-checkbox.checked.night { background: #5C6BC0; }

.sheet-checkbox svg {
    width: 14px;
    height: 14px;
}

.sheet-task-text {
    font-size: 13px;
    color: var(--text);
    flex: 1;
}

.sheet-task.completed .sheet-task-text {
    text-decoration: line-through;
    color: rgba(0, 0, 0, 0.4);
}

/* ==========================================
   Timeline Styles (Schedule Screen)
   ========================================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px 0;
}

.timeline-block {
    display: flex;
    gap: 8px;
    cursor: pointer;
}

.time-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    flex-shrink: 0;
}

.time-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-bottom: 2px;
}

.time-dot.morning { background: #FFA726; }
.time-dot.daily { background: #42A5F5; }
.time-dot.today { background: #66BB6A; }
.time-dot.night { background: #5C6BC0; }

.time-text {
    font-size: 8px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.timeline-card {
    flex: 1;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 10px;
    transition: all 0.2s;
}

.timeline-card:hover {
    box-shadow: var(--shadow-sm);
}

.timeline-card.completed {
    background: #4a4a6a;
}

.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.timeline-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon.morning { background: rgba(255, 167, 38, 0.12); color: #FFA726; }
.timeline-icon.daily { background: rgba(66, 165, 245, 0.12); color: #42A5F5; }
.timeline-icon.today { background: rgba(102, 187, 106, 0.12); color: #66BB6A; }
.timeline-icon.night { background: rgba(92, 107, 192, 0.12); color: #5C6BC0; }

.timeline-card.completed .timeline-icon {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.timeline-icon svg {
    width: 12px;
    height: 12px;
}

.timeline-info {
    flex: 1;
}

.timeline-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    display: block;
}

.timeline-card.completed .timeline-title {
    color: rgba(255, 255, 255, 0.9);
}

.timeline-duration {
    font-size: 9px;
    color: rgba(0, 0, 0, 0.5);
}

.timeline-card.completed .timeline-duration {
    color: rgba(255, 255, 255, 0.6);
}

.timeline-progress-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-progress {
    flex: 1;
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.timeline-progress-fill {
    height: 100%;
    border-radius: 2px;
}

.timeline-progress-fill.morning { background: #FFA726; }
.timeline-progress-fill.daily { background: #42A5F5; }
.timeline-progress-fill.today { background: #66BB6A; }
.timeline-progress-fill.night { background: #5C6BC0; }

.timeline-count {
    font-size: 9px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
}

.timeline-complete {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.timeline-complete svg {
    width: 10px;
    height: 10px;
}

/* ==========================================
   Schedule Screen - Routine Containers
   ========================================== */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2px 0;
}

.schedule-routine-container {
    background: var(--white);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.schedule-routine-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: white;
}

.schedule-routine-header.morning { background: #FFA726; }
.schedule-routine-header.daily { background: #42A5F5; }
.schedule-routine-header.today { background: #66BB6A; }
.schedule-routine-header.night { background: #5C6BC0; }

.schedule-routine-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.schedule-routine-icon svg {
    width: 18px;
    height: 18px;
}

.schedule-routine-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schedule-routine-title {
    font-size: 14px;
    font-weight: 600;
}

.schedule-routine-time {
    font-size: 11px;
    opacity: 0.85;
}

.schedule-routine-progress {
    display: flex;
    align-items: center;
    gap: 6px;
}

.schedule-routine-count {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.schedule-complete-badge {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-complete-badge svg {
    width: 12px;
    height: 12px;
}

.schedule-tasks-list {
    display: flex;
    flex-direction: column;
}

.schedule-task-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: background 0.2s;
}

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

.schedule-task-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.schedule-task-name {
    flex: 1;
    font-size: 13px;
    color: var(--text);
}

.schedule-task-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.schedule-task-checkbox.checked {
    background: var(--routine-color);
    border-color: var(--routine-color);
    color: white;
}

.schedule-task-checkbox svg {
    width: 14px;
    height: 14px;
}

/* Schedule Timeline Layout */
.schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2px 0;
}

.schedule-timeline-row {
    display: flex;
    gap: 10px;
}

.schedule-time-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12px;
    flex-shrink: 0;
    padding-top: 18px;
}

.schedule-time-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
}

.schedule-time-dot.morning { background: #FFA726; }
.schedule-time-dot.daily { background: #42A5F5; }
.schedule-time-dot.today { background: #66BB6A; }
.schedule-time-dot.night { background: #5C6BC0; }

.schedule-time-line {
    width: 2px;
    flex: 1;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.schedule-timeline-row:last-child .schedule-time-line {
    display: none;
}

/* ==========================================
   Tab Bar Styles
   ========================================== */
.tab-bar {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tab {
    flex: 1;
    padding: 6px 4px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

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

.tab-badge {
    background: #FF5252;
    color: white;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 6px;
}

.tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.3);
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-content::-webkit-scrollbar {
    display: none;
}

.empty-tab {
    text-align: center;
    padding: 24px;
    color: rgba(0, 0, 0, 0.4);
    font-size: 12px;
}

/* ==========================================
   Social Screen - Friends Tab
   ========================================== */
.friend-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 6px;
}

.friend-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.friend-level {
    font-size: 9px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.05);
    padding: 1px 5px;
    border-radius: 4px;
}

.online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
}

.online-dot.online {
    background: #4CAF50;
}

.friend-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    color: rgba(0, 0, 0, 0.5);
}

.friend-stats svg {
    width: 10px;
    height: 10px;
    opacity: 0.6;
}

.friend-stats span {
    margin-right: 2px;
}

/* ==========================================
   Social Screen - Requests Tab
   ========================================== */
.request-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.request-actions {
    display: flex;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
}

.btn-accept, .btn-decline {
    flex: 1;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-accept {
    background: var(--text);
    color: white;
}

.btn-decline {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.6);
}

/* ==========================================
   Social Screen - Leaderboard Tab
   ========================================== */
.leaderboard-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.leaderboard-header svg {
    color: #FFD700;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 6px;
}

.leaderboard-item.is-you {
    background: rgba(115, 87, 255, 0.08);
    border-color: rgba(115, 87, 255, 0.2);
}

.medal {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.rank-num {
    font-size: 11px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
    width: 20px;
    text-align: center;
}

.leaderboard-item .friend-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.leaderboard-item .friend-avatar.you {
    background: linear-gradient(135deg, #7357FF 0%, #5E41E0 100%);
}

.leaderboard-name {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
}

.leaderboard-xp {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
}

.leaderboard-xp svg {
    width: 10px;
    height: 10px;
    color: #7357FF;
}

.you-indicator {
    font-size: 10px;
    color: #7357FF;
    font-weight: 600;
}

/* ==========================================
   Challenges Screen Styles
   ========================================== */
.challenge-section {
    margin-bottom: 12px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}

.section-badge {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.6);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 6px;
}

.challenge-invite {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px;
    margin-bottom: 6px;
}

.challenge-invite-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.challenge-invite-header svg {
    color: #FFD700;
    width: 20px;
    height: 20px;
}

.challenge-invite-info {
    flex: 1;
}

.challenge-invite-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.challenge-invite-creator {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
}

.challenge-invite-meta {
    display: flex;
    gap: 12px;
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.challenge-invite-actions {
    display: flex;
    gap: 6px;
}

.active-challenge {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 12px;
    margin-bottom: 6px;
}

.challenge-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.challenge-card-header svg {
    color: #FFD700;
    width: 14px;
    height: 14px;
}

.challenge-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.live-badge {
    background: #FF5252;
    color: white;
    font-size: 8px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.challenge-card-meta {
    display: flex;
    gap: 10px;
    font-size: 9px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

.challenge-progress-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.challenge-progress-text {
    font-size: 9px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
}

.challenge-percent {
    font-size: 9px;
    font-weight: 600;
    color: #4CAF50;
}

.challenge-rank {
    font-size: 9px;
    font-weight: 600;
    color: #7357FF;
}

/* Discover Tab */
.discover-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.discover-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 12px;
}

.discover-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.discover-header svg {
    color: #FFD700;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.discover-info {
    flex: 1;
}

.discover-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.discover-desc {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.discover-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discover-participants {
    font-size: 9px;
    color: rgba(0, 0, 0, 0.5);
}

.discover-category {
    font-size: 9px;
    font-weight: 600;
    color: #7357FF;
    background: rgba(115, 87, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================
   Profile Screen Styles
   ========================================== */
.profile-header-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.profile-photo {
    margin-bottom: 10px;
}

.profile-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7357FF 0%, #5E41E0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.profile-name-large {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.profile-stat-grid {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
}

.profile-stat-box {
    text-align: center;
    padding: 8px 12px;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 9px;
    color: rgba(0, 0, 0, 0.5);
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.6);
}

/* ==========================================
   Blurred Screen with CTA Overlay
   ========================================== */
.blurred-screen-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blurred-content {
    flex: 1;
    filter: blur(4px);
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
}

.blur-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 32px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.blur-cta-icon {
    width: 40px;
    height: 40px;
    background: var(--text);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.blur-cta-icon svg {
    width: 20px;
    height: 20px;
}

.blur-cta-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    max-width: 140px;
    line-height: 1.3;
}

.blur-cta-button {
    display: inline-block;
    padding: 10px 24px;
    background: var(--text);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.blur-cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   Features Section
   ========================================== */
.features {
    padding: var(--space-5xl) 0;
    background: var(--surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.feature-icon.morning {
    background: var(--morning);
}

.feature-icon.night {
    background: var(--night);
}

.feature-icon.daily {
    background: var(--daily);
}

.feature-icon.weekly {
    background: var(--weekly);
}

.feature-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   How It Works Section
   ========================================== */
.how-it-works {
    padding: var(--space-5xl) 0;
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-lg);
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-xl);
    background: var(--accent-gradient);
    color: var(--white);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: var(--border);
    margin-top: 32px;
    flex-shrink: 0;
}

/* ==========================================
   Gamification Section
   ========================================== */
.gamification {
    padding: var(--space-5xl) 0;
    background: var(--surface);
}

.gamification-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.gamification-text .section-title {
    text-align: left;
}

.gamification-text .section-description {
    text-align: left;
    margin-bottom: var(--space-2xl);
}

.reward-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.reward-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.reward-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

.xp-icon {
    background: var(--daily);
    color: var(--white);
}

.level-icon {
    background: var(--weekly);
    color: var(--white);
}

.streak-icon {
    background: var(--morning);
    color: var(--white);
}

.achievement-icon {
    background: var(--accent-gradient);
    color: var(--white);
}

.reward-info h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.reward-info p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Achievement Showcase */
.achievement-showcase {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.achievement-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.achievement-card.gold {
    border-left: 4px solid var(--gold);
}

.achievement-card.silver {
    border-left: 4px solid var(--silver);
}

.achievement-card.bronze {
    border-left: 4px solid var(--bronze);
}

.achievement-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
}

.achievement-card.gold .achievement-badge {
    background: var(--gold-bg);
    color: var(--gold);
}

.achievement-card.silver .achievement-badge {
    background: var(--silver-bg);
    color: var(--silver);
}

.achievement-card.bronze .achievement-badge {
    background: var(--bronze-bg);
    color: var(--bronze);
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.achievement-desc {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.achievement-tier {
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 1px;
}

.achievement-card.gold .achievement-tier {
    color: var(--gold);
}

.achievement-card.silver .achievement-tier {
    color: var(--silver);
}

.achievement-card.bronze .achievement-tier {
    color: var(--bronze);
}

/* ==========================================
   Social Section
   ========================================== */
.social {
    padding: var(--space-5xl) 0;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.social-card {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--surface);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.social-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.social-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.social-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta {
    padding: var(--space-5xl) 0;
    background: var(--primary);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.cta-description {
    font-size: var(--font-size-lg);
    opacity: 0.8;
    margin-bottom: var(--space-2xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: var(--space-4xl) 0 var(--space-2xl);
    background: var(--surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-xl);
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--space-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-2xl);
}

.footer-links a {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ==========================================
   Legal Pages (Privacy, Terms)
   ========================================== */
.legal-header {
    padding: 140px 0 var(--space-3xl);
    background: var(--surface);
    text-align: center;
}

.legal-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.legal-updated {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.legal-content {
    padding: var(--space-4xl) 0;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.legal-section {
    margin-bottom: var(--space-3xl);
}

.legal-section h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text);
}

.legal-section h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.legal-section p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.legal-section ul {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.legal-section ul li {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: var(--space-xl);
    position: relative;
    margin-bottom: var(--space-sm);
}

.legal-section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text);
}

.legal-section ul li strong {
    color: var(--text);
}

.legal-section a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.legal-section a:hover {
    opacity: 0.8;
}

.contact-list {
    list-style: none;
}

.contact-list li::before {
    display: none;
}

.contact-list li {
    padding-left: 0;
}

/* ==========================================
   Contact Page
   ========================================== */
.contact-content {
    padding: var(--space-4xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.contact-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-lg);
    background: var(--surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.contact-card h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.contact-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.contact-link {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(115, 87, 255, 0.08);
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.contact-link:hover {
    background: rgba(115, 87, 255, 0.15);
}

.faq-section {
    background: var(--surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
}

.faq-section h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.faq-item {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.faq-item p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.response-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-top: var(--space-3xl);
    padding: var(--space-lg);
    background: var(--surface);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent);
}

.response-notice svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.response-notice p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   Animations
   ========================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-gradient {
        display: none;
    }

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

    .gamification-content {
        grid-template-columns: 1fr;
    }

    .gamification-text .section-title,
    .gamification-text .section-description {
        text-align: center;
    }

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

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 40px;
        --font-size-4xl: 32px;
        --font-size-3xl: 28px;
    }

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

    .legal-header {
        padding: 120px 0 var(--space-2xl);
    }

    .legal-title {
        font-size: var(--font-size-3xl);
    }

    .navbar-content {
        height: 64px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 100px 0 var(--space-2xl);
        display: flex;
        align-items: center;
    }

    .hero .container {
        width: 100%;
    }

    .hero-content {
        justify-content: center;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-mobile-logo {
        display: block;
        margin-bottom: var(--space-lg);
        color: var(--text);
        opacity: 0.12;
    }

    .phone-mockup {
        display: none;
    }

    .hero-visual {
        display: none;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }

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

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .feature-card,
    .social-card {
        padding: var(--space-xl);
    }
}
