/* =====================================================
   RangeFinder — Premium Fintech Dark UI
   Font: Syne (display) + DM Sans (body)
   Palette: Deep navy + Cyan/Electric blue neon accents
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* === CSS VARIABLES === */
:root {
  /* Core palette */
  --bg:            #060c17;
  --bg-2:          #080f1e;
  --bg-card:       #0d1526;
  --bg-card-2:     #0a1120;
  --bg-soft:       #111d30;
  --border:        rgba(99,179,237,0.10);
  --border-bright: rgba(99,179,237,0.28);

  /* Accent — electric cyan/blue */
  --primary:       #38bdf8;
  --primary-2:     #3b82f6;
  --primary-dim:   rgba(56,189,248,0.12);
  --glow:          rgba(56,189,248,0.25);
  --glow-strong:   rgba(56,189,248,0.45);

  /* Text */
  --text:          #e8f0fe;
  --text-2:        #a8bfd8;
  --muted:         #5a7593;

  /* Semantic */
  --green:         #34d399;
  --green-dim:     rgba(52,211,153,0.12);
  --red:           #f87171;
  --red-dim:       rgba(248,113,113,0.12);
  --amber:         #fbbf24;
  --amber-dim:     rgba(251,191,36,0.12);

  /* Geometry */
  --radius:        14px;
  --radius-sm:     10px;
  --radius-xs:     7px;
  --shadow:        0 4px 24px rgba(0,0,0,0.55);
  --shadow-glow:   0 0 40px rgba(56,189,248,0.08);
}

/* === RESET === */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Subtle grid texture overlay on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 92%;
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--bg-soft); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dim); }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,12,23,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar .logo,
.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
  line-height: 1;
}
.logo:hover { opacity: 0.85; }
.logo img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

.navbar nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  transition: color 0.2s, background 0.2s;
}
.navbar nav a:hover {
  color: var(--text);
  background: var(--primary-dim);
}

.navbar .nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
  height: 40px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s;
}
.btn:hover::after { background: rgba(255,255,255,0.04); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  color: #03101f;
  box-shadow: 0 6px 20px rgba(56,189,248,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(56,189,248,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text-2);
  border: 1px solid var(--border-bright);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--primary);
  background: var(--primary-dim);
}

.btn-large {
  height: 52px;
  padding: 12px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-block {
  width: 100%;
  display: flex;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  padding: 110px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Radial aurora background */
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(56,189,248,0.12) 0%, rgba(59,130,246,0.07) 40%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 30%;
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--border-bright);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 22px;
}

.hero h1 span {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 38px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Animated stat strip below hero */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  display: block;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.section-title p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 28px;
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), var(--shadow-glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: var(--primary-dim);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}

/* =====================================================
   PRICING SECTION
   ===================================================== */
.pricing {
  padding: 100px 0;
  position: relative;
}

.pricing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 32px;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(56,189,248,0.04), transparent 65%);
  pointer-events: none;
}

.pricing-card.recommended {
  border-color: var(--border-bright);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.15), 0 24px 60px rgba(0,0,0,0.5);
}

.pricing-card.recommended::after {
  background: radial-gradient(ellipse at top center, rgba(56,189,248,0.09), transparent 65%);
}

.pricing-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.pricing-card .price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: var(--text);
  margin: 18px 0 4px;
  line-height: 1;
}

.pricing-card .price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.pricing-card .description {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.pricing-card .plan-features {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.pricing-card .plan-features li {
  padding: 9px 0;
  color: var(--text-2);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card .plan-features li:last-child { border-bottom: none; }

.pricing-card .plan-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-dim);
  border: 1px solid var(--primary);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 8l3 3 6-6' stroke='%2338bdf8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

.pricing-card .badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
  color: #03101f;
  padding: 4px 16px;
  border-radius: 0 0 10px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-2);
  padding: 64px 0 28px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo .logo {
  font-size: 24px;
  margin-bottom: 12px;
  display: inline-flex;
}

.footer-logo p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 220px;
}

.footer-links h4 {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-social h4 {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  margin-right: 8px;
  transition: all 0.2s;
}
.social-icon:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* =====================================================
   FORM PAGES (Login / Signup / Forgot / Reset)
   ===================================================== */
.form-page {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  padding: 60px 0;
  position: relative;
}

.form-page::before {
  content: '';
  position: fixed;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(56,189,248,0.07), transparent 70%);
  pointer-events: none;
}

.form-container {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow), var(--shadow-glow);
  position: relative;
  z-index: 1;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.6), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
}

.form-container h2 {
  text-align: center;
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 28px;
}

.selected-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  border: 1px solid var(--border-bright);
  background: var(--primary-dim);
  color: var(--text-2);
  margin-bottom: 20px;
}

.selected-plan-badge strong { color: var(--primary); }

/* Form groups */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.12);
}

.form-group input::placeholder { color: var(--muted); }

.form-options {
  text-align: right;
  margin-bottom: 18px;
}

.form-options a {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.2s;
}
.form-options a:hover { opacity: 0.75; }

.form-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.form-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.form-footer a:hover { opacity: 0.8; }

/* Checkout country grid */
.country-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

@media (min-width: 480px) {
  .country-grid { grid-template-columns: 1fr 1fr; }
}

.country-card {
  display: block;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.country-card:hover {
  border-color: var(--border-bright);
  background: var(--primary-dim);
}

.country-card input[type="radio"] { display: none; }

.country-card-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
}

.country-card.selected {
  border-color: var(--primary);
  background: var(--primary-dim);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.2);
}

.country-flag {
  width: 30px; height: 30px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--bg-card);
  color: var(--text-2);
  flex-shrink: 0;
}

.country-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.country-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.country-note {
  font-size: 11px;
  color: var(--muted);
}

/* =====================================================
   DASHBOARD LAYOUT
   ===================================================== */
.dashboard-body {
  background-color: var(--bg);
  overflow: hidden;
}

.dashboard-container {
  display: flex;
  height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
  width: 248px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  flex-shrink: 0;
  position: relative;
}

/* Top glow line on sidebar */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.35), transparent);
}

.sidebar-header {
  padding: 6px 8px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.sidebar-header .logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.sidebar-header .logo img {
  height: 40px;
  width: auto;
}

.sidebar-nav { flex-grow: 1; }

.sidebar-nav ul { list-style: none; }

.sidebar-nav li { margin-bottom: 3px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.sidebar-nav a:hover {
  background: var(--bg-soft);
  color: var(--text-2);
}

.sidebar-nav li.active a {
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid rgba(56,189,248,0.2);
}

.sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* === DASHBOARD MAIN === */
.dashboard-main {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.dashboard-header h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.dashboard-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =====================================================
   KPI STAT CARDS
   ===================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 4px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  opacity: 0;
  transition: opacity 0.2s;
}

.stat-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.stat-card:hover::after { opacity: 1; }

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* =====================================================
   WIDGETS
   ===================================================== */
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.widget h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* =====================================================
   FILTER BAR
   ===================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 140px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.filter-group select {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  outline: none;
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.filter-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.1);
}

/* =====================================================
   TABLE
   ===================================================== */
.table-container {
  width: 100%;
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card-2);
}

#range-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 900px;
  font-size: 13px;
}

#range-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-2);
  color: var(--muted);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#range-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

#range-table tbody tr {
  transition: background 0.12s;
}

#range-table tbody tr:hover {
  background: rgba(56,189,248,0.04);
}

#range-table tbody tr:last-child td { border-bottom: none; }

#range-table td:nth-child(3),
#range-table td:nth-child(4) {
  font-variant-numeric: tabular-nums;
  font-family: 'Plus Jakarta Sans', monospace;
}

/* =====================================================
   STATUS BADGES & CHIPS
   ===================================================== */
.status-long, .status-short, .status-in-range, .status-active, .status-dev {
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  display: inline-block;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-long {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(52,211,153,0.3);
}

.status-short {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(248,113,113,0.3);
}

.status-in-range {
  background: var(--amber-dim);
  color: var(--amber);
  border-color: rgba(251,191,36,0.3);
}

.status-active, .status-dev {
  text-transform: none;   /* TR locale'de "DEVİATİONDA" gibi bozuk büyük harf olmasın */
}

.status-active {
  background: var(--primary-dim);
  color: var(--primary);
  border-color: rgba(56,189,248,0.3);
}

.status-dev {
  background: var(--amber-dim);
  color: var(--amber);
  border-color: rgba(251,191,36,0.3);
}

.status-dev-exceeded {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(248,113,113,0.45);
  cursor: help;
}

.badge-stale {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(248,113,113,0.45);
  cursor: help;
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
}

.chip-soft {
  background: var(--amber-dim);
  border-color: rgba(251,191,36,0.4);
  color: #fde68a;
}

.chip-strong {
  background: var(--green-dim);
  border-color: rgba(52,211,153,0.45);
  color: #a7f3d0;
}

.chip-muted {
  background: rgba(51,65,85,0.6);
  border-color: rgba(51,65,85,0.9);
  color: #94a3b8;
}

/* Badge variants */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge-long {
  background: var(--green-dim);
  border-color: rgba(52,211,153,0.4);
  color: #a7f3d0;
}

.badge-short {
  background: var(--red-dim);
  border-color: rgba(248,113,113,0.4);
  color: #fecaca;
}

.badge-active {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.4);
  color: #bfdbfe;
}

.badge-triggered {
  background: var(--amber-dim);
  border-color: rgba(251,191,36,0.4);
  color: #fde68a;
}

.badge-paused {
  background: rgba(148,163,184,0.1);
  border-color: rgba(148,163,184,0.4);
  color: #e2e8f0;
}

/* =====================================================
   TRIAL BANNER
   ===================================================== */
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(251,191,36,0.25);
  background: linear-gradient(135deg, rgba(251,191,36,0.07), rgba(245,158,11,0.04));
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--text-2);
}

.trial-banner strong { color: var(--amber); }

.trial-banner .btn-upgrade {
  background: var(--amber);
  color: #1a0a00;
  padding: 7px 14px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

/* =====================================================
   LOCKED BOX
   ===================================================== */
.locked-box {
  border: 1px dashed rgba(248,113,113,0.4);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  background: rgba(248,113,113,0.04);
}

/* =====================================================
   QUICK ACTIONS
   ===================================================== */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* =====================================================
   PLAN BADGES
   ===================================================== */
.plan-badge-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-bright);
  background: var(--primary-dim);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.plan-meta {
  font-size: 12px;
  color: var(--muted);
}

/* =====================================================
   MISC FORM ELEMENTS (ayarlar)
   ===================================================== */
.simple-form .form-group { margin-bottom: 16px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .dashboard-main { padding: 18px 20px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .dashboard-container { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 12px;
  }
  .sidebar-nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .sidebar-footer { margin-top: 0; border-top: none; padding-top: 8px; }
  #range-table { min-width: 760px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-card.recommended { transform: none; }
}

@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 28px; }
  .footer-content { grid-template-columns: 1fr; }
  .form-container { padding: 32px 24px; }
  .navbar nav { display: none; }
}

/* =====================================================
   ÜCRETSİZ DENEME (TRIAL) — landing + uygulama içi
   Vurgu rengi: --amber (fırsat), acil durumda --red
   ===================================================== */

/* --- Landing: hero rozeti --- */
.hero-eyebrow--trial {
  color: var(--amber);
  background: var(--amber-dim);
  border-color: rgba(251,191,36,0.35);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 13px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.hero-eyebrow--trial:hover {
  border-color: rgba(251,191,36,0.6);
  background: rgba(251,191,36,0.18);
}

.hero .hero-note {
  font-size: 13px;
  color: var(--muted);
  margin: 16px auto 0;
}

.hero-stat-value--trial { color: var(--amber); }

/* --- Ortak etiket --- */
.trial-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(251,191,36,0.3);
}
.trial-tag--center { margin-bottom: 14px; }
.pricing-card .trial-tag { margin-top: 2px; }

/* --- Landing: "Nasıl çalışır" bölümü --- */
.trial-section {
  padding: 100px 0;
  position: relative;
}
.trial-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251,191,36,0.25), transparent);
}

.trial-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  counter-reset: none;
}

.trial-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}

/* adımlar arası bağlantı çizgisi (masaüstü) */
.trial-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 44px;
  right: -21px;
  width: 22px;
  height: 1px;
  background: rgba(251,191,36,0.35);
}

.trial-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  color: #1a0a00;
  background: var(--amber);
  margin-bottom: 14px;
}

.trial-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.trial-step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.trial-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  text-align: center;
}
.trial-cta__note {
  font-size: 13px;
  color: var(--muted);
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  max-width: 560px;
  margin: 28px auto 0;
}

/* --- Uygulama içi banner --- */
.trial-banner {
  margin: 0 0 16px 0;
  flex-wrap: wrap;
}

.trial-banner__body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 320px;
  min-width: 0;
}

.trial-banner__icon {
  font-size: 20px;
  line-height: 1.2;
}

.trial-banner__text { flex: 1; min-width: 0; }

.trial-banner__title {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.trial-banner__sub {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
}

.trial-progress {
  height: 4px;
  border-radius: 99px;
  background: rgba(251,191,36,0.12);
  overflow: hidden;
  margin-top: 10px;
  max-width: 360px;
}
.trial-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
  transition: width .4s ease;
}

/* Son 2 gün: kırmızı, aciliyet */
.trial-banner--urgent {
  border-color: rgba(248,113,113,0.35);
  background: linear-gradient(135deg, rgba(248,113,113,0.10), rgba(248,113,113,0.04));
}
.trial-banner--urgent strong { color: var(--red); }
.trial-banner--urgent .trial-progress { background: rgba(248,113,113,0.15); }
.trial-banner--urgent .trial-progress span { background: var(--red); }
.trial-banner--urgent .btn-upgrade {
  background: var(--red);
  color: #1f0606;
}

@media (max-width: 820px) {
  .trial-steps { grid-template-columns: 1fr; max-width: 460px; }
  .trial-step:not(:last-child)::after { display: none; }
}

@media (max-width: 640px) {
  .trial-section { padding: 72px 0; }
  .trial-banner .btn-upgrade { width: 100%; text-align: center; }
}

/* Navbar deneme butonu: mobilde kısa yazı */
.nav-cta-short { display: none; }
@media (max-width: 640px) {
  .nav-cta-long  { display: none; }
  .nav-cta-short { display: inline; }
  .navbar .nav-buttons { gap: 8px; }
  .navbar .nav-buttons .btn { padding-left: 12px; padding-right: 12px; }
}

/* =====================================================
   FİYATLAR: 3 kart (Deneme + Aylık + Yıllık)
   ===================================================== */
.pricing-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
}
.pricing-card--trial { border-color: rgba(251,191,36,0.25); }
.pricing-card--trial::after {
  background: radial-gradient(ellipse at top center, rgba(251,191,36,0.06), transparent 65%);
}
.btn-trial {
  background: var(--amber);
  color: #1a0a00;
  border: 1px solid transparent;
}
.btn-trial:hover { box-shadow: 0 0 24px rgba(251,191,36,0.3); }

@media (max-width: 1100px) {
  .pricing-grid--3 { grid-template-columns: 1fr; max-width: 420px; }
}

/* =====================================================
   KAYIT: plan seçici
   ===================================================== */
.form-container--signup { max-width: 480px; }

.plan-picker {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.plan-picker legend {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 10px;
  padding: 0;
}

.plan-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.plan-option:hover { border-color: var(--border-bright); }

/* gerçek radio görünmez ama klavye ile erişilebilir kalır */
.plan-option input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}

.plan-option__radio {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  transition: border-color .15s, box-shadow .15s;
}

.plan-option__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plan-option__name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-option__desc {
  font-size: 12.5px;
  color: var(--muted);
}
.plan-option__badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  color: var(--green);
  background: var(--green-dim);
}
.plan-option__price {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  white-space: nowrap;
}
.plan-option__price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* seçili durum */
.plan-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-dim);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.25);
}
.plan-option input:checked ~ .plan-option__radio {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 4px var(--bg-card), inset 0 0 0 10px var(--primary);
}
.plan-option input:focus-visible ~ .plan-option__radio {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* deneme seçeneği amber vurgulu */
.plan-option--trial:has(input:checked) {
  border-color: var(--amber);
  background: var(--amber-dim);
  box-shadow: 0 0 0 1px rgba(251,191,36,0.25);
}
.plan-option--trial input:checked ~ .plan-option__radio {
  border-color: var(--amber);
  box-shadow: inset 0 0 0 4px var(--bg-card), inset 0 0 0 10px var(--amber);
}
.plan-option--trial .plan-option__price { color: var(--amber); }

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.form-error {
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  font-size: 13px;
  margin: 0 0 14px;
}
.signup-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 12px;
}

/* =====================================================
   FLASH MESAJLARI
   ===================================================== */
.flash-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.flash {
  padding: 11px 14px;
  border-radius: var(--radius-xs);
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid var(--border-bright);
  background: var(--primary-dim);
  color: var(--text);
}
.flash--success { border-color: rgba(52,211,153,0.35); background: var(--green-dim); }
.flash--error   { border-color: rgba(248,113,113,0.35); background: var(--red-dim); }

@media (max-width: 640px) {
  .form-container--signup { padding: 32px 18px; }
  .plan-option { padding: 12px; gap: 10px; }
  .plan-option__price { font-size: 16px; }
}

/* Açıklamalı tablo başlıkları (üstüne gelince tooltip) */
th.th-help {
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

/* Excel dışa aktarma butonları ve bildirim */
.export-actions { display: inline-flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.export-actions .btn { text-decoration: none; }
.export-actions .btn:disabled { opacity: .6; cursor: wait; }
.export-msg { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.export-ok  { background: rgba(22,163,74,.12); color: #4ade80; border: 1px solid rgba(22,163,74,.35); }
.export-err { background: rgba(220,38,38,.12); color: #f87171; border: 1px solid rgba(220,38,38,.35); }

/* =====================================================
   FİYAT ALARMLARI — zil, bildirimler, alarm penceresi, Alarmlarım
   ===================================================== */
.muted { color: var(--muted); }
.btn-sm { height: 30px; padding: 4px 12px; font-size: 12px; }
.dashboard-header { padding-right: 56px; }

/* --- zil + açılır bildirim listesi --- */
.notif-wrap { position: fixed; top: 18px; right: 26px; z-index: 60; }
.notif-bell {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border-bright); color: var(--text-2);
  cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.notif-bell:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-dim); }
.notif-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}
.notif-count[hidden], .notif-panel[hidden] { display: none; }
.notif-panel {
  position: absolute; right: 0; top: 48px; width: min(360px, calc(100vw - 32px));
  max-height: 70vh; overflow: auto; background: var(--bg-card); border: 1px solid var(--border-bright);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.notif-head {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 14px;
  border-bottom: 1px solid var(--border); font-size: 13px; position: sticky; top: 0; background: var(--bg-card);
}
.notif-head a { color: var(--primary); text-decoration: none; font-size: 12px; }
.notif-list { list-style: none; }
.notif-list li { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.notif-list li:last-child { border-bottom: none; }
.notif-list li.unread { background: var(--primary-dim); }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-body { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 4px; }
.notif-empty { color: var(--muted); font-size: 13px; text-align: center; }

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 10px; width: min(360px, calc(100vw - 40px)); }
.toast {
  background: var(--bg-card); border: 1px solid rgba(251,191,36,0.45); border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer;
  animation: toast-in .25s ease-out; transition: opacity .5s, transform .5s;
}
.toast-out { opacity: 0; transform: translateY(8px); }
.toast-title { font-size: 13px; font-weight: 700; }
.toast-body { font-size: 12px; color: var(--text-2); margin-top: 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --- tarama tablosundaki 🔔 düğmesi --- */
.btn-bell {
  background: var(--bg-soft); border: 1px solid var(--border-bright); border-radius: var(--radius-xs);
  padding: 3px 9px; cursor: pointer; font-size: 14px; line-height: 1.4; transition: border-color .15s, background .15s;
}
.btn-bell:hover { border-color: var(--amber); background: var(--amber-dim); }

/* --- pencere (modal) --- */
.modal-backdrop[hidden] { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(2,6,14,0.72); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--bg-card); border: 1px solid var(--border-bright); border-radius: var(--radius);
  box-shadow: var(--shadow), var(--shadow-glow); padding: 20px 22px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-x { background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.modal-x:hover { color: var(--text); }
.modal-sub { color: var(--muted); font-size: 12px; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.modal-foot > span:last-child { display: inline-flex; gap: 8px; }
.modal .form-group { margin-bottom: 14px; }
.modal .form-hint a, .form-hint a { color: var(--primary); }

.lvl-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.lvl-btn {
  background: var(--bg-soft); border: 1px solid var(--border-bright); border-radius: var(--radius-xs);
  color: var(--text-2); padding: 8px 6px; cursor: pointer; font-size: 12px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: inherit;
}
.lvl-btn span { font-weight: 500; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lvl-btn:hover { border-color: var(--primary); }
.lvl-btn.active { background: var(--primary-dim); border-color: var(--primary); color: var(--primary); }
.lvl-btn.active span { color: var(--text-2); }

.chk-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--primary); }
.chk-off { opacity: .5; cursor: not-allowed; }

/* --- Hesabım: Telegram --- */
.tg-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.tg-title { font-weight: 600; font-size: 14px; }
.tg-sub { color: var(--muted); font-size: 13px; }
.tg-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.tg-ok { color: var(--green) !important; }
.tg-err { color: var(--red) !important; }
.tg-hint { font-size: 13px; margin-top: 10px; }
.tg-hint[hidden] { display: none; }

/* --- Alarmlarım sayfası --- */
.alarm-status-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.alarm-status-row a.badge { text-decoration: none; }
.alarm-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.alarm-tab {
  background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 99px;
  padding: 6px 14px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.alarm-tab.active { background: var(--primary-dim); border-color: rgba(56,189,248,0.35); color: var(--primary); }
.alarm-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 860px; font-size: 13px; }
.alarm-table thead th {
  position: sticky; top: 0; background: var(--bg-2); color: var(--muted); text-align: left; padding: 11px 14px;
  border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}
.alarm-table tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; font-variant-numeric: tabular-nums; }
.alarm-table tbody tr:last-child td { border-bottom: none; }
.alarm-table a { color: var(--primary); }
.alarm-table .chart-link { text-decoration: none; margin-left: 4px; font-size: 12px; }
.alarm-table .note-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.alarm-table .row-actions { white-space: nowrap; text-align: right; }
.alarm-table .row-actions .btn + .btn { margin-left: 6px; }
.cond { font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.cond-up, .cond-down { color: var(--text); }
