/* ============================================================
 * salon-admin.css — Salon Console (SalonAdminController.js)
 * Scoped styling for the dashboard plan widget + upgrade modal.
 * Split out of app.css in Phase 6b.
 * ============================================================ */

/* ---------- Plan widget ---------- */
.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-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;
}