/* Massage Booking – Woo Client Dashboard v1.2 */

/* ─── Layout base WooCommerce ──────────────────────── */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { box-sizing: border-box; }
.woocommerce-account .woocommerce { display: flex; gap: 24px; align-items: flex-start; }

@media (max-width: 980px) {
    .woocommerce-account .woocommerce { display: block; }
    .woocommerce-account .woocommerce-MyAccount-navigation { width: 100%; position: relative; top: auto; margin-bottom: 16px; }
}

/* ─── Sidebar de navegação ─────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 260px;
    background: #0b0f19;
    border-radius: 16px;
    padding: 14px;
    position: sticky;
    top: 18px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0 !important; padding: 0 !important; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #e8edf7;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background .15s, opacity .12s;
    opacity: .88;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: rgba(255,255,255,.06); opacity: 1; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active > a {
    background: linear-gradient(90deg, rgba(201,162,39,.18), rgba(201,162,39,.06));
    color: #C9A227;
    opacity: 1;
}

/* ─── Content area ─────────────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(16,24,40,.07);
    min-width: 0;
}

/* ─── Dashboard premium container ─────────────────── */
.mbwc-premium-dashboard { display: flex; flex-direction: column; gap: 24px; animation: mbwcFade .4s ease-out; }
@keyframes mbwcFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Hero Banner ──────────────────────────────────── */
.mbwc-hero-banner {
    background: linear-gradient(135deg, #0b0f19 0%, #1e1230 50%, #2a0e18 100%);
    border-radius: 20px;
    padding: 36px 36px 36px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15,23,42,.18);
}
.mbwc-hero-decoration {
    position: absolute;
    top: -40%;
    right: -5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(201,162,39,.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.mbwc-hero-content { position: relative; z-index: 2; }
.mbwc-hero-title   { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.mbwc-hero-subtitle{ margin: 0 0 22px; font-size: 15px; color: #94a3b8; line-height: 1.5; }
.mbwc-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Botões glamour ───────────────────────────────── */
.mbwc-btn-glamour {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    border: none;
}
.mbwc-btn-primary         { background: #fff; color: #0f172a !important; box-shadow: 0 8px 20px rgba(255,255,255,.12); }
.mbwc-btn-primary:hover   { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,255,255,.2); }
.mbwc-btn-outline-light   { background: rgba(255,255,255,.08); color: #fff !important; border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(8px); }
.mbwc-btn-outline-light:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.mbwc-btn-dark            { background: #0f172a; color: #fff !important; }
.mbwc-btn-dark:hover      { filter: brightness(1.12); }
.mbwc-btn-block { display: block; width: 100%; text-align: center; }

/* ─── Alerta créditos baixos ───────────────────────── */
.mbwc-alert-low {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(201,162,39,.08);
    border: 1px solid rgba(201,162,39,.28);
    border-left: 4px solid #C9A227;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    color: #5a4200;
    flex-wrap: wrap;
}
.mbwc-alert-icon { font-size: 20px; flex-shrink: 0; }
.mbwc-alert-low > div { flex: 1; }
.mbwc-alert-cta {
    background: #C9A227;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none !important;
    font-size: 13px;
    white-space: nowrap;
}
.mbwc-alert-cta:hover { filter: brightness(1.1); }

/* ─── Glass Cards (stats) ──────────────────────────── */
.mbwc-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.mbwc-glass-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(16,24,40,.06);
    text-decoration: none !important;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}
.mbwc-glass-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,24,40,.1); }
.mbwc-glass-link       { cursor: pointer; }

.mbwc-glass-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.mbwc-icon-green  { background: rgba(16,185,129,.1); }
.mbwc-icon-purple { background: rgba(99,102,241,.1); }
.mbwc-icon-amber  { background: rgba(201,162,39,.1); }

.mbwc-glass-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; margin-bottom: 4px; }
.mbwc-glass-value { font-size: 20px; font-weight: 900; color: #0f172a; line-height: 1; }
.mbwc-arrow       { font-size: 14px; opacity: .6; }

/* ─── Próximo agendamento / Countdown ─────────────── */
.mbwc-next-booking {
    background: linear-gradient(135deg, #0b0f19, #1e293b);
    border-radius: 16px;
    padding: 20px 24px;
    color: #fff;
}
.mbwc-next-booking__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #C9A227;
    margin-bottom: 14px;
}
.mbwc-pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #C9A227;
    animation: mbwcPulse 2s ease-in-out infinite;
}
@keyframes mbwcPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .6; transform: scale(1.3); }
}
.mbwc-next-booking__body    { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.mbwc-next-booking__service { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.mbwc-next-booking__datetime{ font-size: 13px; color: #94a3b8; margin-bottom: 10px; }

.mbwc-countdown-num  { font-size: 48px; font-weight: 900; color: #C9A227; line-height: 1; text-align: center; }
.mbwc-countdown-unit { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #64748b; text-align: center; }
.mbwc-countdown-today{ font-size: 28px; font-weight: 900; color: #4ade80; }

/* ─── Badges ───────────────────────────────────────── */
.mbwc-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 11px;
}
.mbwc-badge--confirmed, .mbwc-badge--completed { background: #dcfce7; color: #166534; }
.mbwc-badge--pending, .mbwc-badge--pending_provider { background: #fef9c3; color: #854d0e; }
.mbwc-badge--cancelled, .mbwc-badge--rejected { background: #fee2e2; color: #991b1b; }

/* ─── Seção de pacotes ─────────────────────────────── */
.mbwc-elegant-section   { background: #fff; border: 1px solid #eef2f7; border-radius: 16px; padding: 22px; box-shadow: 0 4px 16px rgba(16,24,40,.06); }
.mbwc-section-header    { margin-bottom: 18px; }
.mbwc-section-title     { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: #0f172a; }
.mbwc-section-desc      { margin: 0; font-size: 13px; color: #64748b; }
.mbwc-table-responsive  { overflow-x: auto; }

.mbwc-elegant-table     { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.mbwc-elegant-table th  { text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; padding: 0 14px 8px; }
.mbwc-elegant-table td  { background: rgba(0,0,0,.02); padding: 12px 14px; border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7; }
.mbwc-elegant-table tr td:first-child { border-left: 1px solid #eef2f7; border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.mbwc-elegant-table tr td:last-child  { border-right: 1px solid #eef2f7; border-top-right-radius: 10px; border-bottom-right-radius: 10px; }

.mbwc-pkg-name    { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mbwc-pkg-icon    { font-size: 18px; }

/* Barra de progresso de créditos */
.mbwc-pkg-progress      { width: 100%; height: 4px; background: #e2e8f0; border-radius: 4px; margin-top: 7px; overflow: hidden; }
.mbwc-pkg-progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #C9A227, #6B0F1A); transition: width .5s ease; }

.mbwc-text-success  { color: #166534; font-weight: 800; }
.mbwc-text-muted    { color: #94a3b8; }
.mbwc-status-badge  { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.mbwc-status-active { background: rgba(34,197,94,.12); color: #166534; }

/* ─── Empty state ──────────────────────────────────── */
.mbwc-empty-elegant { text-align: center; padding: 50px 24px; }
.mbwc-empty-icon    { font-size: 44px; display: block; margin-bottom: 14px; }
.mbwc-empty-elegant h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; color: #0f172a; }
.mbwc-empty-elegant p  { color: #64748b; margin: 0 auto 20px; max-width: 380px; line-height: 1.6; }

/* ─── Página genérica (calendário, pacotes) ────────── */
.mbwc-page     { animation: mbwcFade .3s ease; }
.mbwc-header   { margin-bottom: 24px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px; }
.mbwc-header h2{ margin: 0 0 4px; font-size: 22px; color: #0f172a; font-weight: 800; }
.mbwc-subtitle { margin: 0; color: #64748b; font-size: 14px; }

/* ─── Calendário ───────────────────────────────────── */
.mbwc-calendar-layout   { display: flex; gap: 20px; }
.mbwc-calendar-main     { flex: 1; min-width: 0; }
.mbwc-calendar-sidebar  { width: 240px; flex-shrink: 0; }
.mbwc-calendar-container{ border: 1px solid #eef2f7; border-radius: 14px; overflow: hidden; }

.mbwc-cal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.mbwc-cal-nav  { background: transparent; border: none; font-size: 20px; cursor: pointer; color: #64748b; line-height: 1; padding: 0 4px; }
.mbwc-cal-nav:hover { color: #0b0f19; }
.mbwc-cal-title{ font-weight: 800; font-size: 15px; }

.mbwc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: #eef2f7; }
.mbwc-cal-cell { min-height: 72px; background: #fff; padding: 7px; cursor: pointer; transition: background .12s; }
.mbwc-cal-cell:hover:not(.mbwc-cal-empty):not(.mbwc-cal-dowcell) { background: #f8fafc; }
.mbwc-cal-cell.active { background: #f8fafc; box-shadow: inset 0 0 0 2px #0b0f19; }
.mbwc-cal-dowcell { min-height: auto; text-align: center; font-size: 11px; font-weight: 800; color: #64748b; padding: 9px; cursor: default; }
.mbwc-cal-empty { cursor: default; }
.mbwc-cal-num   { font-weight: 800; color: #0f172a; font-size: 13px; margin-bottom: 4px; }
.mbwc-cal-dots  { display: flex; gap: 3px; flex-wrap: wrap; }
.dot            { display: block; width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; }
.dot--confirmed, .dot--completed { background: #166534; }
.dot--pending   { background: #ca8a04; }
.dot--cancelled { background: #dc2626; }
.more           { font-size: 10px; color: #64748b; font-weight: 800; line-height: 1; }

.mbwc-cal-detail       { padding: 14px; border-top: 1px solid #eef2f7; }
.mbwc-cal-detail-title { font-weight: 800; margin-bottom: 10px; font-size: 13px; color: #0f172a; }
.mbwc-cal-item         { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 8px 10px; border-radius: 10px; background: #f1f5f9; margin-bottom: 6px; font-weight: 700; }
.mbwc-cal-item-time    { color: #64748b; margin-right: 8px; }
.mbwc-loading-state    { padding: 40px; text-align: center; color: #64748b; font-weight: 600; }

/* Próximos (sidebar do calendário) */
.mbwc-side-title { font-weight: 800; font-size: 15px; margin-bottom: 14px; color: #0f172a; }
.mbwc-up-item    { border: 1px solid #eef2f7; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.mbwc-up-date    { font-size: 11px; color: #64748b; font-weight: 800; margin-bottom: 3px; }
.mbwc-up-title   { font-weight: 800; color: #0f172a; margin-bottom: 8px; font-size: 14px; }
.mbwc-muted      { color: #64748b; font-size: 14px; }

/* ─── Pricing grid (pacotes) ───────────────────────── */
.mbwc-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.mbwc-pricing-card {
    border: 1px solid #eef2f7;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(16,24,40,.06);
    transition: transform .2s, box-shadow .2s;
}
.mbwc-pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(16,24,40,.1); }
.mbwc-pricing-header { background: linear-gradient(135deg, #0b0f19, #1e293b); padding: 24px 20px; text-align: center; }
.mbwc-pricing-title  { font-size: 18px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.mbwc-pricing-price  { font-size: 30px; font-weight: 900; color: #C9A227; }
.mbwc-pricing-body   { padding: 20px; }
.mbwc-pricing-features { list-style: none; margin: 0; padding: 0; }
.mbwc-pricing-features li { padding: 8px 0; font-size: 14px; color: #374151; border-bottom: 1px solid #f1f5f9; }
.mbwc-pricing-features li:last-child { border-bottom: none; }
.mbwc-pricing-footer { padding: 0 20px 20px; }
.mbwc-btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6B0F1A, #C9A227);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none !important;
    font-size: 14px;
    transition: filter .15s;
}
.mbwc-btn-block:hover { filter: brightness(1.08); }

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 980px) {
    .mbwc-glass-grid { grid-template-columns: 1fr 1fr; }
    .mbwc-calendar-layout { flex-direction: column; }
    .mbwc-calendar-sidebar { width: 100%; }
}
@media (max-width: 620px) {
    .mbwc-hero-banner { padding: 24px 20px; }
    .mbwc-hero-title  { font-size: 20px; }
    .mbwc-glass-grid  { grid-template-columns: 1fr; }
    .mbwc-next-booking__countdown { display: none; }
    .mbwc-calendar-container { overflow-x: auto; }
    .mbwc-cal-grid { min-width: 350px; }
    .mbwc-pricing-grid { grid-template-columns: 1fr; }
}
