:root {
    --bg: #fff7fb;
    --bg-soft: #ffeef7;
    --panel: #ffffff;
    --panel-dark: #19142c;
    --text: #2e243f;
    --muted: #7d708f;
    --accent: #ff77b7;
    --accent-2: #9f88ff;
    --line: #f5d8e7;
    --good: #2fbe8f;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 12% 10%, #ffd9ea 0%, #fff7fb 42%),
        radial-gradient(circle at 88% 20%, #e8ddff 0%, #fff7fb 35%);
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.hero {
    min-height: 92vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 182, 219, 0.18), rgba(184, 167, 255, 0.12));
    pointer-events: none;
}

.nav {
    z-index: 2;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 23px;
    font-weight: 800;
}

.brand span {
    color: #ff4ea5;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

.hero-content {
    z-index: 2;
    margin: auto;
    text-align: center;
    padding-bottom: 56px;
}

.hero-premium {
    max-width: 920px;
}

.badge,
.eyebrow {
    color: #d863a5;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 700;
}

h1 {
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.08;
    margin: 0 0 20px;
}

.subtitle {
    margin: 0 auto 30px;
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.dashboard-note {
    max-width: 520px;
    color: #c9bedf;
    margin: 8px 0 0;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 14px;
    border: 0;
    color: #261836;
    background: linear-gradient(120deg, #ff82bd, #a594ff);
    box-shadow: 0 10px 25px rgba(215, 112, 174, 0.25);
    font-weight: 700;
    cursor: pointer;
}

.btn-ghost {
    background: #fff;
    border: 1px solid #f0d2e3;
    box-shadow: none;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
}

.section {
    padding: 74px 0;
}

.section h2 {
    margin-top: 0;
    font-size: 36px;
}

.cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(229, 165, 203, 0.18);
}

.card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-dark {
    background: linear-gradient(165deg, #241b3d 0%, #34245a 65%, #3e2a6b 100%);
    color: #f9f3ff;
}

.section-dark .checks li {
    color: #dacde9;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.checks {
    list-style: none;
    padding: 0;
}

.checks li {
    margin: 10px 0;
    color: var(--muted);
}

.checks li::before {
    content: "✓ ";
    color: #ff9ad0;
}

.mockup {
    display: flex;
    justify-content: center;
}

.phone {
    width: 320px;
    border-radius: 28px;
    padding: 16px;
    background: #fef7ff;
    border: 1px solid #efcee2;
    color: #3a2853;
    box-shadow: 0 18px 35px rgba(195, 141, 175, 0.25);
}

.phone-title {
    font-weight: 700;
}

.message {
    font-size: 13px;
    color: #785f92;
    margin: 14px 0 8px;
}

.bubble {
    background: #f7e7ff;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.slots span {
    background: rgba(255, 119, 183, 0.18);
    border: 1px solid rgba(255, 119, 183, 0.5);
    border-radius: 10px;
    text-align: center;
    padding: 6px;
}

.cta {
    text-align: center;
}

.booking-form {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 14px 35px rgba(229, 165, 203, 0.18);
    padding: 16px;
}

.addons-box {
    grid-column: 1 / -1;
    border: 1px solid #f1d5e5;
    background: #fff8fc;
    border-radius: 12px;
    padding: 10px 12px;
}

.addon-interest-row {
    grid-column: 1 / -1;
}

.addon-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #f1d5e5;
    border-radius: 12px;
    background: #fff8fc;
    color: #5d4f72;
    font-weight: 600;
}

.addon-switch input {
    display: none;
}

.switch-ui {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #ead1e0;
    transition: background 0.2s ease;
}

.switch-ui::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.addon-switch input:checked + .switch-ui {
    background: linear-gradient(120deg, #ff8cc5, #ae99ff);
}

.addon-switch input:checked + .switch-ui::after {
    transform: translateX(18px);
}

.addons-title {
    margin: 0 0 10px;
    font-weight: 700;
    color: #6a527f;
}

.addons-list {
    display: grid;
    gap: 8px;
}

.addon-item {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    color: #5f5372;
}

.addon-item input[type="checkbox"] {
    width: auto;
}

label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: #6a5c7e;
}

input:not([type="checkbox"]),
select {
    width: 100%;
    border: 1px solid #e9c7da;
    background: #fffafd;
    color: #3b2f4f;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
}

input:not([type="checkbox"]):focus,
select:focus {
    outline: 2px solid #f3b7d8;
    border-color: #f3b7d8;
}

.flash-wrap {
    display: grid;
    gap: 8px;
}

.flash {
    margin-top: 10px;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
}

.flash.ok {
    background: rgba(47, 190, 143, 0.14);
    color: #1f8f6a;
}

.flash.error {
    background: rgba(255, 119, 183, 0.2);
    color: #b03f78;
}

.flatpickr-calendar {
    border-radius: 14px;
    border: 1px solid #f0cfe2;
}

/* Admin */
.admin-body {
    background: #0f0b20;
    color: #f8f8ff;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr;
}

.sidebar {
    background: #0f1227;
    border-right: 1px solid #21274f;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar a {
    padding: 9px 11px;
    border-radius: 10px;
    color: #c6cae4;
    font-size: 14px;
    line-height: 1.2;
    word-break: break-word;
}

.sidebar a.active,
.sidebar a:hover {
    background: #1c2250;
    color: #fff;
}

.admin-main {
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.metric,
.chart-card,
.table-card {
    background: #17112c;
    border: 1px solid #2a3161;
    border-radius: 18px;
    padding: 14px;
}

.metric p {
    color: var(--muted);
    margin: 0;
}

.metric h3 {
    margin: 8px 0;
    font-size: 28px;
}

.growth {
    color: var(--good);
    font-weight: 600;
}

.charts {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 14px;
}

.chart-wrap {
    height: 250px;
}

.table-card {
    margin-top: 14px;
}

.inline-form {
    display: flex;
    gap: 8px;
}

.service-form {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.logout-btn {
    width: 100%;
    margin-top: 10px;
    border: 0;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #2a3161;
    vertical-align: top;
}

th {
    color: #c4c9e8;
    font-weight: 600;
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status.done {
    background: rgba(61, 214, 159, 0.15);
    color: #79f0c2;
}

.status.wait {
    background: rgba(255, 204, 77, 0.15);
    color: #ffd977;
}

.status.cancelled {
    background: rgba(255, 94, 168, 0.2);
    color: #ffc4df;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: min(420px, 94vw);
    background: #17112c;
    border: 1px solid #2a3161;
    border-radius: 16px;
    padding: 22px;
    display: grid;
    gap: 12px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.filter-bar {
    margin-top: 0;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
    align-items: center;
}

.section-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 144, 205, 0.14);
    color: #ffc4e8;
    font-weight: 700;
}

.admin-split {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    align-items: start;
}

.form-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2a3161;
    border-radius: 16px;
    padding: 14px;
    position: sticky;
    top: 16px;
}

.service-form.vertical {
    grid-template-columns: 1fr;
}

.compact-table {
    overflow-x: auto;
}

.cell-title {
    max-width: 260px;
    word-break: break-word;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-btn {
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: #28183a;
    background: linear-gradient(120deg, #ff8ac2, #b9a5ff);
    cursor: pointer;
}

.mini-btn.ghost {
    background: #fff;
}

.appointments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.appointment-card {
    border-radius: 16px;
    border: 1px solid #2d315d;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    padding: 14px;
}

.appointment-card.hot {
    border-color: rgba(255, 141, 191, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 141, 191, 0.1), 0 12px 24px rgba(255, 141, 191, 0.08);
}

.appointment-card.warm {
    border-color: rgba(255, 214, 120, 0.4);
}

.appointment-card.cool {
    border-color: rgba(111, 168, 255, 0.28);
}

.appointment-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.appointment-time {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.03em;
    color: #d2c6ec;
}

.appointment-top h4 {
    margin: 0;
    font-size: 16px;
}

.appointment-client {
    margin: 12px 0;
    color: #efeafd;
}

.appointment-client small {
    color: #b9afd2;
}

.appointment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #cbbfe5;
}

.appointment-form {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.schedule-month-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.real-calendar {
    grid-template-columns: repeat(7, minmax(110px, 1fr));
}

.day-card {
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #2d315d;
    background: rgba(255, 255, 255, 0.03);
}

.day-card.working {
    border-color: rgba(98, 218, 179, 0.28);
}

.day-card.off {
    border-color: rgba(255, 128, 177, 0.28);
}

.day-card-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.day-card p,
.day-card small {
    margin: 8px 0 0;
    color: #c5bbdd;
}

@media (max-width: 1180px) {
    .real-calendar {
        grid-template-columns: repeat(5, minmax(110px, 1fr));
    }
}

@media (max-width: 960px) {
    .split {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .charts {
        grid-template-columns: 1fr;
    }

    .admin-split {
        grid-template-columns: 1fr;
    }

    .filters-form {
        grid-template-columns: 1fr;
    }

    .real-calendar {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}
