/* ===============================================
   HABITCORE - DESIGN SYSTEM
   No bullshit, just clean design
   =============================================== */

:root {
    /* Colors - Dark & Vibrant */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-card: #1c1c1f;
    --bg-card-hover: #232326;
    
    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-primary-dark: #4f46e5;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-blur-1: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    --gradient-blur-2: radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    
    /* Borders */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(99, 102, 241, 0.5);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Manrope', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.4);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================================
   RESET & BASE
   =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global Custom Scrollbars - SLEEK & PROFESSIONAL */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border: 2px solid var(--bg-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Firefox scrollbar support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-primary);
}

/* ===============================================
   BACKGROUND EFFECTS
   =============================================== */

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
}

/* Custom Premium SELECT Styling */
select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-card) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.2rem !important;
    padding-right: 3rem !important;
    border: 1px solid var(--border-primary) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-primary) !important;
    font-size: 0.9375rem !important;
    height: 48px !important;
    cursor: pointer !important;
    transition: all var(--transition-base) !important;
}

select:hover {
    border-color: rgba(99, 102, 241, 0.4) !important;
    background-color: var(--bg-tertiary) !important;
}

select:focus {
    outline: none !important;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

.gradient-blur {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 1;
    z-index: -1;
    pointer-events: none;
}

.gradient-blur-1 {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: float 20s ease-in-out infinite;
}

.gradient-blur-2 {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

/* ===============================================
   NAVIGATION
   =============================================== */

.nav {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 11, 0.8);
    border-bottom: 1px solid var(--border-primary);
    transition: top 0.3s ease;
}

/* When banner is hidden or not present, nav moves to top */
body.banner-hidden .nav,
body.no-banner .nav {
    top: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff !important; /* Force white logo text */
}

.logo-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    color: #ffffff;
    font-weight: 800;
}

.logo-parent {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: transparent;
}

.nav-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

/* ===============================================
   BUTTONS
   =============================================== */

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===============================================
   CONTAINER
   =============================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===============================================
   HERO SECTION
   =============================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + var(--space-2xl)) var(--space-lg) var(--space-3xl);
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-primary);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================
   APP PREVIEW
   =============================================== */

.app-preview-section {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--bg-secondary);
}

.app-preview-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    min-height: 500px;
    box-shadow: var(--shadow-lg);
}

/* ===============================================
   SECTIONS
   =============================================== */

.features-section,
.comparison-section,
.pricing-section,
.cta-section {
    padding: var(--space-3xl) var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===============================================
   FEATURES GRID
   =============================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-highlight {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-visual {
    margin-top: var(--space-lg);
}

.mini-habit-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mini-habit {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}

.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-primary);
    border-radius: 4px;
    flex-shrink: 0;
}

.checkbox.checked {
    background: var(--gradient-primary);
    border-color: var(--accent-primary);
    position: relative;
}

.checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.auth-form-group {
    margin-bottom: var(--space-lg);
}

.auth-input-wrapper {
    position: relative;
}

.auth-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    padding: 1rem;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.auth-input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    outline: none;
}

.password-strength-container {
    margin-top: 0.5rem;
}

.strength-meter {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.auth-btn-email {
    width: 100%;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-tertiary);
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: not-allowed;
    transition: all var(--transition-base);
}

.auth-btn-email.ready {
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    border-color: var(--text-secondary);
}

.social-btn-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.social-btn-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.social-btn-google { background: white; color: #1a1a1a; }
.social-btn-facebook { background: #1877f2; color: white; }
.social-btn-github { background: #24292e; color: white; }

.social-btn-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
    .auth-main-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .auth-divider-vertical {
        display: none;
    }
}

/* ===============================================
   COMPARISON TABLE
   =============================================== */

.comparison-section {
    background: var(--bg-secondary);
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    align-items: center;
}

.comparison-header {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-row {
    border-top: 1px solid var(--border-primary);
}

.comparison-feature {
    color: var(--text-primary);
}

.comparison-habitcore,
.comparison-others {
    text-align: center;
}

.check {
    color: var(--accent-success);
    font-size: 1.25rem;
    font-weight: bold;
}

.cross {
    color: var(--accent-danger);
    font-size: 1.25rem;
}

.meh {
    color: var(--text-tertiary);
    font-size: 1.25rem;
}

/* ===============================================
   PRICING
   =============================================== */

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 1100px;
    margin: 0 auto var(--space-xl);
}

.pricing-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    transform: scale(1.05);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.pricing-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: var(--space-xs);
}

.pricing-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.pricing-features {
    list-style: none;
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-guarantee {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    max-width: 700px;
    margin: 0 auto;
}

/* ===============================================
   CTA SECTION
   =============================================== */

.cta-section {
    background: var(--bg-secondary);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: var(--space-md);
}

/* ===============================================
   FOOTER
   =============================================== */

.footer {
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto var(--space-2xl);
}

.footer-brand {
    max-width: 320px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: var(--space-md);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    gap: var(--space-xl);
    flex: 1;
    max-width: 600px;
    margin-left: var(--space-3xl);
}

.footer-column {
    min-width: 140px;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--space-xs);
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-primary);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 768px) {
    .hero {
        padding: calc(60px + var(--space-xl)) var(--space-md) var(--space-2xl);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-highlight {
        grid-column: 1;
    }
    
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .comparison-habitcore,
    .comparison-others {
        text-align: left;
        padding-left: var(--space-md);
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card-featured {
        transform: scale(1);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   AI COACH CHATBOT
   =============================================== */

.ai-coach-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
    animation: pulse-glow 2s ease-in-out infinite;
}

.ai-coach-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.7);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(139, 92, 246, 0.7);
    }
}

.ai-modal {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 420px;
    max-width: calc(100vw - 4rem);
    max-height: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.ai-modal.open {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
}

.ai-modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.ai-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.ai-modal-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.ai-chat-container {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-height: 300px;
    max-height: 400px;
}

.ai-message {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message-content {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.ai-message-user .ai-message-content {
    background: var(--gradient-primary);
    color: white;
    align-self: flex-end;
    max-width: 80%;
}

.ai-message-ai .ai-message-content {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    align-self: flex-start;
    max-width: 90%;
}

.ai-message-system .ai-message-content {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: var(--space-sm);
}

.ai-message-loading .ai-message-content {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    padding: var(--space-sm) var(--space-md);
    align-self: flex-start;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

.ai-input-container {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-top: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
}

.ai-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast);
}

.ai-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.ai-input::placeholder {
    color: var(--text-tertiary);
}

.ai-send-btn {
    padding: var(--space-sm);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.ai-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ai-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding: 0 var(--space-md) var(--space-md);
    background: var(--bg-tertiary);
}

.ai-quick-btn {
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ai-quick-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

/* Mobile adjustments for AI modal */
@media (max-width: 768px) {
    .ai-modal {
        bottom: 90px;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
    }
    
    .ai-coach-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }
}

/* ===============================================
   AUTH PAGES (SIGNIN/SIGNUP)
   =============================================== */

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + 2rem) 1.5rem 2rem;
}

.auth-container {
    max-width: 480px;
    width: 100%;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select:hover {
    border-color: var(--accent-primary);
    background-color: var(--bg-tertiary);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px;
    border-radius: var(--radius-md);
}

.form-group select option:hover,
.form-group select option:checked {
    background: var(--accent-primary);
    color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-group small {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--space-xs) 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-base);
}

.forgot-link:hover {
    color: var(--accent-secondary);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: var(--space-lg) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-primary);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    display: inline-block;
    padding: 0 var(--space-sm);
    background: var(--bg-card);
    color: var(--text-tertiary);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.social-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.social-btn svg {
    flex-shrink: 0;
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.auth-footer a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-base);
}

.auth-footer a:hover {
    color: #60a5fa;
}

.error-message,
.success-message {
    display: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    margin-top: var(--space-md);
    animation: fadeIn 0.3s ease;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.reset-icon,
.verify-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.info-box {
    padding: var(--space-md);
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

.info-box h3 {
    color: var(--text-primary);
}

/* Auth page responsive */
@media (max-width: 768px) {
    .auth-section {
        padding: calc(80px + 1rem) 1rem 1rem;
    }
    
    .auth-card {
        padding: var(--space-xl);
    }
    
    .auth-header h1 {
    font-size: 1.75rem;
    }
}

/* ===============================================
   PRO BADGE STYLES
   =============================================== */

.pro-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}

/* Profile Dropdown Styles */
.user-profile-dropdown {
    position: relative;
    user-select: none;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-trigger:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-primary);
}

/* Pro Badge - Elite Version (Professional & High-End) */
.pro-badge-elite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
    animation: proBadgeShine 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.pro-badge-elite::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.user-name-small {
    display: none; /* Hidden in trigger as requested */
}

/* Dropdown User Info Styles */
.dropdown-user-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    display: block;
}

.dropdown-arrow {
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
}

.user-profile-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xs);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.user-profile-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: var(--space-sm) var(--space-md);
}

.dropdown-user-email {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    word-break: break-all;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-primary);
    margin: var(--space-xs) 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px; /* Professional gap between SVG and Text */
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-item svg {
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dropdown-item:hover svg {
    color: var(--accent-primary);
}

.dropdown-item.logout {
    margin-top: 8px;
    border-top: 1px solid var(--border-primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    color: var(--text-tertiary);
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-item.logout:hover svg {
    color: #ef4444;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.logout-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    padding: 32px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .logout-modal {
    transform: scale(1);
}

.logout-icon {
    width: 64px;
    height: 64px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.logout-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.logout-message {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.logout-actions {
    display: flex;
    gap: 12px;
}

.btn-danger {
    background: #ef4444;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    flex: 1;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
}

/* ===============================================
   DASHBOARD STYLES
   =============================================== */

.dashboard-main {
    min-height: 100vh;
    padding-top: var(--hard-distance);
    padding-bottom: 5rem;
    transition: padding-top 0.3s ease;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
}

.dashboard-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.dashboard-date {
    color: var(--text-secondary);
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    flex: 1;
}

.logo-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-parent {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: -4px;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.habits-section {
    margin-top: var(--space-2xl);
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.section-header-inline h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
}

.view-toggle {
    display: flex;
    gap: var(--space-xs);
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.toggle-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.habits-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}

.habit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
}

.habit-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.habit-card.completed {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--accent-primary);
}

.habit-main {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.habit-check {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-primary);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.habit-check:hover {
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

/* Feedback Banner (StayFree Replica) */
.feedback-banner {
    background: #1e2025;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-primary);
}

.banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.info-icon {
    background: var(--accent-primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

.btn-banner-action {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.banner-dismiss {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.25rem;
    cursor: pointer;
    margin-left: 12px;
}

/* Analytics Layout */
.analytics-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    align-items: start;
}

.main-chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    height: 480px; /* Rigid height to prevent stretching */
    display: flex;
    flex-direction: column;
}

#consistencyChart {
    flex: 1;
    max-height: 400px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.chart-toggles {
    display: flex;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 8px;
}

.chart-toggle {
    background: none;
    border: none;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 6px;
}

.chart-toggle.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.section-tag {
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.stat-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card-advanced {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card-advanced label {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.stat-main {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-main .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
}

.trend-up { color: var(--accent-success); }
.trend-down { color: var(--accent-danger); }

/* NOTION GRID REBIRTH - TOP PLACEMENT */
.notion-top-section {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: var(--space-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notion-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
}

.notion-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-tertiary);
}

.notion-grid-container {
    padding: 0 24px 24px;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s;
}

.notion-grid-container.collapsed {
    max-height: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

/* NOTION GRID REBIRTH - ELITE UPGRADE */
.notion-month-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    background: var(--bg-card);
    scrollbar-width: thin;
    scrollbar-color: var(--border-primary) transparent;
}

.grid-row {
    display: flex;
    min-width: max-content;
    border-bottom: 1px solid var(--border-primary);
}

.grid-row:last-child {
    border-bottom: none;
}

.grid-row.header-row {
    background: rgba(255, 255, 255, 0.02);
    position: sticky;
    top: 0;
    z-index: 10;
}

.grid-cell {
    width: 45px;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-primary);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.grid-cell.habit-label,
.grid-cell.habit-name-cell {
    width: 200px;
    min-width: 200px;
    justify-content: flex-start;
    padding: 0 16px;
    position: sticky;
    left: 0;
    background: var(--bg-card);
    z-index: 5;
    border-right: 2px solid var(--border-primary);
    font-weight: 700;
    color: var(--text-primary);
}

.grid-habit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.grid-habit-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}

.grid-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
}

.grid-checkbox:hover:not(.disabled) {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.grid-checkbox.checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.grid-checkbox.disabled {
    opacity: 0.2;
    cursor: default;
}

.day-label {
    font-weight: 800;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-family: 'Manrope', sans-serif;
    font-size: 0.65rem;
}

.header-row .grid-cell {
    height: 40px;
}

.grid-header-cell {
    background: var(--bg-secondary);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.grid-header-cell.future {
    opacity: 0.3;
}

.notion-pin-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.notion-pin-btn.active {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-details {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    margin-top: 12px;
    transition: all 0.2s;
    letter-spacing: 0.05em;
}

.btn-details:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Detailed Analytics (Progress Bars) */
.detailed-analytics-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.usage-list-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.usage-list {
    margin-top: var(--space-lg);
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
}

.usage-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
}

.usage-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.usage-info-main {
    flex: 1;
}

.usage-name-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.usage-progress-bg {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.usage-progress-fill.usage-entertainment { background: #8b5cf6; }
.usage-progress-fill.usage-browsing { background: #10b981; }
.usage-progress-fill.usage-apex { background: var(--gradient-primary); }
.usage-progress-fill.usage-system { background: #f59e0b; }

.usage-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.btn-customize-dash {
    background: transparent;
    border: 1px solid var(--border-primary);
    color: var(--text-tertiary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-customize-dash:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
    transform: rotate(15deg);
}

.goal-svg {
    stroke: var(--accent-primary);
    opacity: 0.8;
}

/* Modal Form Spacing Fix */
.form-group {
    margin-bottom: 24px !important;
}

.form-group label {
    display: block !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
}

.pie-charts-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.pie-chart-box {
    margin-bottom: var(--space-xl);
}

.chart-label {
    font-weight: 700;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

/* Habit Views */
.habits-list.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.habits-list.grid-view .habit-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    text-align: left;
}

.habits-list.grid-view .habit-main {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

/* Notion Month Grid */
.notion-grid-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    padding: var(--space-md);
    margin-top: var(--space-md);
}

.notion-month-grid {
    display: grid;
    grid-template-columns: 150px repeat(31, 40px);
    gap: 1px;
    background: var(--border-primary);
    min-width: 1400px;
}

.grid-cell {
    background: var(--bg-card);
    padding: var(--space-xs) var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    height: 40px;
}

.grid-cell.header {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
}

.grid-cell.habit-name-cell {
    justify-content: flex-start;
    font-weight: 500;
    color: var(--text-primary);
    padding-left: var(--space-md);
}

.grid-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.grid-checkbox.checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    position: relative;
}

.grid-checkbox.checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.goal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.goal-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-primary);
}

.goal-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.goal-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.goal-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.goal-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.goal-item label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* Dashboard Footer */
.dashboard-footer {
    margin-top: var(--space-3xl);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-primary);
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-links-minimal {
    display: flex;
    gap: var(--space-md);
}

.footer-links-minimal a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-minimal a:hover {
    color: var(--accent-primary);
}

/* Skeleton Loader Animations */
@keyframes skeleton-pulse {
    0% { background-color: rgba(255, 255, 255, 0.05); }
    50% { background-color: rgba(255, 255, 255, 0.1); }
    100% { background-color: rgba(255, 255, 255, 0.05); }
}

.skeleton-loader .skeleton-line,
.skeleton-loader .skeleton-box,
.skeleton-chart .skeleton-line,
.skeleton-chart .skeleton-box {
    animation: skeleton-pulse 1.5s infinite ease-in-out;
    border-radius: 4px;
}

.skeleton-line {
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-box {
    background: rgba(255, 255, 255, 0.05);
}

/* Privacy Mode */
.privacy-active .habit-name, 
.privacy-active .stat-value, 
.privacy-active .usage-info-main {
    filter: blur(8px);
    transition: filter 0.3s;
}

.privacy-active .habit-name:hover, 
.privacy-active .stat-value:hover, 
.privacy-active .usage-info-main:hover {
    filter: blur(0);
}

.habit-check.checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.habit-check.checked svg {
    color: white;
}

.habit-info {
    flex: 1;
}

.habit-header {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.habit-emoji {
    font-size: 1.25rem;
}

.habit-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.habit-meta {
    display: flex;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.habit-delete {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.habit-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
    min-height: 400px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    min-height: 400px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal.show,
.modal.open {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.user-greeting {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Dashboard responsive */
@media (max-width: 768px) {
    .dashboard-main {
        padding: calc(80px + 1rem) 1rem 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .habits-list {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   BETA BANNER
   =============================================== */

.beta-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 0.75rem var(--space-md);
    text-align: center;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}

.beta-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.beta-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.beta-close-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.beta-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    backdrop-filter: blur(10px);
}

.beta-text {
    font-size: 0.875rem;
    color: white;
    font-weight: 500;
}

.beta-text strong {
    font-weight: 700;
}

.beta-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.25rem;
    background: white;
    color: var(--accent-primary);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.beta-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Adjust nav, hero and dashboard for beta banner */
.nav {
    top: 48px;
    transition: top 0.3s ease;
}

body.banner-hidden .nav { top: 0; }
body.banner-hidden .dashboard-main { padding-top: 80px; }
body.banner-hidden .billing-container { margin-top: 40px; }

.hero {
    padding-top: calc(130px + var(--space-2xl));
}

/* ===============================================
   CLAIM PRO MODAL
   =============================================== */

.modal-pro {
    max-width: 600px;
}

.modal-body {
    padding: 0;
}

.pro-perks {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.perk-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
}

.perk-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.perk-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.perk-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Form checkbox styling */
.form-group label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

@media (max-width: 768px) {
    .beta-banner-content {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .beta-text {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .beta-badge {
        font-size: 0.7rem;
    }
}

/* ===============================================
   NOTION-STYLE DASHBOARD
   =============================================== */

.dashboard-notion {
    padding: calc(100px + var(--space-lg)) var(--space-md) var(--space-3xl);
}

/* Month Header with Cover */
.month-header {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
}

.month-cover {
    height: 200px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.3) 0%, 
        rgba(139, 92, 246, 0.2) 50%,
        rgba(16, 185, 129, 0.2) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--space-md);
}

.change-cover-btn {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    opacity: 0;
}

.month-cover:hover .change-cover-btn {
    opacity: 1;
}

.change-cover-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.month-title-section {
    padding: var(--space-xl);
}

.month-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.month-nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.month-nav-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.month-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    flex: 1;
}

.month-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Progress Overview */
.progress-overview {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.circular-progress-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.circular-progress-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.circular-progress-label {
    position: absolute;
    text-align: center;
}

.progress-percentage {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-sublabel {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.unlock-hint {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    width: 100%;
}

.lock-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.unlock-hint p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.unlock-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.unlock-btn:hover {
    background: var(--gradient-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.line-chart-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

/* Habit Grid */
.habit-grid-section {
    margin-bottom: var(--space-xl);
}

.habit-grid-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.habit-actions {
    display: flex;
    gap: var(--space-sm);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.habits-table {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.habit-row {
    display: grid;
    grid-template-columns: 200px repeat(31, 32px);
    gap: 2px;
    border-bottom: 1px solid var(--border-primary);
    padding: 0.5rem;
    align-items: center;
}

.habit-row:last-child {
    border-bottom: none;
}

.habit-row:hover {
    background: var(--bg-tertiary);
}

.habit-name-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    position: sticky;
    left: 0;
    background: var(--bg-card);
    padding-right: var(--space-sm);
}

.habit-row:hover .habit-name-cell {
    background: var(--bg-tertiary);
}

.habit-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.habit-checkbox:hover {
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.habit-checkbox.checked {
    background: var(--gradient-primary);
    border-color: var(--accent-primary);
}

.habit-checkbox.checked svg {
    display: block;
}

.habit-checkbox svg {
    display: none;
}

/* Goals Section */
.goals-section {
    margin-bottom: var(--space-xl);
}

.goals-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.goal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.goal-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.goal-icon {
    font-size: 1.5rem;
}

.goal-header h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    flex: 1;
}

.goal-menu-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.goal-menu-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.goal-status {
    margin-bottom: var(--space-md);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.status-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-success);
    border-radius: 50%;
}

.goal-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-height: 150px;
    margin-bottom: var(--space-md);
}

.goal-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.goal-item:hover {
    background: var(--bg-secondary);
}

.goal-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-primary);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.goal-checkbox.checked {
    background: var(--accent-success);
    border-color: var(--accent-success);
}

.goal-item-text {
    flex: 1;
    font-size: 0.9375rem;
}

.goal-item.completed .goal-item-text {
    text-decoration: line-through;
    opacity: 0.5;
}

.empty-goal-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    color: var(--text-tertiary);
    text-align: center;
}

.empty-goal-state svg {
    margin-bottom: var(--space-sm);
    stroke: var(--text-tertiary);
}

.empty-goal-state p {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.empty-goal-state span {
    font-size: 0.875rem;
}

.goal-complete-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.goal-complete-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* Responsive - Notion Dashboard */
@media (max-width: 1024px) {
    .progress-overview {
        grid-template-columns: 1fr;
    }
    
    .habit-row {
        grid-template-columns: 150px repeat(31, 28px);
    }
}

@media (max-width: 768px) {
    .dashboard-notion {
        padding: calc(100px + 1rem) 1rem 2rem;
    }
    
    .month-cover {
        height: 150px;
    }
    
    .month-title {
        font-size: 1.5rem;
    }
    
    .habit-row {
        grid-template-columns: 120px repeat(31, 24px);
    }
    
    .habit-checkbox {
        width: 22px;
        height: 22px;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
}


/* Today Marker for Notion Grid */
.grid-cell.is-today {
    background: rgba(99, 102, 241, 0.08) !important;
    position: relative;
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.1);
}

.grid-cell.is-today::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-primary);
    z-index: 10;
}

/* End of File Cleanup */

