/* SMSBT — panel, giriş ve site stilleri (Bootstrap 5.3 üzerine) */
:root {
  --brand: #4f46e5;
  --brand-rgb: 79, 70, 229;
  --brand-600: #4338ca;
  --brand-50: #eef2ff;
  --accent: #06b6d4;
  --sidebar-w: 264px;
  --sidebar-bg: #0f172a;
  --sidebar-fg: #cbd5e1;
  --radius: .8rem;
  --bs-primary: var(--brand);
  --bs-primary-rgb: var(--brand-rgb);
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: var(--brand-rgb);
  --bs-link-hover-color: var(--brand-600);
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bs-border-radius: .55rem;
  --bs-border-radius-lg: .8rem;
}
[data-bs-theme="dark"] {
  --brand-50: rgba(var(--brand-rgb), .15);
  --sidebar-bg: #0b1120;
}
body { -webkit-font-smoothing: antialiased; }

.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600);
  --bs-btn-active-bg: var(--brand-600); --bs-btn-active-border-color: var(--brand-600);
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand);
}
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.bg-brand-soft { background: var(--brand-50); }
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: rgba(var(--brand-rgb), .5); box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .15);
}
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-label { font-weight: 500; font-size: .9rem; }
.badge-status { font-weight: 500; letter-spacing: .01em; }

/* ------------------------------------------------------------------ panel */
body.panel { background: var(--bs-tertiary-bg); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--sidebar-bg); color: var(--sidebar-fg);
  overflow-y: auto; z-index: 1045; transition: transform .2s ease; display: flex; flex-direction: column;
}
.sidebar .brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.4rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-size: 1rem; }
.sidebar .nav-section { text-transform: uppercase; font-size: .68rem; letter-spacing: .09em; color: #64748b; padding: 1.1rem 1.4rem .35rem; font-weight: 600; }
.sidebar .nav-link { color: var(--sidebar-fg); padding: .5rem .85rem; margin: .05rem .7rem; display: flex; align-items: center; gap: .7rem; border-radius: .55rem; font-size: .92rem; }
.sidebar .nav-link i { font-size: 1.05rem; opacity: .85; width: 1.1rem; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav-link.active { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(var(--brand-rgb), .35); }
.sidebar .nav-link .badge { margin-left: auto; }
.sidebar-footer { margin-top: auto; padding: 1rem 1.4rem; font-size: .8rem; color: #64748b; }
.sidebar-backdrop { display: none; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 1030; height: 64px; display: flex; align-items: center; gap: .75rem;
  padding: 0 1.5rem; background: rgba(var(--bs-body-bg-rgb), .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bs-border-color);
}
.topbar .page-title { font-weight: 600; font-size: 1.05rem; margin: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: .82rem; }
.balance-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-weight: 600; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.content { padding: 1.5rem; flex: 1; width: 100%; max-width: 1480px; }
.impersonate-bar { background: #fef3c7; color: #92400e; padding: .55rem 1.5rem; font-size: .9rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
[data-bs-theme="dark"] .impersonate-bar { background: #422006; color: #fde68a; }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: none; }
  .sidebar.show + .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 1040; }
  .main { margin-left: 0; }
  .content { padding: 1rem; }
  .topbar { padding: 0 1rem; }
}

.card { border: 1px solid var(--bs-border-color-translucent); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: transparent; border-bottom: 1px solid var(--bs-border-color-translucent); padding: .9rem 1.15rem; font-weight: 600; }
.card-body { padding: 1.15rem; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-header h1 { font-size: 1.4rem; font-weight: 700; margin: 0; }
.page-header p { margin: .25rem 0 0; color: var(--bs-secondary-color); }

.stat { display: flex; align-items: center; gap: .9rem; }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-label { color: var(--bs-secondary-color); font-size: .82rem; }
.stat-value { font-size: 1.45rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.soft-primary { background: var(--brand-50); color: var(--brand); }
.soft-success { background: rgba(25,135,84,.12); color: #198754; }
.soft-warning { background: rgba(255,193,7,.18); color: #b58105; }
.soft-danger  { background: rgba(220,53,69,.12); color: #dc3545; }
.soft-info    { background: rgba(6,182,212,.14); color: #0891b2; }

.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .7rem .9rem; vertical-align: middle; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); font-weight: 600; border-bottom-width: 1px; white-space: nowrap; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: rgba(var(--brand-rgb), .035); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--bs-secondary-color); }
.empty-state i { font-size: 2.4rem; display: block; margin-bottom: .6rem; opacity: .5; }

.progress-thin { height: 8px; border-radius: 999px; }
.counter-bar { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--bs-secondary-color); margin-top: .4rem; }
.counter-bar b { color: var(--bs-body-color); }
.summary-box { position: sticky; top: 84px; }
.summary-row { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--bs-border-color); font-size: .92rem; }
.summary-row:last-child { border-bottom: 0; }
.summary-total { font-size: 1.35rem; font-weight: 700; color: var(--brand); }
.group-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); padding: .4rem .75rem; }
.api-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
pre.code { background: #0f172a; color: #e2e8f0; padding: 1rem 1.1rem; border-radius: .6rem; font-size: .82rem; overflow-x: auto; margin: 0; }
.filters .form-control, .filters .form-select { min-width: 140px; }

/* ------------------------------------------------------------------ giriş / kayıt */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(1200px 600px at 0% 0%, rgba(6,182,212,.35), transparent 60%), linear-gradient(140deg, #1e1b4b, var(--brand)); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side a { color: #fff; text-decoration: none; }
.auth-side h2 { font-size: 2rem; font-weight: 700; line-height: 1.25; }
.auth-side li { margin-bottom: .6rem; opacity: .9; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: var(--bs-body-bg); }
.auth-card { width: 100%; max-width: 440px; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ------------------------------------------------------------------ site */
body.site { background: var(--bs-body-bg); }
.site-nav { padding: .9rem 0; background: rgba(var(--bs-body-bg-rgb), .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bs-border-color-translucent); }
.site-nav .navbar-brand { font-weight: 800; display: flex; align-items: center; gap: .55rem; }
.site-nav .nav-link { font-weight: 500; }
.hero { position: relative; overflow: hidden; padding: 5.5rem 0 4.5rem; background: radial-gradient(900px 500px at 85% -10%, rgba(6,182,212,.18), transparent 60%), radial-gradient(900px 600px at 0% 0%, rgba(var(--brand-rgb), .16), transparent 60%); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.hero .lead { font-size: 1.15rem; color: var(--bs-secondary-color); max-width: 560px; }
.hero-badge { display: inline-flex; gap: .5rem; align-items: center; padding: .35rem .85rem; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-weight: 600; font-size: .85rem; }
.phone-mock { max-width: 330px; margin: 0 auto; border-radius: 2.2rem; padding: 1rem; background: #0f172a; box-shadow: 0 30px 60px -20px rgba(30,27,75,.45); }
.phone-screen { background: #f8fafc; border-radius: 1.6rem; padding: 1.25rem 1rem 1.5rem; min-height: 420px; }
.phone-screen .sender { text-align: center; font-weight: 600; color: #0f172a; margin-bottom: 1rem; font-size: .9rem; }
.bubble { background: #e2e8f0; color: #0f172a; padding: .7rem .9rem; border-radius: 1.1rem 1.1rem 1.1rem .3rem; font-size: .88rem; margin-bottom: .7rem; max-width: 88%; }
.bubble small { display: block; color: #64748b; margin-top: .25rem; font-size: .72rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bs-tertiary-bg); }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-title h2 { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.01em; }
.section-title p { color: var(--bs-secondary-color); font-size: 1.05rem; }
.feature-card { height: 100%; padding: 1.75rem; border-radius: 1rem; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(30,27,75,.25); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; background: var(--brand-50); color: var(--brand); margin-bottom: 1rem; }
.price-card { height: 100%; border-radius: 1.1rem; padding: 2rem 1.6rem; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); position: relative; display: flex; flex-direction: column; }
.price-card.popular { border: 2px solid var(--brand); box-shadow: 0 24px 50px -24px rgba(var(--brand-rgb), .55); }
.price-card .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: .3rem .9rem; border-radius: 999px; white-space: nowrap; }
.price-card .qty { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.price-card .price { font-size: 1.6rem; font-weight: 700; color: var(--brand); }
.price-card .old { text-decoration: line-through; color: var(--bs-secondary-color); font-size: 1rem; margin-left: .4rem; }
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; flex: 1; }
.price-card li { padding: .35rem 0; font-size: .93rem; }
.price-card li i { color: #16a34a; margin-right: .45rem; }
.cta-band { background: linear-gradient(135deg, #1e1b4b, var(--brand)); color: #fff; border-radius: 1.4rem; padding: 3rem 2rem; }
.site-footer { background: #0f172a; color: #94a3b8; padding: 3.5rem 0 1.5rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h6 { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.page-content { max-width: 860px; margin: 0 auto; }
.nav-pills .nav-link.active { background: var(--brand); }
