/* ============================================================
 * app.css — theme, layout, cards
 * ============================================================ */
:root {
    --brand-primary: #7C3AED;
    --brand-secondary: #F59E0B;
    --sidebar-w: 240px;
    --navbar-h: 60px;
}

/* ---------- brand colors ---------- */
.btn-primary,
.bg-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}
.btn-primary:hover {
    filter: brightness(0.92);
}
.text-primary {
    color: var(--brand-primary) !important;
}
.btn-warning {
    background-color: var(--brand-secondary) !important;
    border-color: var(--brand-secondary) !important;
    color: #222 !important;
}

/* ---------- navbar ---------- */
.app-navbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,.06);
    height: var(--navbar-h);
    z-index: 1030;
}
.app-navbar .navbar-brand {
    font-weight: 600;
    color: var(--brand-primary);
}

/* ---------- sidebar + main layout ---------- */
.app-shell {
    display: flex;
    min-height: calc(100vh - var(--navbar-h) - 40px);
}
.app-sidebar {
    width: var(--sidebar-w);
    background: #1f2340;
    color: #c9cbe2;
    padding: 1rem 0;
    flex-shrink: 0;
}
.app-sidebar .nav-link {
    color: #c9cbe2;
    padding: .65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    border-left: 3px solid transparent;
    transition: all .15s ease;
}
.app-sidebar .nav-link:hover,
.app-sidebar .nav-link.active {
    background: rgba(255,255,255,.05);
    color: #ffffff;
    border-left-color: var(--brand-secondary);
}
.app-sidebar .nav-link i {
    font-size: 1.1rem;
}
.app-main {
    flex: 1;
    padding: 1.5rem 2rem;
    background: #f6f7fb;
}
.app-shell.no-sidebar .app-sidebar { display: none; }

/* ---------- cards ---------- */
.card {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(16,24,40,.04);
}
.card .card-title {
    font-weight: 600;
}

/* ---------- feature card (landing) ---------- */
.feature-card {
    transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16,24,40,.08);
}
.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: .5rem;
}

/* ---------- hero ---------- */
.hero-section {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    padding: 4rem 0 5rem;
}

/* ---------- footer ---------- */
.app-footer {
    padding: .75rem 1.5rem;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,.06);
    font-size: .875rem;
    color: #6b7280;
}

/* ---------- auth shell ---------- */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f6f7fb 0%, #e6e8f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-shell { width: 100%; max-width: 520px; }
.auth-card { border-radius: 1rem; }
.auth-card .nav-pills .nav-link {
    color: #6b7280;
    font-size: .875rem;
}
.auth-card .nav-pills .nav-link.active {
    background: var(--brand-primary);
    color: #fff;
}

/* ---------- NProgress overrides ---------- */
#nprogress .bar {
    background: var(--brand-secondary) !important;
    height: 3px;
}

/* ---------- small helpers ---------- */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.table-hover tbody tr { cursor: pointer; }
.badge-soft {
    background: rgba(124,58,237,.12);
    color: var(--brand-primary);
    font-weight: 500;
}

/* ============================================================
 * SLOTS — grid of cards grouped by day
 * ============================================================ */

/* Day header (weekday name + full date + count summary) */
.slot-day-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 1.75rem 0 .75rem 0;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.slot-day-header:first-child { margin-top: .5rem; }
.slot-day-header .day-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #1f2340;
}
.slot-day-header .day-date {
    font-size: .85rem;
    color: #6b7280;
    margin-top: .1rem;
}
.slot-day-header .day-count {
    font-size: .8rem;
    color: #6b7280;
    text-align: right;
}

/* Grid of cards */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem;
}

/* Individual slot card */
.slot-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .6rem;
    padding: .75rem .85rem;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    position: relative;
    min-height: 4.25rem;
}
.slot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(16,24,40,.08);
    border-color: var(--brand-primary);
}

.slot-card .slot-time {
    font-weight: 600;
    font-size: .95rem;
    color: #1f2340;
    margin-bottom: .35rem;
    padding-right: 4rem; /* leave room for the status pill */
}

.slot-card .slot-meta {
    font-size: .8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: .25rem;
    line-height: 1.15;
}
.slot-card .slot-meta i {
    font-size: .85rem;
    flex-shrink: 0;
}

/* Left border + background tint by status */
.slot-card.slot-available {
    border-left: 3px solid #10b981;
}
.slot-card.slot-booked {
    border-left: 3px solid #3b82f6;
    background: #f8fafc;
}
.slot-card.slot-blocked,
.slot-card.slot-cancelled {
    border-left: 3px solid #6b7280;
    background: #f8fafc;
}

/* Status pill (top-right corner) */
.slot-card .slot-status-badge {
    position: absolute;
    top: .55rem;
    right: .6rem;
    font-size: .6rem;
    padding: .15rem .4rem;
    border-radius: .25rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .3px;
}

.slot-card.slot-available .slot-status-badge {
    background: rgba(16,185,129,.14);
    color: #047857;
}
.slot-card.slot-booked .slot-status-badge {
    background: rgba(59,130,246,.14);
    color: #1d4ed8;
}
.slot-card.slot-blocked .slot-status-badge,
.slot-card.slot-cancelled .slot-status-badge {
    background: rgba(107,114,128,.15);
    color: #374151;
}

/* Empty-day placeholder (not currently used — kept for future) */
.slot-empty-day {
    font-size: .85rem;
    color: #9ca3af;
    font-style: italic;
    padding: .5rem 0;
}

/* ============================================================
 * SERVICE PICK CARDS — used in the client booking wizard
 * ============================================================ */

/* ---------- the card ---------- */
.service-pick-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .75rem;
    padding: 1rem 1.05rem 1rem 1.15rem;
    cursor: pointer;
    transition: transform .15s ease,
                box-shadow .15s ease,
                border-color .15s ease,
                background-color .15s ease;
    overflow: hidden;
    height: 100%;
}

/* ---------- the accent bar that slides in on hover ---------- */
.service-pick-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand-primary);
    transform: translateX(-100%);
    transition: transform .18s ease;
}

/* ---------- soft glow behind the card on hover ---------- */
.service-pick-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at top right,
        rgba(124,58,237,.08),
        transparent 60%
    );
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}

.service-pick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(16,24,40,.10),
                0 2px 6px rgba(16,24,40,.06);
    border-color: rgba(124,58,237,.35);
}

.service-pick-card:hover::before {
    transform: translateX(0);
}

.service-pick-card:hover::after {
    opacity: 1;
}

/* ---------- selected state ---------- */
.service-pick-card.selected {
    border-color: var(--brand-primary);
    background: rgba(124,58,237,.04);
    box-shadow: 0 0 0 2px rgba(124,58,237,.18),
                0 8px 20px rgba(124,58,237,.10);
}

.service-pick-card.selected::before {
    transform: translateX(0);
    background: var(--brand-primary);
    width: 5px;
}

.service-pick-card.selected::after {
    opacity: 1;
    background: radial-gradient(
        circle at top right,
        rgba(124,58,237,.14),
        transparent 65%
    );
}

/* ---------- checkmark badge on selected ---------- */
.service-pick-card.selected .service-pick-check {
    opacity: 1;
    transform: scale(1);
}

.service-pick-check {
    position: absolute;
    top: .6rem;
    right: .6rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

/* ---------- price pill pulse on hover ---------- */
.service-pick-card .service-price {
    font-weight: 700;
    color: var(--brand-primary);
    transition: transform .15s ease, color .15s ease;
    display: inline-block;
}
.service-pick-card:hover .service-price {
    transform: scale(1.06);
}

/* ---------- duration icon wiggle ---------- */
.service-pick-card .service-duration-icon {
    display: inline-block;
    transition: transform .2s ease;
}
.service-pick-card:hover .service-duration-icon {
    transform: rotate(-15deg) scale(1.1);
}

/* ---------- category chip shift ---------- */
.service-pick-card .service-category-chip {
    transition: transform .15s ease, box-shadow .15s ease;
}
.service-pick-card:hover .service-category-chip {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(16,24,40,.08);
}

/* ============================================================
 * BOOKING CONFIRMATION MODAL
 * ============================================================ */
.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .35rem 0;
}
.confirm-row .confirm-label {
    color: #6b7280;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .3px;
    flex-shrink: 0;
    min-width: 80px;
}
.confirm-row .confirm-value {
    font-weight: 500;
    color: #1f2340;
    text-align: right;
    flex: 1;
    word-break: break-word;
}
.confirm-row .confirm-value.text-muted {
    font-weight: 400;
    font-style: italic;
}

#confirm-amount {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* ============================================================
 * PAY METHOD CARDS (client pay modal)
 * ============================================================ */
.pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.pay-method-card {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    border: 1.5px solid rgba(0,0,0,.10);
    border-radius: .55rem;
    background: #ffffff;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    color: #1f2340;
    transition: transform .12s ease,
                border-color .12s ease,
                background-color .12s ease,
                box-shadow .12s ease;
    user-select: none;
}
.pay-method-card:hover {
    border-color: rgba(124,58,237,.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(16,24,40,.06);
}
.pay-method-card.selected {
    border-color: var(--brand-primary);
    background: rgba(124,58,237,.06);
    box-shadow: 0 0 0 2px rgba(124,58,237,.18);
    color: var(--brand-primary);
}
.pay-method-card i {
    font-size: 1rem;
}


/* ============================================================
 * BOOKING-PERCENTAGE WIDGET (Reports page)
 * ============================================================ */

.bp-widget-card {
    border: 1px solid rgba(124,58,237,.14);
    background:
        radial-gradient(1200px 200px at -10% -10%, rgba(124,58,237,.06), transparent 60%),
        radial-gradient(900px 200px at 110% -10%, rgba(245,158,11,.05), transparent 60%),
        #ffffff;
}

/* -------- segmented period toggle -------- */
.bp-toggle-group {
    display: inline-flex;
    background: #f3f4f8;
    border-radius: .65rem;
    padding: .25rem;
    gap: .15rem;
    box-shadow: inset 0 1px 2px rgba(16,24,40,.04);
}
.bp-period-btn {
    border: 0;
    background: transparent;
    padding: .4rem .85rem;
    font-size: .85rem;
    font-weight: 500;
    color: #4b5563;
    border-radius: .5rem;
    transition: all .15s ease;
    white-space: nowrap;
}
.bp-period-btn:hover {
    color: var(--brand-primary);
    background: rgba(124,58,237,.06);
}
.bp-period-btn.active {
    background: #ffffff;
    color: var(--brand-primary);
    box-shadow: 0 1px 3px rgba(16,24,40,.10),
                0 0 0 1px rgba(124,58,237,.18);
    font-weight: 600;
}
.bp-period-btn i {
    font-size: .8rem;
    margin-right: .15rem;
}

/* -------- custom date range -------- */
.bp-custom-range .form-control {
    border-radius: .55rem;
}
.bp-custom-range .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 .2rem rgba(124,58,237,.15);
}

/* -------- chart cards -------- */
.bp-chart-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: .75rem;
    padding: .85rem 1rem 1rem;
    height: 100%;
}
.bp-chart-title {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: .5rem;
}
.bp-chart-wrap {
    position: relative;
    height: 240px;
}
.bp-chart-wrap--bar {
    height: 240px;
}

/* -------- mini tables -------- */
.bp-mini-table {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: .65rem;
    padding: .75rem .85rem;
}
.bp-mini-table table th {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: #6b7280;
    border-bottom-width: 1px;
}
.bp-mini-table table td {
    font-size: .88rem;
    vertical-align: middle;
}

/* colored dot in the status table */
.bp-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: .45rem;
    vertical-align: middle;
    box-shadow: 0 0 0 2px #ffffff,
                0 0 0 3px rgba(0,0,0,.04);
}

/* inline mini bar in the bucket table */
.bp-mini-bar {
    display: inline-block;
    height: 6px;
    min-width: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg,
        var(--brand-primary),
        var(--brand-secondary));
    opacity: .85;
}

/* -------- empty state -------- */
.bp-empty {
    color: #9ca3af;
}

/* -------- responsive tweaks -------- */
@media (max-width: 576px) {
    .bp-toggle-group {
        width: 100%;
        justify-content: space-between;
    }
    .bp-period-btn {
        flex: 1;
        padding: .4rem .5rem;
        font-size: .8rem;
    }
    .bp-chart-wrap,
    .bp-chart-wrap--bar {
        height: 200px;
    }
}

/* ============================================================
 * Package selection — fancy UI (Batch 6a, full-width revision)
 * ============================================================ */

/* ---------- Wide-mode shell override ----------
 * Login + OTP tabs stay narrow (520px, unchanged).
 * Register tab toggles .auth-wide on <html> → shell + card expand.
 * ------------------------------------------------------------ */
html.auth-wide .auth-body {
    padding: 1.5rem 1rem;
    align-items: flex-start;     /* top-align so tall cards don't get clipped */
}

html.auth-wide .auth-shell {
    max-width: 96rem;            /* fill near-full viewport width */
    width: 100%;
}

html.auth-wide .auth-card {
    max-width: 100%;
    border-radius: 1.5rem;
}

html.auth-wide .auth-card .card-body {
    padding: 2.5rem 2.5rem 2rem;
}

/* Smooth transition when opening/closing the register tab */
.auth-shell, .auth-card, .auth-card .card-body {
    transition: max-width 0.35s ease, padding 0.35s ease;
}

/* Mobile — fall back to standard padding */
@media (max-width: 767px) {
    html.auth-wide .auth-body {
        padding: 0.75rem 0.5rem;
    }
    html.auth-wide .auth-card .card-body {
        padding: 1.5rem 1rem 1.25rem;
    }
}

/* ---------- Hero section ---------- */
.pkg-hero {
    padding: 0.25rem 0.5rem 0;
    margin-bottom: 1.5rem;
}

.pkg-hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7C3AED;
    background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(236,72,153,.12));
    padding: 0.4rem 1rem;
    border-radius: 999px;
}

.pkg-hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.pkg-hero-title .text-gradient {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 60%, #F59E0B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pkg-hero-sub {
    font-size: 1rem;
    color: #6B7280;
    margin: 0;
}

/* ---------- Grid — full width, equal columns ---------- */
.pkg-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 0.5rem 0;
}

/* Tablet — 2 columns */
@media (max-width: 991px) {
    .pkg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* Mobile — 1 column */
@media (max-width: 575px) {
    .pkg-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

/* ---------- Skeleton shimmer ---------- */
.pkg-skeleton {
    height: 420px;
    border-radius: 1.25rem;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: pkg-shimmer 1.4s ease-in-out infinite;
}

@keyframes pkg-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- Card ---------- */
.pkg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        border-color 0.2s ease,
        box-shadow 0.3s ease;
    overflow: hidden;
    isolation: isolate;
    min-height: 420px;
}

.pkg-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--pkg-gradient, linear-gradient(135deg, #7C3AED, #F59E0B));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.pkg-card-in {
    opacity: 1;
    transform: translateY(0);
}

.pkg-card:hover {
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -14px rgba(124, 58, 237, 0.35);
}

.pkg-card:hover::before {
    opacity: 0.07;
}

.pkg-card.selected {
    border-color: #7C3AED;
    background: linear-gradient(180deg, #FAF5FF 0%, #ffffff 70%);
    box-shadow:
        0 0 0 4px rgba(124, 58, 237, 0.16),
        0 20px 40px -14px rgba(124, 58, 237, 0.45);
    transform: translateY(-6px);
}

/* Featured (Growth) */
.pkg-card-featured {
    border-color: #EC4899;
    box-shadow: 0 14px 32px -14px rgba(236, 72, 153, 0.35);
}

.pkg-card-featured:hover {
    box-shadow: 0 22px 44px -14px rgba(236, 72, 153, 0.5);
}

/* Ribbon */
.pkg-ribbon {
    position: absolute;
    top: 0.9rem;
    right: -2.6rem;
    transform: rotate(35deg);
    background: linear-gradient(135deg, #EC4899, #F59E0B);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 3rem;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.5);
    z-index: 3;
}

/* Icon badge */
.pkg-icon {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 1.1rem;
    background: var(--pkg-gradient, linear-gradient(135deg, #7C3AED, #F59E0B));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 8px 18px -8px rgba(124, 58, 237, 0.5);
    transition: transform 0.3s ease;
}

.pkg-card:hover .pkg-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Name + tagline */
.pkg-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.01em;
}

.pkg-tagline {
    font-size: 0.95rem;
    color: #6B7280;
    margin: 0.35rem 0 1rem;
    line-height: 1.35;
    min-height: 2.7em;
}

/* Price */
.pkg-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.pkg-amount {
    font-size: 2.15rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pkg-currency {
    font-size: 0.85rem;
    color: #6B7280;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.pkg-period {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin-left: 0.1rem;
}

/* Trial pill */
.pkg-trial {
    font-size: 0.82rem;
    font-weight: 700;
    color: #92400E;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    margin-bottom: 1rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.pkg-trial-empty {
    background: transparent;
    box-shadow: none;
    visibility: hidden;
}

/* Features */
.pkg-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: #374151;
    flex: 1;
}

.pkg-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.3rem 0;
    line-height: 1.35;
}

.pkg-features li i {
    color: #10B981;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1rem;
}

/* Select button */
.pkg-select-btn {
    background: #F3F4F6;
    color: #374151;
    border: none;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    margin-top: auto;
    width: 100%;
}

.pkg-select-btn .pkg-select-arrow {
    transition: transform 0.25s ease;
    font-size: 1rem;
}

.pkg-card:hover .pkg-select-btn {
    background: #E5E7EB;
}

.pkg-card:hover .pkg-select-arrow {
    transform: translateX(4px);
}

.pkg-card.selected .pkg-select-btn {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(124, 58, 237, 0.55);
}

.pkg-card.selected .pkg-select-arrow {
    display: none;
}

/* Check badge */
.pkg-check {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #10B981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
    z-index: 4;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.pkg-card.selected .pkg-check {
    transform: scale(1);
}

/* Error / empty state */
.pkg-error {
    grid-column: 1 / -1;
    padding: 2.5rem 1rem;
    text-align: center;
    color: #DC2626;
    font-size: 0.95rem;
    background: #FEF2F2;
    border: 1px dashed #FCA5A5;
    border-radius: 0.85rem;
}

/* ---------- Selected bar under cards ---------- */
.pkg-selected-bar {
    margin-top: 1.25rem;
    padding: 0.9rem 1.15rem;
    border-radius: 0.85rem;
    background: #F9FAFB;
    border: 1px dashed #D1D5DB;
    font-size: 0.95rem;
    color: #6B7280;
    text-align: center;
    transition: all 0.35s ease;
}

.pkg-selected-bar.has-selection {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    border: 1px solid #6EE7B7;
    color: #065F46;
    font-weight: 600;
}

.pkg-selected-bar i {
    margin-right: 0.35rem;
    font-size: 1rem;
}

/* ---------- Register button glow ---------- */
.btn-register-glow:not(:disabled) {
    animation: pkg-btn-glow 2.4s ease-in-out infinite;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 0.75rem;
}

@keyframes pkg-btn-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50%      { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}

.btn-register-glow:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ---------- Trust row ---------- */
.pkg-trust-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: #9CA3AF;
}

.pkg-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pkg-trust-row i {
    color: #7C3AED;
    font-size: 1rem;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991px) {
    .pkg-hero-title {
        font-size: 1.65rem;
    }
    .pkg-card {
        min-height: 380px;
    }
    .pkg-amount {
        font-size: 1.85rem;
    }
    .pkg-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 575px) {
    .pkg-hero-title {
        font-size: 1.35rem;
    }
    .pkg-hero-sub {
        font-size: 0.85rem;
    }
    .pkg-trust-row {
        gap: 0.85rem;
        font-size: 0.75rem;
    }
    .pkg-card {
        min-height: auto;
        padding: 1.35rem 1.15rem 1.15rem;
    }
    .pkg-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.4rem;
    }
    .pkg-amount {
        font-size: 1.65rem;
    }
    .pkg-name {
        font-size: 1.2rem;
    }
    .pkg-features {
        font-size: 0.85rem;
    }
    .pkg-select-btn {
        padding: 0.7rem 0.85rem;
        font-size: 0.88rem;
    }
}



/* ============================================================
 * Plan widget — salon dashboard (Phase 6b)
 * ============================================================ */

.plan-widget-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(16,24,40,.06);
}

.plan-widget-card::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at top right, rgba(124,58,237,.12), transparent 65%);
    pointer-events: none;
}

.plan-widget-body {
    position: relative;
    padding: 1.25rem 1.5rem 1.15rem;
}

.plan-widget-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.plan-widget-icon {
    width: 3rem;
    height: 3rem;
    border-radius: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 8px 18px -8px rgba(124,58,237,.5);
    flex-shrink: 0;
}

.plan-widget-title {
    flex: 1;
    min-width: 0;
}

.plan-widget-eyebrow {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9CA3AF;
}

.plan-widget-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
    margin: .1rem 0 .25rem;
}

.plan-widget-meta {
    font-size: .85rem;
    color: #6B7280;
}

.plan-widget-meta b { color: #111827; }

.plan-widget-meta .pw-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 999px;
    margin-right: .35rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.pw-pill-trial {
    background: linear-gradient(135deg,#FEF3C7,#FDE68A);
    color: #92400E;
}

.pw-pill-active {
    background: linear-gradient(135deg,#D1FAE5,#A7F3D0);
    color: #065F46;
}

.plan-widget-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
    align-self: flex-start;
}

/* ---------- meters grid ---------- */
.plan-widget-meters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

@media (max-width: 991px) {
    .plan-widget-meters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .plan-widget-meters {
        grid-template-columns: 1fr;
    }
    .plan-widget-head {
        flex-wrap: wrap;
    }
}

.pw-meter { }

.pw-meter-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .35rem;
    font-size: .8rem;
}

.pw-meter-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #374151;
    font-weight: 600;
}

.pw-meter-label i {
    color: #7C3AED;
    font-size: .9rem;
}

.pw-meter-value {
    color: #6B7280;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: .78rem;
}

.pw-meter-track {
    height: 8px;
    border-radius: 999px;
    background: #F3F4F6;
    overflow: hidden;
    position: relative;
}

.pw-meter-fill {
    height: 100%;
    border-radius: 999px;
    transition: width .4s ease;
    background: linear-gradient(90deg,#7C3AED,#EC4899);
}

.pw-meter-ok .pw-meter-fill {
    background: linear-gradient(90deg,#10B981,#34D399);
}

.pw-meter-warn .pw-meter-fill {
    background: linear-gradient(90deg,#F59E0B,#FBBF24);
}

.pw-meter-warn .pw-meter-value {
    color: #92400E;
    font-weight: 700;
}

.pw-meter-danger .pw-meter-fill {
    background: linear-gradient(90deg,#EF4444,#F87171);
}

.pw-meter-danger .pw-meter-value {
    color: #991B1B;
    font-weight: 700;
}

.pw-meter-unlimited .pw-meter-fill {
    background: linear-gradient(90deg,#7C3AED,#EC4899);
    opacity: .35;
    width: 100% !important;
}

.pw-meter-unlimited .pw-meter-value {
    color: #7C3AED;
    font-weight: 700;
}

/* ---------- upgrade modal ---------- */
.upgrade-plan-card {
    border: 1.5px solid #e5e7eb;
    border-radius: .85rem;
    padding: 1rem;
    height: 100%;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.upgrade-plan-card:hover {
    border-color: #7C3AED;
    box-shadow: 0 8px 18px -8px rgba(124,58,237,.25);
}

.upgrade-plan-current {
    border-color: #7C3AED;
    background: linear-gradient(180deg,#FAF5FF,#ffffff);
}

.upgrade-plan-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.upgrade-plan-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.upgrade-plan-desc {
    font-size: .82rem;
    color: #6B7280;
    line-height: 1.35;
    min-height: 2.4em;
    margin-bottom: .5rem;
}


