*{
    font-family: 'inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    font-weight: 600;
    font-size: 1rem;
    display: none;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease-out;
    max-width: 400px;
}

.toast-notification.show {
    display: flex;
}

.toast-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        font-size: 0.9rem;
        padding: 14px 18px;
    }
}

/* Walkthrough Overlay Styles */
.walkthrough-active {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

.walkthrough-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    display: none;
}

.walkthrough-overlay.active {
    display: block;
}

.walkthrough-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.walkthrough-overlay.active .walkthrough-backdrop {
    pointer-events: all;
}

.walkthrough-spotlight {
    position: absolute;
    border: 3px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7), 0 0 30px rgba(59, 130, 246, 0.5);
    transition: all 0.5s ease-out;
    pointer-events: none;
    z-index: 10001;
}

.walkthrough-tooltip {
    position: absolute;
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease-out;
    pointer-events: all;
    z-index: 10002;
    animation: tooltipFadeIn 0.3s ease-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.walkthrough-content h3 {
    color: #3b82f6;
    font-size: 1.5rem;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.walkthrough-content p {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.walkthrough-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-walkthrough-skip {
    flex: 1;
    background: transparent;
    border: 2px solid #475569;
    color: #94a3b8;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-walkthrough-skip:hover {
    border-color: #64748b;
    color: #cbd5e1;
    background: rgba(71, 85, 105, 0.2);
}

.btn-walkthrough-next {
    flex: 2;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-walkthrough-next:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.walkthrough-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.walkthrough-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
    transition: all 0.3s;
}

.walkthrough-dot.active {
    background: #3b82f6;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .walkthrough-tooltip {
        max-width: calc(100% - 40px);
        padding: 20px;
        left: 20px !important;
        right: 20px !important;
        top: auto !important;
        bottom: 20px !important;
    }
    
    .walkthrough-content h3 {
        font-size: 1.25rem;
    }
    
    .walkthrough-content p {
        font-size: 0.9rem;
    }
}

/* Welcome Banner Styles */
.welcome-banner {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    padding: 16px 20px;
    border-bottom: 2px solid #1d4ed8;
    animation: slideDown 0.4s ease-out;
}

.welcome-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.welcome-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.welcome-text {
    flex: 1;
    color: white;
}

.welcome-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.welcome-text p {
    font-size: 0.9rem;
    opacity: 0.95;
    margin: 0;
}

.welcome-signin-btn {
    background: var(--card-bg);
    color: #2563eb;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.welcome-signin-btn:hover {
    transform: scale(1.05);
}

.welcome-dismiss {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.welcome-dismiss:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .welcome-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .welcome-icon {
        font-size: 1.5rem;
    }
    
    .welcome-text strong {
        font-size: 1rem;
    }
    
    .welcome-text p {
        font-size: 0.85rem;
    }
    
    .welcome-signin-btn {
        width: 100%;
        order: 3;
    }
    
    .welcome-dismiss {
        position: absolute;
        top: 0;
        right: 0;
    }
}

/* Upgrade Modal Responsive Fixes */
#ghostUpgradeModal {
        /* fallback for inline style, but allow override */
        z-index: 10000 !important;
}

@media (max-width: 600px) {
    #ghostUpgradeModal > div {
        padding: 18px 4px 12px 4px !important;
        max-width: 99vw !important;
        border-radius: 10px !important;
    }
    #ghostUpgradeModal ul {
        font-size: 13px !important;
        padding-left: 14px !important;
    }
    #ghostUpgradeModal h1 {
        font-size: 22px !important;
    }
    #ghostUpgradeModal button {
        font-size: 15px !important;
        padding: 14px 6px !important;
    }
}


/* ========================================
   MODERN TAB-BASED APP DESIGN
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Clean white/black/gray theme inspired by 75 Hard */
    --primary-bg: #ffffff;
    --card-bg: #ffffff;
    --card-bg-light: #f8f9fa;
    --text-dark: #000000;
    --text-light: #6b7280;
    --sparta-gold: #d4af37;
    
    /* Minimal accent colors */
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --accent-teal: #14b8a6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-pink: #ec4899;
    
    /* Primary colors - clean blues */
    --primary-blue: #3b82f6;
    --primary-purple: #60a5fa;
    --warrior-red: #ef4444;
    --steel-gray: #9ca3af;
    
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 12px rgba(59, 130, 246, 0.15);
    
    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* DARK MODE */
body.dark-mode {
    --primary-bg: radial-gradient(circle, rgba(59, 130, 246, 1) 0%, rgba(0, 0, 0, 1) 100%);
    --card-bg: rgba(30, 30, 30, 0.8);
    --card-bg-light: rgba(40, 40, 40, 0.8);
    --text-dark: #ffffff;
    --text-light: #d1d5db;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 24px rgba(59, 130, 246, 0.3);
}

body.dark-mode {
    background: radial-gradient(circle, rgba(59, 130, 246, 1) 0%, rgba(0, 0, 0, 1) 100%);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

body {
    font-family: var(--font-body);
    background: var(--primary-bg);
    color: var(--text-dark);
    padding-bottom: 70px;
    font-weight: 400;
    letter-spacing: -0.011em;
}

/* Top Status Bar */
.top-bar {
    background: var(--card-bg);
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.smoky-checkbox{
    height: 25px;
    width: 25px;
}

.app-logo {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 15%;
}

.app-logo:hover {
    transform: scale(1.05);
}

.location-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 26px;
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.location-icon {
    font-size: 16px;
}

.top-icons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Purpose Reminder Button Bar */
.purpose-reminder-bar {
    background: var(--card-bg);
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 104px;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.current-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.btn-purpose-reminder {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.btn-purpose-reminder:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.5);
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
}

.btn-purpose-reminder:active {
    transform: translateY(0);
}

.purpose-icon {
    font-size: 1.1rem;
}

.purpose-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .purpose-reminder-bar {
        padding:12px;
    }
    
    .btn-purpose-reminder {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .icon-image{
        max-width: 45px!important;
    }
    
    .purpose-icon {
        font-size: 1.2rem;
    }
}



.streak-badge {
    background: var(--accent-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 15px;
    font-family: var(--font-heading);
    font-weight: 400;
    color: white;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
}

.sound-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.sound-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.sound-toggle-btn:active {
    transform: scale(0.95);
}

/* Main Content */
.main-content {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 40px;
}

/* Desktop: Wider content area */
@media (min-width: 1024px) {
    .main-content {
        max-width: 1000px;
        padding: 24px;
    }
}

@media (min-width: 1400px) {
    .main-content {
        max-width: 1200px;
        padding: 32px;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Emergency Circle (Home) */
.emergency-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.emergency-circle {
    width: 150px;
    height: 150px;
    background: var(--card-bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.emergency-circle:hover {
    box-shadow: var(--shadow-hover);
    transform: scale(1.05);
    border-color: var(--accent-blue);
}

.circle-icon {
    font-size: 48px;
    animation: pulse 2s infinite;
}

.circle-icon-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    animation: pulse 2s infinite;
}



@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.emergency-status {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.emergency-percent {
    font-size: 32px;
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.emergency-hint {
    font-size: 13px;
    color: var(--text-light);
    opacity: 0.7;
    font-style: italic;
}

.btn-improve {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-improve:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

/* Daily Quote Card */
.quote-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0px 0px 5px #3b82f6;
    text-align: center;
}

.quote-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.quote-text {
    font-size: 22px;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 500;
}

.quote-author {
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-next-quote {
    margin-top: 16px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.25));
    border: 2px solid var(--sparta-gold);
    border-radius: 20px;
    color: var(--sparta-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-next-quote:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.35));
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Action Grid (Home) */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-card {
    background: var(--card-bg);
    border: none;
    border-radius: 8px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
.action-card:first-child{
    box-shadow: 0px 0px 5px #f59e0b;
}


.action-card:active {
    transform: scale(0.95);
}

.action-card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-hover);
}

.action-card.blue { background: var(--card-bg); color: var(--text-dark);   
    box-shadow: 0px 0px 2px #40c2c4; }
.action-card.pink { background: var(--card-bg); color: var(--text-dark);   
    box-shadow: 0px 0px 2px #40c2c4; }
.action-card.orange { background: var(--card-bg); color: var(--text-dark);     
    box-shadow: 0px 0px 2px #40c2c4; }
.action-card.teal { background: var(--card-bg); color: var(--text-dark);    
    box-shadow: 0px 0px 2px #40c2c4; }
.action-card.red { background: var(--card-bg); color: var(--text-dark);     
    box-shadow: 0px 0px 2px #40c2c4; }
.action-card.purple { background: var(--card-bg); color: var(--text-dark);     
    box-shadow: 0px 0px 2px #40c2c4; }

.action-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.icon-image{
    max-width: 45px;
    border-radius: 30%;
}
.icon-image:hover { 
    transform: translateY(-3px);
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.action-label {
    font-size: 1rem;
    font-weight: 600;
    display: block;
    color: var(--text-dark);
}

/* Tab Header */
.tab-header {
    margin-bottom: 20px;
}

.tab-header p:first-of-type {
    font-size: 24px;
    color: #3b82f6;
    padding: 10px 0px;
    font-weight: 700;
    text-align: left;
}

.tab-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--sparta-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: underline;
}


.tab-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.progress-text {
    color: var(--accent-blue);
    font-weight: 600;
    text-align: center;
    margin: 8px 0 12px 0;
    font-size: 16px;
}

.btn-next-day {
    padding: 15px 30px;
    background: black;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-next-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-share-day {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--sparta-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Mobile adjustments for daily tasks header */
@media (max-width: 600px) {
    .tab-header-actions {
        gap: 20px;
    }
    
    .progress-text {
        font-size: 14px;
    }
    
    .btn-next-day {
        padding: 10px 18px;
        font-size: 12px;
    }
    
    .btn-share-day {
        padding: 8px 12px;
        font-size: 14px;
    }
}

.btn-share-day:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--sparta-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-share-day span {
    display: block;
}

/* Task List (Daily Tab) */
.task-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Desktop: single column for tablets, 2 columns for larger screens */
@media (min-width: 1024px) {
    .task-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.task-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);

    transition: all 0.2s ease;
    height: 175px;
}

.task-card:hover {
    border-left-color: var(--accent-blue);
    box-shadow: var(--shadow-hover);
}

.task-card.completed {
    border-left-color: #3b82f6;
    background: #3b82f624;
    border: 1px solid white;
}

.task-icon img{
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.task-info {
    flex: 1;
}

.task-info h4 {
    font-size: 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 10px;
}

.task-info p {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dark);
}

.page-input {
    width: 80px;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.task-checkbox {
    width: 36px;
    height: 36px;
    cursor: pointer;
    accent-color: var(--accent-blue);
    margin-top: 20px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.task-checkbox:checked {
    background: var(--accent-blue);
}

.task-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 80px;
    background: var(--card-bg);
    color: var(--text-dark);
    padding: 16px 24px;
    border-radius: 50px;
    max-height: 125px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease forwards;
    font-weight: 600;
}

.toast.undo {
    background: var(--accent-red);
}

.toast.achievement-toast {
    background: var(--accent-blue);
    color: white;
    font-size: 14px;
    padding: 20px 24px;
    border-left: 4px solid #000;
}

.toast-icon {
    font-size: 24px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.task-btn {
    background: var(--border-color);
    color: var(--text-light);
    border: 2px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-btn:hover {
    background: #d1d5db;
    border-color: #d1d5db;
}

.task-btn.completed {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.task-btn-primary {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Journal Form */
.journal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-section {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-section label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-section textarea,
.form-section input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-size: 22px;
    font-family: inherit;
    resize: vertical;
}

.form-section textarea {
    min-height: 100px;
}

.btn-save {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 850px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    max-width: 350px;
    box-shadow: var(--shadow);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    margin: 0px auto;
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

/* Stats Grid (Progress Tab) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.progress-bar-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.progress-bar-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.progress-bar-large {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill-large {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    border-radius: 6px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-label {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

/* Cumulative Stats Section */
.cumulative-stats-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.cumulative-stats-section h3 {
    font-size: 18px;
    color: var(--sparta-gold);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stats-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.lifetime-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .lifetime-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.lifetime-stat-card {
    background: var(--card-bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.lifetime-stat-card:hover {
    border-color: var(--sparta-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.lifetime-stat-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.lifetime-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--sparta-gold);
    margin-bottom: 4px;
}

.lifetime-stat-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sparta-gold);
    font-weight: 700;
}

/* Achievements Section */
.achievements-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.achievements-section h3 {
    font-size: 18px;
    color: var(--sparta-gold);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.achievements-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.achievement-badge {
    background: var(--card-bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-badge.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.achievement-badge.unlocked {
    border-color: var(--sparta-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    animation: unlock 0.5s ease;
}

@keyframes unlock {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.achievement-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.achievement-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.achievement-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.3;
}

.achievement-badge.unlocked .achievement-name {
    color: var(--sparta-gold);
}

/* Menu List (More Tab) */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    background: var(--card-bg);
    border: none;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: var(--shadow);
    text-align: left;
    color: var(--text-dark);
}

.menu-item:active {
    background: var(--primary-bg);
}

.menu-item.danger {
    color: var(--accent-red);
}

.menu-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.menu-label {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.menu-arrow {
    font-size: 24px;
    color: var(--text-light);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 15px 0 12px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    border-top: 2px solid var(--border-color);
}

.nav-item {
    background: none;
    border: none;
    padding: 4px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    flex: 1;
}

.nav-icon {
    font-size: 24px;
    transition: all 0.2s ease;
}

.nav-icon img{
    height: 35px;
    width: 35px;

}

.nav-icon img:hover{
    transform: translateY(-3px);
    transition-duration: .3s;
}

.nav-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
    color: var(--accent-blue);
}

.nav-item.active .nav-label {
    color: var(--accent-blue);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar styling for modals */
.modal-content ::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
  background: #333232; 
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 10px;
}

.modal-content ::-webkit-scrollbar-track {
    background: black;
    z-index: 0;
    margin: 10px 0;
}

.modal-content ::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    border: 2px solid var(--card-bg);
    background-clip: padding-box;
}

.modal-content ::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
    border: 2px solid var(--card-bg);
    background-clip: padding-box;
}

/* Firefox scrollbar */
.modal-content * {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

/* Add padding to scrollable areas to inset scrollbar */
.journal-list, .photo-grid, .modal-body {
    padding-right: 15px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#currentDay{
    font-weight: 600;
    color: #3b82f6;
    font-weight: 800;
}

.modal-header h2 {
    font-size: 20px;
    text-align: center;
    margin: 10px auto;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-list, .photo-grid {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.photo-grid {
    display: block;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
    align-content: start;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--card-bg-light);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.photo-day {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.journal-entry {
    background: var(--card-bg-light);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow:5px 5px 15px var(--shadow);
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 15px;
    border: 1px solid var(--border-color);
}

.journal-entry h3 {
    color: var(--sparta-gold);
    font-size: 16px;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.journal-entry p {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.journal-entry strong {
    color: var(--sparta-gold);
}

/* Responsive */
@media (min-width: 768px) {
    .main-content {
        padding: 24px;
    }
    
    .action-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ghost Warrior Celebration Modal */
.ghost-warrior-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Epic Day 180 Background */
.ghost-warrior-modal.day-180-epic {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.15), rgba(0, 0, 0, 0.98));
    animation: epicPulse 3s ease-in-out infinite;
}

@keyframes epicPulse {
    0%, 100% { background: radial-gradient(circle at center, rgba(255, 215, 0, 0.15), rgba(0, 0, 0, 0.98)); }
    50% { background: radial-gradient(circle at center, rgba(255, 215, 0, 0.25), rgba(0, 0, 0, 0.95)); }
}

.ghost-warrior-modal.show {
    opacity: 1;
}

.ghost-warrior-content {
    background: #151515;
    border: 4px solid var(--sparta-gold);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 500px;
    max-height: 90vh;
    width: 100%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.5), 0 0 100px rgba(212, 175, 55, 0.3);
    animation: celebrationPulse 0.5s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(158, 158, 158, 0.6) rgba(0, 0, 0, 0.3);
    scrollbar-gutter: stable;
}

/* Webkit scrollbar styling for ghost-warrior-content */
.ghost-warrior-content::-webkit-scrollbar {
    width: 12px;
}

.ghost-warrior-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px;
}

.ghost-warrior-content::-webkit-scrollbar-thumb {
    background: rgba(19, 18, 18, 0.6);
    border-radius: 10px;
    border: 2px solid #151515;
    background-clip: padding-box;
}

.ghost-warrior-content::-webkit-scrollbar-thumb:hover {
    background: rgba(77, 76, 76, 0.8);
    border: 2px solid #151515;
    background-clip: padding-box;
}

/* Epic Day 180 Content Styling */
.ghost-warrior-content.day-180-epic {
    border: 6px solid #FFD700;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    max-width: 600px;
    padding: 50px 40px;
    box-shadow: 
        0 0 100px rgba(255, 215, 0, 0.6),
        0 0 200px rgba(255, 215, 0, 0.4),
        0 20px 80px rgba(255, 215, 0, 0.5),
        inset 0 0 50px rgba(255, 215, 0, 0.1);
    animation: epicEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes epicEntrance {
    0% { 
        transform: scale(0.5) rotateY(90deg); 
        opacity: 0;
    }
    50% { 
        transform: scale(1.1) rotateY(0deg); 
    }
    100% { 
        transform: scale(1); 
        opacity: 1;
    }
}

@keyframes celebrationPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.accolade-text {
    color: white;
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.accolade-text.epic {
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 400;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    animation: shimmer 2s linear infinite;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.ghost-warrior-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    object-fit: contain;
}

.ghost-warrior-icon.epic-icon {
    width: 180px;
    height: 180px;
    animation: epicFloat 3s ease-in-out infinite, epicGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8));
}

@keyframes epicFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    50% { 
        transform: translateY(-20px) scale(1.05); 
    }
}

@keyframes epicGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8));
    }
    50% { 
        filter: drop-shadow(0 0 60px rgba(255, 215, 0, 1)) drop-shadow(0 0 100px rgba(255, 215, 0, 0.6));
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.ghost-warrior-title {
    font-size: 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--sparta-gold);
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.ghost-warrior-title.epic {
    font-size: 48px;
    font-family: var(--font-heading);
    font-weight: 400;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700, #FF8C00);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
    margin-bottom: 15px;
    animation: epicGradient 3s ease infinite;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.9));
}

@keyframes epicGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ghost-warrior-day {
    font-size: 20px;
    font-family: var(--font-heading);
    font-weight: 400;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ghost-warrior-day.epic {
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 400;
    color: #FFD700;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.ghost-warrior-day-number {
    font-size: 22px;
    font-family: var(--font-heading);
    font-weight: 400;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ghost-warrior-day-number.day-180-final {
    font-size: 56px;
    font-family: var(--font-heading);
    font-weight: 400;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFFF00, #FF8C00);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
    margin: 15px 0;
    animation: epicGradient 3s ease infinite, epicScale 2s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 1));
}

@keyframes epicScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.epic-subtitle {
    font-size: 28px;
    font-family: var(--font-heading);
    font-weight: 400;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 1),
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 30px rgba(255, 215, 0, 0.6);
    animation: epicPulseText 2s ease-in-out infinite;
}

@keyframes epicPulseText {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 1),
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 30px rgba(255, 215, 0, 0.6);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 
            0 0 20px rgba(255, 215, 0, 1),
            0 0 40px rgba(255, 215, 0, 0.9),
            0 0 60px rgba(255, 215, 0, 0.7);
    }
}


/* Need fix for this, */

/* .ghost-warrior-content .ghost-warrior-day:nth-child(3){
    font-size: 24px;    
    color: #d4af37;
} */

.ghost-warrior-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-blue);
    margin: 20px auto;
}

.ghost-warrior-quote {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 16px;
    padding: 0 20px;
}

.ghost-warrior-author {
    font-size: 14px;
    color: var(--sparta-gold);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.ghost-warrior-btn {
    background: linear-gradient(135deg, var(--sparta-gold), #c9a747);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.ghost-warrior-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

.ghost-warrior-btn:active {
    transform: translateY(0);
}

/* Name Input Modal Styles */
.name-input-modal input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.name-input-modal input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 480px) {
    .ghost-warrior-content {
        padding: 30px 20px;
    }
    
    .ghost-warrior-content.day-180-epic {
        padding: 40px 25px;
    }
    
    .ghost-warrior-icon {
        width: 90px;
        height: 90px;
    }
    
    .ghost-warrior-icon.epic-icon {
        width: 140px;
        height: 140px;
    }
    
    .ghost-warrior-title {
        font-size: 22px;
    }
    
    .ghost-warrior-title.epic {
        font-size: 32px;
        letter-spacing: 3px;
    }
    
    .ghost-warrior-day-number.day-180-final {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .epic-subtitle {
        font-size: 18px;
        letter-spacing: 2px;
    }
    
    .accolade-text.epic {
        font-size: 16px;
    }
    
    .ghost-warrior-quote {
        font-size: 16px;
        padding: 0 10px;
    }
}

/* Footer Support Button */
.support-link {
    font-size: 25px;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    margin-right: 8px;
    display: inline-block;
}

.support-link:hover {
    opacity: 1;
}

/* Reset Modal */
.reset-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reset-modal.show {
    opacity: 1;
}

.reset-modal-content {
    background: linear-gradient(135deg, rgba(20, 25, 45, 0.95), rgba(25, 30, 50, 0.95));
    border: 2px solid var(--primary-blue);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.4);
    animation: modalSlideIn 0.4s ease;
}

.reset-icon {
    font-size: 80px;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.reset-modal-content h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.reset-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    margin: 1.5rem 0;
}

.reset-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.reset-warning {
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    margin: 1.5rem 0;
}

.reset-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-reset-confirm,
.btn-reset-cancel {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-reset-confirm {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 68, 68, 0.4);
}

.btn-reset-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 68, 68, 0.6);
}

.btn-reset-cancel {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.btn-reset-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .reset-modal-content {
        padding: 1.5rem;
    }
    
    .reset-icon {
        font-size: 60px;
    }
    
    .reset-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .reset-quote {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .reset-buttons {
        flex-direction: column;
    }
    
    .btn-reset-confirm,
    .btn-reset-cancel {
        width: 100%;
    }

.tab-header h2{
    text-align: center;
    margin: 20px auto;
}

.lifetime-stat-card,
.stat-car{
    display: block;
    margin-bottom: 10px;
}


.achievements-grid{
    display: block;

}

.stat-card,
.stats-grid,
.lifetime-stats-grid,
.stats-grid.achievement-badge, 
.achievement-badge.locked, 
.achievement-badge.unlocked {
    margin-bottom: 10px;
    display: block;
}
} /*  Do not remove this end bracket */

/* Toast animations */
@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

/* ========================================
   PURPOSE MODAL STYLING
   ======================================== */

.purpose-modal {
    max-width: 550px;
    max-height: 90vh;
    animation: modalSlideIn 0.4s ease-out;
    overflow-y: auto;
}

.purpose-modal .modal-body{
    padding: 15px;
} 

.purpose-prompt {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sparta-gold);
    margin-bottom: 0.5rem;
    text-align: center;
}

.purpose-subtext {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.5;
}

.purpose-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-dark);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.purpose-textarea:focus {
    outline: none;
    border-color: var(--sparta-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.purpose-textarea::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.purpose-photo-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--card-bg-light);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.purpose-photo-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sparta-gold);
    margin-bottom: 0.25rem;
}

.purpose-photo-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.purpose-photo-upload {
    position: relative;
}

.purpose-photo-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-upload-photo {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
    flex: 1;
    min-width: 140px;
}

.btn-upload-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.5);
}

.purpose-photo-preview {
    display: none;
    margin-top: 0.75rem;
    position: relative;
}

.purpose-photo-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-remove-photo {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-remove-photo:hover {
    background: rgba(185, 28, 28, 1);
    transform: scale(1.1);
}

.purpose-actions {
    display: flex;
    gap: 1rem;
    padding: 15px;
    justify-content: flex-end;
}

.btn-cancel,
.btn-save-purpose {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cancel {
    background: var(--card-bg-light);
    color: var(--text-light);
    border: 2px solid var(--border-color);
}

.btn-cancel:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.btn-save-purpose {
    background: linear-gradient(135deg, var(--sparta-gold), #c9a747);
    color: var(--primary-bg);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-save-purpose:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* ========================================
   PURPOSE REMINDER MODAL STYLING
   ======================================== */

.purpose-reminder {
    max-width: 600px;
    animation: modalSlideIn 0.4s ease-out;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    border: 2px solid var(--sparta-gold);
}

.reminder-header {
    background: linear-gradient(135deg, var(--sparta-gold), #c9a747);
    color: var(--primary-bg);
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
    border-bottom: none;
}

.reminder-header h2 {
    color: var(--primary-bg);
    margin: 0;
}

.reminder-header .close-btn {
    color: var(--primary-bg);
    background: rgba(0, 0, 0, 0.2);
}

.reminder-header .close-btn:hover {
    background: var(--sparta-gold);
    transform: rotate(90deg);
}

.reminder-text {
    font-size: 1.1rem;
    color:white;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 10px;
}

.purpose-photo-display {
    display: none;
    margin: 1.5rem 0;
    text-align: center;
}

.purpose-reminder-photo {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--sparta-gold);
}

.purpose-display {
    background: var(--card-bg);
    padding: 2rem;

    margin: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    text-align: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.reminder-footer {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.btn-continue {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
        max-width: 250px;
    text-align: center;
    margin: 25px auto;
    display: block;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6);
}

/* Mobile responsiveness for purpose modals */
@media (max-width: 600px) {
    .purpose-modal,
    .purpose-reminder {
        max-width: 95%;
        margin: 1rem;
    }
    
    .purpose-prompt {
        font-size: 1.1rem;
    }
    
    .purpose-textarea {
        min-height: 100px;
    }
    
    .purpose-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-save-purpose {
        width: 100%;
    }
    
    .purpose-display {
        padding: 1.5rem;
        font-size: 1.1rem;
    }

    .nav-label{
        font-size: 11px;
    }


}

/* ========================================
   COMMUNITY TAB STYLING
   ======================================== */

/* Community Overlay - Coming Soon */
.community-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cfcfd100;
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.community-overlay-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.overlay-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.community-overlay-content h2 {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.community-overlay-content p {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 12px;
    line-height: 1.6;
}

.overlay-subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Make community tab container relative for overlay positioning */
#communityTab {
    position: relative;
}

.community-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-icon {
    font-size: 32px;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Share Progress Button */
.btn-share-progress {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    margin: 0px auto;
    max-width: 300px;
}

.btn-share-progress:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-share-progress span:first-child {
    font-size: 24px;
}

/* Inspiration Feed */
.inspiration-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.story-card {
    background: var(--card-bg-light);
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.story-card:hover {
    border-left-color: var(--sparta-gold);
    box-shadow: var(--shadow-hover);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.story-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-blue);
}

.story-days {
    font-size: 12px;
    font-weight: 600;
    color: var(--sparta-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

.story-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
}

/* Coming Soon Grid */
.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .coming-soon-grid {
        grid-template-columns: 1fr;
    }
}

.coming-soon-card {
    background: var(--card-bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.coming-soon-card.locked {
    opacity: 0.6;
}

.coming-soon-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.coming-soon-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.coming-soon-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.coming-soon-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

.lock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
}

/* Community Links */
.community-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--card-bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.community-link:hover {
    border-color: var(--accent-blue);
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
}

.community-link.discord:hover {
    border-color: #5865F2;
    background: rgba(88, 101, 242, 0.1);
}

.community-link.reddit:hover {
    border-color: #FF4500;
    background: rgba(255, 69, 0, 0.1);
}

.community-link.email:hover {
    border-color: var(--accent-teal);
    background: rgba(20, 184, 166, 0.1);
}

.link-icon {
    font-size: 28px;
}
