.cus-container {
    width: 100%;
    max-width: 720px;
    margin: auto;
    padding: 16px;

    display: flex;
    flex-direction: column;
    gap: 20px;

    min-height: 100vh;
    padding-bottom: 48px; /* chừa chỗ cho CTA */
}

.cus-container::after {
    content: "";

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    height: 100px;

    background: linear-gradient(
        to top,
        #ffffff,
        transparent
    );

    pointer-events: none;
}

/* SECTION */
.section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* BACK */
.back-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

/* HIDDEN */
.hidden {
    display: none;
}

/* SERVICE BLOCK spacing fix */
.service-block {
    display: flex;
    flex-direction: column;
    gap: 8px;

    background: var(--color-bg-card, #fff);
    border-radius: 16px;
    padding: 12px;
}

/* CATEGORY HEADER */
.service-block-header {
    font-weight: 600;
    font-size: 16px;
    padding: 4px 4px 8px;
}

/* LIST */
.service-block-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* SERVICE ROW polish */

.service-row {
    display: flex;
    align-items: center;

    padding: 14px 16px;
    border-radius: 16px;

    gap: 12px; /* 🔥 thay space-between bằng gap */

    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);

    border: 1px solid rgba(124, 58, 237, 0.08);

    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.06);

    transition: all 0.2s ease;
}

.service-row:hover {
    transform: translateY(-2px);

    background: #f3f0ff;

    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.12);
}

.service-row.selected {
    border: 1px solid var(--primary);

    background: linear-gradient(
        135deg,
        #f3f0ff,
        #ede9fe
    );

    box-shadow:
        0 0 0 2px rgba(124, 58, 237, 0.15),
        0 8px 20px rgba(124, 58, 237, 0.2);
}

.service-name {
    flex: 1;          /* 🔥 KEY */
    min-width: 0;

    font-size: 15px;
}

.service-meta {
    width: 110px;     /* 🔥 FIX CỨNG */
    flex-shrink: 0;

    text-align: right;
    white-space: nowrap;

    font-size: 13px;
    color: #888;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    width: 40px;
    height: 40px;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        #ede9fe,
        #ddd6fe
    );

    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 0 0 4px rgba(124, 58, 237, 0.05);
}

.category-name {
    font-size: 16px;
}

.category-card {
    padding: 18px;
    border-radius: 20px;

    background: linear-gradient(
        145deg,
        #ffffff,
        #f6f3ff
    );

    border: 1px solid rgba(124, 58, 237, 0.08);

    box-shadow:
        0 6px 18px rgba(124, 58, 237, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.6);

    transition: all 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px) scale(1.015);

    box-shadow:
        0 12px 28px rgba(124, 58, 237, 0.18),
        0 4px 10px rgba(124, 58, 237, 0.08);
}

.category-arrow {
    font-size: 18px;
    color: #aaa;
}

.cus-hero {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.cus-title {
    font-size: 26px;
    font-weight: 700;

    color: var(--primary);

    text-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.cus-sub {
    font-size: 14px;
    color: #aaa;
}

:root {
    --primary: #7c3aed;        /* deep purple */
    --primary-light: #a78bfa;  /* highlight */
    --primary-soft: #f3f0ff;   /* soft bg */

    --accent: #c084fc;         /* glow */

    --text-main: #0f172a;
    --text-sub: #94a3b8;

    --bg-main: #ffffff;
    --bg-soft: #faf7ff;
}

body {
    overflow-y: auto;
    
}

.cta-btn {
    position: fixed;
    bottom: 20px;

    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 32px);
    max-width: 720px;

    padding: 16px;

    border-radius: 20px;

    background: linear-gradient(
        135deg,
        #7c3aed,
        #a78bfa
    );

    color: white;
    font-weight: 600;

    z-index: 100;
}

.addon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;

    background: #fff;

    border: 1px solid rgba(124, 58, 237, 0.08);

    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.06);

    cursor: pointer;
    transition: all 0.2s ease;
}

.addon-row:hover {
    background: #f3f0ff;
}

.addon-row.selected {
    border: 1px solid var(--primary);

    background: linear-gradient(
        135deg,
        #f3f0ff,
        #ede9fe
    );

    box-shadow:
        0 0 0 2px rgba(124, 58, 237, 0.15),
        0 8px 20px rgba(124, 58, 237, 0.2);
}

.addon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.addon-chip {
    padding: 10px 14px;
    border-radius: 999px;

    background: #f3f0ff;
    border: 1px solid transparent;

    font-size: 14px;
    cursor: pointer;

    transition: all 0.2s ease;
}

.addon-chip:hover {
    background: #ede9fe;
}

.addon-chip.selected {
    background: #7c3aed;
    color: white;

    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.25);
}

.addon-name {
    flex: 1;
    font-size: 15px;
}

.addon-btn {
    width: 90px;
    flex-shrink: 0;
    text-align: right;
}

.addon-price {
    width: 100px;
    text-align: right;
    font-size: 14px;
    color: var(--text-sub);
}

/* toggle */
.switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    background: #ccc;
    border-radius: 24px;
    inset: 0;
    transition: .2s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: .2s;
}

input:checked + .slider {
    background: #4f46e5;
}

input:checked + .slider::before {
    transform: translateX(20px);
}

.hidden {
    display: none;
}

/* =========================
   CALENDAR
========================= */

.calendar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-title {
    font-weight: 600;
    font-size: 16px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day {
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    background: var(--color-bg-soft);
    cursor: pointer;
    font-size: 14px;
}

.calendar-day:hover {
    background: var(--color-bg-hover);
}

.calendar-day.selected {
    background: var(--color-primary);
    color: white;
}

.calendar-day.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.slot {
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    background: #f5f5f5;
    cursor: pointer;
    transition: 0.2s;
}

.slot:hover {
    background: #eee;
}

.slot.selected {
    background: #6c5ce7;
    color: white;
}

.slotBlock {
    max-height: 50vh;
    overflow-y: auto;
}

.review-block {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    padding-bottom: 20px;
    margin-top: 12px;
    position: sticky;
    bottom: 0;

    border-top: 1px solid #eee;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
}

.review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 4px 0;

    font-size: 14px;
    color: #444;
}

.review-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.review-row span:first-child {
    color: #888;
}

.review-cta {
    margin-top: 12px;

    width: 100%;
    height: 52px;

    border-radius: 26px;

    font-size: 15px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;
}

.review-row span:last-child {
    font-weight: 500;
    color: #111;
}

.review-row:last-child {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed #eee;
    font-size: 15px;
    font-weight: 600;
}

.continueBtn {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 32px);
    max-width: 640px;

    z-index: 30;
}
/* =========================
   REVIEW BLOCK
========================= */
.review-block {
    margin-top: 16px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* spacing để không bị che bởi footer */
.cus-container {
    padding-bottom: 140px;
    background: transparent;
}

/* =========================
   CONFIRM BAR (🔥 CORE)
========================= */
.confirm-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    background: white;
    border-top: 1px solid #eee;

    padding: 12px 16px;

    display: flex;
    flex-direction: column;
    gap: 8px;

    box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
    z-index: 999;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* summary rõ hơn */
.confirm-summary {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* button full width */
.confirm-btn {
    width: 100%;
    height: 48px;
    border-radius: 14px;
}

.confirmation-screen {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 999;
}

.confirmation-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 360px;
}

.customer-input-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.input-field {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.hidden {
    display: none;
}

/* ===== HARD RESET (FIX DARK BUG) ===== */

body {
    background: #f6f7f9 !important;
    color: #111 !important;
}

.category-card,
.service-row,
.panel-list,
.section {
    background: white !important;
    color: #111 !important;
}

.section-title {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #111 !important;
    color: var(--primary)
}


