* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html, body {
    height: 100%;
}

/* DOTTED GRID BACKGROUND */
body {
    background: #050505;
    font-family: 'Inter', 'Segoe UI', system-ui, monospace;
    position: relative;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: radial-gradient(circle at 1px 1px, #2d3e2d 0.8px, transparent 0.8px);
    background-size: 28px 28px;
}

.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.2;
    filter: grayscale(80%) brightness(0.5) contrast(1.1);
    z-index: 0;
    pointer-events: none;
}

/* ========== LOGO (scaled up) ========== */
.static-logo {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    text-align: center;
}

.logo-image {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    background-color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    cursor: pointer;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid #3a5a3a;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.logo-image:hover {
    transform: scale(1.02);
    border-color: #6f9e6f;
}

.brand-name {
    margin-top: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.brand-name span:first-child {
    color: #b0b0b0;
}
.brand-name span:last-child {
    color: #b8deb8;
}

/* ========== FLOATING BUTTONS (scaled) ========== */
.help-button, .credit-button {
    position: fixed;
    bottom: 28px;
    z-index: 200;
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid #b0b0b0;
    border-radius: 48px;
    padding: 9px 24px;
    cursor: pointer;
    transition: all 0.08s linear;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace, 'Segoe UI';
    font-weight: 600;
    font-size: 0.85rem;
    color: #c8eac8;
    letter-spacing: 0.6px;
}

.help-button {
    left: 28px;
}

.credit-button {
    right: 28px;
}

.help-button:hover, .credit-button:hover {
    transform: scale(1.02);
    border-color: #cfdfcf;
    color: #f0fff0;
}

/* ========== MODAL OVERLAYS (scaled) ========== */
.how-to-overlay, .credit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(14px);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.how-to-overlay.active, .credit-overlay.active {
    opacity: 1;
    visibility: visible;
}

.how-to-box-modal, .credit-box-modal {
    width: 90%;
    max-width: 520px;
    background: #0e0e0e;
    backdrop-filter: blur(10px);
    border: 1px solid #6e8e6e;
    border-radius: 28px;
    padding: 28px;
    cursor: default;
    box-shadow: 0 20px 35px rgba(0,0,0,0.8);
}

.how-to-title-modal, .credit-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #eeffee;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #3a3a3a;
    padding-bottom: 10px;
    letter-spacing: 1.5px;
}

.how-to-text-modal, .credit-text {
    color: #c6c6c6;
    font-size: 0.9rem;
    line-height: 1.6;
}
.how-to-text-modal p { margin-bottom: 10px; }
.how-to-text-modal ul { list-style: none; margin: 8px 0; }
.how-to-text-modal li { 
    padding: 5px 0; 
    font-size: 0.84rem; 
    border-left: 2px solid #7ea07e; 
    padding-left: 12px; 
    margin: 6px 0; 
}
.how-to-text-modal hr, .credit-text hr { margin: 14px 0; border-color: #3a3a3a; }

.close-hint, .close-hint-credit {
    text-align: center;
    margin-top: 18px;
    font-size: 0.68rem;
    color: #7a7a7a;
    border-top: 1px solid #3a3a3a;
    padding-top: 12px;
}

/* ========== MAIN LAYOUT (bigger) ========== */
.main-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.dashboard {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ========== LOADING SCREEN (scaled) ========== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #030303;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

.loading-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.loading-logo {
    width: 110px;
    height: 110px;
    background: #0a0a0a;
    border-radius: 28px;
    border: 2px solid #4a8e4a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: pulse 1.2s ease-in-out infinite;
}

.loading-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; border-color: #4a8e4a; }
    50% { transform: scale(1.05); opacity: 1; border-color: #9bda9b; }
    100% { transform: scale(0.95); opacity: 0.7; border-color: #4a8e4a; }
}

.loading-text {
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 5px;
    color: #a3e2a3;
    font-weight: 500;
}

.loading-bar-container {
    width: 260px;
    height: 5px;
    background: #1e241e;
    border-radius: 6px;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: #85cf85;
    transition: width 0.15s linear;
}

.loading-sub {
    font-size: 0.7rem;
    color: #7aa87a;
    letter-spacing: 1.5px;
}

/* ========== MAIN CARD (bigger) ========== */
.app-card {
    width: 100%;
    background: rgba(4, 4, 4, 0.9);
    backdrop-filter: blur(14px);
    border-radius: 36px;
    padding: 1.8rem 1.6rem;
    border: 1px solid #3a683a;
    text-align: center;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.9);
}

/* ========== TYPOGRAPHY (scaled) ========== */
.title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.leaf {
    font-size: 2rem;
    filter: grayscale(30%);
    opacity: 0.9;
}

h1 {
    font-size: 2.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4f0d4, #f0fff0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 3px;
}

.subtitle {
    color: #e8f5e8;
    font-size: 0.6rem;
    letter-spacing: 4px;
    margin-bottom: 1.3rem;
    opacity: 0.8;
}

/* ========== SQUARE RESOLVE BARS (bigger) ========== */
.circles-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 14px 6px;
    margin-bottom: 1.3rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 28px;
}

.bubble {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 1.5px solid #cfefcf;
    background: #141c14;
    position: relative;
    overflow: hidden;
}

.fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #c8eac8;
    transition: height 0.15s ease-out;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    background: #0e0e0e;
    border-radius: 48px;
    padding: 0.7rem 1.2rem;
    margin-bottom: 1.2rem;
    border: 1px solid #3c6e3c;
}

.stat-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #a8d0a8;
}
.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e0e0e0;
}

.streak-box {
    background: #0a100a;
    border-radius: 32px;
    padding: 0.7rem 1.2rem;
    margin-bottom: 1.3rem;
    border: 1px solid #4a784a;
}
.streak-box.hidden { display: none; }
.streak-header {
    display: flex;
    justify-content: space-between;
    color: #c8eac8;
    font-size: 0.7rem;
    margin-bottom: 8px;
}
.streak-track {
    background: #1e241e;
    border-radius: 16px;
    height: 8px;
    overflow: hidden;
}
.streak-fill {
    width: 0%;
    height: 100%;
    background: #c8f0c8;
    border-radius: 16px;
    transition: width 0.2s ease;
}

.beast-text, .great-control-text {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    margin: 6px 0;
    opacity: 0;
    transition: opacity 0.1s;
    letter-spacing: 1.5px;
}
.beast-text.show, .great-control-text.show { opacity: 1; }
.beast-text { background: linear-gradient(135deg, #b8e8b8, #6fb06f);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.great-control-text { background: linear-gradient(135deg, #bedfbe, #81ba81);
    -webkit-background-clip: text; background-clip: text; color: transparent; }

/* INPUTS & BUTTONS (bigger) */
.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}
.hours-wrap {
    background: #141414;
    border-radius: 56px;
    padding: 5px 5px 5px 24px;
    border: 1px solid #3e7e3e;
    display: flex;
    align-items: center;
}
.hours-wrap label {
    color: #d0f0d0;
    font-weight: 600;
    margin-right: 12px;
    font-size: 0.9rem;
}
#hoursInput {
    background: #020502;
    border: none;
    padding: 10px 14px;
    width: 100px;
    border-radius: 48px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: #eeffee;
    outline: 1px solid #3e8e3e;
}
.btn {
    border: none;
    border-radius: 56px;
    padding: 10px 26px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.08s linear;
    font-family: monospace;
}
.btn-primary {
    background: #1e2e1e;
    color: #f0f0f0;
    width: 200px;
    border: 1px solid #60a060;
}
.btn-primary:hover { background: #2a3e2a; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(2px); }

.revert-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}
.revert-counter {
    background: #141414;
    border-radius: 40px;
    padding: 6px 18px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #cacaca;
    border: 1px solid #5c8a5c;
}
.btn-revert {
    background: #1e281e;
    border: 1px solid #6ea86e;
    color: #e2e2e2;
    padding: 8px 24px;
    font-size: 0.75rem;
}
.btn-revert.disabled {
    background: #1c1c1c;
    border-color: #4f4f4f;
    color: #6a6a6a;
    cursor: not-allowed;
    pointer-events: none;
}
.btn-revert:hover:not(.disabled) { background: #2a3e2a; }

.btn-reset {
    background: #1a1a1a;
    border: 1px solid #6e6e6e;
    color: #cecece;
    padding: 8px 24px;
    font-size: 0.75rem;
}
.btn-reset:hover { background: #2a2a2a; border-color: #8e8e8e; }

.button-group {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 18px;
}
.message {
    min-height: 2rem;
    color: #cacaca;
    font-size: 0.7rem;
    margin-top: 12px;
}
.big-message {
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: #dcdcdc;
    margin-top: 10px;
    padding: 8px;
    background: #181818;
    border-radius: 20px;
    animation: fadeOutMsg 2s forwards;
}
@keyframes fadeOutMsg {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; display: none; }
}
.note {
    color: #6a8a6a;
    font-size: 0.6rem;
    margin-top: 16px;
}
.footer-credit {
    text-align: center;
    margin-top: 14px;
    color: #527252;
    font-size: 0.55rem;
    letter-spacing: 1px;
}

@media (max-width: 680px) {
    .dashboard { max-width: 95%; }
    .bubble { width: 34px; height: 34px; min-width: 34px; }
    h1 { font-size: 1.7rem; }
    .btn-primary { width: 170px; font-size: 0.8rem; }
    .help-button, .credit-button { padding: 7px 18px; font-size: 0.75rem; }
    .logo-image { width: 54px; height: 54px; }
    .main-layout { padding: 1rem; }
    .stats-bar { padding: 0.5rem 1rem; }
    .stat-value { font-size: 1.3rem; }
}

@media (max-width: 520px) {
    .bubble { width: 28px; height: 28px; min-width: 28px; }
    .leaf { font-size: 1.5rem; }
    h1 { font-size: 1.4rem; }
    .btn-primary { width: 150px; font-size: 0.7rem; padding: 8px 18px; }
    .help-button, .credit-button { bottom: 16px; padding: 5px 14px; font-size: 0.65rem; }
}
input:focus { outline: 1px solid #7fc07f; background: #0a120a; }
::-webkit-scrollbar { width: 4px; background: #121212; }
::-webkit-scrollbar-thumb { background: #4a6e4a; border-radius: 8px; }