:root {
    /* Colors */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-blue: #6485FA;
    --color-green: #64E16A;
    --color-red: #FF6B6B;
    --color-gray: #f0f0f0;
    --color-dark-gray: #212529;

    /* Brutalist Styling */
    --border-thick: 3px solid var(--color-black);
    --radius-lg: 20px;
    --radius-md: 15px;
    --shadow-main: 0 6px 0 0 var(--color-black);
    --shadow-active: 0 2px 0 0 var(--color-black);
}

/* New Utility Class: Use this on ALL cards/modals */
.brutal-card {
    background: var(--color-white);
    border: var(--border-thick);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    transition: transform 0.1s, box-shadow 0.1s;
}

.brutal-card:active {
    transform: translateY(4px);
    box-shadow: var(--shadow-active);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'DM Sans', sans-serif;
}

body {
    background-color: rgb(255, 254, 241);
    padding: 80px 20px 40px 20px;
    min-height: 100vh;
}

/* ========================================
   FIXED NAVIGATION BAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
}

.navbar-content {
    margin: 0 auto;
    padding: 15px 25px 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    font-family: 'DM Sans', sans-serif;
}

/* ========================================
   HEADER WITH MONEY DISPLAY
   ======================================== */

.header {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ========================================
   LOGO HEADER
   ======================================== */

.logo-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    padding: 0 16px 30px 16px;
}

/* ========================================
   LOGO TEXT BLOCK — unused on desktop, kept for mobile
   ======================================== */

.logo-text-block {
    display: contents;
}

/* ========================================
   LOGO WORDS — lines live here as pseudo-elements
   ======================================== */

.logo-word {
    font-family: 'Shrikhand', cursive;
    font-size: 42px;
    color: #212529;
    position: relative;
    z-index: 1;
    line-height: 1;
    letter-spacing: -0.5px;
    user-select: none;
    padding: 8px 0;
}

/* Top green line */
.logo-word::before {
    content: '';
    position: absolute;
    top: 0;
    height: 3.5px;
    background-color: #4CAA52;
    border-radius: 2px;
    z-index: 0;
}

/* Bottom green line */
.logo-word::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 3.5px;
    background-color: #4CAA52;
    border-radius: 1px;
    z-index: 0;
}

/* "Junior" — lines extend rightward off the word toward the donut */
.logo-word-left::before,
.logo-word-left::after {
    left: 0;
    right: -30px;
}

/* "Bucks" — lines extend leftward off the word toward the donut */
.logo-word-right::before,
.logo-word-right::after {
    right: 0;
    left: -30px;
}

/* ========================================
   MONEY DISPLAY (unchanged logic, z-index elevated)
   ======================================== */

.money-display {
    text-align: center;
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

.money-display svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}

.money-display-text {
    position: relative;
    z-index: 1;
    text-align: center;
}

.amount {
    font-size: 40px;
    font-weight: 700;
    color: #272727;
    margin-bottom: 2px;
}

.label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* ========================================
   VIEW MANAGEMENT
   ======================================== */

.view {
    display: none;
}

.view.active {
    display: block;
}

/* ========================================
   3D BUTTONS (Main Action Buttons Only)
   ======================================== */

.button-3d {
    position: relative;
    background: #64E16A;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 16px 32px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.1s ease;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
    height: 100px;
    box-shadow: 0 10px 0 -3px #48AB4D, 0 10px 0 0 #000;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.button-icon {
    font-size: 22px;
    display: block;
    text-align: center;
}

.button-3d::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 12px;
    right: 12px;
    height: 6px;
    background: #B8FCBB;
    border-radius: 20px;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

.button-3d:active::before { opacity: 0; }

.button-3d:active {
    transform: translateY(8px);
    box-shadow: 0 0px 0 -3px #48AB4D, 0 0px 0 0 #000;
}

.btn-green { background: #64E16A; box-shadow: 0 10px 0 -3px #48AB4D, 0 10px 0 0 #000; color: #2A7A2E; }
.btn-green::before { background: #B8FCBB; }
.btn-green:active { box-shadow: 0 0px 0 -3px #48AB4D, 0 0px 0 0 #000; }

.btn-red { background: #FF6B6B; box-shadow: 0 10px 0 -3px #CC5555, 0 10px 0 0 #000; color: #8B2020; }
.btn-red::before { background: #FFB3B3; }
.btn-red:active { box-shadow: 0 0px 0 -3px #CC5555, 0 0px 0 0 #000; }

.btn-blue { background: #6281fd; box-shadow: 0 10px 0 -3px #4e67cd, 0 10px 0 0 #000; color: #1A3099; }
.btn-blue::before { background: #a9b9f9; }
.btn-blue:active { box-shadow: 0 0px 0 -3px #3DA39C, 0 0px 0 0 #000; }

/* ========================================
   FLAT BUTTONS
   ======================================== */

.button-flat {
    background: #e0e0e0;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background-color 0.2s ease;
}

.button-flat:hover { background: #d0d0d0; }
.button-flat.btn-green { background: #64E16A; color: #000; }
.button-flat.btn-green:hover { background: #54D15A; }
.button-flat.btn-red { background: #FF6B6B; color: #000; }
.button-flat.btn-red:hover { background: #EF5B5B; }
.button-flat.btn-blue { background: #6281fd; color: #000; }
.button-flat.btn-blue:hover { background: #4e67cd; }

/* ========================================
   ACTION BUTTONS ROW
   ======================================== */

.action-button-container {
    max-width: 660px;
    margin: 0 auto 40px;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.action-button { flex: 1; min-width: 0; }
.button-label { font-size: 16px; text-align: center; display: block;}

/* ========================================
   ACCORDION STYLES
   ======================================== */

.accordion-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

.accordion-item {
    margin-bottom: 30px;
    position: relative;
}

.accordion-header {
    width: 100%;
    background: #f0f0f0;
    border: 3px solid #000000;
    border-radius: 15px;
    padding: 16px 24px;
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    position: relative;
    font-family: 'DM Sans', sans-serif;
    height: 90px;
    box-shadow: 0 10px 0 -3px #b6b6b6, 0 10px 0 0 #000000;
    transform: translateY(0);
}

.accordion-header:active {
    transform: translateY(8px);
    box-shadow: 0 0px 0 -3px #b6b6b6, 0 0px 0 0 #000000;
}

.header-left { display: flex; align-items: center; gap: 15px; }
.header-left i { font-size: 25px; color: #383e44; }
.header-left .label { font-size: 16px; font-weight: 600; color: #212529; }

.accordion-icon { transition: transform 0.3s ease; font-size: 18px; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }

.accordion-item.active .accordion-header {
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    box-shadow: none;
    transform: translateY(0);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background: #f0f0f0;
    border: none;
    border-radius: 0 0 15px 15px;
    padding: 0 24px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 0 40px 40px 40px;
    border: 3px solid #000000;
    border-top: none;
    box-shadow: 0 10px 0 -3px #b6b6b6, 0 10px 0 0 #000000;
}

/* ========================================
   CASH FLOW SECTION
   ======================================== */

.cashflow-container { padding: 0; }

.cashflow-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.select-wrapper { position: relative; display: inline-block; }

.select-dropdown {
    border: 2.5px solid #000;
    border-radius: 8px;
    padding: 8px 36px 8px 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select-caret {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #212529;
}

.cashflow-chart-container {
    margin: 0;
    background: white;
    border: 3px solid #000;
    border-radius: 15px;
    overflow: hidden;
}

.chart-earned-bars {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    height: 140px;
    padding: 12px 12px 0;
    gap: 6px;
}

.chart-labels-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background: #f0f0f0;
    border-top: 2px solid #000;
    border-bottom: 2.5px solid #000;
    padding: 6px 12px;
}

.chart-spent-bars {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    height: 140px;
    padding: 0 12px 12px;
    gap: 6px;
}

.bar-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 50px;
    min-width: 30px;
    height: 100%;
}

.earned-bar-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
}

.earned-bar {
    background-color: #64E16A;
    width: 100%;
    border: 2.5px solid #212529;
    transition: height 0.3s ease;
    min-height: 0;
    position: relative;
    overflow: hidden;
    margin-bottom: -2px;
}

.earned-bar::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 3px;
    width: 4px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 0;
    pointer-events: none;
}

.bar-label {
    font-size: 11px;
    font-weight: 500;
    color: #212529;
    text-align: center;
    white-space: nowrap;
    flex: 1;
    max-width: 50px;
    min-width: 30px;
}

.spent-bar-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
}

.spent-bar {
    background-color: #FF6B6B;
    width: 100%;
    border: 2.5px solid #212529;
    transition: height 0.3s ease;
    min-height: 0;
    position: relative;
    overflow: hidden;
    margin-top: -2px;
}

.spent-bar::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 3px;
    width: 4px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 0;
    pointer-events: none;
}

.clickable-bar { cursor: pointer; }
.clickable-bar:hover { filter: brightness(1.1); }

/* ========================================
   BAR DETAIL MODAL
   ======================================== */

.bar-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bar-detail-modal {
    background: white;
    border: 3px solid #000;
    border-radius: 15px;
    width: 420px;
    max-width: 90%;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 0 -3px #b6b6b6, 0 10px 0 0 #000;
    overflow: hidden;
}

.bar-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    flex-shrink: 0;
}

.bar-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    font-family: 'DM Sans', sans-serif;
}

.bar-detail-close {
    background: #f0f0f0;
    border: 3px solid #000;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    flex-shrink: 0;
}

.bar-detail-close:active { transform: translateY(2px); }

.bar-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px;
}

.bar-modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 12px;
}

.bar-modal-row:last-child { border-bottom: none; }
.bar-modal-row-info { flex: 1; min-width: 0; }

.bar-modal-desc {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    font-family: 'DM Sans', sans-serif;
}

.bar-modal-sub {
    font-size: 13px;
    color: #666;
    font-family: 'DM Sans', sans-serif;
    margin-top: 2px;
}

.bar-modal-amount {
    font-size: 18px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.bar-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 3px solid #000;
    flex-shrink: 0;
}

.bar-detail-total-label {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    font-family: 'DM Sans', sans-serif;
}

.bar-detail-total-amount {
    font-size: 22px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
}

/* ========================================
   ADD BUTTONS (unified)
   ======================================== */

.add-job-button,
.add-goal-button,
.add-category-button,
.add-goal-button-inline,
.add-job-button-inline,
.add-customer-button-inline {
    width: auto;
    background: white;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin: 0 0 24px 0;
    flex-shrink: 0;
}

.add-job-button:hover,
.add-goal-button:hover,
.add-category-button:hover,
.add-goal-button-inline:hover,
.add-job-button-inline:hover,
.add-customer-button-inline:hover { background-color: #f9f9f9; }

.add-job-button:active,
.add-goal-button:active,
.add-category-button:active,
.add-goal-button-inline:active,
.add-job-button-inline:active,
.add-customer-button-inline:active { transform: scale(0.98); }

.add-job-button i, .add-job-button-inline i { font-size: 24px; color: #64E16A; }
.add-goal-button i, .add-goal-button-inline i { font-size: 24px; color: #6485FA; }
.add-category-button i { font-size: 24px; color: #FD6C6E; }
.add-customer-button-inline i { font-size: 24px; color: #64E16A; }

/* ========================================
   GOALS SECTION
   ======================================== */

.goals-container { padding: 0; }

.goals-chart-container {
    background: white;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 20px;
}

.goals-list { display: flex; flex-direction: column; gap: 30px; }

.goal-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: background-color 0.15s ease;
    margin: -10px;
}

.goal-item:hover { background-color: #f0f2ff; }

.goal-name { font-size: 18px; font-weight: 700; color: #000; }

.goal-row { width: 100%; }

.goal-progress-container {
    position: relative;
    height: 30px;
    background: #e0e0e0;
    border: 2.5px solid #000;
    border-radius: 0px;
    overflow: hidden;
    width: 100%;
}

.goal-progress-bar {
    height: 100%;
    background: #6485FA;
    transition: width 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.goal-progress-bar::before {
    content: '';
    position: absolute;
    top: 3px;
    height: 4px;
    left: 4px;
    right: 4px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 0;
    pointer-events: none;
}

.goal-complete-badge {
    font-size: 11px;
    font-weight: 700;
    color: white;
    padding: 0 8px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.goal-labels-row { display: flex; justify-content: space-between; align-items: center; }
.goal-label-left { font-size: 13px; font-weight: 700; color: #6485FA; }
.goal-label-right { font-size: 13px; font-weight: 600; color: #555; }

/* ========================================
   JOBS SECTION
   ======================================== */

.jobs-container { padding: 10px 0; }
.jobs-chart-container { padding: 0; }
.jobs-section { margin-bottom: 28px; }
.jobs-section:last-child { margin-bottom: 0; }
.jobs-section-title { margin-bottom: 12px; }

.jobs-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    font-family: 'DM Sans', sans-serif;
    gap: 8px;
}

.jobs-section-heading i { font-size: 14px; color: #555; margin-right: 4px; }

/* ── Section count row ── */
.section-count-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 24px;
}

.section-count-row .add-goal-button-inline,
.section-count-row .add-job-button-inline,
.section-count-row .add-customer-button-inline { margin-bottom: 0; }

.count-label {
    font-size: 15px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
}

.count-label-green { color: #48AB4D; }
.count-label-blue  { color: #6281fd; }
.count-label-red   { color: #CC5555; }

.cashflow-totals { display: flex; align-items: center; gap: 16px; }
.jobs-list { display: flex; flex-direction: column; gap: 10px; }
.jobs-empty { font-size: 14px; color: #bbb; font-style: italic; padding: 10px 0; }
.goals-empty { font-size: 14px; color: #999; font-style: italic; padding: 10px 0; text-align: center; }

.show-more-jobs {
    font-size: 14px;
    font-weight: 700;
    color: #48AB4D;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 0 2px;
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
}

.show-more-jobs:hover { color: #3a8f40; }

/* ── Job Card ── */
.job-card {
    display: flex;
    align-items: center;
    background-color: white;
    border: 3px solid #212529;
    border-radius: 12px;
    padding: 14px;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.job-card:hover { background-color: #f9f9f9; }
.job-card:active { transform: scale(0.99); }
.job-card.completing { opacity: 0.5; transform: scale(0.97); }

.job-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.job-card-title-row { display: flex; align-items: center; gap: 6px; }

.job-card-description {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
}

.job-card.completed .job-card-description { text-decoration: line-through; color: #bbb; }

.job-card-customer { font-size: 13px; font-weight: 500; color: #888; }
.job-card.completed .job-card-customer { color: #ccc; }
.job-card-address { font-size: 12px; color: #bbb; }

.job-card-date-badge {
    flex-shrink: 0;
    background: #f0f0f0;
    border: 2.5px solid #212529;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
    align-self: center;
}

.job-card.completed .job-card-date-badge { color: #bbb; border-color: #ddd; }

.job-card-check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: #64E16A;
    font-size: 20px;
    margin-left: 4px;
}

/* ── Repeating badge on job cards ── */
.job-repeatable-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #6281fd;
    background: #eef0ff;
    border: 1.5px solid #6281fd;
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: 2px;
    width: fit-content;
}

/* ── Edit / Delete icon buttons — kept for customer cards ── */
.card-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.card-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
}

.card-action-btn:hover { background-color: #f0f0f0; }
.card-action-btn.btn-edit:hover  { color: #6281fd; }
.card-action-btn.btn-delete:hover { color: #FF6B6B; }

/* ── Delete button inside job edit modal ── */
.btn-delete-job {
    position: relative;
    overflow: hidden;
    background: #FF6B6B;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 12px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.1s;
}

.btn-delete-job::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 8px;
    right: 8px;
    height: 5px;
    background: #FFB3B3;
    border-radius: 10px;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

.btn-delete-job:active { transform: translateY(2px); background-color: #CC5555; }
.btn-delete-job:active::before { opacity: 0; }

/* ========================================
   CUSTOMERS SECTION
   ======================================== */

.customers-container { padding: 0; }
.customers-chart-container { padding: 0; }
.customers-list { display: flex; flex-direction: column; gap: 10px; }

/* ── Customer Card ── */
.customer-card {
    border: 3px solid #212529;
    border-radius: 12px;
    background-color: white;
    display: flex;
    align-items: stretch;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.customer-card:hover { background-color: #f9f9f9; }
.customer-card:active { transform: scale(0.99); }

.customer-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #212529;
    margin: 12px 0 12px 14px;
    background: #f0f0f0;
    border: 2.5px solid #212529;
    border-radius: 50%;
    align-self: center;
    letter-spacing: -1px;
}

.customer-card-body {
    flex: 1;
    min-width: 0;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.customer-card-title-row { display: flex; align-items: center; gap: 6px; }
.customer-card-name { font-size: 16px; font-weight: 700; color: #212529; }
.customer-card-address { font-size: 13px; color: #999; font-weight: 400; }

.customer-card-right {
    display: flex;
    align-items: center;
    padding: 0 16px 0 8px;
    flex-shrink: 0;
    position: relative;
}

.customer-job-count-wrapper { position: relative; }

.customer-job-count {
    background: #64E16A;
    color: #000;
    border: 2.5px solid #212529;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: block;
}

.customer-jobs-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: white;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 12px 16px;
    min-width: 250px;
    max-width: 350px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.customer-job-count-wrapper:hover .customer-jobs-tooltip { opacity: 1; visibility: visible; }
.customer-jobs-tooltip ul { list-style: disc; margin: 0; padding-left: 20px; }

.customer-jobs-tooltip li {
    font-size: 14px;
    color: #212529;
    font-family: 'DM Sans', sans-serif;
    padding: 4px 0;
    line-height: 1.4;
}

.customer-jobs-tooltip-empty {
    font-size: 14px;
    color: #666;
    font-style: italic;
    font-family: 'DM Sans', sans-serif;
}

/* ========================================
   SECTION VIEWS
   ======================================== */

.section-view { max-width: 900px; margin: 0 auto; padding: 0 20px; }

.section-content {
    background-color: #f9f9f9;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 40px 30px;
    min-height: 400px;
    position: relative;
}

.section-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.section-content p { font-size: 16px; color: #666; line-height: 1.6; }

/* ========================================
   MODAL & OVERLAY
   ======================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
    background-color: white;
    border: 3px solid #000;
    border-radius: 15px;
    width: 500px;
    max-width: 90%;
    height: 75vh;
    max-height: 700px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 0 -3px #b6b6b6, 0 10px 0 0 #000;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px 30px 0 30px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    flex-shrink: 0;
}

.modal-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
    flex-shrink: 0;
}

#modalBody {
    margin-top: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ========================================
   MODAL INNER CONTAINER & FOOTER
   ======================================== */

.earned-modal-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.modal-footer-sticky {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 24px;
    background-color: white;
    border-top: 2px solid #f0f0f0;
    margin-top: auto;
    flex-shrink: 0;
}

.modal-footer-sticky:has(.btn-go-back),
.modal-footer-sticky:has(.btn-delete-job),
.modal-footer-sticky:has(#btnDeleteCustomer),
.modal-footer-sticky:has(#btnDeleteGoal) { justify-content: space-between; }

/* ========================================
   KEYPAD
   ======================================== */

.keypad-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 10px 0;
    min-height: 0;
}

.keypad-display {
    font-size: 80px;
    font-weight: 700;
    color: #48AB4D;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    line-height: 1;
}

.keypad-display-red { color: #CA5658; }
.keypad-display-blue { color: #6485FA; }

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 15px;
    width: 100%;
    max-width: 260px;
}

/* ========================================
   KEY BUTTONS
   ======================================== */

.key-btn {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    border: 3px solid #000;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    width: 60px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    user-select: none;
}

.key-btn::before {
    content: '';
    position: absolute;
    top: 2px; left: 6px; right: 6px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

.key-btn:active { transform: translateY(4px); background-color: #e0e0e0; }
.key-btn:active::before { opacity: 0; }
.key-btn[data-action="clear"] { font-weight: 500; text-transform: lowercase; }
.key-btn[data-action="decimal"] { font-weight: 800; font-size: 32px; padding-bottom: 15px; }

/* ========================================
   NEXT / GO BACK BUTTONS
   ======================================== */

.btn-next, .btn-go-back { margin: 0; }

.btn-next {
    position: relative;
    overflow: hidden;
    background: #64E16A;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 12px 36px;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.1s;
}

.btn-next::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 8px;
    right: 8px;
    height: 5px;
    background: #B8FCBB;
    border-radius: 10px;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

.btn-next:active { transform: translateY(2px); background-color: #48AB4D; }
.btn-next:active::before { opacity: 0; }

.btn-next-red { background: #FD6C6E; }
.btn-next-red::before { background: #FFB3B3; }
.btn-next-red:active { background-color: #CA5658; }

.btn-next-blue { background: #6281fd; }
.btn-next-blue::before { background: #a9b9f9; }
.btn-next-blue:active { background-color: #4e67cd; }

.btn-go-back {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 12px 36px;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.1s;
}

.btn-go-back::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 8px;
    right: 8px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

.btn-go-back:active { transform: translateY(2px); background-color: #d0d0d0; }
.btn-go-back:active::before { opacity: 0; }

/* ========================================
   SOURCE SELECTION SCREEN
   ======================================== */

.source-selection-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 40px;
    flex: 1;
    min-height: 0;
}

.source-options { width: 100%; max-width: 400px; display: flex; flex-direction: column; margin: 0 auto; }

.source-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    cursor: pointer;
    border-radius: 15px;
}

.source-radio {
    width: 35px;
    height: 35px;
    min-width: 35px;
    border: 3px solid #000;
    border-radius: 50%;
    background-color: white;
    position: relative;
}

.source-option.selected .source-radio { background-color: #64E16A; }

.source-option.selected .source-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: #64E16A;
    border-radius: 50%;
}

.source-label { font-size: 20px; font-weight: 500; color: #000; font-family: 'DM Sans', sans-serif; }

/* ========================================
   HOW OFTEN? — REPEAT SELECTION
   ======================================== */

.repeat-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

.repeat-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 12px;
    border: 2.5px solid #ddd;
    background: white;
    flex: 1;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    user-select: none;
}

.repeat-option:hover { border-color: #aaa; background: #f9f9f9; }

.repeat-option.selected {
    border-color: #000;
    background: #f0f0f0;
}

.repeat-radio {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2.5px solid #000;
    border-radius: 50%;
    background-color: white;
    position: relative;
    flex-shrink: 0;
}

.repeat-option.selected .repeat-radio {
    background-color: #64E16A;
}

.repeat-option.selected .repeat-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #2A7A2E;
    border-radius: 50%;
}

.repeat-label {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
}

/* ========================================
   JOB SELECTION SCREEN
   ======================================== */

.job-selection-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    flex: 1;
    min-height: 0;
}

.job-selection-cards {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    min-height: 0;
}

.job-selection-cards::-webkit-scrollbar { width: 8px; }
.job-selection-cards::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.job-selection-cards::-webkit-scrollbar-thumb { background: #999; border-radius: 4px; }
.job-selection-cards::-webkit-scrollbar-thumb:hover { background: #666; }

.job-selection-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 3px solid #212529;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    flex-shrink: 0;
}

.job-selection-card.selected { background-color: #64E16A; }
.job-selection-card.selected .job-card-date-badge { background: rgba(255,255,255,0.5); border-color: #212529; }

.job-selection-empty { text-align: center; padding: 40px 20px; }
.job-selection-empty p { font-size: 18px; color: #666; font-family: 'DM Sans', sans-serif; }

/* ========================================
   NEW JOB / NEW GOAL / NEW CATEGORY SCREEN
   ======================================== */

.new-job-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.new-job-form { width: 100%; max-width: 550px; display: flex; flex-direction: column; gap: 24px; margin: 0 auto; }
.form-group { display: flex; flex-direction: column; gap: 10px; }
.form-label { font-size: 18px; font-weight: 600; color: #000; font-family: 'DM Sans', sans-serif; }

.form-input {
    width: 100%;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 15px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    background: white;
    resize: none;
}

.form-input-large { min-height: 90px; max-height: 90px; }
.form-input-small { height: 60px; }

/* ========================================
   CATEGORY SELECTION SCREEN
   ======================================== */

.category-selection-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    flex: 1;
    min-height: 0;
}

.category-cards {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    min-height: 0;
}

.category-cards::-webkit-scrollbar { width: 8px; }
.category-cards::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.category-cards::-webkit-scrollbar-thumb { background: #999; border-radius: 4px; }
.category-cards::-webkit-scrollbar-thumb:hover { background: #666; }

.category-card {
    width: 100%;
    background: white;
    border: 3px solid #000;
    border-radius: 25px;
    padding: 18px 22px;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
    user-select: none;
    flex-shrink: 0;
}

.category-card:hover { background-color: #fff0f0; }
.category-card:active { transform: scale(0.99); }
.category-card.selected { background-color: #FD6C6E; color: #000; }
.goal-card:hover { background-color: #f0f2ff; }

/* ========================================
   GOAL SELECTION SCREEN
   ======================================== */

.goal-card.selected { background-color: #6485FA; }

/* ========================================
   AMOUNT INPUT WITH $ PREFIX
   ======================================== */

.amount-input-wrapper {
    display: flex;
    align-items: center;
    border: 3px solid #000;
    border-radius: 15px;
    background: white;
    overflow: hidden;
    height: 60px;
}

.amount-input-prefix {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    padding: 0 0 0 15px;
    flex-shrink: 0;
    line-height: 1;
}

.amount-input-field {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    padding: 15px 15px 15px 6px;
    height: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
}

.amount-input-field::-webkit-outer-spin-button,
.amount-input-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ========================================
   COIN ANIMATION
   ======================================== */

.coin-sprite {
    width: 70px;
    height: 70px;
    background-image: url('coin-sprite.png');
    background-repeat: no-repeat;
    background-size: 1120px 70px;
    background-position: 0 0;
    display: inline-block;
    animation: coin-spin 1.78s steps(16) infinite;
}

@keyframes coin-spin {
    from { background-position: 0 0; }
    to   { background-position: -1120px 0; }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    body { padding: 80px 10px 40px 10px; }
    .header { padding-top: 20px; }

    .logo-word,
    .logo-word::before,
    .logo-word::after { display: none; }

    .action-button { width: 75%; max-width: 225px; }

    .amount { font-size: 32px; }
    .label { font-size: 12px; }

    .action-button-container { flex-direction: column; align-items: center; }
    .goals-container { padding: 10px 0; }
    .modal { width: calc(100% - 16px); max-width: calc(100% - 16px); height: auto; max-height: calc(85vh - 16px); min-height: 500px; border-radius: 20px; align-self: flex-end; margin: 0 8px 8px 8px; }
    .bar-detail-modal { width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; align-self: flex-end; margin: 0; max-height: 80vh; }
    .bar-detail-overlay { align-items: flex-end; padding: 0; }
    .keypad-display { font-size: 60px; }
    .key-btn { width: 60px; height: 60px; font-size: 24px; border-radius: 15px; }
    .keypad-grid { gap: 12px; }
    .btn-next, .btn-go-back { font-size: 18px; padding: 10px 24px; }
    .accordion-item.active .accordion-content { padding: 0 16px 24px 16px; }
    .job-selection-wrapper { padding: 0 5px; }
    .new-job-wrapper { padding: 5px; }
    .modal-content { padding: 20px 12px 0 12px; }
    .bar-column { max-width: 20px; min-width: 20px; flex: 0 0 26px; }
    .bar-label { max-width: 26px; min-width: 26px; flex: 0 0 26px; }
    .bar-label-rotated { transform: rotate(-90deg); font-size: 10px; height: 28px; width: 26px; display: flex; align-items: center; justify-content: center; }
    .chart-earned-bars { padding: 12px 0 0 0; }
    .chart-labels-row { padding: 6px 0; }
    .chart-spent-bars { padding: 0 0 12px 0; }

    /* Repeat options stack on mobile */
    .repeat-options { flex-direction: column; }
}

/* ========================================
   USER DROPDOWN
   ======================================== */

.user-dropdown-wrapper { position: relative; }
.user-avatar { cursor: pointer; display: flex; align-items: center; }

.user-avatar-circle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}

.nav-coin-icon {
    width: 38px;
    height: 38px;
    background: #64E16A;
    border: 2.5px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Shrikhand', cursive;
    font-size: 26px;
    font-weight: 400;
    color: #212529;
    line-height: 1;
    user-select: none;
}

.user-avatar-circle:hover { opacity: 0.8; }

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 8px;
    min-width: 180px;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-dropdown-menu.open { display: block; }

.dropdown-item {
    width: 100%;
    background: none;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.1s;
}

.dropdown-item-logout { color: #CC5555; }

/* ========================================
   FLOW CONFIRMATION MODAL
   ======================================== */

.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-card {
    background: white;
    border: 3px solid #000;
    border-radius: 20px;
    box-shadow: 0 10px 0 -3px #b6b6b6, 0 10px 0 0 #000;
    padding: 44px 36px 36px;
    width: 360px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.confirm-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #212529;
    line-height: 1.2;
}

.confirm-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    line-height: 1.5;
    max-width: 260px;
}

.confirm-ok {
    margin-top: 8px;
    padding: 12px 40px;
    font-size: 18px;
    align-self: center;
}

/* ========================================
   CLOSE BUTTONS
   ======================================== */

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    background: #f0f0f0;
    border: 3px solid #000;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    transition: all 0.1s ease;
    z-index: 10;
}

.modal-close:active { transform: translateY(2px); }

.close-button {
    position: absolute;
    top: 20px; right: 20px;
    background: #f0f0f0;
    border: 3px solid #000;
    border-radius: 50%;
    width: 40px; height: 40px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    transition: all 0.1s ease;
}

.close-button:active { transform: translateY(3px); }