/* ============================================
   Online Randevum — Global Styles
   ============================================ */

:root {
    --color-primary:     #4F46E5;
    --color-primary-h:   #4338CA;
    --color-primary-light: rgba(79,70,229,.1);
    --color-bg:          #F8FAFC;
    --color-surface:     #ffffff;
    --color-border:      #E2E8F0;
    --color-text:        #0F172A;
    --color-text-muted:  #64748B;
    --color-success:     #16A085;
    --color-success-light: rgba(22,160,133,.1);
    --color-error:       #E74C3C;
    --color-error-light: rgba(231,76,60,.1);
    --color-warning:     #F0A030;
    --color-warning-light: rgba(240,160,48,.1);
    --color-info:        #2980B9;
    --color-info-light:  rgba(52,152,219,.1);
    --radius:            10px;
    --card-radius:       14px;
    --sidebar-width:     272px;
    --sidebar-bg:        #FFFFFF;
    --topbar-h:          62px;
    --shadow-sm:         0 2px 8px rgba(0,0,0,.06);
    --shadow-md:         0 6px 16px rgba(0,0,0,.08);
    --transition:        .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Utility ---- */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.mt-2         { margin-top: 8px; }
.mt-4         { margin-top: 16px; }
.mb-4         { margin-bottom: 16px; }
.text-muted   { color: var(--color-text-muted); font-size: .9rem; }
.hint         { color: var(--color-text-muted); font-size: .8rem; font-weight: 400; }
code          { background: #F1F5F9; padding: 1px 6px; border-radius: 3px; font-size: .85rem; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary  { background: var(--color-primary); color: #fff; border-color: var(--color-primary); box-shadow: 0 2px 6px rgba(79,70,229,.25); }
.btn-primary:hover { background: var(--color-primary-h); border-color: var(--color-primary-h); text-decoration: none; box-shadow: 0 4px 12px rgba(79,70,229,.35); }
.btn-outline  { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
.btn-success  { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.btn-success:hover { background: #138D75; border-color: #138D75; box-shadow: 0 4px 12px rgba(22,160,133,.35); }
.btn-ghost    { background: transparent; color: var(--color-text-muted); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-bg); color: var(--color-text); border-color: #CBD5E1; }
.btn-sm       { padding: 7px 16px; font-size: .84rem; border-radius: 10px; }
.btn-block    { width: 100%; text-align: center; }
.btn-link     { background: none; border: none; color: var(--color-primary); cursor: pointer; font-size: .9rem; padding: 0; }
.btn-link:hover { text-decoration: underline; }

/* ---- Alerts ---- */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .88rem;
    margin-bottom: 20px;
}
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-success { background: var(--color-success-light); color: var(--color-success); }
.badge-danger  { background: var(--color-error-light); color: var(--color-error); }
.badge-warning { background: var(--color-warning-light); color: #D97706; }
.badge-primary { background: var(--color-primary-light); color: var(--color-primary); }
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ---- Forms ---- */
.form .form-group {
    margin-bottom: 20px;
}
.form label {
    display: block;
    font-size: .86rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #475569;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="number"],
.form input[type="tel"],
.form input[type="url"],
.form textarea,
.form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    font-size: .9rem;
    font-family: inherit;
    color: var(--color-text);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.form textarea { resize: vertical; min-height: 56px; }
.form-actions { padding-top: 8px; }
.form-inline  { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-inline .form-group { margin-bottom: 0; }

/* Color input */
.color-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.color-input-wrap input[type="color"] {
    width: 40px;
    height: 38px;
    padding: 2px 4px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    flex-shrink: 0;
}
.color-input-wrap input[type="text"] { flex: 1; }

/* ---- Cards ---- */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-header {
    padding: 20px 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header-action {
    font-size: .82rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: opacity var(--transition);
    text-decoration: none;
}
.card-header-action:hover { opacity: .7; text-decoration: none; }
.card-body { padding: 24px; }
.card-body.no-padding { padding: 0; }

/* ---- Tables ---- */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.table th {
    text-align: left;
    padding: 12px 20px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--color-text-muted);
    background: transparent;
    border-bottom: 1px solid var(--color-border);
}
.table td {
    padding: 12px 20px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
    font-size: .9rem;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover td { background: #F8FAFC; }
.table-customer { display: flex; align-items: center; gap: 10px; }
.table-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 600; color: #fff; flex-shrink: 0;
    background: linear-gradient(135deg, #4F46E5, #4338CA);
}
.table-action-btn {
    width: 32px; height: 32px; display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 8px; color: var(--color-text-muted);
    transition: all var(--transition); background: none; border: none; cursor: pointer;
}
.table-action-btn:hover { background: #F1F5F9; color: var(--color-text); }

/* ---- Stats grid ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: 20px;
    border-top: 3px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
a.stat-card-link { color: inherit; text-decoration: none; }
a.stat-card-link:hover { text-decoration: none; }
.stat-card.success { border-top-color: #27AE60; }
.stat-card.warning { border-top-color: var(--color-warning); }
.stat-card.error   { border-top-color: var(--color-error); }
.stat-card.info    { border-top-color: var(--color-success); }
.stat-card.neutral { border-top-color: #94A3B8; }
.stat-card.neutral .stat-card-icon { background: rgba(148,163,184,.12); color: #64748B; }
.stat-card-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.stat-card-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.stat-card-icon svg { width: 20px; height: 20px; stroke-width: 1.75; }
.stat-card .stat-card-icon { background: rgba(79,70,229,.1); color: var(--color-primary); }
.stat-card.success .stat-card-icon { background: rgba(39,174,96,.1); color: #27AE60; }
.stat-card.warning .stat-card-icon { background: rgba(240,160,48,.1); color: var(--color-warning); }
.stat-card.error .stat-card-icon   { background: var(--color-error-light); color: var(--color-error); }
.stat-card.info  .stat-card-icon   { background: rgba(22,160,133,.1); color: var(--color-success); }
.stat-card-label { font-size: .78rem; font-weight: 500; color: var(--color-text-muted); }
.stat-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .78rem; font-weight: 500; color: var(--color-text-muted); margin-bottom: 12px; }
.stat-value { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.75rem; font-weight: 700; letter-spacing: -.3px; color: #0F172A; line-height: 1.2; margin-bottom: 4px; }
.stat-sub   { font-size: .78rem; color: var(--color-text-muted); margin-top: 2px; }
.stat-sub a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.stat-sub a:hover { text-decoration: underline; }
.stats-grid-5 { grid-template-columns: repeat(5, 1fr); }
.stat-card-change {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px;
}
.stat-card-change.up   { color: var(--color-success); background: var(--color-success-light); }
.stat-card-change.down { color: var(--color-error); background: var(--color-error-light); }

/* ---- Public: Header ---- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}
.site-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
    text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.header-nav { display: flex; align-items: center; gap: 20px; font-size: .9rem; }

/* ---- Hero ---- */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}
.hero h1 { font-size: 2.4rem; line-height: 1.25; margin-bottom: 16px; }
.hero-sub { font-size: 1.1rem; color: var(--color-text-muted); max-width: 520px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.price-tag { margin-top: 20px; color: var(--color-text-muted); font-size: .9rem; }

/* ---- Features ---- */
.features { padding: 48px 0 64px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.feature-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1rem; }
.feature-card p  { color: var(--color-text-muted); font-size: .9rem; }

/* ---- Footer ---- */
/* Footer styles are now inline per page */

/* ---- Auth ---- */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    padding: 32px 16px;
}
.auth-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 36px 40px;
    width: 100%;
    max-width: 400px;
}
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo a { font-weight: 700; font-size: 1.15rem; color: var(--color-text); text-decoration: none; }
.auth-title { font-size: 1.35rem; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--color-text-muted); font-size: .88rem; margin-bottom: 20px; }
.auth-footer { text-align: center; margin-top: 18px; font-size: .88rem; color: var(--color-text-muted); }

/* ---- Panel layout ---- */
/* ── Admin Panel Core — Dark Professional ─────── */
/* Plus Jakarta Sans font loaded via HTML <link> tags */

.panel-body {
    background: var(--color-bg);
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: var(--color-text);
}
.panel-wrap { display: flex; min-height: 100vh; }

/* ═══ Sidebar Outer — Minimal Floating ═══ */
.sidebar-outer {
    width: var(--sidebar-width);
    padding: 12px 0 12px 12px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}

/* Sidebar — floating card */
.sidebar {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 24px rgba(0,0,0,.06);
}
.sidebar::-webkit-scrollbar { display: none; }

/* Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px 16px;
}
.sidebar-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(79,70,229,.25);
}
.sidebar-logo a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: .92rem;
    color: #0F172A;
    text-decoration: none;
    letter-spacing: -.3px;
}
.sidebar-logo a::before { display: none; }
.sidebar-logo-img {
    height: 38px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    flex-shrink: 0;
}
.badge-superadmin {
    font-size: .65rem;
    background: #6366F1;
    color: #fff;
    padding: 1px 7px;
    border-radius: 99px;
    font-weight: 700;
    align-self: flex-start;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 4px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow-y: auto;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #64748B;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 1px;
    transition: all .15s;
    position: relative;
}
.nav-item:hover { background: #F8FAFC; color: #334155; text-decoration: none; }
.nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, #4F46E5, #6D5BED);
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(79,70,229,.25);
}
.nav-item .nav-icon { display: flex; align-items: center; }
.nav-item .nav-icon svg { width: 18px; height: 18px; opacity: .55; transition: all .15s; }
.nav-item:hover .nav-icon svg { opacity: .8; }
.nav-item.active .nav-icon svg { opacity: 1; stroke: #fff; }
.nav-locked { opacity: .5; }
.nav-lock { margin-left: auto; opacity: .5; }

/* Sidebar footer */
.sidebar-footer {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    margin-top: auto;
}

/* Plan card — gradient style */
.sf-plan-card {
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.sf-plan-pro   { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.sf-plan-trial { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.sf-plan-free  { background: #F8FAFC; border: 1px solid #E2E8F0; }

/* Decorative circles on gradient cards */
.sf-plan-pro::before,
.sf-plan-trial::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 80px; height: 80px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.sf-plan-pro::after,
.sf-plan-trial::after {
    content: '';
    position: absolute;
    bottom: -20px; left: -20px;
    width: 60px; height: 60px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

.sf-plan-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.sf-plan-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sf-plan-pro .sf-plan-icon,
.sf-plan-trial .sf-plan-icon {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
}
.sf-plan-pro .sf-plan-icon svg,
.sf-plan-trial .sf-plan-icon svg { stroke: #fff; }
.sf-plan-free .sf-plan-icon { background: #F1F5F9; color: #64748B; }

.sf-plan-info { display: flex; flex-direction: column; min-width: 0; }
.sf-plan-name { font-size: .82rem; font-weight: 700; line-height: 1.2; }
.sf-plan-pro .sf-plan-name,
.sf-plan-trial .sf-plan-name { color: #fff; }
.sf-plan-free .sf-plan-name  { color: #475569; }
.sf-plan-sub { font-size: .7rem; line-height: 1.3; }
.sf-plan-pro .sf-plan-sub,
.sf-plan-trial .sf-plan-sub  { color: rgba(255,255,255,.7); }
.sf-plan-free .sf-plan-sub   { color: #94A3B8; }

.sf-upgrade-btn {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 8px 0; border-radius: 8px; font-size: .75rem; font-weight: 600;
    text-decoration: none; transition: all .2s; cursor: pointer;
    position: relative; z-index: 1;
}
.sf-plan-trial .sf-upgrade-btn,
.sf-plan-pro .sf-upgrade-btn {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid rgba(255,255,255,.1);
}
.sf-plan-trial .sf-upgrade-btn:hover,
.sf-plan-pro .sf-upgrade-btn:hover { background: rgba(255,255,255,.25); }
.sf-plan-free .sf-upgrade-btn { background: #EEF2FF; color: #4F46E5; }
.sf-plan-free .sf-upgrade-btn:hover { background: #E0E7FF; }

/* User row — bordered card */
.sf-user-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #F1F5F9;
    background: #FAFBFC;
}
.sf-avatar {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.sf-user-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sf-user-name {
    font-size: .8rem; font-weight: 600; color: #1E293B;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sf-user-role { font-size: .68rem; color: #94A3B8; }
.sf-logout-btn {
    background: none; border: none; cursor: pointer;
    color: #CBD5E1; padding: 6px;
    border-radius: 6px; transition: all .2s;
}
.sf-logout-btn:hover { color: #EF4444; background: #FEF2F2; }

/* Panel content */
.panel-content { flex: 1; overflow-x: hidden; background: var(--color-bg); margin-left: var(--sidebar-width); }
.panel-inner { padding: 28px; }

/* Page header */
.page-header {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -.02em;
}
.page-subtitle { color: var(--color-text-muted); font-size: .875rem; margin-top: 3px; }

/* ---- Tenant placeholder ---- */
.tenant-placeholder {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}
.tenant-placeholder-inner { text-align: center; max-width: 480px; }
.tenant-placeholder h1 { font-size: 2rem; margin-bottom: 12px; }
.tenant-placeholder .sub { color: var(--color-text-muted); font-size: 1rem; margin-bottom: 20px; }
.divider { height: 1px; background: var(--color-border); margin: 20px auto; width: 60%; }
.tenant-placeholder .meta { font-size: .9rem; color: var(--color-text-muted); }

/* ---- Error pages ---- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--color-text-muted); margin-bottom: 12px; }
.error-msg  { font-size: 1.1rem; margin-bottom: 24px; color: var(--color-text-muted); }

/* ---- Install wizard ---- */
.install-wrap { max-width: 520px; margin: 60px auto; padding: 0 16px; }
.install-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow-md); }
.install-header { margin-bottom: 24px; }
.install-header h1 { font-size: 1.4rem; margin-bottom: 6px; }
.install-header p  { color: var(--color-text-muted); font-size: .9rem; }
.step-list { list-style: none; margin-bottom: 24px; }
.step-list li { padding: 6px 0; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.step-ok  { color: var(--color-success); font-weight: 600; }
.step-err { color: var(--color-error); font-weight: 600; }

/* ── Sidebar toggle (hamburger) ────────────────────────── */
.sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: var(--color-text);
    transition: background var(--transition);
}
.sidebar-toggle:hover { background: #F1F5F9; }
.sidebar-toggle svg { display: block; width: 22px; height: 22px; }
.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s;
}
.sidebar-toggle span + span { margin-top: 4px; }

/* ── Sidebar overlay ──────────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 99;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
body.sidebar-open-body { overflow: hidden; }

/* ── Responsive: Tablet (max 1024px) ─────────────────── */
@media (max-width: 1024px) {
    .panel-inner { padding: 24px 20px; }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .card-body   { padding: 20px; }
    .card-header { padding: 16px 20px; }
    .detail-list { grid-template-columns: 120px 1fr; }
}

/* ── Responsive: Mobile (max 768px) ──────────────────── */
@media (max-width: 768px) {
    /* Hamburger görünsün */
    .sidebar-toggle { display: flex; }

    /* Sidebar outer: slide away on mobile */
    .sidebar-outer {
        transform: translateX(-100%);
    }
    .sidebar-open .sidebar-outer {
        transform: translateX(0);
    }
    .sidebar-open .sidebar-overlay { display: block; }

    /* Main content: remove margin */
    .panel-content { margin-left: 0; }

    /* Topbar */
    .panel-topbar { justify-content: space-between; padding: 0 16px; }

    /* Panel inner */
    .panel-inner { padding: 20px 16px; }

    /* Grid'ler tek kolon */
    .stats-grid    { grid-template-columns: 1fr 1fr; gap: 12px; }
    .health-grid   { grid-template-columns: 1fr; }
    .detail-list   { grid-template-columns: 1fr; }
    .detail-list dt { font-weight: 600; color: var(--color-text); }

    /* Filtre ve form */
    .filter-bar    { flex-direction: column; }
    .filter-inline { flex-direction: column; align-items: stretch; }
    .form-inline   { flex-direction: column; align-items: stretch; }
    .plan-status-row { flex-direction: column; }
    .plan-actions  { align-items: flex-start; }

    /* Tablo scroll */
    .card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .card-body .table { min-width: 600px; }

    /* Page header */
    .page-header { flex-direction: column; gap: 8px; }
    .page-header h2 { font-size: 1.3rem; }

    /* Kartlar küçült */
    .card { border-radius: 12px; }
    .card-header { padding: 14px 18px; font-size: .9rem; }
    .card-body { padding: 18px; }

    /* Form */
    .form input[type="text"],
    .form input[type="email"],
    .form input[type="password"],
    .form input[type="number"],
    .form input[type="tel"],
    .form input[type="url"],
    .form textarea,
    .form select { padding: 10px 12px; border-radius: 8px; font-size: .88rem; }
    .btn { padding: 10px 20px; border-radius: 10px; }
    .btn-sm { padding: 8px 14px; }

    /* Auth */
    .auth-card { padding: 24px 20px; }

    /* Availability */
    .avail-row { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px; }
    .avail-day { width: auto; }

    /* Topbar user name gizle */
    .ud-name { display: none; }
    .stat-card { padding: 16px 18px; }
    .stat-value { font-size: 1.4rem; }

    /* Sidebar logo overflow fix */
    .sidebar-logo-img { max-width: 140px; height: 32px; }

    /* Sidebar — ensure scroll and logout visible */
    .sidebar { overflow-y: auto; }
    .sidebar-footer { flex-shrink: 0; }
    .sf-user-row { flex-wrap: nowrap; }
    .sf-logout-btn { flex-shrink: 0; }
}

/* ── Responsive: Small Mobile (max 480px) ────────────── */
@media (max-width: 480px) {
    .panel-inner   { padding: 16px 12px; }
    .card-body     { padding: 14px; }
    .card-header   { padding: 12px 14px; }
    .stats-grid    { grid-template-columns: 1fr; }
    .stat-card     { padding: 14px; }
    .stat-value    { font-size: 1.4rem; }
    .page-header h2 { font-size: 1.15rem; }
    .page-subtitle { font-size: .82rem; }
    .btn           { padding: 10px 18px; font-size: .85rem; }
    .btn-sm        { padding: 5px 10px; font-size: .78rem; }
    .form .form-group { margin-bottom: 16px; }
    .ob-banner     { flex-direction: column; text-align: center; }
    .quick-links   { flex-direction: column; }
}

/* ---- Install: DB info strip ---- */
.install-db-info {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: .82rem;
    color: #78350f;
    margin-bottom: 16px;
}

/* ── Phase 2: Billing + Subscription ── */
.badge-info    { background: rgba(52,152,219,.1); color: #2980B9; }
.badge-default { background: rgba(139,134,128,.1); color: #475569; }
.text-danger   { color: var(--color-error); }

.plan-status-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.plan-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.plan-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

.banner-warning {
    background: #fef9c3;
    border-bottom: 1px solid #fde68a;
    color: #78350f;
    padding: 10px 28px;
    font-size: .88rem;
}
.banner-warning a { color: #92400e; font-weight: 600; text-decoration: underline; }

/* Filtre bar */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid var(--color-border);
    border-radius: 99px;
    font-size: .82rem;
    color: var(--color-text-muted);
    background: #fff;
    text-decoration: none;
    transition: background .12s, border-color .12s;
}
.filter-btn:hover { background: #f1f5f9; text-decoration: none; }
.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.filter-count {
    background: rgba(0,0,0,.12);
    border-radius: 99px;
    padding: 0 5px;
    font-size: .75rem;
}
.filter-btn.active .filter-count { background: rgba(255,255,255,.25); }

/* Tablo satır vurgu: süresi dolmuş */
tr.row-warn td { background: #fff7ed; }

/* ── v0.2.1 ── */
.alert-warning {
    background: #fffbeb;
    color: #78350f;
    border: 1px solid #fde68a;
}
.invoice-links { display: flex; gap: 10px; align-items: center; }

/* ════════════════════════════════════════════════════════
   AŞAMA 3.0 — Randevu Motoru
   ════════════════════════════════════════════════════════ */

/* ── Genel yardımcılar ─────────────────────────────────── */
.hidden { display: none !important; }
.mt-4   { margin-top: 1.5rem; }
.mb-4   { margin-bottom: 1.5rem; }
.req    { color: var(--color-error); margin-left: 2px; }
.field-hint  { font-size: .78rem; color: var(--color-text-muted); margin-top: 3px; display: block; }
.form-actions { display: flex; gap: 10px; padding-top: 8px; margin-top: 20px; }
.action-row   { display: flex; gap: 10px; margin-top: 8px; }

/* ── Table yardımcıları ────────────────────────────────── */
.table-actions { white-space: nowrap; }
.btn-danger     { background: #ef4444; color: #fff; border-color: #ef4444; }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }

/* ── Detail list ───────────────────────────────────────── */
.detail-list { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; }
.detail-list dt { color: var(--color-text-muted); font-size: .85rem; align-self: start; padding-top: 1px; }
.detail-list dd { margin: 0; font-size: .9rem; }
.ref-code { font-size: 1.1rem; letter-spacing: .08em; color: var(--color-primary); }

/* ── Availability grid ─────────────────────────────────── */
.availability-grid { padding: 0; }
.avail-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-border);
}
.avail-row:last-child { border-bottom: none; }
.avail-row.avail-open { background: #f0fdf4; }
.avail-day { width: 130px; flex-shrink: 0; }
.day-name  { font-weight: 500; }
.avail-times { display: flex; align-items: center; gap: 8px; }
.time-select {
    padding: 5px 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: .88rem;
    background: #fff;
}
.time-sep { color: var(--color-text-muted); }

/* ── Filter inline ─────────────────────────────────────── */
.filter-inline { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }

/* ── Checkbox label ────────────────────────────────────── */
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; user-select: none; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: #4F46E5; cursor: pointer; }

/* ── Input prefix wrap ─────────────────────────────────── */
.input-prefix-wrap { display: flex; align-items: center; }
.input-prefix-wrap input { flex: 1; }

/* ════════════════════════════════════════════════════════
   PUBLIC BOOKING PAGE
   ════════════════════════════════════════════════════════ */

body.booking-body {
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.booking-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
}
.booking-header-inner {
    max-width: 680px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.booking-brand { display: flex; align-items: center; }
.booking-brand-name { font-weight: 700; font-size: 1.05rem; color: var(--color-primary); }
.booking-logo { max-height: 36px; max-width: 160px; object-fit: contain; }
.booking-tag {
    font-size: .75rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 99px;
    padding: 3px 10px;
    font-weight: 500;
}

.booking-main { flex: 1; padding: 32px 16px; }
.booking-wrap { max-width: 620px; margin: 0 auto; }
.booking-desc { color: var(--color-text-muted); margin-bottom: 24px; line-height: 1.6; }
.booking-empty { text-align: center; padding: 48px 0; color: var(--color-text-muted); }

/* Steps */
.booking-step { margin-bottom: 28px; }
.step-label {
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

/* Service cards */
.service-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.service-card {
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: #fff;
}
.service-card:hover { border-color: var(--color-primary); }
.service-card.selected {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 6%, #fff);
}
.service-card-name { font-weight: 600; margin-bottom: 4px; font-size: .92rem; }
.service-card-meta { font-size: .8rem; color: var(--color-text-muted); }

/* Date input */
.date-input {
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: .92rem;
    background: #fff;
    width: 100%;
    max-width: 240px;
}
.date-input:focus { outline: none; border-color: var(--color-primary); }

/* Slot grid */
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    font-size: .88rem;
    cursor: pointer;
    transition: border-color .12s, background .12s;
    font-family: inherit;
}
.slot-btn:hover { border-color: var(--color-primary); background: #f8fafc; }
.slot-btn.selected {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

/* Booking summary box */
.summary-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: .9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Booking confirm page */
.booking-confirm-wrap { text-align: center; padding-top: 32px; }
.confirm-icon {
    width: 64px; height: 64px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
}
.confirm-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.confirm-sub   { color: var(--color-text-muted); margin-bottom: 28px; }
.confirm-card  {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 10px);
    padding: 24px;
    max-width: 400px;
    margin: 0 auto 20px;
    text-align: left;
}
.confirm-note { font-size: .84rem; color: var(--color-text-muted); max-width: 420px; margin: 0 auto; line-height: 1.6; }

.booking-footer {
    text-align: center;
    padding: 20px;
    font-size: .8rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    background: #fff;
}
.booking-footer a { color: var(--color-text-muted); text-decoration: underline; }

/* btn-block */
.btn-block { width: 100%; }

/* ════════════════════════════════════════════════════════
   AŞAMA 4.0 — Bildirimler + WhatsApp + Manage
   ════════════════════════════════════════════════════════ */

/* ── Panel topbar ──────────────────────────────────────── */
.panel-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-h);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 12px;
}

.lyt-flex-fill { flex: 1; }

/* ── Bildirim zili ─────────────────────────────────────── */
.notif-bell-wrap { position: relative; }

.notif-bell-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: background var(--transition), color var(--transition);
}
.notif-bell-btn:hover { background: #F1F5F9; color: var(--color-text); }

.notif-badge {
    position: absolute;
    top: 6px; right: 6px;
    min-width: 18px;
    height: 18px;
    background: #4F46E5;
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    border-radius: 99px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
    line-height: 1;
}
.notif-badge-hidden { display: none !important; }

/* ── Bildirim dropdown ─────────────────────────────────── */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    z-index: 9999;
}
.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-weight: 600;
    font-size: .88rem;
    border-bottom: 1px solid var(--color-border);
}
.notif-dropdown-list { max-height: 320px; overflow-y: auto; }
.notif-dd-empty   { padding: 20px 16px; color: var(--color-text-muted); font-size: .85rem; text-align: center; }
.notif-dd-item    { padding: 10px 16px; border-bottom: 1px solid #f8fafc; transition: background .12s; }
a.notif-dd-item:hover { background: #EEF2FF; }
.notif-dd-unread  { background: #f0f7ff; }
.notif-dd-title   { font-weight: 600; font-size: .84rem; margin-bottom: 2px; }
.notif-dd-body    { font-size: .8rem; color: var(--color-text-muted); margin-bottom: 3px; }
.notif-dd-time    { font-size: .72rem; color: #9ca3af; }
.notif-dropdown-all {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: .82rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-primary);
    text-decoration: none;
}
.notif-dropdown-all:hover { background: #f8fafc; }

/* ── Bildirim listesi sayfası ──────────────────────────── */
.notif-list { }
.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
}
.notif-item:last-child { border-bottom: none; }
.notif-unread { background: #f0f7ff; }
.notif-read   { background: #fff; }
.notif-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}
.notif-unread .notif-dot { background: var(--color-primary); }
.notif-read   .notif-dot { background: #d1d5db; }
.notif-body   { flex: 1; }
.notif-title  { font-weight: 600; font-size: .9rem; margin-bottom: 3px; }
.notif-text   { font-size: .84rem; color: var(--color-text-muted); }
.notif-time   { font-size: .76rem; color: #9ca3af; margin-top: 4px; }

/* ── Code block ────────────────────────────────────────── */
.code-block {
    background: #f1f5f9;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-family: monospace;
    font-size: .85rem;
    word-break: break-all;
}

/* ── Confirm actions (booking confirm page) ────────────── */
.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ════════════════════════════════════════════════════════
   AŞAMA 5.0 — Onboarding Status
   ════════════════════════════════════════════════════════ */

/* ── Banner ────────────────────────────────────────────── */
.ob-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1px solid;
    margin-bottom: 20px;
    font-size: .9rem;
    gap: 12px;
}
.ob-banner-warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.ob-banner-blocked { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.ob-banner-close {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: inherit;
    opacity: .6;
    padding: 0 4px;
    flex-shrink: 0;
}
.ob-banner-close:hover { opacity: 1; }

/* ── Durum kartı ───────────────────────────────────────── */
.ob-status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid;
    margin-bottom: 0;
}
.ob-status-icon    { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.ob-status-body    { flex: 1; }
.ob-status-headline { font-size: 1.05rem; font-weight: 700; margin-bottom: 3px; }
.ob-status-sub     { font-size: .85rem; color: inherit; opacity: .75; }

/* ── Checklist ─────────────────────────────────────────── */
.ob-checklist { }

.ob-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--color-border);
}
.ob-step:last-child { border-bottom: none; }

.ob-step-icon {
    font-size: 1rem;
    font-weight: 700;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.ob-step-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ob-step-label  { font-weight: 600; font-size: .9rem; }
.ob-step-detail { font-size: .8rem; color: var(--color-text-muted); }

.ob-step-ready   .ob-step-label { color: var(--color-text); }
.ob-step-warning .ob-step-label { color: #92400e; }
.ob-step-blocked .ob-step-label { color: #b91c1c; }

.ob-step-link {
    font-size: .8rem;
    white-space: nowrap;
    color: var(--color-primary);
    text-decoration: none;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 4px 10px;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.ob-step-link:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ── Stat card extras ──────────────────────────────────── */
.stat-sub {
    font-size: .78rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ── Quick links ───────────────────────────────────────── */
.quick-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════
   AŞAMA 5.1 — Spam / Rate Limit
   ════════════════════════════════════════════════════════ */

/* Honeypot alanı — botlar için görünür, gerçek kullanıcı görmez */
.booking-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════
   AŞAMA 5.2 — Audit Log
   ════════════════════════════════════════════════════════ */

.audit-filter {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.audit-filter input[type="text"] {
    padding: 7px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: .85rem;
    min-width: 160px;
}
.audit-filter input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ════════════════════════════════════════════════════════
   AŞAMA 5.2 — Plan & Kullanım
   ════════════════════════════════════════════════════════ */
.plan-feature    { font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.plan-feat-ok    { color: #16a34a; font-weight: 700; font-size: 1rem; }
.plan-feat-no    { color: #9ca3af; font-weight: 700; font-size: 1rem; }

/* ════════════════════════════════════════════════════════
   AŞAMA 5.3 — Health Dashboard
   ════════════════════════════════════════════════════════ */
.health-ts {
    font-size: .78rem;
    color: var(--color-text-muted);
    margin-left: 10px;
}
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    max-width: 900px;
}
.health-card {
    border: 1px solid;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.health-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.health-card-title {
    font-weight: 700;
    font-size: .95rem;
}
.health-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}
.health-card-detail {
    font-size: .84rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.health-card-link {
    font-size: .8rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 2px;
}
.health-card-link:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════
   AŞAMA 6.0 — Landing Page
   ════════════════════════════════════════════════════════ */

/* ── Body ──────────────────────────────────────────────── */
.landing-body {
    font-family: var(--font-body, system-ui, sans-serif);
    background: var(--color-bg, #fff);
    color: var(--color-text, #111827);
    margin: 0;
}

/* ── Container ─────────────────────────────────────────── */
.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 16px;
}
.site-logo { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: inherit; display: flex; align-items: center; gap: 8px; }
.logo-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--color-primary, #4F46E5); color: #fff; font-weight: 800; font-size: .75rem; flex-shrink: 0; }
.header-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.header-nav a { font-size: .9rem; text-decoration: none; color: var(--color-text-muted, #6b7280); }
.header-nav a:hover { color: var(--color-primary, #2563eb); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { text-align: center; padding: 80px 20px 72px; }
.hero h1 { font-size: 2.6rem; line-height: 1.2; margin: 0 0 18px; font-weight: 800; }
.hero-sub { font-size: 1.1rem; color: var(--color-text-muted, #6b7280); max-width: 560px; margin: 0 auto 32px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Section title ─────────────────────────────────────── */
.section-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin: 0 0 40px; }

/* ── Features ──────────────────────────────────────────── */
.features { padding: 64px 0; background: var(--color-bg-alt, #f9fafb); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius, 8px);
    padding: 24px;
}
.feature-icon { font-size: 1.5rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.feature-card p  { font-size: .875rem; color: var(--color-text-muted, #6b7280); margin: 0; line-height: 1.55; }

/* ── Pricing section ───────────────────────────────────── */
.pricing-section { padding: 72px 0; }

/* Toggle */
.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 42px;
}
.toggle-label {
    font-size: .9rem;
    color: var(--color-text-muted, #6b7280);
    font-weight: 600;
    cursor: pointer;
    transition: color .15s;
}
.toggle-label.active { color: var(--color-primary, #2563eb); }
.pricing-toggle {
    position: relative;
    width: 46px;
    height: 26px;
    background: var(--color-primary, #2563eb);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    padding: 0;
    transition: background .15s;
}
.pricing-toggle.is-monthly { background: var(--color-text-muted, #9ca3af); }
.toggle-knob {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: right .15s;
}
.pricing-toggle.is-monthly .toggle-knob { right: auto; left: 3px; }
.toggle-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid #fde68a;
}

/* Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

/* Card */
.pricing-card {
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius, 8px);
    padding: 32px 28px;
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.pricing-card-pro {
    border-color: var(--color-primary, #2563eb);
    box-shadow: 0 4px 24px rgba(37, 99, 235, .12);
}
.pricing-card-best {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary, #2563eb);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
.pricing-plan-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; }
.price-amount { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.price-period { font-size: .9rem; color: var(--color-text-muted, #6b7280); }
.pricing-save {
    font-size: .8rem;
    color: #16a34a;
    font-weight: 600;
    margin: 4px 0 0;
}
.pricing-desc { font-size: .85rem; color: var(--color-text-muted, #6b7280); margin: 8px 0 0; }

.pricing-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-features li { font-size: .88rem; display: flex; align-items: center; gap: 8px; }
.pf-check { color: #16a34a; font-weight: 700; flex-shrink: 0; }
.pf-no    { color: #d1d5db; font-weight: 700; flex-shrink: 0; }

.pricing-cta { margin-top: auto; }
.btn-block { width: 100%; display: block; text-align: center; box-sizing: border-box; }
.pricing-note { font-size: .75rem; color: var(--color-text-muted, #9ca3af); text-align: center; margin: 10px 0 0; }
.pricing-note a { color: var(--color-primary, #2563eb); }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-section { padding: 72px 0; background: var(--color-bg-alt, #f9fafb); }
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.faq-item { border: 1px solid var(--color-border, #e5e7eb); border-radius: var(--radius, 8px); overflow: hidden; background: #fff; }
.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 20px;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: inherit;
}
.faq-q:hover { background: var(--color-bg-alt, #f9fafb); }
.faq-arrow { font-size: .75rem; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    font-size: .875rem;
    color: var(--color-text-muted, #6b7280);
    line-height: 1.6;
    padding: 0 20px;
}
.faq-item.open .faq-a { padding: 0 20px 18px; }

/* ── Footer ────────────────────────────────────────────── */
/* Footer styles are now inline per page for consistency */

/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.9rem; }
    .hero-sub { font-size: .95rem; }
    .section-title { font-size: 1.35rem; }
    .header-nav { gap: 10px; }
    .pricing-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════
   AŞAMA 6.2 — Hukuki Sayfalar
   ════════════════════════════════════════════════════════ */
.legal-wrap {
    max-width: 760px;
    padding-top: 52px;
    padding-bottom: 72px;
}
.legal-wrap h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.25;
}
.legal-date {
    font-size: .82rem;
    color: var(--color-text-muted, #6b7280);
    margin: 0 0 32px;
}
.legal-wrap h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 36px 0 10px;
    padding-top: 4px;
    border-top: 1px solid var(--color-border, #e5e7eb);
}
.legal-wrap p,
.legal-wrap li {
    font-size: .9rem;
    line-height: 1.7;
    color: var(--color-text, #111827);
}
.legal-wrap ul {
    padding-left: 20px;
    margin: 10px 0;
}
.legal-wrap ul li { margin-bottom: 6px; }
.legal-wrap a { color: var(--color-primary, #2563eb); }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
    margin: 14px 0 24px;
}
.legal-table th,
.legal-table td {
    text-align: left;
    padding: 9px 12px;
    border: 1px solid var(--color-border, #e5e7eb);
}
.legal-table th {
    background: var(--color-bg-alt, #f9fafb);
    font-weight: 600;
}

/* ════════════════════════════════════════════════════════
   AŞAMA 7.0 — Grace Period Banners
   ════════════════════════════════════════════════════════ */
.banner-error {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
    padding: 12px 18px;
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.banner-error a   { color: #dc2626; font-weight: 600; margin-left: 6px; }
.banner-warning a { color: #92400e; font-weight: 600; margin-left: 6px; }

.booking-grace-block {
    border-radius: var(--radius, 8px);
    padding: 14px 18px;
    margin: 0 0 18px;
    font-size: .88rem;
    line-height: 1.5;
}
.booking-grace-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.booking-grace-expired {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #7f1d1d;
}

/* ════════════════════════════════════════════════════════
   PHASE 8 — Features Override Table
   ════════════════════════════════════════════════════════ */
.feat-yes  { color: #16a34a; font-weight: 700; }
.feat-no   { color: #dc2626; font-weight: 700; }
.feat-null { color: #9ca3af; }

/* ════════════════════════════════════════════════════════
   PHASE 9 — Reports
   ════════════════════════════════════════════════════════ */
.report-form      { display: flex; flex-direction: column; gap: 14px; }
.report-date-row  { display: flex; gap: 16px; flex-wrap: wrap; }
.report-date-row .form-group { flex: 1; min-width: 140px; }

/* ════════════════════════════════════════════════════════
   PHASE 11-14 — SuperAdmin, Export/Import, Domain, Status
   ════════════════════════════════════════════════════════ */
.badge-superadmin {
    display: inline-block; background: #7c3aed; color: #fff;
    font-size: .65rem; font-weight: 700; padding: 2px 7px;
    border-radius: 999px; vertical-align: middle; margin-left: 6px;
}
.badge { display:inline-block; padding:2px 9px; border-radius:999px; font-size:.75rem; font-weight:600; }
.badge-success { background:#dcfce7; color:#16a34a; }
.badge-warning { background:#fef3c7; color:#d97706; }
.badge-danger  { background:#fee2e2; color:#dc2626; }
.badge-info    { background:#dbeafe; color:#2563eb; }
.badge-default { background:#f1f5f9; color:#64748b; }
.badge-noshow  { background:#fef3c7; color:#d97706; }
.btn-sm        { padding:4px 10px; font-size:.78rem; }
.btn-danger    { background:#dc2626; color:#fff; border:1px solid #dc2626; }
.btn-danger:hover { background:#b91c1c; }
.mb-4 { margin-bottom: 20px; }
.mt-4 { margin-top: 20px; }

/* ════════════════════════════════════════════════════════
   PART 4 — Landing Enhancement, Pricing, Onboarding
   ════════════════════════════════════════════════════════ */

/* Trust Section */
.trust-section {
    padding: 24px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.trust-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 600;
    color: #475569;
}
.trust-icon {
    font-size: 1.2rem;
}

/* Comparison Table */
.comparison-table-wrap {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: .88rem;
}
.comparison-table th,
.comparison-table td {
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}
.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.comparison-table th {
    background: #f8fafc;
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.comparison-table tr:last-child td { border-bottom: none; }

/* Conversion Banners — .banner-error tanımı AŞAMA 7.0'da (satır ~1714) */

/* ── PART 2: SuperAdmin Tooltips & Action Rows ────────────────────── */
.sa-tooltip {
    cursor: help;
    position: relative;
}
.sa-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #f1f5f9;
    font-size: .75rem;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    max-width: 320px;
    white-space: normal;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.sa-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.sa-action-row:last-child { border-bottom: none; }
.btn-danger-outline {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}
.btn-danger-outline:hover:not(:disabled) {
    background: #fef2f2 !important;
}
/* Badge improvements — keep existing pastel style */

/* ── PART 3: Sidebar Category Label (static) ──────────────────────── */
.nav-cat-label-static {
    padding: 14px 10px 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94A3B8;
}
.nav-icon { margin-right: 6px; font-size: .85rem; }

/* ── PART 3: Quick Action Icon Buttons ─────────────────────────────── */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: .85rem;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    line-height: 1;
    padding: 0;
}
.btn-icon:hover { background: #f1f5f9; border-color: #cbd5e1; }
.btn-icon-green { color: #16a34a; border-color: #bbf7d0; }
.btn-icon-green:hover { background: #f0fdf4; border-color: #86efac; }
.btn-icon-red { color: #dc2626; border-color: #fecaca; }
.btn-icon-red:hover { background: #fef2f2; border-color: #fca5a5; }

/* ── PART 3: Dashboard Alerts ──────────────────────────────────────── */
.dash-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    font-size: .88rem;
}
.dash-alert-red { background: linear-gradient(135deg,#fef2f2,#fee2e2); border-color: #fecaca; color: #991b1b; }
.dash-alert-yellow { background: linear-gradient(135deg,#fffbeb,#fef3c7); border-color: #fde68a; color: #92400e; }

/* ── PART 3: Stat Card Link (clickable) ────────────────────────────── */
a.stat-card-link {
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, transform .15s;
}
a.stat-card-link:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* ── FINAL: Nav Lock Icon (Pro features on Free plan) ──────────────── */
.nav-locked { opacity: .65; }
.nav-lock {
    margin-left: auto;
    font-size: .65rem;
    opacity: .7;
}
.nav-item { display: flex; align-items: center; }

/* ── FINAL: Progress Bars (tenant detail) ──────────────────────────── */
.progress-bar-bg {
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .4s ease;
}
.progress-bar-green  { background: #16a34a; }
.progress-bar-yellow { background: #f59e0b; }
.progress-bar-red    { background: #dc2626; }

/* ── FINAL: Integration Status Icons ───────────────────────────────── */
.integ-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 500;
}
.integ-on  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.integ-off { background: #f8fafc; color: #94a3b8; border: 1px solid #e2e8f0; }

/* ── FINAL: Page Hint ──────────────────────────────────────────────── */
.page-hint {
    font-size: .82rem;
    color: #64748b;
    margin: -8px 0 16px;
    padding: 8px 12px;
    background: #f8fafc;
    border-left: 3px solid #cbd5e1;
    border-radius: 0 6px 6px 0;
}

/* ══════════════════════════════════════════════════════════════════════
   CRITICAL SPRINT: Mobile Responsive + Hamburger
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hamburger Button (Landing) ────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: all .25s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Landing page mobile nav (hamburger) ───────────────────────────── */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
        border-top: 1px solid #e2e8f0;
        gap: 12px;
        z-index: 1000;
    }
    .header-nav.nav-open { display: flex; }
    .header-inner { position: relative; }
    .pricing-grid { grid-template-columns: 1fr !important; }
    .hero h1 { font-size: 1.6rem; }
    .hero-sub { font-size: .9rem; }
}

/* ════════════════════════════════════════════════════════
   PART 1 FIXES — Loading, Tooltips, Field Errors
   ════════════════════════════════════════════════════════ */

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 24px;
}
.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Tooltip */
.tooltip {
    position: absolute;
    background: #1e293b;
    color: #f1f5f9;
    font-size: .75rem;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Field Error */
.field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,.12) !important;
}

/* ============================================================
   Admin Panel Design System
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────── */
/* ── Panel-body Design 1 overrides (kept minimal) ─── */

/* Quick links */
.panel-body .quick-links { display: flex; gap: 10px; flex-wrap: wrap; }
.panel-body .quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition);
}
.panel-body .quick-links a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
    text-decoration: none;
}

/* Code */
.panel-body code {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: .84em;
    color: var(--color-primary);
}

/* ══════════════════════════════════════════════════════════════════════
   PART 18 — Eksik Utility & Component CSS
   ══════════════════════════════════════════════════════════════════════ */

/* ── Alert: info & warning (global) ────────────────────────────────── */
.alert {
    padding: 11px 16px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}
.alert-info {
    background: #EFF6FF;
    color: #1D4ED8;
    border-color: #BFDBFE;
}
.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border-color: #FDE68A;
}
.alert-success {
    background: #F0FDF4;
    color: #15803D;
    border-color: #BBF7D0;
}
.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FECACA;
}

/* Alert panel overrides removed — base styles are sufficient */

/* ── Spacing utilities ───────────────────────────────────────────────── */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-6 { margin-top: 24px !important; }
.mt-8 { margin-top: 32px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mb-8 { margin-bottom: 32px !important; }
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }
.flex   { display: flex !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.flex-wrap { flex-wrap: wrap !important; }
.w-full { width: 100% !important; }
.text-center { text-align: center !important; }
.text-right  { text-align: right !important; }
.text-sm { font-size: .875rem !important; }
.text-xs { font-size: .78rem !important; }
.font-bold { font-weight: 700 !important; }
.font-medium { font-weight: 500 !important; }
.hidden { display: none !important; }
.block  { display: block !important; }
.inline-flex { display: inline-flex !important; }

/* ── Form helpers ────────────────────────────────────────────────────── */
.form-hint,
.field-hint {
    display: block;
    font-size: .78rem;
    color: #64748B;
    margin-top: 4px;
    line-height: 1.45;
}
.form-hint a,
.field-hint a { color: #6366F1; }

.page-hint {
    font-size: .84rem;
    color: #64748B;
    margin: -8px 0 20px;
    padding: 10px 14px;
    background: #F8FAFC;
    border-left: 3px solid #E2E8F0;
    border-radius: 0 8px 8px 0;
    line-height: 1.55;
}
.panel-body .page-hint {
    background: #F8FAFC !important;
    border-left-color: #6366F1 !important;
}

/* ── Filter form ─────────────────────────────────────────────────────── */
.filter-form {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.filter-inline {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-inline .form-group {
    margin-bottom: 0;
}
.filter-inline .form-group label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    color: #64748B;
    display: block;
    margin-bottom: 4px;
}

/* ── btn-link global (panel dışı) ────────────────────────────────────── */
.btn-link {
    background: none;
    border: none;
    color: #6366F1;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 500;
    padding: 0;
    text-decoration: none;
    font-family: inherit;
    transition: color .15s;
}
.btn-link:hover { color: #4F46E5; text-decoration: underline; }

/* ── dash-alert (dashboard trial banner) ────────────────────────────── */
.dash-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 13px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    margin-bottom: 20px;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════════════
   PART 22 — Admin İç Sayfa CSS Eklemeleri
   ══════════════════════════════════════════════════════════════════════ */

/* ── Dashboard: Trial banner ────────────────────────────────────────── */
.dash-alert-trial {
    background: linear-gradient(135deg, #FFF5EB, #FDEBD0);
    border-color: #F5CBA7;
    color: #A04000;
}
.dash-alert-btn-trial {
    background: #4F46E5;
    color: #fff;
    border: none;
    white-space: nowrap;
    padding: 5px 14px;
    border-radius: 7px;
    font-weight: 700;
    font-size: .8rem;
    text-decoration: none;
    display: inline-block;
    transition: background .15s;
}
.dash-alert-btn-trial:hover { background: #4338CA; color: #fff; }

/* ── Dashboard: Upsell card ─────────────────────────────────────────── */
.dash-upsell-card {
    background: linear-gradient(135deg, #FFF5EB, #FDEBD0) !important;
    border-color: #F5CBA7 !important;
}
.dash-upsell-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.dash-upsell-title {
    color: #A04000;
    font-size: 1.05rem;
}
.dash-upsell-sub {
    color: #4338CA;
    font-size: .85rem;
    margin: 4px 0 0;
}

/* ── Page header flex ───────────────────────────────────────────────── */
.page-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ── Filter form overrides ──────────────────────────────────────────── */
.filter-inline {
    flex-wrap: wrap;
    gap: 10px;
}
.filter-inline .form-group {
    margin-bottom: 0;
}
.fg-flex-grow {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0 !important;
}
.filter-inline .form-group[style*="margin-bottom:0"] {
    margin-bottom: 0 !important;
}

/* ══════════════════════════════════════════════════════════════════════
   PART 26 — User Dropdown + Empty States
   ══════════════════════════════════════════════════════════════════════ */

/* ── User Dropdown ──────────────────────────────────────────────────── */
.ud-wrap { position: relative; }

.ud-trigger {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 10px 5px 5px;
    background: transparent; border: 1.5px solid #E2E8F0;
    border-radius: 12px; cursor: pointer;
    transition: all var(--transition); font-family: inherit;
}
.ud-trigger:hover { background: #F8FAFC; border-color: #C7D2FE; }

.ud-avatar {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, #4F46E5, #818CF8);
    color: #fff; font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: .78rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; box-shadow: 0 2px 6px rgba(79,70,229,.2);
}
.ud-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .84rem; font-weight: 600; color: #0F172A;
    max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ud-chevron { color: #94A3B8; transition: transform .2s; flex-shrink: 0; width: 14px; height: 14px; }
.ud-trigger:has(+ .ud-menu:not(.hidden)) .ud-chevron { transform: rotate(180deg); }

.ud-menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    width: 260px; background: #fff;
    border: 1px solid #DDE2EA; border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08), 0 12px 40px rgba(0,0,0,.06);
    z-index: 200; overflow: hidden;
}
.ud-menu.hidden { display: none; }

.ud-menu-head {
    padding: 16px 18px; border-bottom: 1px solid #F1F5F9;
    background: #FAFBFC;
}
.ud-menu-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: .9rem; color: #0F172A;
    margin-bottom: 2px;
}
.ud-menu-email { font-size: .76rem; color: #94A3B8; margin-bottom: 10px; }
.ud-role {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .66rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
}

.ud-menu-items { padding: 6px; }
.ud-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 9px;
    font-size: .84rem; font-weight: 500; color: #475569;
    text-decoration: none; transition: all var(--transition);
}
.ud-item svg { color: #94A3B8; flex-shrink: 0; transition: color var(--transition); }
.ud-item:hover { background: #F8FAFC; color: #0F172A; text-decoration: none; }
.ud-item:hover svg { color: #4F46E5; }

.ud-menu-footer {
    padding: 6px; border-top: 1px solid #F1F5F9;
}
.ud-logout {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 12px; border-radius: 9px;
    font-family: inherit; font-size: .84rem; font-weight: 500;
    color: #DC2626; background: none; border: none; cursor: pointer;
    transition: background var(--transition);
}
.ud-logout svg { flex-shrink: 0; }
.ud-logout:hover { background: #FEF2F2; }

@media (max-width: 768px) {
    .ud-name { display: none; }
    .ud-chevron { display: none; }
    .ud-trigger { padding: 5px 6px; }
}

/* ── Empty States ───────────────────────────────────────────────────── */
.es-wrap {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 56px 24px; text-align: center;
}
.es-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: #F1F5F9; border: 1px solid #E2E8F0;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.es-icon svg { width: 28px; height: 28px; stroke: #94A3B8; stroke-width: 1.5; fill: none; }
.es-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: .95rem; color: #0F172A;
    margin-bottom: 6px;
}
.es-sub {
    font-size: .84rem; color: #94A3B8; line-height: 1.6;
    max-width: 320px; margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════════════════════════
   PART 30 — Design 1: Dark Professional Refinements
   ══════════════════════════════════════════════════════════════════════ */

/* Sidebar role badge */


/* btn-icon */
.panel-body .btn-icon {
    border-color: var(--color-border);
    color: var(--color-text-muted);
    background: var(--color-surface);
    border-radius: 10px;
    transition: all var(--transition);
}
.panel-body .btn-icon:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.panel-body .btn-icon-green { color: #16A34A; border-color: #BBF7D0; }
.panel-body .btn-icon-green:hover { background: #F0FDF4; border-color: #86EFAC; color: #15803D; }
.panel-body .btn-icon-red { color: #DC2626; border-color: #FECACA; }
.panel-body .btn-icon-red:hover { background: #FEF2F2; border-color: #FCA5A5; }

/* Empty state */
.panel-body .es-icon {
    background: rgba(79,70,229,.06);
    border: 1.5px solid rgba(79,70,229,.15);
}
.panel-body .es-icon svg { stroke: #4F46E5; }

/* ══════════════════════════════════════════════════════════════════════
   PART 32 — ql-item (Quick Links) System
   ══════════════════════════════════════════════════════════════════════ */

/* Quick Access Grid v2 */
.ql-grid2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 1100px) { .ql-grid2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .ql-grid2 { grid-template-columns: 1fr; } }
.ql2 {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-left: 3px solid var(--ql-c, #4F46E5);
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s;
}
.ql2:hover {
    border-color: var(--ql-c, #4F46E5);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    text-decoration: none;
    transform: translateY(-1px);
}
.ql2-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--ql-c, #4F46E5) 10%, transparent);
}
.ql2-icon svg { stroke: var(--ql-c, #4F46E5); }
.ql2-title { font-size: 13.5px; font-weight: 700; color: #1E293B; line-height: 1.2; }
.ql2-desc { font-size: 12px; color: #94A3B8; margin-top: 2px; line-height: 1.3; }
.ql2-arrow { stroke: #CBD5E1; margin-left: auto; flex-shrink: 0; transition: all .2s; }
.ql2:hover .ql2-arrow { stroke: var(--ql-c, #4F46E5); transform: translateX(2px); }

/* ── Appointments Toolbar ──────────────────────────────────────────── */
.appt-toolbar {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px 20px 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.appt-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.appt-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.appt-toolbar-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}
.appt-toolbar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    background: #EEF2FF;
    color: #4F46E5;
    font-size: 12px;
    font-weight: 700;
    border-radius: 99px;
}
.appt-toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.appt-btn-icon {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

/* Filter row */
.appt-filters {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.appt-filter-search {
    flex: 1;
    position: relative;
    min-width: 200px;
}
.appt-filter-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    stroke: #94A3B8;
    pointer-events: none;
}
.appt-filter-search input {
    width: 100%;
    padding: 9px 12px 9px 38px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-size: 13.5px;
    font-family: inherit;
    color: #0F172A;
    background: #F8FAFC;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.appt-filter-search input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
    background: #fff;
}
.appt-filter-search input::placeholder { color: #94A3B8; }
.appt-filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
}
.appt-filter-input {
    padding: 9px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    color: #0F172A;
    background: #F8FAFC;
    outline: none;
    transition: border-color .2s;
    min-width: 0;
}
.appt-filter-input:focus {
    border-color: #4F46E5;
    background: #fff;
}
.appt-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: none;
    border-radius: 10px;
    background: #4F46E5;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
}
.appt-filter-btn:hover { background: #4338CA; }
.appt-filter-btn svg { stroke: #fff; }
.appt-filter-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #fff;
    color: #94A3B8;
    flex-shrink: 0;
    transition: all .2s;
}
.appt-filter-clear:hover {
    border-color: #FCA5A5;
    background: #FEF2F2;
    color: #EF4444;
}
.appt-filter-clear svg { stroke: currentColor; }

@media (max-width: 768px) {
    .appt-filters { flex-direction: column; }
    .appt-filter-group { flex-wrap: wrap; }
    .appt-filter-input { flex: 1; min-width: 120px; }
}

/* ══════════════════════════════════════════════════════════════════════
   PART 33 — Services page improvements
   ══════════════════════════════════════════════════════════════════════ */

.panel-body .svc-card {
    border: 1px solid #E8ECF4 !important;
    border-radius: 16px !important;
    border-left: 4px solid #E8ECF4 !important;
    transition: box-shadow .2s ease, transform .2s ease !important;
}
.panel-body .svc-active  { border-left-color: #10B981 !important; }
.panel-body .svc-inactive { border-left-color: #CBD5E1 !important; }
.panel-body .svc-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,.09) !important;
    transform: translateY(-2px) !important;
}
.panel-body .svc-card-body { padding: 22px !important; }
.panel-body .svc-name {
    font-size: 1.05rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -.01em !important;
}
.panel-body .svc-actions {
    border-top: 1px solid #F1F5F9 !important;
    padding-top: 14px !important;
    margin-top: 16px !important;
}

/* ══════════════════════════════════════════════════════════════════════
   PART 34 — Global content area polish
   ══════════════════════════════════════════════════════════════════════ */

/* Appointment table — date cell */
.ai-date-wrap { line-height: 1.3; }
.ai-date { font-weight: 700; font-size: .88rem; color: #0F172A; }
.ai-time { font-size: .74rem; color: #94A3B8; font-weight: 500; margin-top: 1px; }

/* Appointment table — customer cell */
.ai-customer-cell { display: flex; align-items: center; gap: 10px; }
.ai-avatar {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: .8rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ai-cname { font-weight: 600; font-size: .875rem; color: #0F172A; }
.ai-cphone { font-size: .75rem; color: #94A3B8; margin-top: 1px; }

/* Appointment table — service cell */
.ai-svc-name { font-size: .875rem; font-weight: 500; color: #0F172A; }
.ai-svc-dur  { font-size: .72rem; color: #94A3B8; margin-top: 1px; }

/* Appointment reference code */
.panel-body .ai-ref-code {
    background: #F1F5F9 !important;
    color: #6366F1 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 5px !important;
    padding: 2px 7px !important;
    font-size: .74rem !important;
    letter-spacing: .02em !important;
}

/* Table horizontal scroll */
.panel-body .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Form actions */
.panel-body .form-actions {
    padding-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ══════════════════════════════════════════════════════════════════
   PART 36 — AVAILABILITY PAGE
══════════════════════════════════════════════════════════════════ */
.panel-body .avail-row {
    display: flex; align-items: center; gap: 16px;
    padding: 13px 20px; border-bottom: 1px solid #F1F5F9;
    transition: background .15s;
}
.panel-body .avail-row:last-child { border-bottom: none; }
.panel-body .avail-row.avail-open  { background: #F0FFF8; }
.panel-body .avail-row:not(.avail-open) { background: #FAFAFA; }

/* Toggle switch */
.panel-body .avail-switch-label { position: relative; display: flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.panel-body .avail-cb { position: absolute; opacity: 0; width: 0; height: 0; }
.panel-body .avail-track {
    width: 36px; height: 20px; border-radius: 10px; background: #E2E8F0;
    position: relative; transition: background .2s; display: block; cursor: pointer;
}
.panel-body .avail-cb:checked + .avail-track { background: #10B981; }
.panel-body .avail-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 14px; height: 14px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s;
}
.panel-body .avail-cb:checked + .avail-track .avail-thumb { transform: translateX(16px); }

/* Day column */
.panel-body .avail-day-col { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.panel-body .avail-abbr {
    width: 34px; height: 34px; border-radius: 9px;
    background: #F1F5F9; color: #64748B;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: .71rem; font-weight: 700;
    letter-spacing: .02em; flex-shrink: 0; transition: background .2s, color .2s;
}
.panel-body .avail-row.avail-open .avail-abbr { background: #DCFCE7; color: #166534; }
.panel-body .avail-dayname { font-size: .875rem; font-weight: 600; color: #94A3B8; transition: color .2s; }
.panel-body .avail-row.avail-open .avail-dayname { color: #0F172A; }

/* Times */
.panel-body .avail-times { display: flex; align-items: center; gap: 8px; flex: 1; transition: opacity .2s; }
.panel-body .time-select {
    padding: 6px 10px; border: 1px solid #E2E8F0; border-radius: 8px;
    font-size: .84rem; color: #0F172A; background: #fff; font-family: inherit; cursor: pointer;
    transition: border-color .15s;
}
.panel-body .time-select:focus { outline: none; border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.panel-body .time-sep { color: #94A3B8; font-size: .85rem; }

/* Status tag */
.panel-body .avail-status-col { min-width: 60px; text-align: right; }
.panel-body .avail-status-tag {
    display: inline-block; padding: 3px 10px; border-radius: 100px;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.panel-body .avail-tag-open   { background: #DCFCE7; color: #166534; }
.panel-body .avail-tag-closed { background: #F1F5F9; color: #94A3B8; }
@media(max-width: 640px) {
    .panel-body .avail-row { flex-wrap: wrap; gap: 12px; }
    .panel-body .avail-times { flex: none; width: 100%; }
    .panel-body .avail-status-col { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   PART 37 — BILLING PAGE
══════════════════════════════════════════════════════════════════ */
.bll-plan-hero {
    padding: 28px 24px; display: flex; align-items: flex-start; justify-content: space-between;
    border-radius: 12px 12px 0 0; border-bottom: 1px solid #E8ECF4;
}
.bll-hero-pro  { background: linear-gradient(135deg, #3730A3 0%, #6366F1 60%, #818CF8 100%); }
.bll-hero-free { background: linear-gradient(135deg, #334155 0%, #475569 100%); }
.bll-plan-tier {
    font-size: .68rem; font-weight: 800; letter-spacing: .12em;
    color: rgba(255,255,255,.55); margin-bottom: 5px; font-family: 'Plus Jakarta Sans', sans-serif;
}
.bll-plan-name {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 800;
    color: #fff; line-height: 1.2;
}
.bll-plan-price { font-size: 1rem; color: rgba(255,255,255,.7); margin-top: 8px; font-weight: 500; }
.bll-plan-price span { font-size: .8rem; }
.bll-status-badge { align-self: flex-start; margin-top: 4px; flex-shrink: 0; }

/* Info rows */
.bll-info-rows { margin-bottom: 18px; }
.bll-info-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid #F1F5F9; font-size: .875rem;
}
.bll-info-row:last-child { border-bottom: none; }
.bll-info-label { color: #64748B; }
.bll-info-val   { color: #0F172A; font-weight: 500; }
.bll-stripe-badge { display: flex; align-items: center; gap: 5px; color: #475569; font-size: .82rem; }

/* Actions */
.bll-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Invoice links */
.bll-invoice-links { display: flex; gap: 8px; align-items: center; }
.bll-inv-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .8rem; color: #6366F1; text-decoration: none;
    padding: 3px 9px; border-radius: 6px; border: 1px solid #EEF2FF;
    background: #FAFAFE; transition: background .12s, border-color .12s; font-weight: 500;
}
.bll-inv-link:hover { background: #EEF2FF; border-color: #C7D2FE; }
.bll-inline-form { display: inline; }

/* ══════════════════════════════════════════════════════════════════
   PART 38 — NOTIFICATIONS PAGE
══════════════════════════════════════════════════════════════════ */
.panel-body .notif-item {
    display: flex; gap: 14px; padding: 14px 20px;
    border-bottom: 1px solid #F1F5F9; align-items: flex-start;
    transition: background .1s;
}
a.notif-item:hover { background: #EEF2FF !important; }
.panel-body .notif-item:last-child { border-bottom: none; }
.panel-body .notif-unread { background: #F8F9FF; }
.panel-body .notif-read   { background: #fff; }

/* Notification icon */
.panel-body .notif-icon-wrap {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.panel-body .notif-unread .notif-icon-wrap { background: #EEF2FF; color: #6366F1; }
.panel-body .notif-read   .notif-icon-wrap { background: #F1F5F9; color: #94A3B8; }

/* Unread dot badge */
.panel-body .notif-dot-badge {
    position: absolute; top: -3px; right: -3px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #6366F1; border: 2px solid #fff;
}

/* Notification body */
.panel-body .notif-body { flex: 1; min-width: 0; }
.panel-body .notif-header-row {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px;
}
.panel-body .notif-title {
    font-weight: 700; font-size: .875rem; color: #0F172A;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.panel-body .notif-read .notif-title { font-weight: 500; color: #475569; }
.panel-body .notif-time { font-size: .73rem; color: #94A3B8; flex-shrink: 0; white-space: nowrap; margin-top: 2px; }
.panel-body .notif-text { font-size: .83rem; color: #64748B; line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════════
   PART 39 — SIDEBAR: BIGGER NAV ITEMS + IMPROVED GELIS TOGGLE
══════════════════════════════════════════════════════════════════ */

/* Nav items — Design 1 consistent */

/* Nav section toggle — Design 1 dark sidebar */

/* ══════════════════════════════════════════════════════════════════════
   PART 40 — Mobile Responsive Fixes (Admin Panel)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Admin Table horizontal scroll on mobile ─────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 768px) {
    /* Page header flex → stack */
    .panel-body .page-header-flex,
    .page-header-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    /* Filter form → vertical stack */
    .panel-body .filter-inline,
    .filter-inline {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .panel-body .filter-inline .form-group,
    .filter-inline .form-group { margin-bottom: 0 !important; width: 100% !important; }
    .panel-body .ai-filter-btns,
    .ai-filter-btns {
        width: 100%;
        justify-content: flex-start;
    }

    /* Appointments table: tighter columns — .panel-body prefix for specificity */
    .panel-body .table th,
    .panel-body .table td { padding: 8px 10px !important; font-size: .8rem !important; }
    .panel-body .table th { white-space: normal !important; }
    .panel-body .ai-ref-code,
    .ai-ref-code { font-size: .68rem !important; }

    /* Customer cell compact on mobile */
    .ai-customer-cell { gap: 8px !important; }
    .ai-avatar { width: 28px !important; height: 28px !important; font-size: .7rem !important; }
    .ai-cname { font-size: .8rem !important; }

    /* Action buttons */
    .panel-body .ai-actions { white-space: nowrap; }

    /* Pagination */
    .panel-body .ai-pagination,
    .ai-pagination { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ai-pag-btns { flex-wrap: wrap; }

    /* Manual appointment modal */
    .mam-dialog { max-width: 100% !important; }
    .mam-row { flex-direction: column !important; gap: 10px !important; }
    .mam-fg { min-width: auto !important; }

    /* Customers page */
    .cust-table th:nth-child(4), .cust-table td:nth-child(4),
    .cust-table th:nth-child(5), .cust-table td:nth-child(5) { display: none; }

    /* Availability grid */
    .avail-row {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 12px !important;
    }
    .avail-times {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    .time-select { min-width: 90px !important; flex: 1 !important; }
    .avail-day-col { min-width: 80px !important; }

    /* Settings social media inputs */
    .settings-social-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stats grid */
    .panel-body .stats-grid,
    .stats-grid { grid-template-columns: 1fr 1fr !important; }
    .stat-card { padding: 14px !important; }

    /* Form row 2-col → single col */
    .form-row-2 { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    /* Even tighter on small phones */
    .panel-body .stats-grid,
    .stats-grid { grid-template-columns: 1fr !important; }

    /* Appointments: hide some columns — .panel-body prefix for specificity */
    .panel-body .table th:nth-child(5),
    .panel-body .table td:nth-child(5) { display: none !important; } /* ref code */
    .panel-body .table th:nth-child(3),
    .panel-body .table td:nth-child(3) { display: none !important; } /* service */
}
