/* ============================================
   FullArchNetwork Clinic Dashboard CSS
   Matches the theme's navy/gold/teal design system
   ============================================ */

/* ── AUTH PAGES ── */
.fand-auth-wrapper {
    display: flex; justify-content: center; align-items: center;
    min-height: 60vh; padding: 48px 16px;
}
.fand-auth-card {
    width: 100%; max-width: 440px;
    background: var(--fan-card, #fff);
    border: 1px solid var(--fan-border, #e2e8f0);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: var(--fan-shadow-elevated, 0 25px 50px -12px rgba(0,0,0,0.15));
}
.fand-auth-card--wide { max-width: 600px; }
.fand-auth-header { text-align: center; margin-bottom: 32px; }
.fand-auth-icon {
    width: 64px; height: 64px; margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--fan-navy, hsl(220,60%,15%)), var(--fan-navy-deep, hsl(220,70%,8%)));
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 28px; box-shadow: 0 4px 12px hsl(220 60% 15% / 0.3);
}
.fand-auth-header h1 {
    font-family: var(--fan-font-display, 'Oswald', sans-serif);
    font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em; margin: 0;
}
.fand-auth-header p { color: var(--fan-muted-foreground, #666); font-size: 14px; margin-top: 4px; }
.fand-auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--fan-muted-foreground, #666); }
/* Sign-in / auth-footer link uses brand blue (was teal). */
.fand-auth-footer a,
.fand-link-signin { color: hsl(217,91%,55%); font-weight: 600; text-decoration: none; transition: color .15s ease; }
.fand-auth-footer a:hover,
.fand-link-signin:hover,
.fand-auth-footer a:focus-visible,
.fand-link-signin:focus-visible { color: hsl(217,91%,42%); text-decoration: underline; outline: none; }

/* ── FORMS ── */
.fand-form { display: flex; flex-direction: column; gap: 16px; }
.fand-form-section { background: var(--fan-card, #fff); border: 1px solid var(--fan-border, #e2e8f0); border-radius: 12px; padding: 24px; }
.fand-form-section h3 {
    font-family: var(--fan-font-display, 'Oswald', sans-serif);
    font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em;
    margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--fan-border, #e2e8f0);
}
.fand-form-group { margin-bottom: 12px; }
.fand-form-group label {
    display: block; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--fan-muted-foreground, #666); margin-bottom: 4px;
}
.fand-form-group label .required { color: #ef4444; }
.fand-form-group input, .fand-form-group select, .fand-form-group textarea {
    width: 100%; height: 44px; padding: 0 12px;
    border: 2px solid var(--fan-border, #e2e8f0); border-radius: 8px;
    font-family: var(--fan-font-body, 'Barlow', sans-serif); font-size: 15px;
    background: var(--fan-card, #fff); color: var(--fan-foreground, #1a1a2e);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.fand-form-group textarea { height: auto; padding: 12px; resize: vertical; }
.fand-form-group input:focus, .fand-form-group select:focus, .fand-form-group textarea:focus {
    outline: none; border-color: var(--fan-teal, hsl(212,90%,45%));
    box-shadow: 0 0 0 3px hsl(212 90% 45% / 0.15);
}
.fand-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fand-form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.fand-form-row { display: flex; justify-content: space-between; align-items: center; }
.fand-form-actions { padding-top: 16px; display: flex; gap: 12px; }
.fand-checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.fand-checkbox input[type="checkbox"] { width: 18px; height: 18px; }
.fand-btn-full { width: 100%; justify-content: center; font-size: 16px; height: 48px; }
.fand-link-small { font-size: 13px; color: var(--fan-teal, hsl(212,90%,45%)); }

/* ── ALERTS ── */
.fand-alert {
    padding: 12px 16px; border-radius: 10px; font-size: 14px; line-height: 1.5;
    border: 1px solid transparent; margin-bottom: 16px;
}
.fand-alert--success { background: hsl(212 90% 45% / 0.08); border-color: hsl(212 90% 45% / 0.2); color: var(--fan-teal, hsl(212,90%,45%)); }
.fand-alert--error { background: hsl(0 80% 50% / 0.08); border-color: hsl(0 80% 50% / 0.2); color: #dc2626; }

/* ── DASHBOARD LAYOUT ── */
.fand-dashboard {
    display: grid; grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 160px);
    max-width: 1400px; margin: 0 auto;
}

/* Sidebar */
.fand-sidebar {
    background: var(--fan-navy, hsl(220,60%,15%));
    color: hsl(0 0% 98%); display: flex; flex-direction: column;
    border-radius: 0 0 0 16px;
}
.fand-sidebar__header {
    display: flex; align-items: center; gap: 12px;
    padding: 24px 20px; border-bottom: 1px solid hsl(220 60% 20%);
}
.fand-sidebar__avatar {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--fan-gold, hsl(38,90%,50%)), hsl(38,60%,40%));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--fan-font-display, 'Oswald'); font-size: 20px; font-weight: 700;
    color: var(--fan-navy, hsl(220,60%,15%));
}
.fand-sidebar__info h3 { font-size: 14px; margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.fand-sidebar__nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.fand-sidebar__link {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 8px; font-size: 14px; font-weight: 500;
    color: hsl(220 20% 75%); text-decoration: none; transition: all 0.15s;
}
.fand-sidebar__link:hover { background: hsl(220 60% 20%); color: #fff; }
.fand-sidebar__link.active {
    background: hsl(212 90% 45% / 0.15); color: var(--fan-teal, hsl(212,90%,45%));
    font-weight: 600;
}
.fand-sidebar__icon { width: 20px; text-align: center; }
.fand-sidebar__badge {
    margin-left: auto; background: #ef4444; color: #fff;
    font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px;
}
.fand-sidebar__footer { padding: 12px 8px; border-top: 1px solid hsl(220 60% 20%); }
.fand-sidebar__link--logout { color: hsl(0 70% 65%); }
.fand-sidebar__link--logout:hover { background: hsl(0 70% 65% / 0.1); }

.fand-status-badge {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    padding: 2px 8px; border-radius: 6px;
}
.fand-status--publish { background: hsl(212 90% 45% / 0.2); color: hsl(212 90% 45%); }
.fand-status--pending { background: hsl(38 90% 50% / 0.2); color: hsl(38 90% 50%); }
.fand-status--draft { background: hsl(220 10% 60% / 0.2); color: hsl(220 10% 60%); }

/* Main */
.fand-main { padding: 32px; background: hsl(220 20% 97%); }
.fand-page-header { margin-bottom: 24px; }
.fand-page-header h1 {
    font-family: var(--fan-font-display, 'Oswald'); font-size: 28px;
    text-transform: uppercase; letter-spacing: 0.02em; margin: 0;
}
.fand-page-header p { margin-top: 4px; }

/* ── STAT CARDS ── */
.fand-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.fand-stat-card {
    background: var(--fan-card, #fff); border: 1px solid var(--fan-border, #e2e8f0);
    border-radius: 12px; padding: 20px; display: flex; gap: 16px; align-items: center;
}
.fand-stat-card__icon {
    width: 48px; height: 48px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.fand-stat-card__icon--views { background: hsl(220 60% 15% / 0.08); }
.fand-stat-card__icon--leads { background: hsl(212 90% 45% / 0.08); }
.fand-stat-card__icon--new { background: hsl(38 90% 50% / 0.08); }
.fand-stat-card__icon--rate { background: hsl(262 80% 50% / 0.08); }
.fand-stat-card__value {
    font-family: var(--fan-font-display, 'Oswald'); font-size: 28px; font-weight: 700;
    line-height: 1; color: var(--fan-navy, hsl(220,60%,15%));
}
.fand-stat-card__label { font-size: 12px; color: var(--fan-muted-foreground, #666); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── QUICK ACTIONS ── */
.fand-quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fand-quick-action {
    display: flex; flex-direction: column; gap: 4px; padding: 20px;
    background: var(--fan-card, #fff); border: 1px solid var(--fan-border, #e2e8f0);
    border-radius: 12px; text-decoration: none; color: inherit;
    transition: all 0.2s;
}
.fand-quick-action:hover { border-color: var(--fan-teal, hsl(212,90%,45%)); box-shadow: var(--fan-shadow-card-hover); transform: translateY(-2px); }
.fand-quick-action span { font-size: 24px; }
.fand-quick-action strong { font-size: 14px; }
.fand-quick-action small { font-size: 12px; color: var(--fan-muted-foreground, #666); }

/* ── SECTION ── */
.fand-section { margin-bottom: 32px; }
.fand-section h2 {
    font-family: var(--fan-font-display, 'Oswald'); font-size: 18px;
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px;
}

/* ── PROGRESS BAR ── */
.fand-progress-bar { height: 8px; background: var(--fan-border, #e2e8f0); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.fand-progress-bar__fill { height: 100%; background: linear-gradient(90deg, var(--fan-teal), var(--fan-gold)); border-radius: 8px; transition: width 0.5s; }

/* ── CHECKLIST ── */
.fand-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fand-checklist__item { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px; border-radius: 8px; background: var(--fan-card, #fff); border: 1px solid var(--fan-border); }
.fand-checklist__item.done { opacity: 0.6; }
.fand-checklist__item a { color: var(--fan-teal); font-weight: 600; }

/* ── CHART ── */
.fand-chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.fand-chart-header select { padding: 6px 12px; border: 1px solid var(--fan-border); border-radius: 8px; font-size: 13px; }
.fand-chart-container { background: var(--fan-card, #fff); border: 1px solid var(--fan-border); border-radius: 12px; padding: 24px; }

/* ── LEADS ── */
.fand-filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.fand-filter-pill {
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
    border: 1px solid var(--fan-border); background: var(--fan-card); color: var(--fan-foreground);
    text-decoration: none; transition: all 0.15s;
}
.fand-filter-pill:hover { border-color: var(--fan-teal); color: var(--fan-teal); }
.fand-filter-pill.active { background: var(--fan-teal); color: #fff; border-color: var(--fan-teal); }

.fand-lead-card {
    background: var(--fan-card, #fff); border: 1px solid var(--fan-border);
    border-radius: 12px; padding: 20px; margin-bottom: 12px;
}
.fand-lead-card__header { display: flex; justify-content: space-between; align-items: flex-start; }
.fand-lead-card__header h3 { margin: 0; font-size: 16px; }
.fand-lead-card__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fand-lead-status { padding: 4px 8px; border: 1px solid var(--fan-border); border-radius: 6px; font-size: 12px; }
.fand-lead-notes { margin-top: 8px; padding: 8px; background: hsl(220 20% 97%); border-radius: 8px; }
.fand-lead-card__actions { display: flex; gap: 8px; margin-top: 12px; }

.fand-empty-state { text-align: center; padding: 64px 16px; color: var(--fan-muted-foreground); }
.fand-empty-state span { font-size: 48px; display: block; margin-bottom: 16px; }

/* ── MEDIA ── */
.fand-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fand-media-upload {
    background: var(--fan-card); border: 1px solid var(--fan-border);
    border-radius: 12px; padding: 24px;
}
.fand-media-upload h3 { margin: 0 0 4px; font-size: 16px; }
.fand-media-preview { margin: 16px 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--fan-border); }
.fand-media-preview img { width: 100%; height: 200px; object-fit: cover; display: block; }
.fand-media-preview--logo img { height: 120px; object-fit: contain; padding: 16px; }
.fand-media-upload input[type="file"] { margin-top: 12px; }

/* ── REPEATER (Frontend) ── */
.fand-repeater-list { display: flex; flex-direction: column; gap: 16px; }
.fand-repeater-item {
    background: var(--fan-card); border: 1px solid var(--fan-border);
    border-radius: 12px; padding: 20px; position: relative;
}
.fand-repeater-item__header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--fan-border);
}
.fand-repeater-item__title { font-family: var(--fan-font-display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.fand-repeater-remove { color: #dc2626; cursor: pointer; background: none; border: none; font-size: 18px; padding: 4px 8px; border-radius: 6px; }
.fand-repeater-remove:hover { background: hsl(0 80% 50% / 0.1); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .fand-dashboard { grid-template-columns: 1fr; }
    .fand-sidebar { display: none; } /* TODO: mobile toggle */
    .fand-stats-grid { grid-template-columns: 1fr 1fr; }
    .fand-quick-actions { grid-template-columns: 1fr 1fr; }
    .fand-form-grid { grid-template-columns: 1fr; }
    .fand-form-grid--3 { grid-template-columns: 1fr; }
    .fand-media-grid { grid-template-columns: 1fr; }
    .fand-checklist { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .fand-stats-grid { grid-template-columns: 1fr; }
    .fand-quick-actions { grid-template-columns: 1fr; }
    .fand-auth-card { padding: 24px 16px; }
}

/* ── REPEATER ITEMS ── */
.fand-repeater-list { display: flex; flex-direction: column; gap: 16px; }
.fand-repeater-item {
    background: var(--fan-card, #fff); border: 1px solid var(--fan-border, #e2e8f0);
    border-radius: 12px; padding: 20px; position: relative;
}
.fand-repeater-item__header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--fan-border, #e2e8f0);
}
.fand-repeater-item__title {
    font-family: var(--fan-font-display, 'Oswald'); font-size: 14px;
    text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
}
.fand-repeater-remove {
    width: 28px; height: 28px; border-radius: 6px; border: 1px solid #e2e8f0;
    background: #fff; color: #dc2626; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.fand-repeater-remove:hover { background: #fef2f2; border-color: #fca5a5; }

/* ── LEAD CARDS ── */
.fand-leads-list { display: flex; flex-direction: column; gap: 12px; }
.fand-lead-card {
    background: var(--fan-card, #fff); border: 1px solid var(--fan-border, #e2e8f0);
    border-radius: 12px; padding: 20px;
}
.fand-lead-card__header { display: flex; justify-content: space-between; align-items: flex-start; }
.fand-lead-card__header h3 { margin: 0; font-size: 16px; }
.fand-lead-card__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fand-lead-card__actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--fan-border, #e2e8f0); }
.fand-lead-notes { background: hsl(220 20% 97%); border-radius: 8px; padding: 12px; margin-top: 8px; }

/* ── FILTER BAR ── */
.fand-filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.fand-filter-pill {
    padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
    text-decoration: none; background: var(--fan-card, #fff); border: 1px solid var(--fan-border, #e2e8f0);
    color: var(--fan-foreground, #333); transition: all 0.15s;
}
.fand-filter-pill.active, .fand-filter-pill:hover {
    background: var(--fan-teal, hsl(212,90%,45%)); color: #fff; border-color: transparent;
}

/* ── EMPTY STATE ── */
.fand-empty-state {
    text-align: center; padding: 60px 20px; color: var(--fan-muted-foreground, #999);
}
.fand-empty-state span { font-size: 48px; display: block; margin-bottom: 16px; }
.fand-empty-state h3 { font-family: var(--fan-font-display, 'Oswald'); font-size: 20px; text-transform: uppercase; margin: 0 0 8px; color: var(--fan-foreground, #333); }

/* ── ANALYTICS FIX ── */
.fand-chart-container { overflow: hidden; }
.fand-chart-container canvas { max-width: 100% !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .fand-dashboard { grid-template-columns: 1fr; }
    .fand-sidebar { flex-direction: row; overflow-x: auto; border-radius: 0; }
    .fand-sidebar__header { display: none; }
    .fand-sidebar__nav { flex-direction: row; padding: 8px; gap: 4px; }
    .fand-sidebar__footer { display: none; }
    .fand-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .fand-quick-actions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .fand-main { padding: 16px; }
    .fand-stats-grid { grid-template-columns: 1fr !important; }
    .fand-form-grid { grid-template-columns: 1fr !important; }
}

/* ============================================
   v1.6.0 — Multi-clinic switcher & My Clinics
   ============================================ */
.fand-sidebar__switcher {
    padding: 12px 16px; border-bottom: 1px solid hsl(220 60% 20%);
    display: flex; flex-direction: column; gap: 6px;
}
.fand-sidebar__switcher label {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    color: hsl(220 20% 65%);
}
.fand-sidebar__switcher select {
    width: 100%; height: 36px; padding: 0 10px; font-size: 13px; font-family: inherit;
    background: hsl(220 60% 12%); color: #fff;
    border: 1px solid hsl(220 60% 22%); border-radius: 8px; cursor: pointer;
}
.fand-sidebar__switcher select:focus { outline: none; border-color: var(--fan-teal); }
.fand-sidebar__badge--neutral { background: hsl(220 30% 35%); }

/* My Clinics grid */
.fand-clinic-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.fand-clinic-card {
    background: var(--fan-card, #fff); border: 1px solid var(--fan-border, #e2e8f0);
    border-radius: 12px; padding: 20px; transition: border-color 0.2s, box-shadow 0.2s;
}
.fand-clinic-card.is-active { border-color: var(--fan-teal); box-shadow: 0 0 0 3px hsl(168 76% 36% / 0.12); }
.fand-clinic-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.fand-clinic-card__header h3 { font-size: 15px; margin: 0; line-height: 1.3; }
.fand-clinic-card__meta { font-size: 13px; color: var(--fan-muted-foreground); margin: 8px 0 14px; }
.fand-clinic-card__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.text-muted { color: var(--fan-muted-foreground, #666); }

/* ── Subscription locked sidebar links ── */
.fand-sidebar__link.is-locked { opacity: 0.55; }
.fand-sidebar__link.is-locked:hover { opacity: 0.85; }

/* ============================================
   v1.7.4 — Profile, top-bar, media placeholder, clinic cards
   ============================================ */

/* Top profile bar */
.fand-topbar { display:flex; align-items:center; justify-content:flex-end; margin-bottom:20px; }
.fand-topbar__spacer { flex:1; }
.fand-topbar__profile {
    display:inline-flex; align-items:center; gap:10px;
    padding:6px 14px 6px 6px; border-radius:999px;
    background:var(--fan-card,#fff); border:1px solid var(--fan-border,#e2e8f0);
    text-decoration:none; color:var(--fan-foreground,#1a1a2e);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.fand-topbar__profile:hover { border-color: hsl(217,91%,55%); box-shadow:0 2px 12px hsl(217 91% 55% / .15); }
.fand-topbar__avatar {
    width:32px; height:32px; border-radius:50%; object-fit:cover;
    display:inline-flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg, var(--fan-gold,hsl(38,90%,50%)), hsl(38,60%,40%));
    color:var(--fan-navy,hsl(220,60%,15%)); font-weight:700; font-family:var(--fan-font-display,'Oswald',sans-serif);
}
.fand-topbar__name { font-size:14px; font-weight:600; }
.fand-topbar__chev { font-size:14px; opacity:.7; }

/* Sidebar avatar can render an image */
.fand-sidebar__avatar { overflow:hidden; }
.fand-sidebar__avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.fand-sidebar__avatar-link { display:block; line-height:0; }

/* Profile tab */
.fand-profile-avatar-row { display:flex; align-items:center; gap:20px; }
.fand-profile-avatar-preview {
    width:96px; height:96px; border-radius:50%; overflow:hidden;
    background:linear-gradient(135deg, var(--fan-gold,hsl(38,90%,50%)), hsl(38,60%,40%));
    display:flex; align-items:center; justify-content:center;
    color:var(--fan-navy,hsl(220,60%,15%)); font:700 36px var(--fan-font-display,'Oswald',sans-serif);
    border:2px solid var(--fan-border,#e2e8f0);
}
.fand-profile-avatar-preview img { width:100%; height:100%; object-fit:cover; }
.fand-file-upload { display:inline-block; cursor:pointer; }
.fand-file-upload input[type="file"] { display:none; }

/* Media placeholder */
.fand-media-placeholder {
    height:200px; display:flex; flex-direction:column; align-items:center; justify-content:center;
    background:hsl(220 20% 97%); color:var(--fan-muted-foreground,#999); gap:8px;
    border:2px dashed var(--fan-border,#e2e8f0); border-radius:8px;
}
.fand-media-placeholder span { font-size:36px; }
.fand-media-placeholder p { margin:0; font-size:13px; }
.fand-media-preview--logo .fand-media-placeholder { height:120px; }

/* Notification email row */
.fand-notify-email__form { display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; }

/* Polished sidebar dropdown (clinic switcher) */
.fand-sidebar__switcher select {
    appearance:none; -webkit-appearance:none; -moz-appearance:none;
    background-color: hsl(220 60% 12%);
    background-image: linear-gradient(45deg, transparent 50%, hsl(220 20% 70%) 50%),
                      linear-gradient(135deg, hsl(220 20% 70%) 50%, transparent 50%);
    background-position: calc(100% - 16px) center, calc(100% - 11px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 30px; height:40px;
    transition: border-color .15s, box-shadow .15s;
}
.fand-sidebar__switcher select:hover { border-color: hsl(217,91%,55%); }
.fand-sidebar__switcher select:focus { border-color: hsl(217,91%,55%); box-shadow: 0 0 0 3px hsl(217 91% 55% / .25); }

/* My Clinics card layout */
.fand-clinic-grid {
    display:grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap:16px;
}
.fand-clinic-card {
    display:flex; flex-direction:column; gap:14px;
    background: var(--fan-card, #fff); border:1px solid var(--fan-border, #e2e8f0);
    border-radius:14px; padding:20px; transition: border-color .2s, box-shadow .2s, transform .15s;
}
.fand-clinic-card:hover { border-color: hsl(217,91%,55%); box-shadow:0 6px 18px hsl(220 60% 15% / .08); transform: translateY(-1px); }
.fand-clinic-card.is-active { border-color: var(--fan-teal, hsl(212,90%,45%)); box-shadow:0 0 0 3px hsl(212 90% 45% / .12); }
.fand-clinic-card__logo {
    width:64px; height:64px; border-radius:12px; overflow:hidden;
    background: hsl(220 20% 97%); display:flex; align-items:center; justify-content:center;
    color: var(--fan-navy, hsl(220,60%,15%)); font:700 24px var(--fan-font-display,'Oswald',sans-serif);
    border:1px solid var(--fan-border, #e2e8f0);
}
.fand-clinic-card__logo img { width:100%; height:100%; object-fit:cover; display:block; }
.fand-clinic-card__name { margin:0 0 4px; font-size:16px; line-height:1.3; }
.fand-clinic-card__date { font-size:12px; color: var(--fan-muted-foreground,#666); margin-bottom:8px; }
.fand-clinic-card__actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:auto; }

/* ============================================
   v1.7.6 — Surgeon list cards & photo uploader
   ============================================ */
.fand-surgeon-list { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:14px; }
.fand-surgeon-card {
    display:flex; flex-direction:column; gap:12px;
    background:var(--fan-card,#fff); border:1px solid var(--fan-border,#e2e8f0);
    border-radius:12px; padding:16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: transform .2s ease, box-shadow .2s ease;
    min-height: 100%;
}
.fand-surgeon-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(0,0,0,0.12); }
.fand-surgeon-card__top { display:flex; align-items:center; gap:12px; min-width:0; }
.fand-surgeon-card__avatar {
    width:52px; height:52px; border-radius:50%; overflow:hidden; flex-shrink:0;
    background:linear-gradient(135deg, var(--fan-gold,hsl(38,90%,50%)), hsl(38,60%,40%));
    color:var(--fan-navy,hsl(220,60%,15%)); font:700 18px var(--fan-font-display,'Oswald',sans-serif);
    display:flex; align-items:center; justify-content:center;
}
.fand-surgeon-card__avatar img { width:100%; height:100%; object-fit:cover; }
.fand-surgeon-card__body { flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.fand-surgeon-card__body strong { font-size:14px; line-height:1.3; word-break:break-word; }
.fand-surgeon-card__body small { font-size:12px; color:var(--fan-muted,#6b7280); }

/* Photo uploader (used in surgeons repeater) */
.fand-photo-uploader { display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.fand-photo-uploader__preview {
    width:96px; height:96px; border-radius:8px; overflow:hidden;
    border:1px dashed var(--fan-border,#e2e8f0); background:hsl(220 20% 97%);
    display:flex; align-items:center; justify-content:center;
    color:var(--fan-muted,#6b7280); font-size:11px; text-align:center;
}
.fand-photo-uploader__preview img { width:100%; height:100%; object-fit:cover; }
.fan-btn--sm { padding:4px 10px; font-size:12px; line-height:1.4; }
.fan-btn--ghost { background:transparent; border:1px solid transparent; color:var(--fan-muted,#6b7280); }
.fan-btn--ghost:hover { color:hsl(0 70% 45%); border-color:hsl(0 70% 45% / .3); }

/* ── v1.8.0 ───────────────────────────────── */
/* Financing Available — clean inline alignment with checkbox */
.fand-checkbox--inline { display:inline-flex; align-items:center; gap:10px; padding:12px 0; min-height:42px; font-size:14px; font-weight:500; }
.fand-checkbox--inline input[type="checkbox"] { width:18px; height:18px; margin:0; flex-shrink:0; cursor:pointer; }
.fand-checkbox--inline span { line-height:1.2; }

/* Notify-email layout: input on left, button on right */
.fand-notify-email__form { display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; justify-content:flex-start; }
.fand-notify-email__form .fand-form-group { flex:1 1 320px; max-width:480px; }
.fand-notify-email__current { display:flex; align-items:center; gap:10px; margin:8px 0 14px; padding:10px 14px; background:var(--fan-secondary,#f3f5f8); border:1px solid var(--fan-border,#e2e8f0); border-radius:8px; font-size:14px; }
.fand-notify-email__current strong { color:var(--fan-foreground,#1a1a2e); font-weight:600; }
.fand-notify-email__current .fan-btn { margin-left:auto; }

/* Equal-width clinic card actions (Edit / View / Delete) */
.fand-clinic-card__actions { display:flex; gap:8px; flex-wrap:nowrap; align-items:stretch; margin-top:auto; }
.fand-clinic-card__actions > form,
.fand-clinic-card__actions > a,
.fand-clinic-card__actions > button { flex:1 1 0; min-width:0; }
.fand-clinic-card__actions .fan-btn { width:100%; padding-left:8px; padding-right:8px; }

/* Secondary blue button — for the View action */
.fan-btn--secondary { background:hsl(212, 90%, 92%); color:hsl(212, 90%, 30%); border:1px solid hsl(212, 90%, 80%); }
.fan-btn--secondary:hover { background:hsl(212, 90%, 86%); color:hsl(212, 90%, 24%); }

/* ============================================
   v1.8.1 — Hard overrides
   Force blue branding even if parent theme defines --fan-teal as green.
   Fix Leads notification email layout.
   ============================================ */
.fand-dashboard {
    --fan-teal: hsl(212, 90%, 45%);
    --fan-teal-light: hsl(212, 90%, 95%);
    --fan-ring: hsl(212, 90%, 45%);
}
.fand-dashboard .fan-btn--primary { background: hsl(212, 90%, 45%) !important; color:#fff !important; border-color: transparent !important; }
.fand-dashboard .fan-btn--primary:hover { background: hsl(212, 90%, 38%) !important; color:#fff !important; }

/* Leads — Notification email layout */
.fand-notify-email { text-align:left; }
.fand-notify-email__form {
    display:flex !important;
    flex-wrap:wrap;
    align-items:flex-end;
    gap:8px !important;
    justify-content:flex-start !important;
    margin-top:12px;
}
.fand-notify-email__form .fand-form-group {
    flex: 0 1 360px;
    max-width: 360px;
    margin:0 !important;
    text-align:left;
}
.fand-notify-email__form .fand-form-group label {
    text-align:left;
    display:block;
    margin-bottom:6px;
}
.fand-notify-email__form .fand-form-group input {
    width:100%;
}
.fand-notify-email__form > .fan-btn {
    margin-left:0 !important;
    align-self:flex-end;
}
.fand-notify-email__current { justify-content:flex-start; }

/* ── v1.8.2 — Checkbox grids for Languages / Financing Partners ── */
.fand-dashboard .fand-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px 16px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 6px;
}
.fand-dashboard .fand-checkbox-grid .fand-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
}
.fand-dashboard .fand-checkbox-grid .fand-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: hsl(212, 90%, 45%);
}

/* Delete-lead button */
.fand-dashboard .fan-btn--danger.fand-delete-lead-btn {
    background: hsl(0, 72%, 51%);
    color: #fff;
    border: 1px solid hsl(0, 72%, 51%);
}
.fand-dashboard .fan-btn--danger.fand-delete-lead-btn:hover {
    background: hsl(0, 72%, 45%);
}
.fand-dashboard .fand-lead-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* ===== v2.1.4 — Register page complimentary trial banner ===== */
.fand-trial-banner{display:flex;align-items:center;gap:16px;padding:18px 22px;margin:0 0 28px;background:linear-gradient(135deg,#eff6ff,#dbeafe);border:1px solid #bfdbfe;border-radius:14px;box-shadow:0 10px 30px -18px rgba(29,78,216,0.30);position:relative;overflow:hidden;}
.fand-trial-banner::before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(180deg,#3b82f6,#1d4ed8);}
.fand-trial-banner__icon{flex:0 0 48px;width:48px;height:48px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-size:24px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;box-shadow:0 8px 18px -8px rgba(29,78,216,0.55);}
.fand-trial-banner__body{flex:1;}
.fand-trial-banner__title{margin:0 0 2px;font-size:15px;font-weight:700;color:#1e3a8a;letter-spacing:-0.01em;}
.fand-trial-banner__text{margin:0;font-size:13.5px;color:#1e40af;line-height:1.5;}
@media (max-width:520px){.fand-trial-banner{padding:16px;gap:12px;}.fand-trial-banner__icon{flex-basis:40px;width:40px;height:40px;font-size:20px;}}
