/* ==========================================================================
   Find Instructor - application styles (built on Bootstrap 5.3)
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../../vendor/inter/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../../vendor/inter/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../../vendor/inter/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../../vendor/inter/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../../vendor/inter/inter-latin-800-normal.woff2") format("woff2"); }

:root {
    --fi-primary: #1d4ed8;
    --fi-primary-rgb: 29, 78, 216;
    --fi-primary-dark: #1e3a8a;
    --fi-primary-soft: #eef3ff;
    --fi-navy: #0b1530;
    --fi-navy-2: #111f45;
    --fi-accent: #f59e0b;
    --fi-whatsapp: #178a46;
    --fi-whatsapp-dark: #11703a;
    --fi-ink: #0f172a;
    --fi-muted: #64748b;
    --fi-line: #e5e9f2;
    --fi-surface: #ffffff;
    --fi-canvas: #f5f7fb;
    --fi-radius: .75rem;
    --fi-radius-lg: 1rem;
    --fi-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --fi-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12);
    --fi-shadow-lg: 0 24px 48px -20px rgba(15, 23, 42, .25);
    --fi-sidebar-width: 264px;

    --bs-primary: var(--fi-primary);
    --bs-primary-rgb: var(--fi-primary-rgb);
    --bs-primary-text-emphasis: var(--fi-primary-dark);
    --bs-primary-bg-subtle: var(--fi-primary-soft);
    --bs-primary-border-subtle: #c7d6fb;
    --bs-link-color: var(--fi-primary);
    --bs-link-color-rgb: var(--fi-primary-rgb);
    --bs-link-hover-color: var(--fi-primary-dark);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: var(--fi-ink);
    --bs-body-bg: var(--fi-canvas);
    --bs-secondary-color: var(--fi-muted);
    --bs-border-color: var(--fi-line);
    --bs-border-radius: .625rem;
    --bs-border-radius-lg: var(--fi-radius-lg);
    --bs-focus-ring-color: rgba(var(--fi-primary-rgb), .2);
}

body { font-size: .9375rem; -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -.02em; color: var(--fi-ink); }
a { text-decoration: none; }
.text-muted, .text-secondary { color: var(--fi-muted) !important; }
.fw-semibold { font-weight: 600 !important; }
.small-caps { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fi-muted); }
.min-w-0 { min-width: 0; }

/* Buttons ---------------------------------------------------------------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-y: .55rem; --bs-btn-padding-x: 1rem; --bs-btn-font-size: .9rem; border-radius: .625rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-sm { --bs-btn-padding-y: .35rem; --bs-btn-padding-x: .7rem; --bs-btn-font-size: .8125rem; border-radius: .5rem; }
.btn-lg { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.4rem; --bs-btn-font-size: 1rem; border-radius: .75rem; }
.btn-primary {
    --bs-btn-bg: var(--fi-primary); --bs-btn-border-color: var(--fi-primary);
    --bs-btn-hover-bg: var(--fi-primary-dark); --bs-btn-hover-border-color: var(--fi-primary-dark);
    --bs-btn-active-bg: var(--fi-primary-dark); --bs-btn-active-border-color: var(--fi-primary-dark);
    --bs-btn-disabled-bg: var(--fi-primary); --bs-btn-disabled-border-color: var(--fi-primary);
    --bs-btn-focus-shadow-rgb: var(--fi-primary-rgb);
}
.btn-outline-primary {
    --bs-btn-color: var(--fi-primary); --bs-btn-border-color: #c7d6fb;
    --bs-btn-hover-bg: var(--fi-primary); --bs-btn-hover-border-color: var(--fi-primary);
    --bs-btn-active-bg: var(--fi-primary-dark); --bs-btn-active-border-color: var(--fi-primary-dark);
}
.btn-soft { --bs-btn-color: var(--fi-ink); --bs-btn-bg: #fff; --bs-btn-border-color: var(--fi-line); --bs-btn-hover-bg: #f8fafc; --bs-btn-hover-border-color: #cfd6e4; --bs-btn-hover-color: var(--fi-ink); --bs-btn-active-bg: #f1f5f9; --bs-btn-active-border-color: #cfd6e4; box-shadow: var(--fi-shadow-sm); }
.btn-soft-primary { --bs-btn-color: var(--fi-primary); --bs-btn-bg: var(--fi-primary-soft); --bs-btn-border-color: transparent; --bs-btn-hover-bg: #dfe8ff; --bs-btn-hover-color: var(--fi-primary-dark); --bs-btn-active-bg: #d3e0ff; }
.btn-soft-danger { --bs-btn-color: #b42318; --bs-btn-bg: #fef3f2; --bs-btn-border-color: transparent; --bs-btn-hover-bg: #fee4e2; --bs-btn-hover-color: #912018; --bs-btn-active-bg: #fecdca; }
.btn-soft-success { --bs-btn-color: #067647; --bs-btn-bg: #ecfdf3; --bs-btn-border-color: transparent; --bs-btn-hover-bg: #d1fadf; --bs-btn-hover-color: #05603a; --bs-btn-active-bg: #a6f4c5; }
.btn-whatsapp {
    --bs-btn-color: #fff; --bs-btn-bg: var(--fi-whatsapp); --bs-btn-border-color: var(--fi-whatsapp);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--fi-whatsapp-dark); --bs-btn-hover-border-color: var(--fi-whatsapp-dark);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--fi-whatsapp-dark); --bs-btn-active-border-color: var(--fi-whatsapp-dark);
    --bs-btn-focus-shadow-rgb: 23, 138, 70;
}
.btn-icon { width: 2.25rem; height: 2.25rem; padding: 0; }
.btn-icon.btn-sm { width: 2rem; height: 2rem; }

/* Forms ------------------------------------------------------------------ */
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: .4rem; color: #1e293b; }
.form-control, .form-select { border-color: #d6dce8; border-radius: .625rem; padding: .6rem .85rem; font-size: .9375rem; box-shadow: var(--fi-shadow-sm); }
.form-control-lg, .form-select-lg { padding: .75rem 1rem; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: #93b0f5; box-shadow: 0 0 0 .25rem rgba(var(--fi-primary-rgb), .14); }
.form-control::placeholder { color: #9aa4b6; }
.form-check-input:checked { background-color: var(--fi-primary); border-color: var(--fi-primary); }
.form-check-input:focus { border-color: #93b0f5; box-shadow: 0 0 0 .25rem rgba(var(--fi-primary-rgb), .14); }
.form-text { color: var(--fi-muted); font-size: .8rem; }
.input-group-text { background: #f8fafc; border-color: #d6dce8; color: var(--fi-muted); border-radius: .625rem; }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; z-index: 5; }
.input-icon > .form-control, .input-icon > .form-select { padding-left: 2.5rem; }
.password-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #94a3b8; width: 2.25rem; height: 2.25rem; border-radius: .5rem; z-index: 5; }
.password-toggle:hover { color: var(--fi-ink); background: #f1f5f9; }
.input-icon > .form-control.has-toggle { padding-right: 2.75rem; }
.is-invalid ~ .password-toggle { right: 2rem; }

/* Cards ------------------------------------------------------------------ */
.card { --bs-card-border-color: var(--fi-line); --bs-card-border-radius: var(--fi-radius-lg); --bs-card-inner-border-radius: calc(var(--fi-radius-lg) - 1px); --bs-card-cap-bg: transparent; box-shadow: var(--fi-shadow-sm); }
.card-header { padding: 1rem 1.25rem; border-bottom-color: var(--fi-line); }
.card-body { padding: 1.25rem; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0; }
@media (min-width: 768px) { .card-body-lg { padding: 1.75rem; } }

/* Badges ----------------------------------------------------------------- */
.badge { font-weight: 600; padding: .4em .65em; border-radius: 999px; letter-spacing: .01em; }
.badge-soft-success { background: #ecfdf3; color: #067647; }
.badge-soft-warning { background: #fffaeb; color: #b54708; }
.badge-soft-danger { background: #fef3f2; color: #b42318; }
.badge-soft-primary { background: var(--fi-primary-soft); color: var(--fi-primary-dark); }
.badge-soft-secondary { background: #f1f5f9; color: #475569; }
.badge-soft-accent { background: #fff7e6; color: #92400e; }
.status-dot { width: .45rem; height: .45rem; border-radius: 50%; display: inline-block; background: currentColor; margin-right: .35rem; vertical-align: middle; }

/* Brand ------------------------------------------------------------------ */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.1rem; color: var(--fi-ink); letter-spacing: -.03em; }
.brand:hover { color: var(--fi-ink); }
.brand-mark { width: 2.25rem; height: 2.25rem; border-radius: .7rem; display: grid; place-items: center; background: linear-gradient(135deg, #2563eb, #1e3a8a); color: #fff; font-size: 1.05rem; box-shadow: 0 6px 14px -6px rgba(29, 78, 216, .6); }
.brand-mark .l-plate { font-weight: 800; font-size: .95rem; }
.brand.brand-light { color: #fff; }
.brand span.brand-accent { color: var(--fi-primary); }
.brand.brand-light span.brand-accent { color: #93b4ff; }

/* Avatar ----------------------------------------------------------------- */
.avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--fi-primary-soft); color: var(--fi-primary-dark); flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 2rem; height: 2rem; font-size: .72rem; }
.avatar-lg { width: 4rem; height: 4rem; font-size: 1.2rem; border-radius: 1rem; }
.avatar-xl { width: 6.5rem; height: 6.5rem; font-size: 1.8rem; border-radius: 1.25rem; }
.avatar-square { border-radius: .85rem; }

/* ==========================================================================
   Public site
   ========================================================================== */
.site-nav { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--fi-line); }
.site-nav .nav-link { font-weight: 500; color: #334155; padding: .5rem .9rem !important; }
.site-nav .nav-link:hover { color: var(--fi-primary); }

.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 500px at 85% -10%, rgba(59, 130, 246, .18), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(245, 158, 11, .10), transparent 60%), #fff; border-bottom: 1px solid var(--fi-line); }
.hero-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
.hero-title .highlight { color: var(--fi-primary); }
.hero-lead { font-size: clamp(1rem, 2vw, 1.15rem); color: #475569; max-width: 36rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--fi-line); font-size: .8rem; font-weight: 600; color: #334155; box-shadow: var(--fi-shadow-sm); }
.hero-eyebrow .dot { width: .5rem; height: .5rem; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.search-panel { background: #fff; border: 1px solid var(--fi-line); border-radius: 1.25rem; padding: .6rem; box-shadow: var(--fi-shadow-lg); }
.search-panel .form-select, .search-panel .form-control { border: 0; box-shadow: none; background-color: #f8fafc; }
.hero-visual { position: relative; }
.hero-card { background: #fff; border: 1px solid var(--fi-line); border-radius: 1.25rem; box-shadow: var(--fi-shadow-lg); padding: 1.25rem; }
.hero-card-float { position: absolute; background: #fff; border: 1px solid var(--fi-line); border-radius: 1rem; box-shadow: var(--fi-shadow-lg); padding: .75rem 1rem; display: flex; align-items: center; gap: .75rem; font-size: .85rem; }
.hero-stats .stat-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }

.section { padding: 5rem 0; }
@media (max-width: 767.98px) { .section { padding: 3.5rem 0; } }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; }
.section-lead { color: #475569; max-width: 40rem; }
.step-card { background: #fff; border: 1px solid var(--fi-line); border-radius: var(--fi-radius-lg); padding: 1.75rem; height: 100%; box-shadow: var(--fi-shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--fi-shadow); }
.step-icon { width: 3rem; height: 3rem; border-radius: .85rem; display: grid; place-items: center; font-size: 1.35rem; background: var(--fi-primary-soft); color: var(--fi-primary); margin-bottom: 1.1rem; }
.step-number { font-size: .75rem; font-weight: 700; color: var(--fi-muted); letter-spacing: .08em; }
.city-tile { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--fi-line); border-radius: var(--fi-radius); color: var(--fi-ink); font-weight: 600; transition: all .15s ease; }
.city-tile:hover { border-color: #b8c9f5; color: var(--fi-primary); box-shadow: var(--fi-shadow); }
.city-tile .count { font-size: .8rem; color: var(--fi-muted); font-weight: 500; }
.cta-band { background: linear-gradient(135deg, var(--fi-navy) 0%, #1e3a8a 100%); border-radius: 1.5rem; color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(147, 180, 255, .12); }
.cta-band h2 { color: #fff; }
.cta-band .text-white-75 { color: rgba(255, 255, 255, .78); }
.feature-list li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; }
.feature-list .bi { color: #86efac; margin-top: .1rem; }
.site-footer { background: var(--fi-navy); color: rgba(255, 255, 255, .7); }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: #fff; }

/* ==========================================================================
   Auth
   ========================================================================== */
.auth-shell { min-height: 100vh; display: flex; background: #fff; }
.auth-aside { width: 44%; max-width: 620px; background: linear-gradient(160deg, var(--fi-navy) 0%, #13265c 55%, #1d4ed8 140%); color: #fff; padding: 3rem; display: none; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); }
.auth-aside h2 { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.auth-aside p { color: rgba(255, 255, 255, .75); }
.auth-aside .feature-list li { color: rgba(255, 255, 255, .85); }
.auth-quote { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 1rem; padding: 1.25rem; font-size: .9rem; color: rgba(255, 255, 255, .85); }
@media (min-width: 992px) { .auth-aside { display: flex; } }
.auth-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.auth-top { padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1.25rem 3rem; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.auth-card-wide { max-width: 600px; }
.auth-card h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; }
.divider-text { display: flex; align-items: center; gap: 1rem; color: var(--fi-muted); font-size: .8rem; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--fi-line); }
.role-option { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border: 1.5px solid var(--fi-line); border-radius: var(--fi-radius-lg); color: var(--fi-ink); background: #fff; transition: all .15s ease; }
.role-option:hover { border-color: var(--fi-primary); box-shadow: 0 0 0 4px rgba(var(--fi-primary-rgb), .08); color: var(--fi-ink); }
.role-option .role-icon { width: 3rem; height: 3rem; border-radius: .85rem; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.role-option .bi-arrow-right { color: var(--fi-muted); transition: transform .15s ease; }
.role-option:hover .bi-arrow-right { transform: translateX(3px); color: var(--fi-primary); }

/* ==========================================================================
   Panel (dashboard) layout
   ========================================================================== */
.panel-shell { min-height: 100vh; }
.sidebar { background: var(--fi-navy); color: rgba(255, 255, 255, .72); --bs-offcanvas-width: var(--fi-sidebar-width); --bs-offcanvas-bg: var(--fi-navy); --bs-offcanvas-color: rgba(255, 255, 255, .72); }
@media (min-width: 992px) {
    .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: var(--fi-sidebar-width); z-index: 1030; }
    .panel-main { margin-left: var(--fi-sidebar-width); }
}
.sidebar-inner { display: flex; flex-direction: column; height: 100%; width: 100%; background: var(--fi-navy); }
.sidebar-brand { padding: 1.25rem 1.25rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.sidebar-role { margin: 0 1rem 1rem; padding: .55rem .8rem; border-radius: .7rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); display: flex; align-items: center; gap: .5rem; }
.sidebar-role .bi { color: #93b4ff; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 0 .75rem; }
.sidebar-heading { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .4); padding: 1rem .75rem .5rem; }
.sidebar-link { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; margin-bottom: .15rem; border-radius: .65rem; color: rgba(255, 255, 255, .72); font-weight: 500; font-size: .9rem; transition: background .15s ease, color .15s ease; }
.sidebar-link .bi { font-size: 1.05rem; width: 1.25rem; text-align: center; opacity: .85; }
.sidebar-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar-link.active { background: var(--fi-primary); color: #fff; box-shadow: 0 8px 18px -10px rgba(29, 78, 216, .9); }
.sidebar-link.active .bi { opacity: 1; }
.sidebar-link .badge { margin-left: auto; background: var(--fi-accent); color: #1f1300; }
.sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.sidebar-user { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.sidebar-user .name { color: #fff; font-weight: 600; font-size: .875rem; }
.sidebar-user .email { font-size: .75rem; color: rgba(255, 255, 255, .5); }
.sidebar .avatar { background: rgba(147, 180, 255, .16); color: #c7d7ff; }

.topbar { position: sticky; top: 0; z-index: 1020; background: rgba(245, 247, 251, .85); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--fi-line); }
.topbar-inner { height: 4rem; display: flex; align-items: center; gap: .75rem; padding: 0 1rem; }
@media (min-width: 768px) { .topbar-inner { padding: 0 2rem; } }
.topbar .dropdown-toggle::after { display: none; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem .25rem .25rem; border-radius: 999px; border: 1px solid var(--fi-line); background: #fff; color: var(--fi-ink); }
.user-chip:hover { border-color: #cfd6e4; }
.dropdown-menu { --bs-dropdown-border-color: var(--fi-line); --bs-dropdown-border-radius: .85rem; --bs-dropdown-link-active-bg: var(--fi-primary); --bs-dropdown-item-padding-y: .5rem; box-shadow: var(--fi-shadow-lg); padding: .4rem; font-size: .9rem; }
.dropdown-item { border-radius: .5rem; display: flex; align-items: center; gap: .6rem; }
.panel-content { padding: 1.5rem 1rem 3rem; }
@media (min-width: 768px) { .panel-content { padding: 2rem 2rem 3rem; } }
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .2rem; }
.page-subtitle { color: var(--fi-muted); margin-bottom: 0; }
.breadcrumb { --bs-breadcrumb-font-size: .8rem; --bs-breadcrumb-margin-bottom: .35rem; --bs-breadcrumb-divider-color: #94a3b8; --bs-breadcrumb-item-active-color: var(--fi-muted); }
.breadcrumb a { color: var(--fi-muted); }
.breadcrumb a:hover { color: var(--fi-primary); }

/* Stat cards ------------------------------------------------------------- */
.stat-card { background: #fff; border: 1px solid var(--fi-line); border-radius: var(--fi-radius-lg); padding: 1.15rem 1.25rem; height: 100%; box-shadow: var(--fi-shadow-sm); display: flex; gap: 1rem; align-items: flex-start; }
.stat-icon { width: 2.75rem; height: 2.75rem; border-radius: .8rem; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.stat-label { font-size: .8rem; color: var(--fi-muted); font-weight: 500; margin-bottom: .2rem; }
.stat-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-hint { font-size: .75rem; color: var(--fi-muted); margin-top: .25rem; }
.tone-primary { background: var(--fi-primary-soft); color: var(--fi-primary); }
.tone-success { background: #ecfdf3; color: #079455; }
.tone-warning { background: #fffaeb; color: #dc6803; }
.tone-danger { background: #fef3f2; color: #d92d20; }
.tone-violet { background: #f4f3ff; color: #6938ef; }
.tone-slate { background: #f1f5f9; color: #475569; }

/* Tables ----------------------------------------------------------------- */
.table { --bs-table-bg: transparent; --bs-table-hover-bg: #f8fafc; margin-bottom: 0; font-size: .9rem; }
.table > :not(caption) > * > * { padding: .85rem 1rem; border-bottom-color: #eef1f6; }
.table thead th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fi-muted); background: #f8fafc; border-bottom: 1px solid var(--fi-line); white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table-card { border: 1px solid var(--fi-line); border-radius: var(--fi-radius-lg); background: #fff; overflow: hidden; box-shadow: var(--fi-shadow-sm); }
.table-card .table-responsive { border-radius: inherit; }
.table-card-footer { padding: .85rem 1rem; border-top: 1px solid var(--fi-line); }

.filter-bar { background: #fff; border: 1px solid var(--fi-line); border-radius: var(--fi-radius-lg); padding: 1rem; box-shadow: var(--fi-shadow-sm); margin-bottom: 1rem; }

/* Pagination ------------------------------------------------------------- */
.pagination { --bs-pagination-border-color: var(--fi-line); --bs-pagination-color: #334155; --bs-pagination-hover-color: var(--fi-primary); --bs-pagination-active-bg: var(--fi-primary); --bs-pagination-active-border-color: var(--fi-primary); --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(var(--fi-primary-rgb), .14); margin-bottom: 0; flex-wrap: wrap; gap: .25rem; }
.pagination .page-link { border-radius: .5rem !important; font-weight: 500; font-size: .85rem; }
nav[aria-label] > .d-flex > .d-sm-flex p.small { margin-bottom: 0; }

/* Alerts ----------------------------------------------------------------- */
.alert { border-radius: var(--fi-radius); border-width: 1px; font-size: .9rem; display: flex; gap: .75rem; align-items: flex-start; }
.alert > .bi { font-size: 1.1rem; line-height: 1.3; }
.alert-success { --bs-alert-bg: #ecfdf3; --bs-alert-border-color: #abefc6; --bs-alert-color: #085d3a; }
.alert-danger { --bs-alert-bg: #fef3f2; --bs-alert-border-color: #fecdca; --bs-alert-color: #912018; }
.alert-warning { --bs-alert-bg: #fffaeb; --bs-alert-border-color: #fedf89; --bs-alert-color: #93370d; }
.alert-info { --bs-alert-bg: var(--fi-primary-soft); --bs-alert-border-color: #c7d6fb; --bs-alert-color: var(--fi-primary-dark); }
.alert .btn-close { margin-left: auto; padding: .35rem; font-size: .7rem; position: static; }
.alert-dismissible { padding-right: 1rem; }

/* Instructor cards ------------------------------------------------------- */
.instructor-card { background: #fff; border: 1px solid var(--fi-line); border-radius: var(--fi-radius-lg); box-shadow: var(--fi-shadow-sm); display: flex; flex-direction: column; height: 100%; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; position: relative; }
.instructor-card:hover { box-shadow: var(--fi-shadow); border-color: #d4dcec; transform: translateY(-2px); }
.instructor-card .card-top { padding: 1.15rem 1.15rem .85rem; display: flex; gap: .9rem; align-items: flex-start; }
.instructor-card .name { font-size: 1rem; font-weight: 700; color: var(--fi-ink); margin-bottom: .15rem; line-height: 1.3; }
.instructor-card .name:hover { color: var(--fi-primary); }
.instructor-card .meta { font-size: .8rem; color: var(--fi-muted); }
.instructor-card .card-mid { padding: 0 1.15rem; flex: 1; }
.instructor-card .card-price { margin: .35rem 1.15rem 0; padding-top: .75rem; border-top: 1px solid #eef1f6; display: flex; align-items: center; justify-content: space-between; }
.instructor-card .card-actions { padding: .9rem 1.15rem 1.15rem; display: flex; gap: .5rem; }
.instructor-card .price { font-weight: 800; font-size: 1.05rem; color: var(--fi-ink); letter-spacing: -.02em; }
.instructor-card .price small { font-weight: 500; font-size: .75rem; color: var(--fi-muted); }
.featured-ribbon { position: absolute; top: -.55rem; right: 1rem; background: var(--fi-accent); color: #1f1300; font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; letter-spacing: .03em; box-shadow: 0 4px 10px -4px rgba(245, 158, 11, .7); }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: .75rem; font-weight: 500; }
.chip .bi { color: #64748b; }
.service-line { display: flex; justify-content: space-between; gap: .75rem; font-size: .83rem; padding: .4rem 0; border-top: 1px dashed #e8ecf3; }
.service-line:first-child { border-top: 0; }
.save-btn { border: 1px solid var(--fi-line); background: #fff; color: #64748b; }
.save-btn:hover, .save-btn.saved { color: #d92d20; border-color: #fecdca; background: #fef3f2; }

/* Profile page ----------------------------------------------------------- */
.profile-hero { background: #fff; border: 1px solid var(--fi-line); border-radius: var(--fi-radius-lg); overflow: hidden; box-shadow: var(--fi-shadow-sm); }
.profile-cover { height: 110px; background: linear-gradient(120deg, #13265c, #1d4ed8 60%, #3b82f6); position: relative; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 40px, transparent 40px 80px); mask-image: linear-gradient(to bottom, transparent, #000 45%, transparent 55%); }
.profile-hero .avatar-xl { position: relative; z-index: 1; border: 4px solid #fff; margin-top: -3.25rem; box-shadow: var(--fi-shadow); background: #e8efff; }
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #eef1f6; font-size: .9rem; }
.detail-list li:last-child { border-bottom: 0; }
.detail-list .label { color: var(--fi-muted); display: flex; align-items: center; gap: .5rem; }
.detail-list .value { font-weight: 600; text-align: right; }
.service-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid #eef1f6; }
.service-item:last-child { border-bottom: 0; padding-bottom: 0; }
.service-item:first-child { padding-top: 0; }
.service-icon { width: 2.5rem; height: 2.5rem; border-radius: .7rem; display: grid; place-items: center; background: var(--fi-primary-soft); color: var(--fi-primary); flex-shrink: 0; }
.sticky-panel { position: sticky; top: 5.5rem; }
.contact-card { border: 1px solid #b7e4c7; background: linear-gradient(180deg, #f0fbf4, #fff 60%); }

/* Misc ------------------------------------------------------------------- */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state .empty-icon { width: 4rem; height: 4rem; border-radius: 1.1rem; display: grid; place-items: center; margin: 0 auto 1rem; font-size: 1.6rem; background: #f1f5f9; color: #64748b; }
.progress { --bs-progress-bg: #eef1f6; --bs-progress-bar-bg: var(--fi-primary); height: .5rem; border-radius: 999px; }
.checklist li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; font-size: .875rem; }
.checklist .bi-check-circle-fill { color: #16a34a; }
.checklist .bi-circle { color: #cbd5e1; }
.photo-preview { width: 6rem; height: 6rem; border-radius: 1rem; object-fit: cover; border: 1px solid var(--fi-line); background: #f8fafc; }
.list-row { display: flex; align-items: center; gap: .85rem; padding: .85rem 1.25rem; border-bottom: 1px solid #eef1f6; }
.list-row:last-child { border-bottom: 0; }
.modal-content { border: 0; border-radius: 1.1rem; box-shadow: var(--fi-shadow-lg); }
.modal-header, .modal-footer { border-color: var(--fi-line); }
.confirm-icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: #fef3f2; color: #d92d20; }
.error-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(800px 400px at 50% -10%, rgba(59, 130, 246, .12), transparent 60%), var(--fi-canvas); }
.error-code { font-size: clamp(4rem, 12vw, 6.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(135deg, #1d4ed8, #0b1530); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }
.instructor-card { scroll-margin-top: 5.5rem; }
.legal-content h2 { font-size: 1.1rem; margin: 1.75rem 0 .6rem; }
.legal-content p, .legal-content li { color: #334155; line-height: 1.7; }
.legal-content ul { padding-left: 1.2rem; margin-bottom: 0; }
@media (min-width: 768px) { .cell-primary { min-width: 240px; } }
.cell-truncate { max-width: 120px; }
@media (max-width: 575.98px) { .table > :not(caption) > * > * { padding-left: .75rem; padding-right: .75rem; } }
@media (min-width: 576px) { .cell-truncate { max-width: 220px; } }
@media (min-width: 1200px) { .cell-truncate { max-width: 300px; } }
