/* ============================================
   STREAK TRACKER - MAIN STYLESHEET
   ============================================ */

/* CSS Variables */
:root {
    --primary: #FF6B35;
    --primary-light: #FF8C5A;
    --secondary: #004E89;
    --accent: #00B4D8;
    --success: #2DC653;
    --warning: #FFB703;
    --danger: #E63946;
    
    --bg-dark: #1A1A2E;
    --bg-darker: #16213E;
    --card-bg: #1F2940;
    --card-bg-hover: #253352;
    
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --text-muted: #718096;
    
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 50%, #FFB703 100%);
    --gradient-secondary: linear-gradient(135deg, #004E89 0%, #00B4D8 100%);
    --gradient-success: linear-gradient(135deg, #2DC653 0%, #00B4D8 100%);
    --gradient-bg: linear-gradient(180deg, #1A1A2E 0%, #16213E 100%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* App Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    text-align: center;
    padding: 30px 0 20px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    animation: logoGlow 3s ease-in-out infinite;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.3)); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 107, 53, 0.6)); }
}

/* ============================================
   STREAK HERO SECTION
   ============================================ */
.streak-hero {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.streak-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
}

.streak-display {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.flame-container {
    display: inline-block;
    margin-bottom: -10px;
}

.flame {
    font-size: 4rem;
    display: inline-block;
    animation: flameFlicker 0.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.8));
}

@keyframes flameFlicker {
    0% { transform: scale(1) rotate(-3deg); opacity: 0.9; }
    100% { transform: scale(1.1) rotate(3deg); opacity: 1; }
}

.streak-number {
    font-family: 'Poppins', sans-serif;
    font-size: 6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: 10px 0;
    text-shadow: 0 0 40px rgba(255, 107, 53, 0.3);
}

.streak-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Progress Ring */
.progress-ring-container {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--card-bg-hover);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 0.8s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Check-in Button */
.checkin-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
    z-index: 1;
    margin: 20px 0;
}

.checkin-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(255, 107, 53, 0.6);
}

.checkin-btn:active {
    transform: translateY(0) scale(0.98);
}

.checkin-btn.completed {
    background: var(--gradient-success);
    pointer-events: none;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.checkin-btn:hover .btn-glow {
    opacity: 1;
    animation: btnGlow 1.5s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Quote Container */
.quote-container {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: opacity var(--transition-slow);
}

.quote-author {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

/* ============================================
   HABIT SELECTOR
   ============================================ */
.habit-selector {
    margin-bottom: 30px;
}

.habit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.habit-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.habit-card:hover {
    transform: translateY(-5px);
    background: var(--card-bg-hover);
    box-shadow: var(--shadow-md);
}

.habit-card.active {
    border-color: var(--primary);
    background: var(--card-bg-hover);
    box-shadow: var(--shadow-glow);
}

.habit-card.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.habit-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.habit-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.habit-streak {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.add-habit-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 15px 25px;
    background: transparent;
    border: 2px dashed var(--text-muted);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.add-habit-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

/* ============================================
   STATS DASHBOARD
   ============================================ */
.stats-dashboard {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    text-align: center;
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* XP Progress Bar */
.xp-progress {
    margin-top: 20px;
}

.xp-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.xp-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0%;
    transition: width 0.8s ease;
    position: relative;
}

.xp-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.xp-text {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   BADGES SECTION
   ============================================ */
.badges-section {
    margin-bottom: 30px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.badge-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px 15px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.badge-card.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.badge-card.unlocked {
    border: 2px solid var(--warning);
    animation: badgeUnlock 0.6s ease;
}

@keyframes badgeUnlock {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.badge-card:hover:not(.locked) {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.badge-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.badge-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.badge-requirement {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.badge-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    opacity: 0.7;
}

/* ============================================
   MISTAKE LOG SECTION
   ============================================ */
.mistake-log-section {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.log-mistake-btn {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0 auto 25px;
    padding: 12px 25px;
    background: rgba(230, 57, 70, 0.2);
    border: 2px solid var(--danger);
    border-radius: var(--radius-md);
    color: var(--danger);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.log-mistake-btn:hover {
    background: rgba(230, 57, 70, 0.3);
    transform: translateY(-2px);
}

.mistake-history {
    max-height: 300px;
    overflow-y: auto;
}

.mistake-entry {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 10px;
    border-left: 3px solid var(--danger);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.mistake-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.mistake-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.no-mistakes {
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
    font-style: italic;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 30px;
    width: 90%;
    max-width: 450px;
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.modal textarea,
.modal input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: border-color var(--transition-fast);
}

.modal textarea:focus,
.modal input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-reset {
    flex: 1;
    padding: 12px 20px;
    background: var(--danger);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-reset:hover {
    background: #c5303c;
    transform: translateY(-2px);
}

.btn-confirm {
    flex: 1;
    padding: 12px 20px;
    background: var(--success);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-confirm:hover {
    background: #25a847;
    transform: translateY(-2px);
}

.btn-cancel {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid var(--text-muted);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-cancel:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 15px 30px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 600;
    opacity: 0;
    transition: all var(--transition-normal);
    border-left: 4px solid var(--success);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    border-left-color: var(--danger);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 0.5s ease;
}

@keyframes countUp {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.count-animate {
    animation: countUp 0.4s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile Small (320px+) */
@media (max-width: 480px) {
    .app-container {
        padding: 15px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .streak-hero {
        padding: 30px 20px;
    }
    
    .streak-number {
        font-size: 4rem;
    }
    
    .flame {
        font-size: 3rem;
    }
    
    .checkin-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    
    .quote-text {
        font-size: 0.95rem;
    }
    
    .habit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal {
        padding: 20px;
        width: 95%;
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .app-container {
        padding: 30px;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .streak-number {
        font-size: 7rem;
    }
    
    .habit-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .badges-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .app-container {
        padding: 40px;
    }
    
    .habit-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .badges-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .app-container {
        max-width: 1400px;
    }
    
    .streak-number {
        font-size: 8rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--card-bg-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection Styling */
::selection {
    background: var(--primary);
    color: white;
}

/* ============================================
   PWA INSTALL BUTTON
   ============================================ */
#install-pwa-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 700;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: all var(--transition-normal);
    animation: slideInRight 0.5s ease;
}

#install-pwa-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

#install-pwa-btn:active {
    transform: translateY(0) scale(0.98);
}

#install-pwa-btn svg {
    width: 20px;
    height: 20px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   NETWORK STATUS INDICATOR
   ============================================ */
#network-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--card-bg);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 700;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    animation: fadeIn 0.3s ease;
}

#network-indicator.online {
    border: 1px solid var(--success);
}

#network-indicator.offline {
    border: 1px solid var(--warning);
    animation: pulseWarning 2s ease-in-out infinite;
}

.network-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.online .network-dot {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.offline .network-dot {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

@keyframes pulseWarning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   UPDATE NOTIFICATION
   ============================================ */
#update-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    z-index: 700;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.5s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.update-actions {
    display: flex;
    gap: 10px;
}

.update-now-btn {
    padding: 8px 18px;
    background: var(--success);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.update-now-btn:hover {
    background: #25a847;
    transform: translateY(-1px);
}

.update-later-btn {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--text-muted);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.update-later-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* ============================================
   PULSE HIGHLIGHT ANIMATION (for shortcuts)
   ============================================ */
@keyframes pulse-highlight {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 107, 53, 0);
    }
}

/* ============================================
   RESPONSIVE PWA ELEMENTS
   ============================================ */
@media (max-width: 480px) {
    #install-pwa-btn {
        top: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    #install-pwa-btn span {
        display: none;
    }
    
    #network-indicator {
        bottom: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    
    #update-notification {
        bottom: 60px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        flex-direction: column;
        text-align: center;
    }
    
    .update-actions {
        width: 100%;
        justify-content: center;
    }
}
