:root {
    --gf-bg: #f5f5f5;
    --gf-white: #ffffff;
    --gf-text: #111111;
    --gf-muted: #666666;
    --gf-red: #7A1E2C;
    --gf-red-hover: #641724;
    --gf-border: #e5e5e5;
    --gf-soft: #f8f8f8;
    --gf-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --gf-shadow-red: 0 10px 24px rgba(122, 30, 44, 0.22);
    --gf-radius: 24px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--gf-bg);
    color: var(--gf-text);
    padding-top: 92px;
}

/* HEADER */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background: rgba(255,255,255,0.92);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(0,0,0,.06);

    z-index: 2000;
}

.custom-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    padding: 16px 0;
    position: relative;
}

.navbar-side {
    flex: 1;
    display: flex;
    align-items: center;
}

.navbar-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 62px;
}

.login-btn {
    background: var(--gf-red);
    color: var(--gf-white);
    border: none;
    border-radius: 999px;
    height: 52px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: var(--gf-shadow-red);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.login-btn:hover {
    background: var(--gf-red-hover);
    color: var(--gf-white);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(122, 30, 44, .30);
}

.login-btn:focus,
.login-btn:active,
.login-btn:visited {
    color: var(--gf-white);
}

.login-btn svg {
    flex-shrink: 0;
}

.logout-btn {
    background: var(--gf-text);
}

.logout-btn:hover {
    background: #000000;
}

.mobile-dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* COMMON */

.container {
    width: 100%;
}

.badge-custom {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gf-red);
    background: rgba(122, 30, 44, .08);
    margin-bottom: 16px;
}

.btn-primary-custom,
.btn-dark-custom,
.btn-danger-custom,
.btn-warning-custom {
    border-radius: 14px;
    padding: 12px 18px;
    min-height: 48px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    transition: .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-custom {
    background: var(--gf-red);
    border-color: var(--gf-red);
    color: var(--gf-white);
}

.btn-primary-custom:hover {
    background: var(--gf-red-hover);
    border-color: var(--gf-red-hover);
    color: var(--gf-white);
    transform: translateY(-1px);
}

.btn-dark-custom,
.btn-danger-custom {
    background: var(--gf-text);
    border-color: var(--gf-text);
    color: var(--gf-white);
}

.btn-dark-custom:hover,
.btn-danger-custom:hover {
    background: #000000;
    border-color: #000000;
    color: var(--gf-white);
    transform: translateY(-1px);
}

.btn-warning-custom {
    background: var(--gf-soft);
    border-color: #dddddd;
    color: var(--gf-text);
}

.btn-warning-custom:hover {
    background: #eeeeee;
    color: var(--gf-text);
    transform: translateY(-1px);
}

.alert {
    border-radius: 16px;
    border: none;
    padding: 16px 18px;
}

/* HERO */

.hero-home,
.hero-section {
    background: var(--gf-bg);
    padding: 80px 0;
}

.hero-home h1,
.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--gf-text);
    margin-bottom: 25px;
}

.hero-home .lead,
.hero-section .lead {
    font-size: 1.2rem;
    color: var(--gf-muted);
    max-width: 580px;
}

.hero-buttons {
    margin-top: 32px;
}

/* CARDS */

.appointment-card,
.hero-card,
.benefit-card,
.thank-you-box,
.dashboard-card {
    background: var(--gf-white);
    border-radius: var(--gf-radius);
    box-shadow: var(--gf-shadow);
}

.appointment-card {
    border: 1px solid var(--gf-border);
}

.appointment-card h2,
.hero-card h3,
.benefit-card h4 {
    font-weight: 800;
}

.appointment-card h2 {
    margin-bottom: 25px;
}

.hero-card {
    padding: 40px;
    border-radius: 28px;
}

.hero-card h3 {
    margin-bottom: 25px;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.hero-list li {
    padding: 10px 0;
    font-size: 1.05rem;
}

.benefit-card {
    background: var(--gf-soft);
    padding: 40px;
    height: 100%;
}

.benefit-card h4 {
    margin-bottom: 20px;
}

/* FORM */

.form-label {
    font-size: .9rem;
    font-weight: 700;
    color: #444444;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 1px solid #dddddd;
    border-radius: 14px;
    padding: 12px 14px;
    min-height: 54px;
    font-size: 16px;
    background: var(--gf-white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gf-red);
    box-shadow: 0 0 0 .2rem rgba(122, 30, 44, .12);
}

.form-control[readonly] {
    background: #f7f7f7;
    color: #555555;
    cursor: not-allowed;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-check-input:checked {
    background-color: var(--gf-red);
    border-color: var(--gf-red);
}

.form-check-input:focus {
    border-color: var(--gf-red);
    box-shadow: 0 0 0 .2rem rgba(122, 30, 44, .14);
}

.form-check-label a,
.privacy-link {
    color: var(--gf-red);
    font-weight: 700;
}

/* HOURS */

.hours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hour-option {
    border: 1px solid var(--gf-border);
    background: var(--gf-white);
    color: var(--gf-text);
    border-radius: 14px;
    padding: 13px 10px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
}

.hour-option:hover {
    border-color: var(--gf-red);
    color: var(--gf-red);
}

.hour-option.active {
    background: var(--gf-red);
    border-color: var(--gf-red);
    color: var(--gf-white);
}

.hour-option.disabled {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
}

/* PUBLIC SECTIONS */

.benefits-section {
    padding: 100px 0;
    background: var(--gf-white);
}

.cta-section {
    padding: 120px 0;
    background: var(--gf-text);
    color: var(--gf-white);
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, .75);
    margin-bottom: 40px;
}

.thank-you-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gf-bg);
}

.thank-you-box {
    padding: 60px;
}

.thank-you-box h1 {
    font-weight: 900;
    font-size: 3rem;
}

.footer-simple {
    padding: 30px 0;
    background: var(--gf-white);
    border-top: 1px solid #eeeeee;
    margin-top: 60px;
}

.footer-simple p {
    margin: 0;
    color: var(--gf-muted);
    font-size: .95rem;
}

.details-box,
.summary-text {
    background: var(--gf-soft);
    border-radius: 16px;
    padding: 18px;
    line-height: 1.6;
}

.details-box p {
    margin-bottom: 10px;
}

.details-box p:last-child {
    margin-bottom: 0;
}

/* DASHBOARD */

.dashboard-section {
    background: var(--gf-bg);
    min-height: 100vh;
    padding: 40px 0 80px;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header h1 {
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -1px;
    color: #1f1f1f;
}

.dashboard-subtitle {
    color: var(--gf-muted);
    font-size: 1.05rem;
    margin: 0;
}

.dashboard-card {
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .06);
}

.dashboard-card-header {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    padding-bottom: 16px;
}

.dashboard-card-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1f1f1f;
}

.stat-card {
    padding: 30px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-label {
    color: var(--gf-muted);
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .05em;
    margin-bottom: 16px;
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
}

.stat-card.pending {
    background: #fff5f5;
}

.stat-card.confirmed {
    background: #f3faf5;
}

.stat-card.dark {
    background: var(--gf-text);
    color: var(--gf-white);
}

.stat-card.dark .stat-label {
    color: rgba(255, 255, 255, .65);
}

/* TABLES */

.dashboard-table {
    margin: 0;
}

.dashboard-table thead th {
    padding: 20px 30px;
    border-bottom: 1px solid #eeeeee;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gf-muted);
    font-weight: 800;
}

.dashboard-table tbody td {
    padding: 24px 30px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
}

.client-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.client-cell span {
    color: var(--gf-muted);
    font-size: .92rem;
}

.clickable-row {
    cursor: pointer;
    transition: background-color .18s ease;
}

.clickable-row:hover {
    background: #fafafa;
}

/* STATUS */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    padding: 8px 14px;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-success {
    background: #eaf8ef;
    color: #177245;
}

.status-danger {
    background: #fff0f0;
    color: #b42318;
}

.status-warning {
    background: #fff7e8;
    color: #b7791f;
}

.status-pending {
    background: #f2f2f2;
    color: #555555;
}

/* DETAILS / SUMMARY */

.appointment-summary {
    padding: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid #eeeeee;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span {
    color: var(--gf-muted);
    font-weight: 700;
}

.summary-row strong {
    text-align: right;
}

.summary-row a {
    color: var(--gf-red);
    text-decoration: none;
}

.summary-row-full {
    display: block;
}

.summary-row-full span {
    display: block;
    margin-bottom: 12px;
}

.action-panel-body,
.appointment-create-body {
    padding: 0;
}

/* CALENDAR */

.calendar-card {
    padding: 26px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.calendar-header h2 {
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0;
    text-transform: capitalize;
}

.calendar-header a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gf-soft);
    color: var(--gf-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    transition: .2s ease;
}

.calendar-header a:hover {
    background: var(--gf-red);
    color: var(--gf-white);
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
}

.calendar-weekdays {
    margin-bottom: 8px;
}

.calendar-weekdays span {
    font-size: .75rem;
    color: var(--gf-muted);
    font-weight: 800;
    text-align: center;
}

.calendar-day {
    min-height: 44px;
    border-radius: 12px;
    background: #f1f1f1;
    color: var(--gf-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: .9rem;
    font-weight: 700;
    transition: .18s ease;
}

.calendar-day:hover {
    background: #e8e8e8;
    color: var(--gf-red);
}

.calendar-day.empty {
    background: transparent;
    pointer-events: none;
}

.calendar-day.today {
    border: 2px solid var(--gf-red);
}

.calendar-day.selected {
    background: var(--gf-red);
    color: var(--gf-white);
}

.calendar-day.has-appointments small {
    background: var(--gf-text);
    color: var(--gf-white);
    border-radius: 999px;
    padding: 1px 6px;
    font-size: .62rem;
    line-height: 1.2;
}

.calendar-day.selected small {
    background: var(--gf-white);
    color: var(--gf-red);
}

.calendar-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    color: var(--gf-muted);
    font-size: .82rem;
    font-weight: 700;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.has {
    background: var(--gf-text);
}

.legend-dot.selected {
    background: var(--gf-red);
}

.selected-day-list {
    padding: 22px 26px 26px;
}

.day-appointment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eeeeee;
    text-decoration: none;
    color: var(--gf-text);
}

.day-appointment-item:last-child {
    border-bottom: none;
}

.day-appointment-item div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.day-appointment-item span {
    color: var(--gf-muted);
    font-size: .9rem;
}

.day-appointment-item:hover strong {
    color: var(--gf-red);
}

.calendar-note {
    margin-top: 16px;
    font-size: .85rem;
    color: var(--gf-muted);
    font-weight: 700;
}

.mini-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gf-red);
    color: var(--gf-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.mini-action-btn:hover {
    background: var(--gf-red-hover);
    color: var(--gf-white);
}

/* AVAILABILITY */

.availability-days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.availability-day-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 180px;
    padding: 22px;
    background: var(--gf-soft);
    border-radius: 22px;
}

.availability-day-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 900;
}

.availability-day-card p {
    margin: 0;
    color: var(--gf-muted);
    font-size: .95rem;
    line-height: 1.45;
}

.availability-day-card .btn {
    width: 100%;
}

.slot-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.slot-actions form {
    margin: 0;
}

/* ADMIN LAYOUT */

.admin-sidebar {
    position: fixed;
    top: 96px;
    left: 0;
    width: 240px;
    height: calc(100vh - 96px);
    background: var(--gf-text);
    padding: 28px 18px;
    z-index: 900;
}

.admin-sidebar-title {
    color: rgba(255, 255, 255, .55);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding: 0 12px;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-menu a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
    transition: .2s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: var(--gf-red);
    color: var(--gf-white);
}

.admin-menu a.disabled {
    opacity: .35;
    pointer-events: none;
}

.admin-bottom-nav {
    display: none;
}

/* CLIENT NOTES */

.client-notes-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.client-note-item {
    padding: 16px;
    border-radius: 18px;
    background: var(--gf-soft);
    border: 1px solid rgba(0, 0, 0, .06);
    font-size: .92rem;
}

.client-note-item .btn {
    margin-top: 8px;
}

/* DESKTOP ADMIN OFFSET */

@media (min-width: 992px) {
    body:has(.admin-sidebar) .dashboard-section {
        padding-left: 260px;
    }
}

/* TABLET */

@media (max-width: 991px) {
    body:has(.admin-sidebar) .dashboard-section {
        padding-left: 0;
    }

    .custom-navbar {
        min-height: 86px;
        padding: 14px 0;
    }

    .logo {
        max-height: 58px;
    }

    .hero-home,
    .hero-section {
        padding: 60px 0;
    }

    .hero-home .min-vh-100,
    .hero-section .min-vh-100,
    .min-vh-100 {
        min-height: auto !important;
    }

    .hero-home h1,
    .hero-section h1 {
        font-size: 3.2rem;
        letter-spacing: -1.5px;
    }

    .hero-card,
    .appointment-card {
        margin-top: 40px;
    }

    .benefits-section {
        padding: 70px 0;
    }

    .cta-section {
        padding: 80px 0;
    }

    .cta-section h2 {
        font-size: 2.4rem;
    }

    .dashboard-section {
        padding: 28px 0 110px;
    }

    .dashboard-header {
        margin-bottom: 24px;
        gap: 18px;
    }

    .dashboard-header h1 {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .dashboard-subtitle {
        font-size: .98rem;
    }

    .dashboard-card {
        padding: 22px;
        border-radius: 22px;
    }

    .dashboard-card-header {
        padding: 0 0 14px;
        margin-bottom: 20px;
    }

    .dashboard-card-header h2 {
        font-size: 1rem;
    }

    .summary-row {
        display: block;
        padding: 14px 0;
    }

    .summary-row strong {
        display: block;
        text-align: left;
        margin-top: 6px;
        word-break: break-word;
    }

    .summary-text {
        padding: 14px;
        border-radius: 14px;
    }

    .btn-primary-custom,
    .btn-dark-custom,
    .btn-danger-custom,
    .btn-warning-custom {
        width: 100%;
        min-height: 52px;
        padding: 13px 16px;
        font-size: .85rem;
        border-radius: 14px;
    }

    .dashboard-header .d-flex {
        width: 100%;
    }

    .dashboard-header .d-flex .btn,
    .dashboard-header .d-flex a {
        flex: 1 1 100%;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .table {
        min-width: 720px;
    }

    .client-note-item {
        padding: 14px;
        border-radius: 16px;
    }

    .client-note-item .btn {
        width: 100%;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-bottom-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        height: 68px;
        background: var(--gf-text);
        border-radius: 24px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
        z-index: 1200;
        box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
        padding: 8px;
    }

    .admin-bottom-nav a {
        height: 52px;
        color: rgba(255, 255, 255, .68);
        text-decoration: none;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .78rem;
        font-weight: 800;
    }

    .admin-bottom-nav a.active {
        background: var(--gf-red);
        color: var(--gf-white);
    }

    .admin-bottom-nav a.disabled {
        opacity: .35;
        pointer-events: none;
    }

    .logout-text {
        display: none;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    body {
        font-size: 16px;
        padding-top: 76px;
    }

    .container {
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .main-header {
        border-bottom: 1px solid #ececec;
    }

    .custom-navbar {
        min-height: 74px;
        padding: 10px 0;
    }

    .navbar-side {
        flex: 1;
    }

    .navbar-logo {
        max-width: 150px;
    }

    .logo {
        max-width: 145px;
        max-height: 46px;
    }

    .login-btn,
    .mobile-dashboard-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        gap: 0;
    }

    .login-btn span {
        display: none;
    }

    .hero-home,
    .hero-section {
        padding-top: 32px;
        padding-bottom: 34px;
    }

    .hero-home h1,
    .hero-section h1 {
        font-size: 3rem;
        line-height: .95;
        letter-spacing: -2px;
        margin-bottom: 18px;
    }

    .hero-home .lead,
    .hero-section .lead {
        font-size: 1.08rem;
        line-height: 1.45;
        margin-bottom: 28px;
        max-width: 100%;
    }

    .hero-buttons .btn,
    .btn-primary-custom,
    .btn-dark-custom,
    .btn-danger-custom,
    .btn-warning-custom {
        width: 100%;
    }

    .hero-card,
    .appointment-card {
        width: 100%;
        margin-top: 0;
        border-radius: 28px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    }

    .hero-card,
    .benefit-card {
        padding: 28px;
    }

    .appointment-card .card-body {
        padding: 28px !important;
    }

    .appointment-card h2 {
        font-size: 2rem;
        margin-bottom: 22px;
        font-weight: 900;
    }

    .badge-custom {
        font-size: .68rem;
        padding: 7px 12px;
        margin-bottom: 12px;
    }

    .form-label {
        font-size: .95rem;
    }

    .form-control,
    .form-select {
        min-height: 52px;
        border-radius: 14px;
        padding: 14px 16px;
        font-size: 16px;
    }

    textarea.form-control {
        min-height: 120px;
    }

    .mobile-stack .col-md-6 {
        width: 100%;
    }

    .hours-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-check-label {
        font-size: .92rem;
        line-height: 1.4;
    }

    .benefits-section {
        padding: 50px 0;
    }

    .cta-section {
        padding: 70px 0;
    }

    .cta-section h2 {
        font-size: 2.1rem;
        line-height: 1.1;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .thank-you-box {
        padding: 35px 25px;
        border-radius: 24px;
    }

    .thank-you-box h1 {
        font-size: 2.2rem;
    }

    .dashboard-card {
        padding: 18px;
        border-radius: 20px;
    }

    .dashboard-header h1 {
        font-size: 1.8rem;
    }

    .row.g-4 {
        --bs-gutter-y: 1rem;
    }

    .status-badge {
        font-size: .68rem;
        padding: 7px 11px;
    }

    .dashboard-table thead {
        display: none;
    }

    .dashboard-table,
    .dashboard-table tbody,
    .dashboard-table tr,
    .dashboard-table td {
        display: block;
        width: 100%;
    }

    .dashboard-table tr {
        background: var(--gf-white);
        border-bottom: 1px solid #eeeeee;
        padding: 18px;
    }

    .dashboard-table td {
        border: none;
        padding: 6px 0;
    }

    .admin-bottom-nav {
        left: 10px;
        right: 10px;
        bottom: 10px;
        height: 64px;
        border-radius: 22px;
    }

    .admin-bottom-nav a {
        height: 48px;
        font-size: .68rem;
    }

    .mb-4 {
        margin-bottom: 1.2rem !important;
    }

    .mb-3 {
        margin-bottom: 1rem !important;
    }

    .slot-actions {
        flex-direction: column;
    }

    .slot-actions .btn {
        width: 100%;
    }
}

/* SMALL MOBILE */

@media (max-width: 575px) {
    .availability-days {
        grid-template-columns: 1fr;
    }

    .availability-day-card {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-home,
    .hero-section {
        padding-top: 24px;
        padding-bottom: 28px;
    }

    .hero-home h1,
    .hero-section h1 {
        font-size: 2.45rem;
    }

    .hero-home .lead,
    .hero-section .lead {
        font-size: 1rem;
    }

    .appointment-card .card-body {
        padding: 22px !important;
    }

    .hero-card,
    .benefit-card {
        padding: 24px;
    }

    .appointment-card h2 {
        font-size: 1.75rem;
    }

    .logo {
        max-width: 135px;
        max-height: 44px;
    }

    .dashboard-section {
        padding-top: 22px;
    }

    .dashboard-header h1 {
        font-size: 1.55rem;
    }

    .dashboard-card {
        padding: 16px;
        border-radius: 18px;
    }

    .summary-row {
        padding: 12px 0;
    }

    .summary-row span {
        font-size: .85rem;
    }

    .summary-row strong,
    .summary-text,
    .client-note-item {
        font-size: .92rem;
    }

    .table {
        min-width: 640px;
    }

    .calendar-card {
        padding: 20px;
    }

    .calendar-day {
        min-height: 40px;
        font-size: .8rem;
    }

    .calendar-weekdays,
    .calendar-grid {
        gap: 5px;
    }
}

.documents-placeholder {
    background: linear-gradient(135deg, #f8f8f8, #ffffff);
    border: 1px dashed rgba(122, 30, 44, .28);
    border-radius: 20px;
    padding: 34px;
    text-align: center;
}

.documents-placeholder-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: rgba(122, 30, 44, .08);
    color: var(--gf-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 18px;
}

.documents-placeholder h3 {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.documents-placeholder p {
    color: var(--gf-muted);
    max-width: 560px;
    margin: 0 auto 20px;
    line-height: 1.55;
}

.documents-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.documents-tags span {
    background: rgba(122, 30, 44, .08);
    color: var(--gf-red);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .78rem;
    font-weight: 800;
}

@media (max-width: 767px) {
    .documents-placeholder {
        padding: 24px 18px;
    }

    .documents-placeholder-icon {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        font-size: 1.5rem;
    }

    .documents-placeholder h3 {
        font-size: 1rem;
    }

    .documents-placeholder p {
        font-size: .92rem;
    }
}

/* =========================================================
   TASKS COMPACT CARD
   ========================================================= */

.client-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.client-task-item {
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-left: 4px solid #dddddd;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .035);
}

.client-task-item h3 {
    margin: 0 0 4px;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1.2;
}

.client-task-item .text-muted.small {
    font-size: .78rem;
    line-height: 1.35;
}

.client-task-item .status-badge {
    font-size: .62rem;
    padding: 6px 9px;
    white-space: nowrap;
}

.task-description {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8f8f8;
    font-size: .84rem;
    line-height: 1.45;
}

.task-status-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.task-status-form .form-select {
    min-height: 42px;
    padding: 8px 12px;
    font-size: .82rem;
    border-radius: 12px;
}

.task-status-form .btn {
    min-height: 42px;
    padding: 8px 13px;
    font-size: .72rem;
    border-radius: 12px;
    white-space: nowrap;
}

.task-priority-low {
    border-left-color: #999999;
}

.task-priority-medium {
    border-left-color: #d97706;
}

.task-priority-high {
    border-left-color: #b45309;
}

.task-priority-urgent {
    border-left-color: #b42318;
}

.dashboard-card .client-tasks-list + .summary-text,
.dashboard-card .summary-text {
    font-size: .9rem;
}

@media (max-width: 767px) {
    .client-task-item {
        padding: 13px;
        border-radius: 15px;
    }

    .task-status-form {
        flex-direction: column;
    }

    .task-status-form .btn {
        width: 100%;
    }
}
/* TASK HISTORY MODAL */

.swal2-popup {
    border-radius: 24px !important;
}

.swal2-title {
    font-weight: 900 !important;
    letter-spacing: -0.03em;
}

.task-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-top: 8px;
}

.task-history-item {
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .045);
}

.task-history-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.task-history-top strong {
    font-size: .98rem;
    font-weight: 900;
    line-height: 1.25;
    color: #111111;
}

.task-history-status {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.task-history-status.is-completed {
    background: #eaf8ef;
    color: #177245;
}

.task-history-status.is-cancelled {
    background: #fff0f0;
    color: #b42318;
}

.task-history-meta {
    margin-top: 7px;
    color: var(--gf-muted);
    font-size: .82rem;
    font-weight: 700;
}

.task-history-description {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8f8f8;
    color: #333333;
    font-size: .88rem;
    line-height: 1.5;
}

.task-history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,.06);
}

.task-history-pagination span {
    min-width: 52px;
    text-align: center;
    color: var(--gf-muted);
    font-size: .85rem;
    font-weight: 800;
}

.task-history-pagination .btn {
    width: auto;
    min-height: 38px;
    padding: 8px 13px;
    font-size: .72rem;
    border-radius: 12px;
}

.task-history-empty {
    padding: 22px;
    border-radius: 18px;
    background: #f8f8f8;
    color: var(--gf-muted);
    font-weight: 700;
    text-align: center;
}

@media (max-width: 767px) {
    .task-history-top {
        flex-direction: column;
        gap: 8px;
    }

    .task-history-status {
        align-self: flex-start;
    }

    .task-history-pagination {
        flex-direction: column;
    }

    .task-history-pagination .btn {
        width: 100%;
    }
}

.task-alert-card {
    height: 100%;
}

.task-alert-warning {
    border-left: 5px solid #b7791f;
}

.task-alert-danger {
    border-left: 5px solid #b42318;
}

.task-alert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-alert-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 16px;
    background: #f8f8f8;
    color: var(--gf-text);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, .05);
}

.task-alert-item:hover {
    background: #ffffff;
    color: var(--gf-red);
}

.task-alert-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-alert-item strong {
    font-size: .95rem;
    font-weight: 900;
}

.task-alert-item span {
    font-size: .82rem;
    color: var(--gf-muted);
}

.task-alert-item small {
    align-self: flex-start;
    border-radius: 999px;
    background: rgba(122, 30, 44, .08);
    color: var(--gf-red);
    padding: 5px 9px;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .task-alert-item {
        flex-direction: column;
    }
}

.task-priority-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.task-priority-pill.task-priority-low {
    background: #f2f2f2;
    color: #555555;
}

.task-priority-pill.task-priority-medium {
    background: #fff7e8;
    color: #b7791f;
}

.task-priority-pill.task-priority-high {
    background: #fff1df;
    color: #b45309;
}

.task-priority-pill.task-priority-urgent {
    background: #fff0f0;
    color: #b42318;
}

.task-table-select {
    min-width: 140px;
}

@media (max-width: 767px) {
    .task-table-select {
        width: 100%;
    }
}

/* =========================================================
   ADMIN MOBILE DRAWER
   ========================================================= */

.admin-mobile-menu-btn,
.admin-mobile-drawer,
.admin-drawer-overlay {
    display: none;
}

@media (max-width: 991px) {

    .admin-bottom-nav {
        display: none !important;
    }

    .admin-mobile-menu-btn {
        position: fixed;
        top: 94px;
        left: 16px;
        z-index: 2100;

        width: 46px;
        height: 46px;
        border: none;
        border-radius: 16px;

        background: var(--gf-red);
        color: #ffffff;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        font-size: 1.45rem;
        font-weight: 900;

        box-shadow: 0 12px 28px rgba(122, 30, 44, .28);
    }

    .admin-drawer-overlay {
        position: fixed;
        inset: 0;
        z-index: 2200;

        background: rgba(0, 0, 0, .42);
        opacity: 0;
        pointer-events: none;

        display: block;
        transition: opacity .25s ease;
    }

    .admin-mobile-drawer {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 2300;

        width: min(82vw, 340px);
        height: 100vh;

        background: #7A1E2C;
        color: #ffffff;

        display: flex;
        flex-direction: column;

        padding: 28px 22px;

        transform: translateX(-105%);
        transition: transform .28s ease;

        box-shadow: 18px 0 45px rgba(0, 0, 0, .25);
    }

    .admin-drawer-open .admin-drawer-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-drawer-open .admin-mobile-drawer {
        transform: translateX(0);
    }

    .admin-mobile-drawer-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;

        padding-bottom: 24px;
        margin-bottom: 16px;

        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }

    .admin-mobile-drawer-label {
        display: block;
        margin-bottom: 6px;

        color: rgba(255,255,255,.62);
        font-size: .72rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .admin-mobile-drawer-header strong {
        display: block;

        font-size: 1.1rem;
        font-weight: 900;
        line-height: 1.2;
    }

    .admin-drawer-close {
        width: 38px;
        height: 38px;

        border: none;
        border-radius: 50%;

        background: rgba(255, 255, 255, .12);
        color: #ffffff;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        font-size: 1.7rem;
        line-height: 1;
    }

    .admin-mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .admin-mobile-menu a {
        display: flex;
        align-items: center;
        gap: 16px;

        padding: 15px 14px;

        border-radius: 18px;

        color: rgba(255,255,255,.86);
        text-decoration: none;

        font-size: 1.02rem;
        font-weight: 800;

        transition: background-color .18s ease, color .18s ease;
    }

    .admin-mobile-menu a:hover,
    .admin-mobile-menu a.active {
        background: rgba(255,255,255,.14);
        color: #ffffff;
    }

    .admin-mobile-menu a.disabled {
        opacity: .35;
        pointer-events: none;
    }

    .admin-menu-icon {
        width: 34px;
        height: 34px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        border-radius: 12px;

        background: rgba(255,255,255,.10);

        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .admin-drawer-open {
        overflow: hidden;
    }

    .dashboard-section {
        padding-top: 84px;
    }
}

@media (max-width: 480px) {

    .admin-mobile-menu-btn {
        top: 86px;
        left: 14px;
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .admin-mobile-drawer {
        width: 85vw;
        padding: 24px 18px;
    }

    .admin-mobile-menu a {
        font-size: .98rem;
        padding: 14px 12px;
    }
}