:root {
    --brand: #b4436c;
    --brand-dark: #8d3253;
    --brand-soft: #fdf2f6;
    --ink: #1f2430;
    --muted: #6b7280;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: #f7f7fb;
    color: var(--ink);
}

h1, h2, h3, h4, h5, h6, .fw-bold {
    letter-spacing: -0.015em;
}

/* ---------------------------------------------- Buttons & accents */
.btn-primary,
.btn-primary:focus {
    background-color: var(--brand);
    border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
}

.btn-outline-primary {
    color: var(--brand);
    border-color: var(--brand);
}

.btn-outline-primary:hover {
    background-color: var(--brand);
    border-color: var(--brand);
}

.text-primary {
    color: var(--brand) !important;
}

.bg-primary {
    background-color: var(--brand) !important;
}

.bg-brand-soft {
    background-color: var(--brand-soft);
}

.link-brand {
    color: var(--brand);
    text-decoration: none;
}

.link-brand:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.form-control:focus,
.form-select:focus {
    border-color: #e2a5bd;
    box-shadow: 0 0 0 0.2rem rgba(180, 67, 108, 0.15);
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

/* ---------------------------------------------- Navbar */
.app-navbar {
    box-shadow: 0 1px 12px rgba(31, 36, 48, 0.05);
}

.app-navbar .nav-link.active {
    color: var(--brand);
    font-weight: 600;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #e6739f);
    color: #fff;
    font-size: 1rem;
}

.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
    font-size: 0.8rem;
}

.avatar-circle-lg {
    width: 64px;
    height: 64px;
    font-size: 1.35rem;
}

/* ---------------------------------------------- Cards */
.card {
    border: 1px solid #eceef3;
    border-radius: 16px;
}

.card-hover {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(31, 36, 48, 0.09);
}

.stat-card .stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ---------------------------------------------- Hero */
.hero {
    background: linear-gradient(135deg, #fdf2f6 0%, #f3f0ff 55%, #eef6ff 100%);
    border-bottom: 1px solid #f0e7ee;
}

.hero-badge {
    background: #fff;
    border: 1px solid #f0dbe5;
    color: var(--brand);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.page-header {
    background: #fff;
    border-bottom: 1px solid #eceef3;
}

/* ---------------------------------------------- Calendar */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-dow {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    padding-bottom: 4px;
}

.calendar-cell {
    min-height: 92px;
    border: 1px solid #eceef3;
    border-radius: 12px;
    padding: 6px;
    background: #fff;
    font-size: 0.8rem;
}

.calendar-cell.is-muted {
    background: #fafafc;
    color: #c4c8d2;
}

.calendar-cell.is-today {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.calendar-date {
    font-weight: 700;
    font-size: 0.82rem;
}

.calendar-event {
    display: block;
    border-radius: 8px;
    padding: 2px 6px;
    margin-top: 3px;
    font-size: 0.7rem;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------- Misc */
.rating-stars {
    color: #f6b73c;
    letter-spacing: 1px;
}

.star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-input input {
    display: none;
}

.star-input label {
    font-size: 1.9rem;
    color: #dfe1e8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.12s ease;
}

.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
    color: #f6b73c;
}

.timeline {
    position: relative;
    padding-left: 1.6rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #ececf2;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.6rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--brand);
}

.slot-chip {
    border: 1px solid #e6e8ef;
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    background: #fff;
}

.slot-chip.is-taken {
    background: #fbeaef;
    border-color: #f3cdd8;
    color: #a33a5d;
    text-decoration: line-through;
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--muted);
}

.empty-state i {
    font-size: 2.6rem;
    color: #d7dae3;
}

.table > :not(caption) > * > * {
    padding: 0.85rem 0.75rem;
}

.notification-item.is-unread {
    background: var(--brand-soft);
}
