/* ============================================ */
/* RESET AND BASE STYLES */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html, body {
    height: 100%;
}

/* ============================================ */
/* BODY AND BACKGROUND STYLES */
/* ============================================ */
body {
    background: #0a0f0a;
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
    position: relative;
    overflow-x: hidden;
    transition: background 1.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Background image layer - behind canvas, unaffected by zoom, 50% opacity */
.bg-image-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Assets/images/z1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.5;
    z-index: 0;
    transition: background-image 0.5s ease;
    pointer-events: none;
}

body.red-theme .bg-image-layer { background-image: url('../Assets/images/a1.jpeg'); }
body.max-beast .bg-image-layer { background-image: url('../Assets/images/a1.jpeg'); }

body.red-theme { background: #1a0202; }
body.cyan-theme { background: #030e1a; }
body.gold-theme { background: #1a1505; }
body.max-beast { background: #2a0000; }

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ============================================ */
/* LOGO AND HEADER STYLES */
/* ============================================ */
.static-logo {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
    text-align: center;
}

.logo-image {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(96, 255, 96, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    margin: 0 auto;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.logo-image:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(96, 255, 96, 0.7);
}

body.red-theme .logo-image { box-shadow: 0 0 20px rgba(255, 64, 64, 0.4); }
body.red-theme .logo-image:hover { box-shadow: 0 0 30px rgba(255, 64, 64, 0.7); }
body.cyan-theme .logo-image { box-shadow: 0 0 20px rgba(30, 100, 180, 0.4); }
body.cyan-theme .logo-image:hover { box-shadow: 0 0 30px rgba(30, 100, 180, 0.7); }
body.gold-theme .logo-image { box-shadow: 0 0 20px rgba(255, 200, 50, 0.4); }
body.gold-theme .logo-image:hover { box-shadow: 0 0 30px rgba(255, 200, 50, 0.7); }

.brand-name {
    margin-top: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.brand-name span:first-child { color: #ffffff; }
.brand-name span:last-child { color: #60ff60; }
body.red-theme .brand-name span:last-child { color: #ff6060; }
body.cyan-theme .brand-name span:last-child { color: #60aacc; }
body.gold-theme .brand-name span:last-child { color: #ffcc44; }

/* ============================================ */
/* FLOATING HELP BUTTON - LEFT SIDE */
/* ============================================ */
.help-button {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 200;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid #40cc60;
    border-radius: 50px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #80ff80;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.help-button:hover { transform: scale(1.02); border-color: #80ff80; box-shadow: 0 0 15px rgba(96, 255, 96, 0.3); }
.help-button:active { transform: scale(0.98); }
body.red-theme .help-button { border-color: #ff6060; color: #ff8080; }
body.cyan-theme .help-button { border-color: #1a6e9e; color: #60aacc; }
body.gold-theme .help-button { border-color: #ffcc33; color: #ffcc44; }

/* ============================================ */
/* FLOATING CREDIT BUTTON - RIGHT SIDE */
/* ============================================ */
.credit-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid #40cc60;
    border-radius: 50px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #80ff80;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.credit-button:hover { transform: scale(1.02); border-color: #80ff80; box-shadow: 0 0 15px rgba(96, 255, 96, 0.3); }
.credit-button:active { transform: scale(0.98); }
body.red-theme .credit-button { border-color: #ff6060; color: #ff8080; }
body.cyan-theme .credit-button { border-color: #00a2ff; color: #60aacc; }
body.gold-theme .credit-button { border-color: #ffcc33; color: #ffcc44; }

/* ============================================ */
/* CREDIT MODAL OVERLAY */
/* ============================================ */
.credit-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}
.credit-overlay.active { opacity: 1; visibility: visible; }
.credit-box-modal {
    width: 90%; max-width: 450px;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(16px);
    border: 2px solid #40cc60;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(96,255,96,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
}
.credit-overlay.active .credit-box-modal { transform: scale(1); }
body.red-theme .credit-box-modal { border-color: #ff6060; }
body.cyan-theme .credit-box-modal { border-color: #00a2ff; }
body.gold-theme .credit-box-modal { border-color: #ffcc33; }

.credit-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #80ff80;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
body.red-theme .credit-title { color: #ff8080; }
body.cyan-theme .credit-title { color: #00aeff; }
body.gold-theme .credit-title { color: #ffcc44; }

.credit-text { color: #ccc; font-size: 0.9rem; line-height: 1.6; }
.credit-text p { margin-bottom: 12px; }
.credit-text hr { margin: 16px 0; border-color: #333; }
.credit-email {
    font-family: monospace;
    color: #80ff80;
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
}
body.red-theme .credit-email { color: #ff8080; }
body.cyan-theme .credit-email { color: #60aacc; }
body.gold-theme .credit-email { color: #ffcc44; }
.close-hint-credit { text-align: center; margin-top: 16px; font-size: 0.7rem; color: #888; }

/* ============================================ */
/* MAIN LAYOUT - SYMMETRICAL */
/* ============================================ */
.main-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* ============================================ */
/* HOW IT WORKS - MODAL OVERLAY */
/* ============================================ */
.how-to-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}
.how-to-overlay.active { opacity: 1; visibility: visible; }
.how-to-box-modal {
    width: 90%; max-width: 500px;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(16px);
    border: 2px solid #40cc60;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(96,255,96,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
    max-height: 80vh;
    overflow-y: auto;
}
.how-to-overlay.active .how-to-box-modal { transform: scale(1); }
body.red-theme .how-to-box-modal { border-color: #ff6060; }
body.cyan-theme .how-to-box-modal { border-color: #00a2ff; }
body.gold-theme .how-to-box-modal { border-color: #ffcc33; }

.how-to-title-modal {
    font-size: 1.3rem;
    font-weight: bold;
    color: #80ff80;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 2px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
body.red-theme .how-to-title-modal { color: #ff8080; }
body.cyan-theme .how-to-title-modal { color: #00aeff; }
body.gold-theme .how-to-title-modal { color: #ffcc44; }

.how-to-text-modal { color: #ccc; font-size: 0.85rem; line-height: 1.6; }
.how-to-text-modal p { margin-bottom: 10px; }
.how-to-text-modal ul { list-style: none; margin-top: 8px; margin-bottom: 8px; }
.how-to-text-modal li { padding: 5px 0; font-size: 0.8rem; }
.how-to-text-modal hr { margin: 12px 0; border-color: #333; }
.close-hint { text-align: center; margin-top: 16px; font-size: 0.7rem; color: #888; border-top: 1px solid #333; padding-top: 12px; }
.how-to-box-original { display: none; }

/* ============================================ */
/* DASHBOARD - SIZE REDUCED BY 20% AND SHIFTED RIGHT */
/* ============================================ */
.dashboard {
    flex-shrink: 0;
    width: 747px;  /* 684px - 20% = 547.2px */
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: translateX(1px);  /* Shift right by 60px */
}

/* ============================================ */
/* MOTIVATION PANEL - MOVED 40% BELOW */
/* ============================================ */
.motivation-panel {
    width: 378px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    border-radius: 36px;
    padding: 36px 24px;
    border: 1px solid rgba(55, 255, 55, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    margin-right: 0;
    transform: translateY(40%);  /* Move down 20% relative to its own height */
}

body.red-theme .motivation-panel {
    border-color: rgba(255, 80, 80, 0.5);
    background: rgba(30, 10, 10, 0.7);
}

body.cyan-theme .motivation-panel {
    border-color: rgba(0, 162, 255, 0.795);
}

body.gold-theme .motivation-panel {
    border-color: rgba(255, 200, 50, 0.5);
}

.motivation-text {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #ffdf8c;
    text-shadow: 0 0 10px rgba(255, 200, 100, 0.3);
}

body.red-theme .motivation-text {
    color: #ff8080;
}

.motivation-sub {
    font-size: 1rem;
    color: #aaaaaa;
    margin-top: 12px;
    letter-spacing: 1px;
}

.motivation-divider {
    width: 60px;
    height: 2px;
    background: #555;
    margin: 18px auto;
}

.lock-message {
    font-size: 0.85rem;
    color: #ffaa44;
    margin-top: 12px;
    text-align: center;
}

body.red-theme .lock-message {
    color: #ff8080;
}

/* ============================================ */
/* SPLASH SCREEN */
/* ============================================ */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0f0a;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

.splash-video-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: 0 0 48px rgba(96, 255, 96, 0.3);
    animation: videoContainerAppear 0.8s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(-30px);
}
@keyframes videoContainerAppear {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}
.splash-video-bg { width: 100%; height: auto; max-height: 45vh; object-fit: cover; display: block; border-radius: 1.6rem; }
.splash-text-container { text-align: center; margin-top: 1.6rem; animation: textAppear 0.8s ease-out 0.6s forwards; opacity: 0; transform: translateY(30px); }
@keyframes textAppear {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
.splash-content { text-align: center; background: rgba(0,0,0,0.45); padding: 1.4rem 2.4rem; border-radius: 2.4rem; backdrop-filter: blur(15px); border: 1px solid rgba(96, 255, 96, 0.4); box-shadow: 0 0 40px rgba(96, 255, 96, 0.2); }
.splash-logo { font-size: 3.2rem; display: flex; align-items: center; justify-content: center; gap: 12px; color: #60ff60; text-shadow: 0 0 32px #60ff60, 0 0 64px #30cc30; animation: logoPulse 1.5s ease-out; }
@keyframes logoPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
.splash-sub { font-size: 0.9rem; color: #a0ffa0; letter-spacing: 6px; margin-top: 10px; }

/* ============================================ */
/* MAIN CARD STYLES (SCALED) */
/* ============================================ */
.app-card {
    width: 100%;
    background: rgba(15, 35, 15, 0.55);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 1.4rem 1.4rem 1.8rem;
    border: 5px solid rgba(80, 255, 80, 0.3);
    box-shadow: 0 16px 32px rgba(0,0,0,0.6), inset 0 0 24px rgba(0,255,0,0.05);
    text-align: center;
    transition: all 0.4s ease;
    animation: cardAppear 0.6s ease-out 2.8s both;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================ */
/* BUBBLE STYLES - WITH BORDER & THEME-AWARE SHADOW */
/* ============================================ */
.bubble {
    width: 37px;  /* Reduced proportionally: 46px - 20% = 36.8px */
    height: 37px;
    min-width: 37px;
    border-radius: 50%;
    border: 2px solid rgba(80, 255, 100, 0.7);
    background: rgba(15, 15, 15, 0.6);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 12px #00000080, 0 4px 10px #00000060, 0 0 12px rgba(64, 255, 64, 0.4);
    backdrop-filter: blur(2px);
    transition: all 0.2s ease;
}

.fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(0deg, #1a8e30, #40cc60, #80ff80);
    transition: height 1s cubic-bezier(0.22, 0.97, 0.33, 1), background 0.3s;
    box-shadow: inset 0 4px 6px #ffffff60, inset 0 -4px 6px #00000040;
}

/* FULL BUBBLE CONTINUOUS GLOW */
.bubble.full-bubble {
    animation: fullBubbleGlow 1.5s ease-in-out infinite;
}
@keyframes fullBubbleGlow {
    0% { box-shadow: inset 0 0 12px #00000080, 0 4px 10px #00000060, 0 0 12px rgba(64, 255, 64, 0.6); border-color: rgba(80, 255, 100, 0.9); }
    50% { box-shadow: inset 0 0 20px #00000080, 0 4px 15px #00000060, 0 0 25px rgba(64, 255, 64, 1); border-color: rgba(80, 255, 100, 1); }
    100% { box-shadow: inset 0 0 12px #00000080, 0 4px 10px #00000060, 0 0 12px rgba(64, 255, 64, 0.6); border-color: rgba(80, 255, 100, 0.9); }
}

/* Theme overrides for bubble border and glow */
.app-card.cyan-tier .bubble {
    border-color: rgba(0, 162, 255, 0.8);
    box-shadow: inset 0 0 12px #00000080, 0 4px 10px #00000060, 0 0 12px rgba(0, 162, 255, 0.5);
}
.app-card.cyan-tier .fill {
    background: linear-gradient(0deg, #006eff, #00a2ff, #54c0ff);
}
.app-card.cyan-tier .bubble.full-bubble {
    animation: fullBubbleGlowCyan 1.5s ease-in-out infinite;
}
@keyframes fullBubbleGlowCyan {
    0% { box-shadow: inset 0 0 12px #00000080, 0 4px 10px #00000060, 0 0 12px rgba(0, 162, 255, 0.6); border-color: rgba(0, 162, 255, 0.9); }
    50% { box-shadow: inset 0 0 20px #00000080, 0 4px 15px #00000060, 0 0 25px rgba(0, 162, 255, 1); border-color: rgba(0, 162, 255, 1); }
    100% { box-shadow: inset 0 0 12px #00000080, 0 4px 10px #00000060, 0 0 12px rgba(0, 162, 255, 0.6); border-color: rgba(0, 162, 255, 0.9); }
}

.app-card.gold-tier .bubble {
    border-color: rgba(255, 200, 50, 0.8);
    box-shadow: inset 0 0 12px #00000080, 0 4px 10px #00000060, 0 0 12px rgba(255, 200, 50, 0.5);
}
.app-card.gold-tier .fill {
    background: linear-gradient(0deg, #b87c00, #e6a017, #ffcc44);
}
.app-card.gold-tier .bubble.full-bubble {
    animation: fullBubbleGlowGold 1.5s ease-in-out infinite;
}
@keyframes fullBubbleGlowGold {
    0% { box-shadow: inset 0 0 12px #00000080, 0 4px 10px #00000060, 0 0 12px rgba(255, 200, 50, 0.6); border-color: rgba(255, 200, 50, 0.9); }
    50% { box-shadow: inset 0 0 20px #00000080, 0 4px 15px #00000060, 0 0 25px rgba(255, 200, 50, 1); border-color: rgba(255, 200, 50, 1); }
    100% { box-shadow: inset 0 0 12px #00000080, 0 4px 10px #00000060, 0 0 12px rgba(255, 200, 50, 0.6); border-color: rgba(255, 200, 50, 0.9); }
}

.app-card.max-tier .bubble {
    border-color: rgba(255, 80, 80, 0.8);
    box-shadow: inset 0 0 12px #00000080, 0 4px 10px #00000060, 0 0 12px rgba(255, 80, 80, 0.5);
}
.app-card.max-tier .fill {
    background: linear-gradient(0deg, #8b1a1a, #cc4040, #ff6060);
}
.app-card.max-tier .bubble.full-bubble {
    animation: fullBubbleGlowRed 0.5s ease-in-out infinite;
}
@keyframes fullBubbleGlowRed {
    0% { box-shadow: inset 0 0 12px #00000080, 0 4px 10px #00000060, 0 0 12px rgba(255, 80, 80, 0.6); border-color: rgba(255, 80, 80, 0.9); }
    50% { box-shadow: inset 0 0 50px #00000080, 0 4px 55px #00000060, 0 0 25px rgba(255, 80, 80, 1); border-color: rgba(255, 80, 80, 1); }
    100% { box-shadow: inset 0 0 12px #00000080, 0 4px 10px #00000060, 0 0 12px rgba(255, 80, 80, 0.6); border-color: rgba(255, 80, 80, 0.9); }
}

/* Tiered card backgrounds */
.app-card.cyan-tier {
    background: rgba(3, 14, 26, 0.85);
    border-color: rgba(0, 162, 255, 0.5);
    box-shadow: 0 16px 32px rgba(0,0,0,0.7), inset 0 0 40px rgba(26, 154, 228, 0.541);
}
.app-card.cyan-tier.full-state {
    border-color: rgb(0, 170, 255);
    box-shadow: 0 0 48px rgba(48, 179, 255, 0.5), inset 0 0 40px rgba(26, 110, 158, 0.2);
    animation: cyanGlowPulse 2.5s infinite;
}
.app-card.gold-tier {
    background: rgba(26, 20, 5, 0.85);
    border-color: rgba(255, 200, 50, 0.5);
    box-shadow: 0 16px 32px rgba(0,0,0,0.7), inset 0 0 40px rgba(255, 200, 50, 0.15);
}
.app-card.gold-tier.full-state {
    border-color: rgba(255, 220, 80, 0.7);
    box-shadow: 0 0 48px rgba(255, 200, 50, 0.5), inset 0 0 40px rgba(255, 200, 50, 0.2);
    animation: goldGlowPulse 2.5s infinite;
}
@keyframes goldGlowPulse {
    0%,100% { box-shadow: 0 0 40px rgba(255,200,50,0.4), inset 0 0 32px rgba(255,200,50,0.1); }
    50% { box-shadow: 0 0 80px rgba(255,200,50,0.7), inset 0 0 48px rgba(255,200,50,0.25); }
}
@keyframes cyanGlowPulse {
    0%,100% { box-shadow: 0 0 40px rgb(0, 162, 255), inset 0 0 32px rgba(26,110,158,0.1); }
    50% { box-shadow: 0 0 80px rgba(26,110,158,0.7), inset 0 0 48px rgba(26,110,158,0.25); }
}
.app-card.max-tier {
    background: rgba(40, 12, 12, 0.65);
    border-color: rgba(255, 80, 80, 0.5);
    box-shadow: 0 16px 32px rgba(0,0,0,0.7), inset 0 0 40px rgba(255,0,0,0.15);
}
.app-card.full-state {
    border-color: rgba(81, 255, 0, 0.7);
    box-shadow: 0 0 48px rgba(30, 175, 11, 0.4), inset 0 0 40px rgba(100,255,100,0.15);
    animation: glowPulse 3s infinite;
}
.app-card.cyan-tier.full-state { border-color: rgba(0, 170, 255, 0.863); }
.app-card.gold-tier.full-state { border-color: rgba(255, 220, 80, 0.7); }
.app-card.max-tier.full-state {
    border-color: rgba(255, 80, 80, 0.8);
    box-shadow: 0 0 60px rgba(255,80,80,0.7), inset 0 0 48px rgba(255,80,80,0.2);
    animation: redGlowPulse 2.5s infinite;
}

/* ============================================ */
/* TYPOGRAPHY (SCALED) */
/* ============================================ */
.title-row { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 0.2rem; }
.leaf {
    font-size: 1.5rem;  /* Reduced from 1.8rem */
    filter: drop-shadow(0 0 10px #60ff60);
    animation: leafFloat 3s ease-in-out infinite;
}
.app-card.cyan-tier .leaf { filter: drop-shadow(0 0 10px #0792e2); }
.app-card.gold-tier .leaf { filter: drop-shadow(0 0 10px #ffcc33); }
.app-card.max-tier .leaf { filter: drop-shadow(0 0 12px #ff6060); }
@keyframes leafFloat { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-2px); } }

h1 {
    font-size: 1.5rem;  /* Reduced from 1.8rem */
    font-weight: 700;
    background: linear-gradient(135deg, #c0ffc0, #60ff60);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}
.app-card.cyan-tier h1 { background: linear-gradient(135deg, #268fc0, #0c89d1); -webkit-background-clip: text; background-clip: text; }
.app-card.gold-tier h1 { background: linear-gradient(135deg, #ffdd66, #ffaa00); -webkit-background-clip: text; background-clip: text; }
.app-card.max-tier h1 { background: linear-gradient(135deg, #ff8080, #ff3030); -webkit-background-clip: text; background-clip: text; text-shadow: 0 0 16px rgba(255,0,0,0.5); }

.subtitle {
    color: #80ff80;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.45rem;  /* Reduced from 0.5rem */
    margin-bottom: 1.2rem;
    opacity: 0.8;
}
.app-card.cyan-tier .subtitle { color: #1999d4; }
.app-card.gold-tier .subtitle { color: #ffcc44; }
.app-card.max-tier .subtitle { color: #ff8080; }

/* ============================================ */
/* BUBBLE CONTAINER */
/* ============================================ */
.circles-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;  /* Reduced from 8px */
    flex-wrap: wrap;
    padding: 8px 5px;  /* Reduced padding */
    margin-bottom: 1rem;
    min-height: 60px;  /* Reduced from 70px */
    background: rgba(0,0,0,0.15);
    border-radius: 40px;
}

.fill.fill-glowing {
    animation: fillGlowAnim 0.8s ease-out;
}
@keyframes fillGlowAnim {
    0% { filter: brightness(1); box-shadow: inset 0 4px 6px #ffffff60, inset 0 -4px 6px #00000040; }
    50% { filter: brightness(1.8); box-shadow: 0 0 24px currentColor, inset 0 4px 12px #ffffffaa; }
    100% { filter: brightness(1); box-shadow: inset 0 4px 6px #ffffff60, inset 0 -4px 6px #00000040; }
}
.bubble.new-bubble { animation: bubblePop 0.6s ease-out; }
@keyframes bubblePop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================ */
/* STATS AND STREAK STYLES (SCALED) */
/* ============================================ */
.stats-bar {
    display: flex;
    justify-content: space-around;
    background: rgba(10, 25, 10, 0.6);
    border-radius: 28px;
    padding: 0.4rem 0.8rem;  /* Reduced padding */
    margin-bottom: 0.8rem;  /* Reduced margin */
    border: 1px solid rgba(80,255,80,0.3);
    backdrop-filter: blur(5px);
}
.stat { text-align: center; }
.stat-label { font-size: 0.42rem; text-transform: uppercase; letter-spacing: 2px; color: #80ff80; }
.stat-value { font-size: 1rem; font-weight: 700; color: white; text-shadow: 0 2px 8px #000; }

.streak-box {
    background: rgba(0,0,0,0.4);
    border-radius: 28px;
    padding: 0.3rem 0.7rem;  /* Reduced padding */
    margin-bottom: 1rem;  /* Reduced margin */
    border: 1px solid rgba(255,200,100,0.4);
    transition: all 0.3s ease;
}
.streak-box.hidden { display: none; }
.streak-box.beast-mode {
    border-color: #ff4040;
    background: rgba(255,30,30,0.15);
    box-shadow: 0 0 32px rgba(255,0,0,0.5);
    animation: beastPulse 1s ease-in-out infinite;
}
@keyframes beastPulse {
    0%,100% { box-shadow: 0 0 24px rgba(255,0,0,0.4); border-color: #ff4040; }
    50% { box-shadow: 0 0 56px rgba(255,0,0,0.8); border-color: #ff8080; }
}
.streak-header { display: flex; justify-content: space-between; color: #ffdf8c; font-size: 0.55rem; letter-spacing: 2px; margin-bottom: 4px; }
.streak-track { background: #0a150a; border-radius: 14px; height: 6px; overflow: hidden; }
.streak-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffb347, #ffd966, #ffe08c);
    border-radius: 14px;
    transition: width 0.8s ease;
    box-shadow: 0 0 6px #ffd966;
}

/* STATUS MESSAGES (SCALED) */
.beast-text {
    text-align: center; margin-top: 4px; font-size: 1rem; font-weight: 800; letter-spacing: 3px;
    background: linear-gradient(135deg, #ff4040, #ff8080, #ffcc00);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0 0 24px rgba(255,0,0,0.5);
    animation: beastTextPulse 0.8s ease-in-out infinite;
    opacity: 0; transform: scale(0.8); transition: all 0.3s ease;
}
.beast-text.show { opacity: 1; transform: scale(1); }
@keyframes beastTextPulse {
    0%,100% { text-shadow: 0 0 16px rgba(255,0,0,0.5); }
    50% { text-shadow: 0 0 40px rgba(255,0,0,0.9); }
}
.great-control-text {
    text-align: center; margin: 2px 0 8px;
    font-family: 'Segoe UI', 'Playfair Display', 'Georgia', serif;
    font-size: 1.1rem; font-weight: 800; letter-spacing: 4px;
    background: linear-gradient(135deg, #ffd700, #ff8c00, #ff4500, #ff6347);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0 0 24px rgba(255,100,0,0.6);
    animation: greatTextPulse 1.5s ease-in-out infinite;
    opacity: 0; transform: scale(0.9); transition: all 0.5s ease;
}
.great-control-text.show { opacity: 1; transform: scale(1); }
@keyframes greatTextPulse {
    0%,100% { text-shadow: 0 0 16px rgba(255,100,0,0.4); background-position: 0% 50%; }
    50% { text-shadow: 0 0 40px rgba(255,100,0,0.9); background-position: 100% 50%; }
}

/* INPUT AND BUTTON STYLES (SCALED) */
.input-group { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 6px; }
.hours-wrap {
    background: rgba(15, 35, 15, 0.8);
    border-radius: 40px;
    padding: 2px 2px 2px 14px;
    border: 1px solid #40cc60;
    display: flex;
    align-items: center;
}
.hours-wrap label { color: white; font-weight: 600; margin-right: 6px; font-size: 0.7rem; }
#hoursInput {
    background: #050a05;
    border: none;
    padding: 6px 10px;
    width: 75px;
    border-radius: 32px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    color: white;
    outline: 2px solid #2e8e40;
}
.btn { border: none; border-radius: 40px; padding: 7px 18px; font-weight: 700; font-size: 0.7rem; cursor: pointer; transition: all 0.1s; }
.btn-primary {
    background: linear-gradient(135deg, #40cc60, #1a8e2a);
    color: white;
    box-shadow: 0 5px 0 #0a2a0a, 0 3px 10px #00000060;
    width: 200px;           /* ← Increase from 160px to 200px */
    padding: 10px 24px;     /* ← Add more padding (was 7px 18px) */
    font-size: 0.85rem;     /* ← Increase from 0.7rem */
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #0a2a0a, 0 5px 12px #00000080; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #0a2a0a, 0 3px 8px #00000060; }

.revert-section { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; margin-bottom: 6px; }
.revert-counter {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 24px;
    padding: 6px 12px;        /* ← Increase padding for bigger box */
    font-size: 0.7rem;        /* ← Increase from 0.55rem */
    font-weight: 600;
    color: #ffaa44;
    border: 1px solid #ffaa44;
    white-space: nowrap;
}
.btn-revert {
    background: rgba(255, 165, 0, 0.7);
    border: 1px solid #ffa500;
    color: white;
    box-shadow: 0 3px 0 #8a5a00;
    padding: 10px 24px;
    font-size: 0.75rem;
}
.btn-revert.disabled {
    background: rgba(100, 100, 100, 0.5);
    border: 1px solid #666;
    color: #888;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}
.btn-reset {
    background: rgba(30, 20, 20, 0.8);
    border: 1px solid #a08080;
    color: white;
    box-shadow: 0 3px 0 #1a1010;
    padding: 10px 24px;
    font-size: 0.75rem;
}
.button-group { display: flex; justify-content: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.message { min-height: 1.6rem; color: #a0ffa0; font-size: 0.58rem; margin-top: 8px; font-weight: 500; }
.big-message {
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ffaa44;
    margin-top: 6px;
    padding: 5px;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    animation: fadeOutMsg 3s ease-out forwards;
}
@keyframes fadeOutMsg { 0% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; display: none; } }
.note { color: #60a060; font-size: 0.45rem; margin-top: 8px; }
.footer-credit { text-align: center; margin-top: 4px; padding: 5px 0; color: #9e9e9e; font-size: 0.45rem; letter-spacing: 0.5px; }

/* RESPONSIVE DESIGN (UPDATED FOR SCALED UI) */
@media (max-width: 1100px) {
    .main-layout { gap: 20px; padding: 1.5rem; }
    .dashboard { width: 500px; transform: translateX(30px); }
    .motivation-panel { width: 340px; transform: translateY(5%); }
}
@media (max-width: 950px) {
    .main-layout { flex-direction: column; align-items: center; gap: 20px; }
    .motivation-panel { width: 100%; max-width: 500px; margin-top: 10px; transform: translateY(0); }
    .dashboard { width: 85%; max-width: 500px; transform: translateX(0); }
    .help-button, .credit-button { bottom: 16px; padding: 8px 18px; font-size: 0.75rem; }
    .help-button { left: 16px; }
    .credit-button { right: 16px; }
}
@media (max-width: 550px) {
    .dashboard { padding: 0.6rem; transform: translateX(0); }
    .bubble { width: 30px; min-width: 30px; height: 30px; }
    .stat-value { font-size: 0.9rem; }
    h1 { font-size: 1.2rem; }
    .leaf { font-size: 1.2rem; }
    .beast-text { font-size: 0.8rem; }
    .great-control-text { font-size: 0.8rem; letter-spacing: 3px; }
    .splash-logo { font-size: 2rem; }
    .splash-sub { font-size: 0.56rem; letter-spacing: 4px; }
    .splash-content { padding: 0.8rem 1.2rem; }
    .splash-video-container { max-width: 95%; }
    .static-logo { top: 8px; right: 8px; }
    .logo-image { width: 48px; height: 48px; }
    .brand-name { font-size: 0.55rem; }
    .btn-revert, .btn-reset { padding: 4px 10px; font-size: 0.55rem; }
    .big-message { font-size: 0.65rem; }
    .revert-counter { padding: 3px 7px; font-size: 0.45rem; }
    .revert-section { gap: 10px; margin-top: 14px; }
    .button-group { gap: 12px; margin-top: 12px; }
    .motivation-panel { width: 100%; margin-top: 16px; padding: 20px 16px; transform: translateY(0); }
    .motivation-text { font-size: 1rem; }
    .motivation-sub { font-size: 0.75rem; }
    .help-button, .credit-button { bottom: 12px; padding: 5px 12px; font-size: 0.6rem; }
    .help-button { left: 12px; }
    .credit-button { right: 12px; }
    .how-to-box-modal { padding: 18px; max-height: 85vh; }
    .how-to-title-modal { font-size: 1rem; }
    .how-to-text-modal { font-size: 0.7rem; }
    .credit-box-modal { padding: 18px; }
    .credit-title { font-size: 1rem; }
    .credit-text { font-size: 0.75rem; }
}