/**
 * Ippo Application Styles
 * 
 * STANDARDIZED DESIGN SYSTEM
 * ==========================
 * 
 * BUTTON SYSTEM:
 * --------------
 * Base class: .btn
 * 
 * Sizes:
 *   .btn-lg  - Large buttons (1rem padding, 1.1rem font, 50px radius) - Use for primary CTAs on home page
 *   .btn-md  - Medium buttons (0.6rem padding, 0.9rem font, 8px radius) - Use for form submissions, modals
 *   .btn-sm  - Small buttons (0.4rem padding, 0.85rem font, 6px radius) - Use for inline actions
 *   .btn-icon - Icon-only buttons (0.4rem padding, 1.2rem font) - Use for close/menu buttons
 * 
 * Variants:
 *   .btn-primary   - Orange gradient (main actions)
 *   .btn-secondary - Green (success/confirmation)
 *   .btn-outline   - Transparent with border (secondary actions)
 *   .btn-danger    - Red (destructive actions)
 * 
 * Usage Examples:
 *   <button class="btn btn-primary btn-lg">Sync Garmin</button>
 *   <button class="btn btn-primary btn-md">Create Group</button>
 *   <button class="btn btn-sm btn-danger">Delete</button>
 *   <button class="btn-icon">⋮</button>
 * 
 * MODAL SYSTEM:
 * -------------
 * Standard modal structure:
 *   .modal-overlay  - Semi-transparent backdrop (z-index: 1000)
 *   .modal          - Modal container (z-index: 1001, centered)
 *   .modal-header   - Header with title and close button
 *   .modal-close    - Standardized close button (×)
 *   .modal-body     - Scrollable content area
 *   .modal-footer   - Action buttons at bottom
 * 
 * MENU SYSTEM:
 * ------------
 * Three-dot menus for settings/actions:
 *   .friend-menu / .group-menu - Container (position: relative)
 *   .menu-btn                  - Three-dot button (⋮)
 *   .menu-dropdown             - Dropdown container (absolute positioning)
 *   .menu-item                 - Individual menu items
 * 
 * Structure:
 *   <div class="friend-menu">
 *     <button class="menu-btn">⋮</button>
 *     <div class="menu-dropdown">
 *       <button class="menu-item">Action</button>
 *     </div>
 *   </div>
 */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Segoe UI Symbol', sans-serif;
    background: #0f0f1a;
    color: #e0e0ff;
    min-height: 100vh;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    height: 100vh;
}

/* Navbar Styles */
.navbar {
    background: #1a1a2e;
    border-bottom: 1px solid #333;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.navbar-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    text-decoration: none;
    color: #fc913a;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.navbar-logo-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px #fc913a55;
}

.navbar-logo-text {
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    margin-left: 2rem;
}

.nav-link {
    color: #e0e0ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fc913a;
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-auth .btn-primary:last-child {
    display: none;
}

.navbar-username {
    color: #aaa;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 0.4rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e0e0ff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        left: 0;
        top: 100%;
        flex-direction: column;
        background: #1a1a2e;
        width: 100%;
        text-align: center;
        gap: 0;
        margin-left: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid #333;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid #2a2a3e;
    }

    .navbar-auth {
        display: none;
    }
}

.container { max-width: 800px; margin: 0 auto; padding: 2rem; }

.header {
    text-align: center;
    margin-bottom: 3rem;
}
.header h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff4e50, #fc913a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}
.fire { font-size: 3rem; }

/* Ippo mascot hero (home) */
.ippo-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    text-align: left;
}
/* Large poses: circular crop like navbar (avoids white JPEG plate on dark UI) */
.ippo-hero-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px #fc913a55, 0 8px 18px rgba(0, 0, 0, 0.35);
}
.ippo-hero-copy {
    min-width: 200px;
    max-width: 28rem;
}
.ippo-hero-copy p {
    margin: 0.5rem 0 0;
}

/* Auth page mascot */
.ippo-auth-mascot {
    text-align: center;
    margin-bottom: 0.75rem;
}
.ippo-auth-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px #fc913a55, 0 6px 14px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    .fire { font-size: 2rem; }
    .ippo-hero {
        flex-direction: column;
        text-align: center;
    }
    .ippo-hero-img {
        width: 110px;
        height: 110px;
    }
}
/* ====================== HORIZONTAL STREAK BAR ====================== */
.streak-display {
    margin: 2rem 0;
    text-align: center;
}

.flame-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;        /* Aligns flames + labels perfectly at bottom */
    gap: 0.8rem;                  /* Tight but breathing room */
    padding: 1rem 0.5rem;
    overflow-x: auto;             /* Allows horizontal scroll on very small screens if needed */
    scrollbar-width: none;        /* Hide scrollbar (Firefox) */
}

.flame-row::-webkit-scrollbar {
    display: none;                /* Hide scrollbar (Chrome/Safari) */
}

.flame-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;              /* Prevents squishing */
    position: relative;           /* For spark positioning */
}

.flame {
    font-size: 2.6rem;            /* Base size */
    line-height: 1;
    margin-bottom: 0.4rem;
    transition: all 0.2s ease;
    user-select: none;
}

.flame:hover {
    transform: translateY(-4px) scale(1.1);
    animation: pulse 2s infinite ease-in-out;
}

/* Colored vs Gray */
.flame.colored {
    opacity: 1;
    /* filter: brightness(1); */
    text-shadow: 0 0 12px rgba(255, 107, 0, 0.7);
}

.flame.gray {
    opacity: 0.35;
    filter: grayscale(100%) brightness(0.8);
}

/* Day labels — small, light, perfectly aligned */
.flame-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    min-width: 2.6em;
    text-align: center;
}

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

/* ====================== RESPONSIVE SCALING ====================== */
@media (max-width: 640px) {
    .flame {
        font-size: 2.2rem;        /* Smaller flames on mobile */
    }
    
    .flame-label {
        font-size: 0.62rem;
        letter-spacing: 0.4px;
    }
    
    .flame-row {
        gap: 0.6rem;
        padding: 0.8rem 0;
    }
    
    .flame-column {
        min-width: 38px;
    }
}

@media (max-width: 480px) {
    .flame {
        font-size: 2rem;
    }
    
    .flame-label {
        font-size: 0.58rem;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}
.stat-card {
    background: #1a1a2e;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #333;
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fc913a;
}
.stat-label { color: #888; }

.workouts-list h2 {
    margin: 2rem 0 1rem;
    color: #fff;
}
.workout-card {
    background: #1a1a2e;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #fc913a;
}
.workout-type-icon { font-size: 2rem; }
.workout-ippo-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.workout-ippo-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px #fc913a44;
}
.workout-info {
    flex: 1;
    min-width: 0;
}
.workout-info strong { display: block; }
.details { font-size: 0.9rem; color: #aaa; margin-top: 0.5rem; }
.workout-actions {
    flex-shrink: 0;
}

/* ====================== WEEK PLAN CARD (Phase 3) ====================== */
.week-plan-card {
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
    border-left: 4px solid #4ade80;
}
.week-plan-card.urgency-medium {
    border-left-color: #fbbf24;
}
.week-plan-card.urgency-hard {
    border-left-color: #f87171;
}
.week-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.week-plan-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #e0e0ff;
}
.urgency-pill {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #14532d;
    color: #86efac;
}
.urgency-pill.urgency-medium {
    background: #713f12;
    color: #fde68a;
}
.urgency-pill.urgency-hard {
    background: #7f1d1d;
    color: #fecaca;
}
.week-plan-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.week-metric {
    text-align: center;
    background: #12122a;
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
}
.week-metric-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fc913a;
}
.week-metric-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}
.week-plan-hint {
    color: #a0a0c0;
    font-size: 0.95rem;
    margin: 0 0 1rem;
    line-height: 1.45;
}
.week-plan-hint a {
    color: #fc913a;
}
.week-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.week-plan-feedback {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}
.week-plan-feedback.ok { color: #86efac; }
.week-plan-feedback.err { color: #fca5a5; }

.empty-state-ippo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.empty-state-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px #fc913a44, 0 6px 14px rgba(0,0,0,0.35);
    opacity: 0.95;
}

@media (max-width: 768px) {
    .week-plan-metrics {
        grid-template-columns: 1fr;
    }
}

/* ====================== BUTTON SYSTEM ====================== */
/* Button Base Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

/* Button Sizes */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

.btn-md {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-icon {
    padding: 0.4rem 0.8rem;
    font-size: 1.2rem;
    border-radius: 8px;
    background: none;
    color: #e6e6ff;
}

.btn-icon:hover {
    background: #232333;
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(45deg, #ff4e50, #fc913a);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(252, 145, 58, 0.3);
}

.btn-primary:active {
    opacity: 0.8;
}

/* Legacy support for .btn-garmin */
.btn-garmin {
    background: linear-gradient(45deg, #ff4e50, #fc913a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
}
.btn-garmin { display: flex; align-items: center; justify-content: center; margin-top: 1rem; text-decoration: none; }

.garmin-form {
    max-width: 400px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.garmin-form input {
    padding: 1rem;
    border-radius: 12px;
    border: none;
    background: #1a1a2e;
    color: white;
    font-size: 1rem;
}
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    text-align: center;
}
.alert-success { background: #0f5132; color: #d4edda; }
.alert-error { background: #5e1a1a; color: #f8d7da; }

.empty-state { text-align: center; color: #666; font-size: 1.2rem; margin: 3rem 0; }

/* Manual Activity Form Styles */
.manual-activity-form-container {
    max-width: 800px;
    margin: 2rem auto;
}

.manual-activity-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: #1a1a2e;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #26263a;
}

.form-section h3 {
    margin: 0 0 1rem 0;
    color: #e0e0ff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.required-indicator {
    font-size: 0.85rem;
    color: #fc913a;
    font-weight: normal;
}

.optional-indicator {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}

.section-description {
    margin: 0 0 1rem 0;
    color: #999;
    font-size: 0.9rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #e0e0ff;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-input,
.form-group textarea {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #26263a;
    background: #141426;
    color: #e0e0ff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #141426;
    color: #e0e0ff;
}

.form-group input:focus,
.form-group select:focus,
.form-input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fc913a;
    background: #1a1a2e;
    box-shadow: 0 0 0 3px rgba(252, 145, 58, 0.1);
}

.form-group input::placeholder,
.form-input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-help {
    font-size: 0.85rem;
    color: #999;
    margin-top: -0.25rem;
}

/* Collapsible Metrics Toggle */
.btn-collapse {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1a1a2e;
    color: #e0e0ff;
    border: 1px solid #26263a;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-collapse:hover {
    background: #26263a;
    border-color: #fc913a;
}

.btn-collapse .chevron {
    transition: transform 0.3s ease;
}

.btn-collapse.expanded .chevron {
    transform: rotate(180deg);
}

.metrics-content {
    animation: slideDown 0.3s ease-out;
}

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

.metrics-category {
    margin-bottom: 1.5rem;
}

.metrics-category:last-child {
    margin-bottom: 0;
}

.metrics-category h4 {
    margin: 0 0 1rem 0;
    color: #b0b0d0;
    font-size: 1rem;
    border-bottom: 1px solid #26263a;
    padding-bottom: 0.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.metric-field {
    margin-bottom: 0;
}

.metric-field label {
    font-size: 0.9rem;
    color: #b0b0d0;
}

.metric-field input {
    padding: 0.65rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.btn-secondary {
    background: #48bb78;
    color: white;
}

.btn-secondary:hover {
    background: #38a169;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.btn-secondary:active {
    background: #2d7a50;
}

.btn-outline {
    background: transparent;
    color: #e6e6ff;
    border: 1px solid #3b3b5c;
}

.btn-outline:hover {
    background: #1c1c2f;
    border-color: #667eea;
}

.btn-outline:active {
    background: #101020;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.btn-danger:active {
    background: #9b2c2c;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* Items button variant: cool blue theme, keeps same sizing as .btn-garmin */
.btn-items {
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    color: white;
}
.btn-items .icon { color: rgba(255,255,255,0.95); }

.btn-primary, .btn-garmin {
    flex: 1;
    min-width: 180px;
}

/* Friends page: tiles, badge, list and card styles */
.tiles {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 1.5rem 0;
}

.tile {
    flex: 1;
    background: #0f0f1a;
    color: #e6e6ff;
    border: 1px solid #2b2b3f;
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
}

.tile.active { box-shadow: 0 6px 18px rgba(252,145,58,0.12); border-color: #fc913a; }
.tile-icon { font-size: 1.5rem; }
.tile-label { font-weight: 700; }

.badge {
    position: absolute;
    right: 10px;
    top: 8px;
    background: #ff4757;
    color: white;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.section { display: none; }
.section.show { display: block; }

/* Mobile styles (hide text, force nowrap, compact padding) */
@media (max-width: 767px) {
    .tiles {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .tile {
        min-width: 0;
        padding: 0.6rem;
        justify-content: center;
        gap: 0;
    }

    .tile-label {
        display: none;
    }

    .badge {
        right: 6px;
        top: 4px;
        padding: 0.1rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* Desktop styles (show text, allow wrapping if needed but aim for row) */
@media (min-width: 768px) {
    .tiles {
        flex-wrap: wrap;
    }

    .tile {
        min-width: 140px;
        flex-basis: 180px;
        padding: 0.8rem 1rem;
        justify-content: flex-start;
    }

    .tile-label {
        display: block;
    }
}

.card { background: #141426; padding: 1.2rem; border-radius: 12px; border: 1px solid #26263a; }

.list { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.8rem; }

.list-item { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 1rem; 
    padding: 0.8rem; 
    border-radius: 10px; 
    background: #0f0f1a; 
    border: 1px solid #232333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.list-item:hover {
    background: #1a1a2e;
}

.request-card, .friend-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem; border-radius: 10px; background: #0f0f1a; border: 1px solid #232333; }

.friend-left { display:flex; gap: 0.8rem; align-items:center; }
.friend-username { font-weight: 800; color: #e6e6ff; }

.friend-menu, .group-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-btn {
    background: none;
    border: none;
    color: #e6e6ff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.menu-btn:hover {
    background: #232333;
    color: #fc913a;
}

.menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    background: #1a1a2e;
    border: 1px solid #2b2b3f;
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Ensure menu stays within viewport */
.menu-dropdown.align-left {
    right: auto;
    left: 0;
}

.menu-item {
    display: block;
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: none;
    border: none;
    color: #e6e6ff;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.menu-item:hover {
    background: #232333;
    color: #fc913a;
}

.menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.menu-item:last-child {
    border-radius: 0 0 8px 8px;
}


.flame { font-size: 1.8rem; margin-right: 0.2rem; }
.flame.colored { filter: drop-shadow(0 6px 18px rgba(255,103,31,0.18)); }
.flame.gray { opacity: 0.45; }

.actions { display:flex; gap:0.5rem; align-items: center; }
/* Legacy btn-small support - use .btn.btn-sm instead */
.btn-small { 
    padding: 0.4rem 0.8rem; 
    border-radius: 6px;
    border: none; 
    font-weight: 600; 
    cursor: pointer;
    font-size: 0.85rem;
    background: linear-gradient(45deg, #ff4e50, #fc913a);
    color: white;
    transition: all 0.2s ease;
}

.btn-small:hover {
    opacity: 0.9;
}

@media (max-width: 600px) {
    .tile-label { display: none; }
    .tile { padding: 0.6rem; }
    .flame { font-size: 1.5rem; }
}

/* ====================== FEED PAGE STYLES ====================== */
.feed-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.feed-card {
    background: #1a1a2e;
    border: 1px solid #26263a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feed-card:hover {
    border-color: #fc913a;
    box-shadow: 0 4px 12px rgba(252, 145, 58, 0.1);
}

.feed-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background: #141426;
    border-bottom: 1px solid #26263a;
    cursor: pointer;
    transition: background 0.2s ease;
}

.feed-card-header:hover {
    background: #1a1a2e;
}

.feed-card-title {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
}

.feed-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fc913a;
    background: rgba(252, 145, 58, 0.1);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
}

.feed-user {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e0e0ff;
}

.feed-user-emojis {
    font-size: 1.2rem;
    margin-left: 0.5rem;
    line-height: 1;
}

.feed-expand-btn {
    background: none;
    border: none;
    color: #fc913a;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.feed-expand-btn.expanded {
    transform: scaleY(-1);
}

.feed-card-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.feed-card-content:hover {
    background: #0f0f1a;
}

.feed-activities,
.feed-metrics {
    font-size: 0.95rem;
    color: #d0d0e0;
}

.feed-activities strong,
.feed-metrics strong {
    color: #e0e0ff;
    font-weight: 700;
}

.feed-reactions-preview {
    margin-top: 0.5rem;
}

.reactions-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.reaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #26263a;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #d0d0e0;
}

.feed-card-expanded {
    padding: 1.2rem;
    border-top: 1px solid #26263a;
    background: #0f0f1a;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Reactions Section */
.feed-reactions-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.reactions-header {
    font-size: 0.9rem;
    color: #e0e0ff;
    font-weight: 700;
}

.reactions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.no-reactions {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.reaction-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #1a1a2e;
    padding: 0.4rem 0.7rem;
    border-radius: 20px;
    border: 1px solid #26263a;
}

.reaction-emoji {
    font-size: 1.1rem;
}

.reaction-count {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 600;
}

.emoji-palette {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.emoji-btn {
    background: #1a1a2e;
    border: 1px solid #26263a;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emoji-btn:hover {
    background: #232338;
    border-color: #fc913a;
    transform: scale(1.1);
}

.emoji-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comments Section */
.feed-comments-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.comments-header {
    font-size: 0.9rem;
    color: #e0e0ff;
    font-weight: 700;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 300px;
    overflow-y: auto;
}

.no-comments {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* ====================== ITEMS MODAL ====================== */
.items-modal { display: none; position: fixed; inset: 0; z-index: 1200; }
.items-modal.active { display: block; }
.items-modal-overlay { position: absolute; inset: 0; background: rgba(4,4,8,0.6); backdrop-filter: blur(2px); }
.items-modal-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 92%; max-width: 640px; background: #0f0f1a; border: 1px solid #232333; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.items-modal-header { display:flex; align-items:center; justify-content:space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #1a1a2e; }
.items-modal-header h3 { margin:0; font-size:1.2rem; color:#e0e0ff; }
.items-modal-close { background:none; border:none; color:#e0e0ff; cursor:pointer; padding:0.25rem; border-radius:8px; }
.items-modal-body { padding: 1rem; max-height: 60vh; overflow:auto; }
.items-modal-footer { padding: 0.75rem 1rem; border-top:1px solid #141426; text-align:right; }
.items-list { display:flex; flex-direction:column; gap:0.8rem; }
.item-card { display:flex; gap:0.8rem; align-items:center; padding:0.8rem; background:#141426; border:1px solid #222232; border-radius:10px; }
.item-icon { color:#fc913a; }
.item-title { font-weight:800; color:#e6e6ff; }
.item-count { color:#aaa; font-size:0.95rem; margin-top:0.2rem; }
.item-actions { display:flex; gap:0.5rem; }
.items-status { margin-bottom:0.75rem; }
.no-items { color:#888; font-style:italic; }


.comment-item {
    background: #1a1a2e;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #26263a;
}

.comment-author {
    font-weight: 700;
    color: #fc913a;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.comment-text {
    color: #d0d0e0;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.comment-input {
    background: #1a1a2e;
    border: 1px solid #26263a;
    border-radius: 8px;
    color: #e0e0ff;
    padding: 0.8rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 70px;
    max-height: 200px;
    transition: border-color 0.3s ease;
}

.comment-input:focus {
    outline: none;
    border-color: #fc913a;
    box-shadow: 0 0 0 3px rgba(252, 145, 58, 0.1);
}

.comment-input::placeholder {
    color: #666;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-counter {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
}

.char-counter.warning {
    color: #ff9900;
    font-weight: 700;
}

.btn-comment {
    background: linear-gradient(45deg, #ff4e50, #fc913a);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-comment:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(252, 145, 58, 0.3);
}

.btn-comment:active {
    opacity: 0.8;
}

.btn-comment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Loading States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
}

.loading-state p {
    color: #aaa;
    font-size: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(252, 145, 58, 0.2);
    border-top-color: #fc913a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(252, 145, 58, 0.2);
    border-top-color: #fc913a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.5rem;
    background: #1a1a2e;
    border-radius: 12px;
    border: 1px solid #26263a;
    margin: 1rem 0;
}

.loading-indicator p {
    color: #aaa;
    font-size: 0.9rem;
}

.error-state {
    padding: 2rem;
    text-align: center;
    color: #ff6b6b;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #888;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .feed-card-header {
        padding: 1rem;
    }
    
    .feed-card-content,
    .feed-card-expanded {
        padding: 1rem;
    }
    
    .feed-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .emoji-palette {
        gap: 0.4rem;
    }
    
    .emoji-btn {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }
    
    .comments-list {
        max-height: 200px;
    }
}

/* ====================== MODAL SYSTEM ====================== */
/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
}

.modal-overlay.show {
    display: block;
}

/* Modal Container */
.modal {
    position: fixed;
    z-index: 1001;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    background-color: #1a1a2e;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    display: none;
}

.modal.show {
    display: flex;
    flex-direction: column;
}

/* Modal Content */
.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 1.5rem;
    overflow: hidden;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.modal-content h2 {
    margin: 0;
    color: #fc913a;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #e0e0ff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Modal Close Button */
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #cfd2ff;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #fc913a;
}

/* Legacy close button support */
.modal-content .close {
    color: #cfd2ff;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-content .close:hover,
.modal-content .close:focus {
    color: #fc913a;
}

/* Modal Body */
.modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-right: 0.5rem;
}

.modal-content hr {
    border: none;
    border-top: 1px solid #26263a;
    margin: 1.5rem 0;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid #26263a;
    flex-shrink: 0;
    margin-top: auto;
}

.modal-content .form-group {
    margin-bottom: 1rem;
}

/* ====================== PERSONAL BEST METRIC SELECTOR ====================== */
.modal-subtitle {
    font-size: 0.9rem;
    color: #a0a0c0;
    margin-top: 0.3rem;
}

.pb-metric-choices {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.pb-metric-choice {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #141426;
    border: 2px solid #26263a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px; /* Touch-friendly tap target */
}

.pb-metric-choice:hover {
    border-color: #fc913a;
    background: #1a1a2e;
}

.pb-metric-choice input[type="radio"] {
    margin: 0;
    margin-right: 0.8rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #fc913a;
}

.pb-metric-choice input[type="radio"]:checked + .pb-metric-choice-content {
    color: #fc913a;
}

.pb-metric-choice-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.pb-metric-choice-label {
    font-weight: 600;
    color: #e0e0ff;
    flex: 1;
    font-size: 0.95rem;
}

.pb-metric-choice-value {
    font-size: 0.9rem;
    color: #a0a0c0;
    white-space: nowrap;
    font-weight: 600;
}

.pb-metric-choice input[type="radio"]:checked ~ .pb-metric-choice-content .pb-metric-choice-label {
    color: #fc913a;
}

.pb-empty-state,
.pb-loading-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #a0a0c0;
}

.pb-loading-state .spinner {
    margin: 0 auto 1rem;
    width: 40px;
    height: 40px;
    border: 4px solid #26263a;
    border-top-color: #fc913a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.error-message {
    background: rgba(255, 78, 80, 0.1);
    border: 1px solid rgba(255, 78, 80, 0.3);
    color: #ff9999;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Mobile optimizations for metric selector */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .pb-metric-choices {
        max-height: 60vh;
        gap: 0.5rem;
    }
    
    .pb-metric-choice {
        padding: 0.7rem 0.8rem;
    }
    
    .pb-metric-choice-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .pb-metric-choice-value {
        font-size: 0.85rem;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .modal-content h2 {
        font-size: 1.25rem;
    }
    
    .pb-metric-choices {
        padding-right: 0.2rem;
    }
    
    .pb-metric-choice {
        padding: 0.6rem 0.7rem;
        min-height: 44px;
    }
    
    .pb-metric-choice input[type="radio"] {
        width: 16px;
        height: 16px;
    }
    
    .pb-metric-choice-label {
        font-size: 0.9rem;
    }
    
    .pb-metric-choice-value {
        font-size: 0.8rem;
    }
    
    .modal-footer {
        flex-direction: row;
        gap: 0.6rem;
    }
    
    .modal-footer .btn {
        flex: 1;
        padding: 0.7rem 1rem;
    }
}

/* ====================== PERSONAL BEST DETAIL MODAL ====================== */
.pb-primary-metric {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.pb-primary-value {
    font-size: 3rem;
    font-weight: 800;
    color: #fc913a;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pb-primary-unit {
    font-size: 1.5rem;
    font-weight: 600;
    color: #a0a0c0;
    margin-left: 0.5rem;
}

.pb-primary-date {
    font-size: 0.95rem;
    color: #e0e0ff;
    margin-top: 0.5rem;
}

.pb-primary-status {
    font-size: 0.85rem;
    color: #a0a0c0;
    margin-top: 0.3rem;
}

.pb-description-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #141426;
    border-radius: 8px;
}

.pb-description-section h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #fc913a;
}

.pb-description-section p {
    margin: 0;
    color: #e0e0ff;
    line-height: 1.5;
}

.pb-metrics-section h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #fc913a;
}

.pb-all-metrics {
    padding-right: 0.5rem;
}

.pb-metrics-group {
    margin-bottom: 1.5rem;
}

.pb-metrics-group:last-child {
    margin-bottom: 0;
}

.pb-metrics-group-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #a0a0c0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #26263a;
}

.pb-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

.pb-metric-item {
    background: #141426;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #26263a;
    transition: all 0.2s ease;
}

.pb-metric-item:hover {
    border-color: #fc913a;
    background: #1a1a2e;
}

.pb-metric-label {
    display: block;
    font-size: 0.8rem;
    color: #a0a0c0;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.pb-metric-value {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.pb-metric-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e0e0ff;
}

.pb-metric-unit {
    font-size: 0.85rem;
    color: #a0a0c0;
    font-weight: 600;
}

/* Mobile optimizations for PB detail modal */
@media (max-width: 768px) {
    .modal {
        max-height: 90vh;
    }
    
    .modal-content {
        padding: 1.25rem;
    }
    
    .pb-primary-value {
        font-size: 2.5rem;
    }
    
    .pb-primary-unit {
        font-size: 1.2rem;
    }
    
    .pb-primary-metric {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .pb-metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .modal {
        width: 95%;
        max-height: 92vh;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-header {
        margin-bottom: 1rem;
    }
    
    .pb-primary-metric {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .pb-primary-value {
        font-size: 2rem;
    }
    
    .pb-primary-unit {
        font-size: 1rem;
    }
    
    .pb-metric-item {
        padding: 0.6rem;
    }
    
    .pb-metric-number {
        font-size: 1.1rem;
    }
    
    .modal-footer {
        padding-top: 0.8rem;
        gap: 0.5rem;
    }
}

/* ====================== FLAME ANIMATIONS ====================== */
@keyframes flameIgnite {
    0% {
        opacity: 0.5;
        filter: grayscale(100%) drop-shadow(0 0 0 transparent);
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        filter: grayscale(0%) drop-shadow(0 0 8px rgba(252, 145, 58, 0.6));
    }
    100% {
        opacity: 1;
        filter: grayscale(0%) drop-shadow(0 4px 12px rgba(255, 103, 31, 0.18));
        transform: scale(1);
    }
}

@keyframes sparkle {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

.flame.igniting {
    animation: flameIgnite 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.spark {
    position: absolute;
    pointer-events: none;
    font-size: 0.9rem;
    line-height: 1;
}

.spark.animate {
    animation: sparkle 0.8s ease-out forwards;
}

/* ====================== SETTINGS PAGE STYLES ====================== */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.settings-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e0e0ff;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #26263a;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-form label {
    font-weight: 600;
    color: #e0e0ff;
    font-size: 0.95rem;
}

.settings-form small {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.settings-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fc913a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.settings-form .checkbox-group {
    gap: 0.3rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #fc913a;
}

.checkbox-label span {
    color: #e0e0ff;
    font-size: 0.95rem;
}

.settings-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2000;
    pointer-events: none;
}

.settings-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.settings-toast.success {
    background: #48bb78;
    color: white;
}

.settings-toast.error {
    background: #e53e3e;
    color: white;
}

@media (max-width: 768px) {
    .settings-container {
        margin: 1rem 0;
    }
    
    .settings-toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
}


