:root {
    --bg-deep: #F8FAFC;
    --bg-card: #FFFFFF;
    --primary-orange: #F59E0B;
    --accent-cyan: #0EA5E9;
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --border: #E2E8F0;
    --grad-orange: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-dark);
    line-height: 1.6;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo span {
    background: var(--grad-orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#adminUserArea {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.header-link {
    cursor: pointer;
    color: var(--text-gray);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.header-link:hover {
    color: var(--primary-orange);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kpi-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.kpi-card:hover {
    transform: translateY(-3px);
}

.kpi-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 4rem;
    opacity: 0.05;
    color: var(--primary-orange);
}

.kpi-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.data-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

th {
    text-align: left;
    padding: 1rem;
    color: var(--text-gray);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

td {
    padding: 1.2rem 1rem;
    background: var(--bg-deep);
    border: none;
}

td:first-child {
    border-radius: 12px 0 0 12px;
}

td:last-child {
    border-radius: 0 12px 12px 0;
}

.onboarding-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.dot-complete {
    background-color: #10B981;
}

.dot-pending {
    background-color: #F59E0B;
}

.ref-code {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-cyan);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-business {
    background: #E0F2FE;
    color: #0369A1;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--text-dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    transform: translateY(200%);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
}

/* Tabs styling adjustment */
.tab-item {
    transition: all 0.2s;
}

.tab-item:not(.active) {
    color: var(--text-gray) !important;
}

.tab-item:hover:not(.active) {
    color: var(--text-dark) !important;
}

select {
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.rating-good {
    color: #10B981;
    font-weight: 700;
}

.rating-medium {
    color: #F59E0B;
    font-weight: 700;
}

.rating-bad {
    color: #EF4444;
    font-weight: 700;
}

.badge-reservable {
    background: #DBEAFE;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

/* Extract from Inline Styles */
.logo-icon-sm {
    height: 36px;
    vertical-align: middle;
    margin-right: 10px;
}

.header-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

.header-link-static {
    color: var(--text-dark);
    cursor: default;
}

.color-primary-orange {
    color: var(--primary-orange);
}

.lang-select-admin {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-gray);
    font-size: 0.8rem;
    padding: 4px;
    border-radius: 4px;
}

.text-danger {
    color: #EF4444;
}

.tabs-header-container {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.tab-item-btn {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
}

.tab-item.active {
    border-bottom: 3px solid var(--primary-orange);
    color: var(--text-dark);
}

.icon-mr-8 {
    margin-right: 8px;
}

.hidden {
    display: none;
}

.text-sm-gray {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.d-flex-gap-10 {
    display: flex;
    gap: 10px;
}

.btn-white-bordered {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-danger-light {
    background: #FEE2E2;
    color: #EF4444;
    border: 1px solid #FCA5A5;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.growth-kpi-grid {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.kpi-card-sm {
    padding: 1rem 1.5rem;
}

.val-xl {
    font-size: 1.5rem;
}

.color-success {
    color: #10B981;
}

.search-grid-container {
    display: grid;
    grid-template-columns: 2fr 150px 1.2fr 90px 80px auto;
    gap: 15px;
    background: var(--bg-deep);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 2rem;
    align-items: end;
}

@media (max-width: 992px) {
    .search-grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .search-grid-container {
        grid-template-columns: 1fr;
    }
}

.label-sm-block {
    font-size: 0.7rem;
    display: block;
    margin-bottom: 5px;
}

.input-full-bordered {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.btn-search-growth {
    background: var(--grad-orange);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    height: 42px;
}

.growth-logs-console {
    background: #1E293B;
    color: #10B981;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 2rem;
    white-space: pre-wrap;
}

.fw-700 {
    font-weight: 700;
}

.text-xs-gray {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.fw-800-orange {
    font-weight: 800;
    color: var(--primary-orange);
}

.btn-icon-cyan {
    background: none;
    border: none;
    color: var(--accent-cyan);
    cursor: pointer;
}

.btn-icon-danger {
    background: none;
    border: none;
    color: #EF4444;
    cursor: pointer;
}

.btn-icon-gray {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
}

.select-transparent {
    background: transparent;
    border: none;
    font-size: 0.85rem;
}

.fw-normal {
    font-weight: normal;
}

.badge-score {
    background: #FEE2E2;
    color: #B91C1C;
}

/* --- ADMIN ENHANCEMENTS (SALONS & CLIENTS) --- */
.kpi-subtext {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 4px;
    font-weight: 500;
}

.dot-danger {
    background-color: #EF4444;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.filter-pill.active {
    background: var(--grad-orange);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.client-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.badge-verified {
    background: #DCFCE7;
    color: #15803D;
}

.badge-unverified {
    background: #F1F5F9;
    color: #64748B;
}

.badge-salon {
    display: inline-block;
    background: #F1F5F9;
    color: var(--text-dark);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 2px;
    border: 1px solid var(--border);
}

.client-biz-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 320px;
}

.text-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.text-link:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.plan-select {
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.plan-free {
    color: var(--text-gray);
    background: #F1F5F9;
}

.plan-pro {
    color: #0369A1;
    background: #E0F2FE;
}

.plan-business {
    color: #B45309;
    background: #FEF3C7;
}

.plan-trial {
    color: #EA580C;
    background: #FFEDD5;
}

.btn-icon-orange {
    background: none;
    border: none;
    color: var(--primary-orange, #FF5A1F);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.15s;
}

.btn-icon-orange:hover {
    background: rgba(255, 90, 31, 0.1);
}

.quota-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 95px;
}

.quota-num {
    font-size: 0.82rem;
    font-weight: 700;
}

.quota-bar-track {
    width: 100%;
    height: 6px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}

.quota-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.quota-bar-fill.bar-ok { background: #10B981; }
.quota-bar-fill.bar-warn { background: #F59E0B; }
.quota-bar-fill.bar-alert { background: #EF4444; }

.badge-trial {
    background: #FFEDD5;
    color: #C2410C;
    border: 1px solid #FDBA74;
}

.badge-expired {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
}

/* Modal follow-up styles */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.admin-modal-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 480px;
    padding: 28px;
    box-sizing: border-box;
    position: relative;
    animation: adminModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes adminModalPop {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.admin-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    position: relative;
}

.admin-modal-icon-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: #FFEDD5;
    color: #EA580C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.admin-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 2px 0;
}

.admin-modal-subtitle {
    font-size: 0.85rem;
    color: #64748B;
    margin: 0;
}

.btn-admin-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px;
}

.btn-admin-modal-close:hover {
    color: #0F172A;
}

.followup-recap-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.followup-biz-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}

.followup-owner-email {
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 14px;
}

.followup-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}

.metric-item {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.metric-num {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.68rem;
    color: #64748B;
    font-weight: 600;
    margin-top: 2px;
}

.admin-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.biz-storefront-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--primary-orange, #FF5A1F);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
    word-break: break-all;
}

.biz-storefront-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.mt-8 { margin-top: 8px; }
.mr-4 { margin-right: 4px; }
.cursor-pointer { cursor: pointer; }

/* ==========================================================================
   MODERN SALON CARDS LAYOUT
   ========================================================================== */

.biz-cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.biz-empty-card {
    background: #FFFFFF;
    border: 1px dashed #CBD5E1;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
}

.biz-empty-icon {
    font-size: 2.2rem;
    color: #94A3B8;
    margin-bottom: 12px;
}

.biz-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 6px 0;
}

.biz-empty-sub {
    font-size: 0.85rem;
    color: #64748B;
    margin: 0;
}

.biz-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
}

.biz-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.biz-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.biz-card-identity {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 280px;
}

.biz-card-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    color: #EA580C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid #FDBA74;
    flex-shrink: 0;
    margin-top: 2px;
}

.biz-card-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.biz-card-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.biz-card-name {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.biz-card-date {
    font-size: 0.78rem;
    color: #94A3B8;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.biz-card-links-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.biz-card-slug-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFF7ED;
    color: #EA580C;
    border: 1px solid #FED7AA;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.biz-card-slug-pill:hover {
    background: #FFEDD5;
    color: #C2410C;
}

.biz-card-owner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #64748B;
    font-weight: 500;
}

.biz-card-status-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.biz-status-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.select-badge-status {
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

.badge-onboarding {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
}

.onboarding-done {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

.onboarding-pending {
    background: #FFFBEB;
    color: #D97706;
    border: 1px solid #FDE68A;
}

.biz-plan-select-wrap select {
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #CBD5E1;
}

.biz-card-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #F1F5F9;
}

.biz-metric-tile {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.metric-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-tile-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 5px;
}

.metric-tile-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.metric-val-main {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1;
}

.metric-val-total {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748B;
}

.metric-val-pct {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94A3B8;
}

.metric-val-sub {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748B;
}

.badge-recent-apts {
    font-size: 0.72rem;
    font-weight: 700;
    background: #FFF7ED;
    color: #EA580C;
    border: 1px solid #FFEDD5;
    padding: 2px 7px;
    border-radius: 6px;
}

.badge-fallback-email {
    font-size: 0.7rem;
    font-weight: 700;
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FECACA;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-trial-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFEDD5;
    color: #C2410C;
    border: 1px solid #FDBA74;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
}

.badge-trial-expired {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
}

.badge-trial-none {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94A3B8;
    font-size: 0.82rem;
    font-weight: 500;
}

.biz-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #F8FAFC;
    flex-wrap: wrap;
    gap: 10px;
}

.biz-card-subinfo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.biz-id-tag {
    font-size: 0.74rem;
    font-weight: 600;
    color: #94A3B8;
    background: #F1F5F9;
    padding: 2px 7px;
    border-radius: 4px;
}

.biz-ref-tag {
    font-size: 0.74rem;
    font-weight: 600;
    color: #0284C7;
    background: #E0F2FE;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.biz-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}

.btn-action-followup {
    background: linear-gradient(135deg, #FF5A1F 0%, #FF7A00 100%);
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(255, 90, 31, 0.25);
}

.btn-action-followup:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 90, 31, 0.35);
}

.btn-action-visit {
    background: #EFF6FF;
    color: #2563EB !important;
    border: 1px solid #BFDBFE;
}

.btn-action-visit:hover {
    background: #DBEAFE;
    color: #1D4ED8 !important;
}

.btn-action-delete {
    background: #FEF2F2;
    color: #DC2626 !important;
    border: 1px solid #FECACA;
}

.btn-action-delete:hover {
    background: #FEE2E2;
    color: #B91C1C !important;
}

.btn-whatsapp-direct {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25D366;
    color: white !important;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-whatsapp-direct:hover {
    background: #1EBE5B;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-whatsapp-direct i {
    font-size: 1rem;
}

/* --- SUPER ADMIN SPECIAL AUTH & 2FA OTP MODAL --- */
.admin-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 10%, #1e293b 0%, #0f172a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.admin-auth-overlay-hidden {
    display: none !important;
}

.admin-dashboard-hidden {
    display: none !important;
}

.admin-auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 460px;
    border-radius: 24px;
    padding: 2.5rem 2.2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: adminCardIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes adminCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.admin-auth-logo span {
    background: var(--grad-orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-auth-logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.admin-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.admin-auth-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.admin-auth-subtitle {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.admin-auth-lang-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.admin-auth-alert {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #B91C1C;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.admin-auth-alert-hidden {
    display: none !important;
}

.admin-form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.admin-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-input-wrap i {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    font-size: 0.95rem;
}

.admin-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background: #F8FAFC;
}

.admin-input-wrap input:focus {
    border-color: #F59E0B;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.btn-admin-primary {
    width: 100%;
    padding: 13px 20px;
    background: var(--grad-orange);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-admin-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.btn-admin-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* OTP Specific View */
.admin-otp-intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

.admin-otp-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FFFBEB;
    color: #F59E0B;
    border: 2px dashed #F59E0B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1rem auto;
}

.admin-otp-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.admin-otp-desc {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.admin-masked-email {
    display: block;
    color: #0F172A;
    font-weight: 800;
    margin-top: 4px;
    font-size: 0.95rem;
}

.admin-otp-group {
    text-align: center;
    margin: 1.5rem 0;
}

.admin-otp-input {
    width: 220px;
    margin: 0 auto;
    display: block;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 8px;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 14px;
    background: #F8FAFC;
    color: #0F172A;
    outline: none;
    font-family: monospace, 'Plus Jakarta Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-otp-input:focus {
    border-color: #F59E0B;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.admin-otp-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 1.25rem;
    text-align: center;
}

.btn-admin-link {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.btn-admin-link:hover {
    color: var(--text-dark);
    background: #F1F5F9;
}

.admin-step-hidden {
    display: none !important;
}

.admin-forgot-pwd-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: -6px;
    margin-bottom: 1rem;
}


