/* ════════════════════════════════════════════
   TextRepeater — Main Stylesheet
   ════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: #1e293b;
  background: #f1f5f9;
}

/* ── Page Wrapper ── */
#page-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ══════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════ */
#sidebar {
  width: 240px;
  min-width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  font-size: 1rem;
  color: #00296b;
  flex-shrink: 0;
}

/* ── Sidebar header brand text dark mode ── */
body.dark-mode .sidebar-header {
  color: #e2e8f0;
  border-color: #2a2f45;
}

.sidebar-nav {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
  padding: 14px 8px 6px;
  display: block;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #475569;
  text-decoration: none;
  transition: background 0.16s, color 0.16s;
  margin-bottom: 2px;
  cursor: pointer;
}

.sidebar-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #f1f5f9;
  font-size: 15px;
  flex-shrink: 0;
  transition: background 0.16s;
}

.sidebar-link:hover { background: #f1f5f9; color: #00296b; }
.sidebar-link:hover .sidebar-icon { background: #dbeafe; color: #1d4ed8; }
.sidebar-link.active { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.sidebar-link.active .sidebar-icon { background: #1d4ed8; color: #fff; }

/* Overlay */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 99;
}
#sidebar-overlay.show { display: block; }

/* ══════════════════════════════════════════
   RIGHT COLUMN
   ══════════════════════════════════════════ */
#right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

/* ── Navbar ── */
#main-navbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 58px;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

#sidebarToggle {
  display: none;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 38px; height: 38px;
  font-size: 22px;
  cursor: pointer;
  color: #475569;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.16s;
}
#sidebarToggle:hover { background: #f1f5f9; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  padding: 7px 13px;
  border-radius: 8px;
  text-decoration: none;
  color: #475569;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s, color 0.16s;
  white-space: nowrap;
}
.nav-link:hover { background: #f1f5f9; color: #00296b; }
.nav-link.active { background: #eff6ff; color: #1d4ed8; font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu-custom {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px;
  min-width: 210px;
  z-index: 200;
}
.dropdown-menu-custom.open { display: block; }
.dropdown-menu-custom a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #475569;
  font-size: 0.9rem;
  transition: background 0.14s;
}
.dropdown-menu-custom a:hover { background: #f1f5f9; color: #00296b; }

.theme-btn {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #475569;
  font-size: 15px;
  transition: background 0.16s;
  margin-left: 4px;
}
.theme-btn:hover { background: #f1f5f9; color: #00296b; }

/* ── Main Content ── */
#main-content {
  flex: 1;
  padding: 28px;
  background: #f1f5f9;
}

/* Tool heading area */
.tool-heading { margin-bottom: 20px; }
.tool-heading h1 { font-size: 1.6rem; font-weight: 700; color: #0f172a; }
.tool-heading p  { font-size: 0.95rem; color: #64748b; margin-top: 4px; }

/* Input + Output side by side — EQUAL ratio */
#main-section {
  display: flex;
  gap: 16px;
  align-items: stretch;        /* ← দুটো same height হবে */
}

#input, #output {
  flex: 1 1 0;                 /* ← দুটো exactly সমান width */
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Form elements */
textarea, input[type="number"], select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.16s;
  resize: vertical;
}
textarea:focus, input[type="number"]:focus, select:focus {
  outline: none;
  border-color: #00296b;
}

label { font-size: 0.9rem; color: #475569; }

/* ── Footer ── */
.site-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 40px 40px 32px;
  align-items: flex-start;
  max-width: 1400px;
  margin-inline: auto;
}

/* Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: #00296b;
  width: fit-content;
}
.footer-logo:hover { opacity: 0.85; }

/* Footer logo — same CSS variable as sidebar/navbar logo */
.footer-logo .logo-rect {
  fill: #00296b;
  transition: fill 0.3s ease;
}
body.dark-mode .footer-logo .logo-rect {
  fill: #818cf8;
}

.footer-brand p {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
  max-width: 240px;
  line-height: 1.65;
}

/* Footer columns */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h6 {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.9rem;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eff6ff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col a {
  text-decoration: none;
  color: #64748b;
  font-size: 0.875rem;
  transition: color 0.16s, padding-left 0.16s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover {
  color: #00296b;
  padding-left: 4px;
}

/* Copyright bar */
.footer-copy {
  border-top: 1px solid #e2e8f0;
  text-align: center;
  padding: 14px 20px;
  color: #94a3b8;
  font-size: 0.825rem;
  background: #f8fafc;
}
.footer-copy strong { color: #64748b; font-weight: 600; }


/* ── Footer Dark Mode ── */
body.dark-mode .site-footer        { background: #1c1f2e; border-color: #2a2f45; }
body.dark-mode .footer-col h6      { color: #e2e8f0; border-color: #2a2f45; }
body.dark-mode .footer-col a       { color: #64748b; }
body.dark-mode .footer-col a:hover { color: #818cf8; padding-left: 4px; }
body.dark-mode .footer-brand p     { color: #64748b; }
body.dark-mode .footer-logo        { color: #e2e8f0; }
body.dark-mode .footer-copy        { color: #64748b; border-color: #2a2f45; background: #171a26; }
body.dark-mode .footer-copy strong { color: #94a3b8; }


/* ── Footer Responsive ── */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 32px 24px 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand p {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 24px 16px 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ── Buttons ── */
#clearButton {
  border: 1px solid #00296b;
  color: #00296b;
  background: transparent;
  border-radius: 8px;
  padding: 7px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s;
}
#clearButton:hover { background: #00296b; color: #fff; }

#repeat-button {
  background: #00296b;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#repeat-button:hover { background: #011b44; }
#repeat-button:disabled { opacity: 0.45; cursor: not-allowed; }

#copy-btn {
  background: #00296b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.2s;
}
#copy-btn:hover { background: #011b44; }
#copy-btn:disabled { opacity: 0.45; cursor: not-allowed; }

#send-btn {
  background: #ffd500;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.2s;
}
#send-btn:hover { background: #c9a803; }
#send-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* WhatsApp Dropdown */
.send-dropdown { position: relative; display: inline-block; }
.send-dropdown-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px;
  min-width: 160px;
  z-index: 50;
}
.send-dropdown-menu.open { display: block; }
.send-dropdown-menu li {
  list-style: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.14s;
}
.send-dropdown-menu li:hover { background: #f1f5f9; color: #00296b; }

#error { color: #dc2626; font-size: 0.875rem; min-height: 1.2rem; margin-top: 6px; }


/* ════════════════════════════════════════════
   LOGO — Light / Dark Mode Color Change
   ════════════════════════════════════════════ */

/* একটাই SVG logo — .logo-rect এর fill CSS দিয়ে control হবে */
.site-logo .logo-rect {
  fill: #00296b;                        /* Light mode: dark navy */
  transition: fill 0.3s ease;
}
body.dark-mode .site-logo .logo-rect {
  fill: #818cf8;                        /* Dark mode: bright indigo */
}


/* ════════════════════════════════════════════
   MOBILE CENTER LOGO
   ════════════════════════════════════════════ */

/* Desktop: লুকানো */
.navbar-mobile-logo {
  display: none;
}

/* Mobile: center এ দেখাবে */
@media (max-width: 768px) {
  #main-navbar {
    position: relative;               /* center logo এর জন্য দরকার */
  }

  .navbar-mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: color 0.2s;
    white-space: nowrap;
  }

  body.dark-mode .navbar-mobile-logo {
    color: #e2e8f0;
  }
}


/* ════════════════════════════════════════════
   DARK MODE
   ════════════════════════════════════════════ */
body.dark-mode { background: #0f1117; color: #e2e8f0; }

body.dark-mode #sidebar,
body.dark-mode #main-navbar,
body.dark-mode .site-footer,
body.dark-mode #input,
body.dark-mode #output { background: #1c1f2e; border-color: #2a2f45; }

body.dark-mode .sidebar-link { color: #94a3b8; }
body.dark-mode .sidebar-link:hover { background: #2a2f45; color: #e2e8f0; }
body.dark-mode .sidebar-link.active { background: #1e3a5f; color: #60a5fa; }
body.dark-mode .sidebar-link.active .sidebar-icon { background: #1d4ed8; color: #fff; }
body.dark-mode .sidebar-icon { background: #2a2f45; color: #94a3b8; }

body.dark-mode .nav-link { color: #94a3b8; }
body.dark-mode .nav-link:hover { background: #2a2f45; color: #e2e8f0; }

body.dark-mode .dropdown-menu-custom,
body.dark-mode .send-dropdown-menu { background: #1c1f2e; border-color: #2a2f45; }
body.dark-mode .dropdown-menu-custom a,
body.dark-mode .send-dropdown-menu li { color: #94a3b8; }
body.dark-mode .dropdown-menu-custom a:hover,
body.dark-mode .send-dropdown-menu li:hover { background: #2a2f45; color: #e2e8f0; }

body.dark-mode #main-content { background: #0f1117; }

body.dark-mode textarea,
body.dark-mode input[type="number"],
body.dark-mode select { background: #0f1117; color: #e2e8f0; border-color: #2a2f45; }

body.dark-mode h1, body.dark-mode h2, body.dark-mode h6 { color: #e2e8f0; }
body.dark-mode label { color: #94a3b8; }

body.dark-mode .theme-btn { border-color: #2a2f45; color: #94a3b8; }
body.dark-mode .theme-btn:hover { background: #2a2f45; color: #e2e8f0; }

body.dark-mode #sidebarToggle { border-color: #2a2f45; color: #94a3b8; }
body.dark-mode #sidebarToggle:hover { background: #2a2f45; }

/* Footer dark */
body.dark-mode .site-footer { background: #1c1f2e; border-color: #2a2f45; }
body.dark-mode .footer-col h6 { color: #e2e8f0; border-color: #2a2f45; }
body.dark-mode .footer-col a { color: #94a3b8; }
body.dark-mode .footer-col a:hover { color: #60a5fa; }
body.dark-mode .footer-brand p { color: #64748b; }
body.dark-mode .footer-copy { color: #64748b; border-color: #2a2f45; }
body.dark-mode .footer-logo { color: #e2e8f0; }


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 991px) {
  #main-section { flex-direction: column; }
  #input, #output { width: 100%; }
}

@media (max-width: 768px) {
  #sidebarToggle { display: flex; }

  /* Desktop nav links লুকাবে */
  .navbar-links .nav-link { display: none; }
  .navbar-links .nav-dropdown { display: none; }

  /* Theme btn দেখাবে */
  .navbar-links .theme-btn { display: flex !important; }

  #sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 200;
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }
  #sidebar.open { transform: translateX(0); }

  #main-content { padding: 16px; }
  .footer-inner { padding: 24px 20px; }

  /* Mobile footer: 2 column */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════
   CONTENT SECTION
   ════════════════════════════════════════════ */
.content-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.content-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.content-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eff6ff;
}

.content-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

/* Steps */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #00296b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.step-item p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  transition: background 0.16s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  color: #00296b;
  font-weight: 700;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: #eff6ff; }

.faq-item p {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  border-top: 1px solid #e2e8f0;
}

/* Use Cases Table (cc-cases-table) */
.cc-cases-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-case-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
}

.cc-case-name { font-weight: 700; color: #0f172a; }
.cc-case-example { font-family: 'Courier New', monospace; color: #6366f1; font-weight: 600; }
.cc-case-use { color: #64748b; }


/* ════════════════════════════════════════════
   TEXT REPEATER TOOL — Home Page Specific
   ════════════════════════════════════════════ */

/* Section header (title + clear btn) */
.tr-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

/* Section title with icon */
.tr-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}
.tr-section-title svg { stroke: #6366f1; flex-shrink: 0; }

/* Word / char count row */
.tr-count-row {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: #475569;
}
.tr-count-row strong { color: #1e293b; }

/* Settings row */
.tr-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tr-settings-col,
.tr-font-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tr-col-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

/* Checkboxes */
.tr-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tr-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #475569;
  user-select: none;
}
.tr-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #00296b;
  cursor: pointer;
}

/* Repeat row */
.tr-repeat-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* Output textarea */
.tr-output-textarea {
  height: 200px;
  margin-bottom: 14px;
  background: #f8fafc;
  resize: vertical;
}

/* Send row */
.tr-send-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* WhatsApp dropdown trigger button */
.tr-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  color: #475569;
  transition: background 0.16s, border-color 0.16s;
}
.tr-dropdown-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* ── Dark Mode ── */
body.dark-mode .tr-section-title { color: #e2e8f0; }
body.dark-mode .tr-section-title svg { stroke: #a5b4fc; }
body.dark-mode .tr-col-label { color: #e2e8f0; }
body.dark-mode .tr-count-row { color: #94a3b8; }
body.dark-mode .tr-count-row strong { color: #e2e8f0; }
body.dark-mode .tr-check-label { color: #94a3b8; }
body.dark-mode .tr-check-label input[type="checkbox"] { accent-color: #818cf8; }
body.dark-mode .tr-output-textarea { background: #0f1117; }
body.dark-mode .tr-dropdown-btn {
  background: #1c1f2e;
  border-color: #2a2f45;
  color: #94a3b8;
}
body.dark-mode .tr-dropdown-btn:hover {
  background: #2a2f45;
  color: #e2e8f0;
}


/* ════════════════════════════════════════════
   DARK MODE — Content Cards
   ════════════════════════════════════════════ */
body.dark-mode .content-card { background: #1c1f2e; border-color: #2a2f45; }
body.dark-mode .content-card h2 { color: #e2e8f0; border-color: #2a2f45; }
body.dark-mode .content-card p { color: #94a3b8; }
body.dark-mode .feature-item { background: #0f1117; border-color: #2a2f45; }
body.dark-mode .feature-item h3, body.dark-mode .step-item h3 { color: #e2e8f0; }
body.dark-mode .faq-item { border-color: #2a2f45; }
body.dark-mode .faq-item summary { background: #0f1117; color: #e2e8f0; }
body.dark-mode .faq-item summary:hover { background: #1e3a5f; }
body.dark-mode .faq-item p { border-color: #2a2f45; }
body.dark-mode .cc-case-row { background: #0f1117; border-color: #2a2f45; }
body.dark-mode .cc-case-name { color: #e2e8f0; }
body.dark-mode .cc-case-use { color: #64748b; }


/* ════════════════════════════════════════════
   RESPONSIVE — Content
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .content-card { padding: 20px 16px; }
  .cc-case-row { grid-template-columns: 90px 1fr; }
  .cc-case-use { display: none; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}




/* ════════════════════════════════════════════
   ABOUT PAGE
   ════════════════════════════════════════════ */

/* Hero Card */
.about-hero-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 60%);
  border-color: #dbeafe;
}

.about-hero-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-hero-text {
  flex: 1 1 300px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  margin-bottom: 14px;
}

.about-hero-text h2 {
  font-size: 1.45rem !important;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 14px;
}

.about-hero-text p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.75;
}

/* Stats grid */
.about-hero-visual {
  flex: 0 0 auto;
}

.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-width: 240px;
}

.about-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #00296b;
  line-height: 1.1;
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

/* Values */
.about-values {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: background 0.16s;
}
.about-value-item:hover { background: #eff6ff; }

.about-value-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  flex-shrink: 0;
}

.about-value-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.about-value-item p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 100%;
}

/* Built With Care */
.about-built-card {
  background: #f8fafc;
}

.about-built-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.about-built-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 4px;
}

.about-built-inner h2 {
  font-size: 1.2rem !important;
}

.about-built-inner p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.75;
}

.about-inline-link {
  color: #00296b;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #bfdbfe;
  transition: color 0.16s;
}
.about-inline-link:hover { color: #1d4ed8; }

/* CTA Card */
.about-cta-card {
  background: linear-gradient(135deg, #00296b 0%, #1d4ed8 100%);
  border-color: transparent;
  text-align: center;
}

.about-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.about-cta-card h2 {
  color: #fff !important;
  font-size: 1.3rem !important;
}

.about-cta-card p {
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  font-size: 0.95rem;
}

.about-cta-btns {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.about-btn-primary {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #00296b;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.about-btn-primary:hover {
  background: #eff6ff;
  transform: translateY(-1px);
}

.about-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.2s, transform 0.2s;
}
.about-btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* ── Dark Mode — About ── */
body.dark-mode .about-hero-card {
  background: linear-gradient(135deg, #1a2440 0%, #1c1f2e 60%);
  border-color: #2a2f45;
}
body.dark-mode .about-badge {
  background: #1e3a5f;
  color: #60a5fa;
  border-color: #2a4a6b;
}
body.dark-mode .about-hero-text h2 { color: #e2e8f0; }
body.dark-mode .about-hero-text p  { color: #94a3b8; }

body.dark-mode .about-stat {
  background: #1c1f2e;
  border-color: #2a2f45;
}
body.dark-mode .about-stat-num   { color: #818cf8; }
body.dark-mode .about-stat-label { color: #64748b; }

body.dark-mode .about-value-item {
  background: #0f1117;
  border-color: #2a2f45;
}
body.dark-mode .about-value-item:hover { background: #1e3a5f; }
body.dark-mode .about-value-icon {
  background: #1c1f2e;
  border-color: #2a2f45;
}
body.dark-mode .about-value-item h3 { color: #e2e8f0; }
body.dark-mode .about-value-item p  { color: #64748b; }

body.dark-mode .about-built-card  { background: #171a26; }
body.dark-mode .about-built-inner p { color: #94a3b8; }
body.dark-mode .about-inline-link {
  color: #818cf8;
  border-color: #3730a3;
}

/* CTA card dark mode তে same থাকবে (gradient) */


/* ── Responsive — About ── */
@media (max-width: 768px) {
  .about-hero-inner {
    flex-direction: column;
    gap: 24px;
  }
  .about-stat-grid {
    min-width: 100%;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
  }
  .about-stat-num { font-size: 1.4rem; }
  .about-built-inner { flex-direction: column; gap: 12px; }
  .about-cta-btns { flex-direction: column; align-items: stretch; }
  .about-btn-primary, .about-btn-secondary { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .about-stat-grid { grid-template-columns: 1fr 1fr; }
}