/* =====================================================================
   Teslim — design system
   Cohesive look across the business app, admin panel and marketing site.
   Layered on top of Bootstrap 5 via CSS variables + component overrides.
   ===================================================================== */

:root {
    /* Brand palette */
    --tw-brand: #4f46e5;       /* indigo-600 */
    --tw-brand-600: #4338ca;
    --tw-brand-700: #3730a3;
    --tw-brand-50: #eef2ff;
    --tw-accent: #06b6d4;      /* cyan-500 */

    /* Neutrals (slate) */
    --tw-ink: #0f172a;
    --tw-body: #334155;
    --tw-muted: #64748b;
    --tw-line: #e2e8f0;
    --tw-surface: #ffffff;
    --tw-bg: #f6f7fb;

    --tw-radius: 12px;
    --tw-radius-lg: 18px;
    --tw-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --tw-shadow: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .06);
    --tw-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, .10), 0 8px 10px -6px rgba(15, 23, 42, .08);

    /* Bootstrap variable overrides */
    --bs-primary: var(--tw-brand);
    --bs-primary-rgb: 79, 70, 229;
    --bs-body-color: var(--tw-body);
    --bs-body-bg: var(--tw-bg);
    --bs-border-color: var(--tw-line);
    --bs-link-color: var(--tw-brand-600);
    --bs-link-hover-color: var(--tw-brand-700);
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { position: relative; min-height: 100%; font-size: 16px; }

body {
    margin: 0;
    background: var(--tw-bg);
    color: var(--tw-body);
    font-family: var(--bs-font-sans-serif);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: "Plus Jakarta Sans", var(--bs-font-sans-serif);
    color: var(--tw-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

/* ---------- Layout ---------- */
.page-container { max-width: 1140px; }
main { min-height: 60vh; }

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(255, 255, 255, .85) !important;
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--tw-line) !important;
    box-shadow: none !important;
    padding-top: .6rem;
    padding-bottom: .6rem;
}
.navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tw-brand-600) !important;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.navbar-brand img { width: 28px; height: 28px; border-radius: 8px; }
.navbar .nav-link {
    color: var(--tw-body) !important;
    font-weight: 500;
    border-radius: 8px;
    padding: .4rem .75rem !important;
    transition: background .15s, color .15s;
}
.navbar .nav-link:hover { background: var(--tw-brand-50); color: var(--tw-brand-700) !important; }

/* ---------- Buttons ---------- */
.btn {
    --bs-btn-border-radius: 10px;
    border-radius: 10px;
    font-weight: 600;
    padding: .5rem 1rem;
    transition: transform .04s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .7rem 1.4rem; border-radius: 12px; }
.btn-primary {
    --bs-btn-bg: var(--tw-brand);
    --bs-btn-border-color: var(--tw-brand);
    --bs-btn-hover-bg: var(--tw-brand-600);
    --bs-btn-hover-border-color: var(--tw-brand-600);
    --bs-btn-active-bg: var(--tw-brand-700);
    box-shadow: 0 1px 2px rgba(79, 70, 229, .35);
}
.btn-primary:hover { box-shadow: 0 6px 16px -4px rgba(79, 70, 229, .5); }
.btn-outline-secondary { --bs-btn-border-color: var(--tw-line); --bs-btn-color: var(--tw-body); --bs-btn-hover-bg: var(--tw-ink); --bs-btn-hover-border-color: var(--tw-ink); }
.btn-link { color: var(--tw-brand-600); font-weight: 600; }
.btn:focus, .btn:active:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .25);
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--tw-line);
    border-radius: var(--tw-radius-lg);
    background: var(--tw-surface);
    box-shadow: var(--tw-shadow-sm);
    transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--tw-shadow); }
.card-body { padding: 1.25rem; }
.card-title { font-weight: 700; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; color: var(--tw-ink); font-size: .9rem; margin-bottom: .3rem; }
.form-control, .form-select {
    border-radius: 10px;
    border-color: var(--tw-line);
    padding: .55rem .8rem;
    background-color: #fff;
}
/* keep room for the dropdown caret so it never overlaps the text */
.form-select { padding-right: 2.25rem; background-position: right .75rem center; }
.form-control::placeholder { color: #94a3b8; }

/* ---------- Tables ---------- */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--tw-body);
    --bs-table-color-state: var(--tw-body);
    --bs-table-hover-color: var(--tw-body);
    --bs-emphasis-color: var(--tw-body);
    color: var(--tw-body);
}
.table > thead { background: #f8fafc; }
.table > thead th {
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .06em;
    color: var(--tw-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--tw-line);
}
.table > tbody td { border-color: var(--tw-line); padding-top: .8rem; padding-bottom: .8rem; vertical-align: middle; }
.table-hover > tbody > tr:hover > * { background: var(--tw-brand-50); }

/* Wrap tables in a card-like surface */
.table-surface {
    background: var(--tw-surface);
    border: 1px solid var(--tw-line);
    border-radius: var(--tw-radius-lg);
    box-shadow: var(--tw-shadow-sm);
    overflow: hidden;
}
.table-surface .table { margin-bottom: 0; }
.table-surface .table > :not(caption) > * > * { padding-left: 1.1rem; padding-right: 1.1rem; }

/* ---------- Badges ---------- */
.badge { font-weight: 600; border-radius: 999px; padding: .35em .7em; letter-spacing: .01em; }
.bg-info { background: #cffafe !important; color: #0e7490 !important; }
.bg-secondary { background: #e2e8f0 !important; color: #475569 !important; }
.bg-success { background: #dcfce7 !important; color: #15803d !important; }
.bg-danger { background: #fee2e2 !important; color: #b91c1c !important; }
.bg-warning { background: #fef9c3 !important; color: #a16207 !important; }

/* ---------- Alerts ---------- */
.alert { border: 1px solid transparent; border-radius: var(--tw-radius); }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--tw-line);
    background: var(--tw-surface);
    color: var(--tw-muted);
    padding: 1.5rem 0;
    margin-top: 3rem;
}
.site-footer a { color: var(--tw-muted); }
.site-footer a:hover { color: var(--tw-brand-600); }

/* ---------- Auth card ---------- */
.auth-wrap { min-height: 78vh; display: flex; align-items: center; }
.auth-card {
    background: var(--tw-surface);
    border: 1px solid var(--tw-line);
    border-radius: var(--tw-radius-lg);
    box-shadow: var(--tw-shadow-lg);
    padding: 2rem;
}

/* ---------- Hero / marketing ---------- */
.hero {
    background:
        radial-gradient(1200px 500px at 50% -120px, rgba(79, 70, 229, .12), transparent 60%),
        radial-gradient(900px 400px at 90% 0, rgba(6, 182, 212, .10), transparent 60%);
    border-radius: var(--tw-radius-lg);
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05; }
.gradient-text {
    background: linear-gradient(120deg, var(--tw-brand), var(--tw-accent));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.feature-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--tw-brand-50); color: var(--tw-brand-600);
    font-size: 1.4rem; margin-bottom: .75rem;
}
.price-card.featured { border-color: var(--tw-brand); box-shadow: 0 0 0 1px var(--tw-brand), var(--tw-shadow-lg); }

/* ---------- Board (Vue) ---------- */
#board-app .card { border-radius: 12px; }
.board-col-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tw-muted); }

/* ---------- Misc ---------- */
.text-muted { color: var(--tw-muted) !important; }
.shadow-soft { box-shadow: var(--tw-shadow); }
hr { color: var(--tw-line); opacity: 1; }
.section { padding: 3.5rem 0; }

/* ---------- Sticky footer (push footer to bottom on short pages) ---------- */
body { min-height: 100vh; display: flex; flex-direction: column; }
.site-footer { margin-top: auto; }

/* ---------- Split auth (login / register) ---------- */
.auth-body { background: var(--tw-surface); }
.auth-split { display: flex; min-height: 100vh; }
.auth-aside {
    flex: 1 1 46%;
    background: linear-gradient(160deg, var(--tw-brand), var(--tw-brand-700));
    color: #fff; display: flex; align-items: center; padding: 3rem;
    position: relative; overflow: hidden;
}
.auth-aside::after {
    content: ""; position: absolute; right: -120px; bottom: -120px;
    width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
}
.auth-aside-inner { max-width: 420px; margin: 0 auto; position: relative; z-index: 1; }
.auth-brand {
    color: #fff; font-family: "Plus Jakarta Sans", var(--bs-font-sans-serif);
    font-weight: 800; font-size: 1.5rem; display: inline-flex; gap: .55rem; align-items: center; margin-bottom: 2.25rem;
}
.auth-brand img { width: 30px; height: 30px; border-radius: 8px; }
.auth-aside-title { color: #fff; font-size: 2rem; line-height: 1.15; margin-bottom: .75rem; }
.auth-aside-sub { color: rgba(255,255,255,.85); margin-bottom: 1.6rem; }
.auth-aside-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.auth-aside-list li { display: flex; gap: .6rem; align-items: center; color: rgba(255,255,255,.95); }
.auth-aside-list .pf-check { background: rgba(255,255,255,.22); color: #fff; }
.auth-aside-foot { margin-top: 2.5rem; color: rgba(255,255,255,.7); font-size: .85rem; }
.auth-main { flex: 1 1 54%; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-form { width: 100%; max-width: 430px; }
.auth-form h1 { font-size: 1.7rem; }
.pf-check {
    flex: 0 0 auto; width: 20px; height: 20px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #dcfce7; color: #15803d; font-size: .7rem; font-weight: 700;
}
@media (max-width: 860px) {
    .auth-aside { display: none; }
}

/* ---------- App footer (Powered by Fişle) ---------- */
.app-footer {
    margin-top: auto;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--tw-border, #e5e7eb);
    text-align: center;
}
.app-footer a {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--tw-muted, #6b7280); font-size: .85rem; text-decoration: none;
}
.app-footer a:hover { color: var(--tw-ink, #111827); }
.app-footer img { width: 18px; height: 18px; }
.app-content { display: flex; flex-direction: column; min-height: 100vh; }

.powered-link {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--tw-muted, #6b7280); font-size: .85rem; text-decoration: none;
}
.powered-link:hover { color: var(--tw-ink, #111827); }
.powered-link img { width: 18px; height: 18px; }

/* ---------- Setup wizard page ---------- */
.setup-form-wide { max-width: 640px; }
.setup-aside-steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: .9rem; }
.setup-aside-steps li { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.92); font-weight: 500; }
.setup-aside-steps .n {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.18); color: #fff; font-size: .85rem; font-weight: 700;
}
.setup-gate { text-align: center; }
.setup-gate-ico {
    width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
    background: var(--tw-surface-2, #f1f5f9);
}

/* ---------- Password field (eye toggle + rules) ---------- */
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 2.8rem; }
.pw-toggle {
    position: absolute; top: 50%; right: .55rem; transform: translateY(-50%);
    border: 0; background: transparent; color: var(--tw-muted); cursor: pointer;
    padding: .25rem; display: inline-flex; line-height: 0;
}
.pw-toggle:hover { color: var(--tw-ink); }
.pw-toggle .eye-off { display: none; }
.pw-toggle.on .eye { display: none; }
.pw-toggle.on .eye-off { display: inline; }

.pw-rules {
    list-style: none; padding: 0; margin: .85rem 0 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .9rem;
    font-size: .85rem; color: var(--tw-muted);
}
.pw-rules li { display: flex; align-items: center; gap: .45rem; }
.pf-dot { width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--tw-line); flex: 0 0 auto; transition: all .15s; }
.pw-rules li.ok { color: #15803d; }
.pw-rules li.ok .pf-dot { background: #22c55e; border-color: #22c55e; }

/* ---------- App shell (sidebar) ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
    width: 248px; flex: 0 0 248px; background: var(--tw-surface);
    border-right: 1px solid var(--tw-line); position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; padding: 1.1rem .8rem;
}
.app-brand {
    display: flex; align-items: center; gap: .55rem; padding: .25rem .5rem .85rem;
    font-family: "Plus Jakarta Sans", var(--bs-font-sans-serif); font-weight: 800;
    font-size: 1.3rem; color: var(--tw-brand-600);
}
.app-brand img { width: 28px; height: 28px; border-radius: 8px; }
.app-nav { display: flex; flex-direction: column; gap: .12rem; margin-top: .4rem; flex: 1; overflow-y: auto; }
.app-nav a { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: 10px; color: var(--tw-body); font-weight: 500; }
.app-nav a span { width: 1.2rem; text-align: center; }
.app-nav a:hover { background: var(--tw-brand-50); color: var(--tw-brand-700); }
.app-nav a.active { background: var(--tw-brand); color: #fff; }
.app-sidebar-foot { border-top: 1px solid var(--tw-line); padding-top: .75rem; }
.app-user { display: flex; align-items: center; gap: .5rem; }
.app-user-avatar {
    width: 32px; height: 32px; border-radius: 999px; background: var(--tw-brand-50);
    color: var(--tw-brand-700); display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; flex: 0 0 auto;
}
.app-user-mail { font-size: .82rem; color: var(--tw-muted); min-width: 0; }
.app-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-content main { flex: 1; padding: 1.6rem 2rem; width: 100%; max-width: 1200px; }

/* ---------- Dashboard stat cards ---------- */
.stat-card .stat-ico {
    width: 42px; height: 42px; border-radius: 12px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; margin-bottom: .6rem;
}
.stat-card .stat-val { font-family: "Plus Jakarta Sans", var(--bs-font-sans-serif); font-weight: 800; font-size: 1.5rem; color: var(--tw-ink); line-height: 1; }
.stat-card .stat-lbl { color: var(--tw-muted); font-size: .85rem; margin-top: .25rem; }

@media (max-width: 820px) {
    .app-shell { flex-direction: column; }
    .app-sidebar { width: auto; height: auto; position: static; }
    .app-nav { flex-direction: row; flex-wrap: wrap; }
    .app-content main { padding: 1.25rem; }
}

/* ---------- App topbar ---------- */
.app-content main { max-width: none; }   /* full width content */
.app-topbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
    padding: .55rem 1.5rem; background: rgba(255,255,255,.85);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--tw-line);
}
.app-search { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.app-search-ico { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--tw-muted); font-size: .85rem; pointer-events: none; }
.app-search input { padding-left: 2.3rem; border-radius: 999px; background: var(--tw-bg); }
.app-topbar-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.tb-btn {
    position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--tw-line);
    background: var(--tw-surface); color: var(--tw-body); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.tb-btn:hover { background: var(--tw-brand-50); }
.tb-lang { width: auto; border-radius: 10px; }
.tb-dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 999px; background: #ef4444; border: 2px solid var(--tw-surface); }
.tb-avatar { width: 38px; height: 38px; border-radius: 999px; border: 0; background: linear-gradient(135deg, var(--tw-brand), var(--tw-accent)); color: #fff; font-weight: 700; cursor: pointer; }
.tb-menu { position: relative; }
.tb-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: var(--tw-surface);
    border: 1px solid var(--tw-line); border-radius: 12px; box-shadow: var(--tw-shadow-lg); padding: .4rem; display: none; z-index: 30;
}
.tb-menu:hover .tb-dropdown, .tb-menu:focus-within .tb-dropdown { display: block; }
.tb-dropdown a, .tb-dd-logout {
    display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left;
    padding: .55rem .6rem; border-radius: 8px; color: var(--tw-body); background: transparent; border: 0; font-size: .92rem; cursor: pointer;
}
.tb-dropdown a:hover, .tb-dd-logout:hover { background: var(--tw-brand-50); color: var(--tw-brand-700); }
.tb-dd-head { padding: .45rem .6rem; font-size: .8rem; color: var(--tw-muted); border-bottom: 1px solid var(--tw-line); margin-bottom: .25rem; }
.tb-dd-empty { padding: .6rem; color: var(--tw-muted); font-size: .88rem; }
.t-light { display: inline; } .t-dark { display: none; }
html.dark .t-light { display: none; } html.dark .t-dark { display: inline; }

/* ---------- Dark theme ---------- */
html.dark {
    --tw-bg: #0b1120; --tw-surface: #0f172a; --tw-ink: #e2e8f0; --tw-body: #cbd5e1;
    --tw-muted: #94a3b8; --tw-line: #1e293b; --tw-brand-50: #1e1b4b;
}
html.dark body { background: var(--tw-bg); color: var(--tw-body); }
html.dark .app-topbar { background: rgba(15, 23, 42, .85); }
html.dark .form-control, html.dark .form-select { background-color: #0b1120; color: var(--tw-body); border-color: var(--tw-line); }
html.dark .form-control::placeholder { color: #64748b; }
html.dark .table > thead { background: #0b1120; }
html.dark .app-search input { background: #0b1120; }
html.dark .stat-card .stat-val, html.dark .card-title, html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5 { color: var(--tw-ink); }

/* Bootstrap components that aren't CSS-variable driven need explicit dark styling */
html.dark .modal-content { background: var(--tw-surface); color: var(--tw-body); border: 1px solid var(--tw-line); }
html.dark .modal-header, html.dark .modal-footer { border-color: var(--tw-line); }
html.dark .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
html.dark .page-link { background: var(--tw-surface); border-color: var(--tw-line); color: var(--tw-body); }
html.dark .page-link:hover { background: var(--tw-brand-50); color: var(--tw-ink); }
html.dark .page-item.active .page-link { background: var(--tw-brand); border-color: var(--tw-brand); color: #fff; }
html.dark .page-item.disabled .page-link { background: var(--tw-surface); color: var(--tw-muted); }
html.dark .list-group-item { background: var(--tw-surface); color: var(--tw-body); border-color: var(--tw-line); }
html.dark .dropdown-menu { background: var(--tw-surface); border-color: var(--tw-line); }
html.dark .dropdown-item { color: var(--tw-body); }
html.dark .dropdown-item:hover { background: var(--tw-brand-50); color: var(--tw-ink); }
/* light caret SVG so the select arrow stays visible on dark inputs */
html.dark .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
html.dark .btn-outline-secondary { --bs-btn-color: var(--tw-body); --bs-btn-border-color: var(--tw-line); --bs-btn-hover-bg: #1e293b; --bs-btn-hover-border-color: #334155; --bs-btn-hover-color: var(--tw-ink); }
html.dark .alert-success { background: #052e23; border-color: #14532d; color: #86efac; }
html.dark .alert-danger { background: #2a0f12; border-color: #7f1d1d; color: #fca5a5; }

@media (max-width: 820px) {
    .app-topbar { padding: .5rem .9rem; }
    .app-search { max-width: none; }
}

/* ---------- Status board (kanban) ---------- */
.board { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.board-col {
    flex: 0 0 300px; width: 300px; background: var(--tw-bg);
    border: 1px solid var(--tw-line); border-radius: 16px; padding: .7rem;
    max-height: calc(100vh - 200px); display: flex; flex-direction: column;
    transition: border-color .15s, background .15s;
}
.board-col.is-over { border-color: var(--tw-brand); background: var(--tw-brand-50); }
.board-col-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: .25rem .35rem .7rem; font-weight: 700; color: var(--tw-ink);
}
.board-col-name { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; }
.board-col-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--accent, var(--tw-brand)); }
.board-col-count {
    min-width: 22px; text-align: center; font-size: .78rem; font-weight: 700;
    color: var(--tw-muted); background: var(--tw-surface); border: 1px solid var(--tw-line);
    border-radius: 999px; padding: .05rem .45rem;
}
.board-col-body { display: flex; flex-direction: column; gap: .6rem; overflow-y: auto; flex: 1; padding: .15rem; }

.tkt {
    background: var(--tw-surface); border: 1px solid var(--tw-line); border-radius: 12px;
    padding: .75rem .8rem; box-shadow: var(--tw-shadow-sm); cursor: grab; transition: box-shadow .15s, transform .05s;
}
.tkt:hover { box-shadow: var(--tw-shadow); }
.tkt:active { cursor: grabbing; }
.tkt.is-dragging { opacity: .5; }
.tkt-top { display: flex; justify-content: space-between; align-items: center; }
.tkt-no { font-family: "Plus Jakarta Sans", var(--bs-font-sans-serif); font-weight: 800; color: var(--tw-ink); }
.tkt-code { font-size: .72rem; color: var(--tw-muted); background: var(--tw-bg); border-radius: 6px; padding: .05rem .4rem; letter-spacing: .04em; }
.tkt-cust { font-weight: 600; color: var(--tw-ink); margin-top: .35rem; }
.tkt-phone { display: block; font-size: .82rem; color: var(--tw-muted); text-decoration: none; }
.tkt-phone:hover { color: var(--tw-brand-600); }
.tkt-complaint {
    font-size: .85rem; color: var(--tw-body); margin: .45rem 0 .35rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tkt-meta { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .55rem; }
.tkt-date { font-size: .76rem; color: var(--tw-muted); white-space: nowrap; }
.tkt-move { font-size: .76rem; padding: .15rem .4rem; border-radius: 8px; border: 1px solid var(--tw-line); background: var(--tw-surface); color: var(--tw-body); max-width: 130px; }
.tkt-actions { display: flex; gap: .4rem; }
.board-empty {
    border: 2px dashed var(--tw-line); border-radius: 12px; padding: 1.25rem .5rem; text-align: center;
    color: var(--tw-muted); font-size: .85rem;
}
.btn-success { --bs-btn-bg: #16a34a; --bs-btn-border-color: #16a34a; --bs-btn-hover-bg: #15803d; --bs-btn-hover-border-color: #15803d; }

/* ---------- Dashboard (refined) ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.quick-tile {
    display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; background: var(--tw-surface);
    border: 1px solid var(--tw-line); border-radius: var(--tw-radius-lg); box-shadow: var(--tw-shadow-sm);
    color: var(--tw-body); transition: transform .15s, box-shadow .15s;
}
.quick-tile:hover { transform: translateY(-3px); box-shadow: var(--tw-shadow); color: var(--tw-body); }
.quick-tile .q-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; flex: 0 0 auto; }
.quick-tile strong { display: block; color: var(--tw-ink); font-family: "Plus Jakarta Sans", var(--bs-font-sans-serif); }
.quick-tile small { color: var(--tw-muted); }

.stat-card { position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--tw-brand)); }

/* recent ticket rows */
.dash-ticket { display: flex; align-items: center; gap: .75rem; padding: .65rem .25rem; border-top: 1px solid var(--tw-line); }
.dash-ticket:first-of-type { border-top: 0; }
.dash-ticket:hover { background: var(--tw-brand-50); border-radius: 10px; }
.dash-avatar { width: 38px; height: 38px; border-radius: 999px; flex: 0 0 auto; background: linear-gradient(135deg, var(--tw-brand), var(--tw-accent)); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.dash-ticket-main { flex: 1; min-width: 0; }
.dash-ticket-top { color: var(--tw-ink); }
.dash-code { font-size: .7rem; color: var(--tw-muted); background: var(--tw-bg); border-radius: 6px; padding: .03rem .35rem; letter-spacing: .04em; margin-left: .25rem; }
.dash-ticket-date { white-space: nowrap; }

/* status distribution */
.dist-row { margin-bottom: .7rem; }
.dist-top { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .25rem; color: var(--tw-body); }
.dist-bar { height: 8px; border-radius: 999px; background: var(--tw-bg); overflow: hidden; }
.dist-bar span { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }

/* debtor rows */
.dash-debtor { display: flex; justify-content: space-between; align-items: center; padding: .55rem .25rem; border-top: 1px solid var(--tw-line); }
.dash-debtor:first-of-type { border-top: 0; }
.dash-debtor:hover { background: var(--tw-brand-50); border-radius: 10px; }

.dash-empty { text-align: center; padding: 1.5rem .5rem; color: var(--tw-muted); }
.dash-empty-ico { font-size: 2.2rem; margin-bottom: .4rem; }

@media (max-width: 820px) { .quick-row { grid-template-columns: repeat(2, 1fr); } }

/* language flag button */
.tb-lang .flag { font-size: 1.15rem; line-height: 1; }
.tb-dropdown .flag { font-size: 1.05rem; }

/* flag images in topbar language menu */
.flag { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--tw-line); display: inline-block; vertical-align: middle; }
.tb-dropdown .flag { margin-right: .15rem; }

/* ---------- Custom scrollbars (board) ---------- */
.board-col-body, .board {
    scrollbar-width: thin;
    scrollbar-color: var(--tw-line) transparent;
}
.board-col-body::-webkit-scrollbar { width: 8px; }
.board::-webkit-scrollbar { height: 10px; }
.board-col-body::-webkit-scrollbar-track,
.board::-webkit-scrollbar-track { background: transparent; margin: 4px; }
.board-col-body::-webkit-scrollbar-thumb,
.board::-webkit-scrollbar-thumb {
    background: var(--tw-line); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box;
}
.board-col-body:hover::-webkit-scrollbar-thumb,
.board:hover::-webkit-scrollbar-thumb { background: #c7cdd6; background-clip: padding-box; }
.board-col-body::-webkit-scrollbar-thumb:hover,
.board::-webkit-scrollbar-thumb:hover { background: var(--tw-brand); background-clip: padding-box; }
html.dark .board-col-body:hover::-webkit-scrollbar-thumb,
html.dark .board:hover::-webkit-scrollbar-thumb { background: #334155; background-clip: padding-box; }

/* ---------- Intake form (Yeni Fiş) ---------- */
.intake { max-width: none; padding-bottom: 5.5rem; }
.intake-card {
    background: var(--tw-surface); border: 1px solid var(--tw-line);
    border-radius: var(--tw-radius-lg); box-shadow: var(--tw-shadow-sm);
    padding: 1.25rem 1.4rem; margin-bottom: 1.1rem;
}
.intake-card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.intake-ico { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; flex: 0 0 auto; }
.intake-card-head h5 { font-family: "Plus Jakarta Sans", var(--bs-font-sans-serif); color: var(--tw-ink); }

/* segmented toggle */
.seg { display: inline-flex; background: var(--tw-bg); border: 1px solid var(--tw-line); border-radius: 999px; padding: 3px; }
.seg-btn { border: 0; background: transparent; color: var(--tw-muted); font-weight: 600; font-size: .85rem; padding: .35rem .9rem; border-radius: 999px; transition: all .15s; }
.seg-btn.on { background: var(--tw-brand); color: #fff; box-shadow: var(--tw-shadow-sm); }
.seg-btn:not(.on):hover { color: var(--tw-body); }

/* picked customer card */
.picked { display: flex; align-items: center; gap: .85rem; background: var(--tw-brand-50); border: 1px solid var(--tw-line); border-radius: var(--tw-radius); padding: .75rem 1rem; }
.picked-main { flex: 1; min-width: 0; }
.picked-avatar { width: 42px; height: 42px; border-radius: 999px; flex: 0 0 auto; background: linear-gradient(135deg, var(--tw-brand), var(--tw-accent)); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.picked-avatar.sm { width: 32px; height: 32px; font-size: .85rem; }

/* customer search matches */
.intake-matches { position: absolute; z-index: 20; width: 100%; margin-top: 4px; list-style: none; padding: 6px; background: var(--tw-surface); border: 1px solid var(--tw-line); border-radius: var(--tw-radius); box-shadow: var(--tw-shadow); max-height: 280px; overflow-y: auto; }
.intake-matches li { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; cursor: pointer; }
.intake-matches li:hover { background: var(--tw-brand-50); }

/* item blocks */
.intake-item { background: var(--tw-bg); border: 1px solid var(--tw-line); border-radius: var(--tw-radius); padding: .85rem; margin-bottom: .75rem; }
.intake-item-head { display: flex; align-items: center; margin-bottom: .6rem; }
.intake-item-no { width: 24px; height: 24px; border-radius: 999px; background: var(--tw-brand); color: #fff; font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* inputs */
.intake input[type="number"], .intake .form-control, .intake .form-select { border-radius: 10px; }

/* keep the date field close to the calendar width so the popup isn't wildly wider/narrower */
.date-field { max-width: 300px; }

/* flatpickr date picker — themed */
.flatpickr-calendar {
    border-radius: 14px; border: 1px solid var(--tw-line); background: var(--tw-surface);
    box-shadow: var(--tw-shadow); font-family: inherit; padding: 4px; width: 300px !important;
}
.flatpickr-calendar .flatpickr-days, .flatpickr-calendar .flatpickr-rContainer { width: 100%; }
.flatpickr-calendar .dayContainer { width: 100%; min-width: 100%; max-width: 100%; }
.flatpickr-day { max-width: none; }
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { display: none; }
.flatpickr-months { padding-top: 4px; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month,
.flatpickr-weekdays, span.flatpickr-weekday { background: transparent; }
.flatpickr-current-month .cur-month, .flatpickr-current-month input.cur-year { color: var(--tw-ink); font-weight: 700; }
span.flatpickr-weekday { color: var(--tw-muted); font-weight: 600; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { fill: var(--tw-body); border-radius: 8px; }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--tw-brand); }
.flatpickr-months .flatpickr-prev-month:hover, .flatpickr-months .flatpickr-next-month:hover { background: var(--tw-brand-50); }
.flatpickr-day { color: var(--tw-body); border-radius: 9px; border-color: transparent; height: 38px; line-height: 38px; }
.flatpickr-day:hover, .flatpickr-day:focus { background: var(--tw-brand-50); border-color: transparent; }
.flatpickr-day.today { border-color: var(--tw-brand); }
.flatpickr-day.today:hover { background: var(--tw-brand-50); color: var(--tw-ink); }
.flatpickr-day.selected, .flatpickr-day.selected:hover,
.flatpickr-day.startRange, .flatpickr-day.endRange {
    background: var(--tw-brand); border-color: var(--tw-brand); color: #fff; box-shadow: var(--tw-shadow-sm);
}
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay, .flatpickr-day.flatpickr-disabled { color: var(--tw-muted); opacity: .6; }
.flatpickr-monthDropdown-months { background: var(--tw-surface); color: var(--tw-ink); }
.numInputWrapper span.arrowUp::after { border-bottom-color: var(--tw-muted); }
.numInputWrapper span.arrowDown::after { border-top-color: var(--tw-muted); }

/* dropzone */
.dropzone {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
    width: 100%; padding: 1.6rem; text-align: center; cursor: pointer;
    border: 2px dashed var(--tw-line); border-radius: var(--tw-radius-lg);
    background: var(--tw-bg); color: var(--tw-body); transition: all .15s;
}
.dropzone:hover { border-color: var(--tw-brand); background: var(--tw-brand-50); }
.dropzone-ico { font-size: 1.6rem; }

/* photo thumbnails */
.intake-thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.intake-thumb { position: relative; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; border: 1px solid var(--tw-line); }
.intake-thumb img { width: 100%; height: 100%; object-fit: cover; }
.intake-thumb-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: 0; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.intake-thumb-x:hover { background: #dc2626; }

.intake-actions {
    position: sticky; bottom: 0; z-index: 15;
    margin: 0 -2rem -1.6rem; padding: .9rem 2rem;
    display: flex; justify-content: flex-end;
    background: var(--tw-surface); border-top: 1px solid var(--tw-line);
    box-shadow: 0 -6px 16px rgba(15, 23, 42, .06);
}
.intake-actions .btn { min-width: 220px; }
@media (max-width: 575px) {
    .intake-actions { margin: 0 -1.25rem -1.25rem; padding: .9rem 1.25rem; }
    .intake-actions .btn { width: 100%; min-width: 0; }
}

/* success card */
.intake-success { max-width: 540px; margin: 2rem auto; text-align: center; background: var(--tw-surface); border: 1px solid var(--tw-line); border-radius: var(--tw-radius-lg); box-shadow: var(--tw-shadow); padding: 2rem; }
.intake-success-ico { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 999px; background: linear-gradient(135deg,#10b981,#047857); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; }
.intake-code { letter-spacing: .08em; background: var(--tw-bg); border-radius: 6px; padding: .1rem .4rem; }

.btn svg { vertical-align: middle; }

/* ---------- Reports ---------- */
.mini-stat { display: flex; flex-direction: column; gap: .1rem; }
.mini-stat strong { font-size: 1.35rem; color: var(--tw-ink); font-family: "Plus Jakarta Sans", var(--bs-font-sans-serif); }
.report-chart { width: 100%; height: 175px; display: block; }
.chart-xaxis { display: flex; justify-content: space-between; margin-top: .25rem; font-size: .7rem; color: var(--tw-muted); }
.bar-chart { display: flex; align-items: flex-end; gap: .4rem; height: 150px; padding-top: .5rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .25rem; }
.bar { width: 100%; max-width: 26px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--tw-brand), var(--tw-accent)); transition: opacity .15s; }
.bar-col:hover .bar { opacity: .8; }
.bar-x { font-size: .68rem; color: var(--tw-muted); }

/* ---------- Showcase editor item list ---------- */
.sc-item { display: flex; align-items: center; gap: .85rem; padding: .7rem; border: 1px solid var(--tw-line); border-radius: var(--tw-radius); margin-bottom: .6rem; background: var(--tw-bg); }
.sc-item:hover { border-color: var(--tw-brand); }
.sc-thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; background: var(--tw-surface); border: 1px solid var(--tw-line); display: flex; align-items: center; justify-content: center; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sc-thumb-ph { font-size: 1.4rem; opacity: .5; }
.sc-main { flex: 1; min-width: 0; }
.sc-title { color: var(--tw-ink); font-weight: 600; }
.sc-actions { display: flex; gap: .35rem; flex: 0 0 auto; }

/* ---------- Subscription / pricing ---------- */
.current-plan {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: var(--tw-brand-50); border: 1px solid var(--tw-line);
    border-radius: var(--tw-radius-lg); padding: 1rem 1.4rem;
}
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--tw-surface); border: 1px solid var(--tw-line);
    border-radius: var(--tw-radius-lg); box-shadow: var(--tw-shadow-sm);
    padding: 1.6rem 1.4rem; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--tw-shadow-lg); }
.plan-popular { border-color: var(--tw-brand); box-shadow: 0 12px 30px -10px rgba(79,70,229,.35); }
.plan-current { outline: 2px solid var(--tw-brand); outline-offset: -2px; }
.plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--tw-brand), var(--tw-accent)); color: #fff;
    font-size: .75rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; box-shadow: var(--tw-shadow);
}
.plan-name { font-family: "Plus Jakarta Sans", var(--bs-font-sans-serif); font-weight: 700; font-size: 1.15rem; color: var(--tw-ink); }
.plan-price { font-size: 2.1rem; font-weight: 800; color: var(--tw-ink); font-family: "Plus Jakarta Sans", var(--bs-font-sans-serif); margin-top: .35rem; }
.plan-per { font-size: .95rem; font-weight: 500; color: var(--tw-muted); margin-left: .15rem; }
.plan-yearly { font-size: .85rem; color: var(--tw-muted); margin-bottom: 1rem; }
.plan-save { background: #dcfce7; color: #15803d; border-radius: 999px; padding: .05rem .5rem; font-weight: 600; font-size: .75rem; margin-left: .25rem; }
html.dark .plan-save { background: #052e23; color: #86efac; }
.plan-features { list-style: none; padding: 0; margin: .5rem 0 1.4rem; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: .5rem; padding: .35rem 0; color: var(--tw-body); }
.plan-features li svg { color: var(--tw-brand); flex: 0 0 auto; margin-top: 2px; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
