:root {
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-gradient: linear-gradient(135deg, #16a34a 0%, #84cc16 100%);
  --primary-gradient-hover: linear-gradient(135deg, #15803d 0%, #65a30d 100%);
  --site-bg: #eef7f0;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --surface-soft: #f8fafc;
  --header-bg: rgba(255, 255, 255, 0.96);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 12px 24px -8px rgba(15, 23, 42, 0.14);
}

html.dark {
  --site-bg: #0b1329;
  --card-bg: rgba(30, 41, 59, 0.92);
  --card-border: rgba(51, 65, 85, 0.85);
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;
  --surface-soft: rgba(15, 23, 42, 0.65);
  --header-bg: rgba(15, 23, 42, 0.95);
  --shadow-card: 0 4px 12px rgba(2, 6, 23, 0.35);
  --shadow-hover: 0 16px 32px -10px rgba(2, 6, 23, 0.55);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Anek Bangla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Bengali', sans-serif;
  background-color: var(--site-bg);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.28s ease, color 0.28s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
}

.ti-main {
  flex: 1;
}

.ti-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .ti-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ti-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* =========================================================
   Top Announcement Marquee
   ========================================================= */
@keyframes tiMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ti-marquee-bar {
  position: relative;
  z-index: 60;
  width: 100%;
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(22, 163, 74, 0.4);
  background: linear-gradient(90deg, #065f46 0%, #16a34a 50%, #115e59 100%);
  color: #ffffff;
  user-select: none;
}

.ti-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: tiMarqueeScroll 85s linear infinite;
}

.ti-marquee-bar:hover .ti-marquee-track {
  animation-play-state: paused;
}

.ti-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 1.5rem;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
  transition: color 0.2s;
}

.ti-marquee-item:hover {
  color: #fde68a;
}

.ti-marquee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

.ti-marquee-badge.is-urgent { background: #dc2626; border: 1px solid #ef4444; }
.ti-marquee-badge.is-update { background: #ea580c; border: 1px solid #f97316; }
.ti-marquee-badge.is-new { background: #0284c7; border: 1px solid #38bdf8; }

.ti-marquee-sep {
  margin-left: 0.75rem;
  color: rgba(167, 243, 208, 0.65);
  font-weight: 700;
}

/* =========================================================
   Sticky Header & Mega Menu
   ========================================================= */
.ti-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: background-color 0.28s, border-color 0.28s;
}

body.admin-bar .ti-header {
  top: 32px;
}

.ti-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.ti-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.ti-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -4px rgba(22, 163, 74, 0.35);
  transition: transform 0.25s ease;
}

.ti-brand:hover .ti-brand-icon {
  transform: scale(1.05);
}

.ti-brand-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-main);
}

.ti-brand-text span {
  color: var(--primary);
}

.ti-nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.98rem;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .ti-nav {
    display: flex;
  }
}

.ti-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.25rem;
  color: var(--text-main);
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-size: inherit;
  font-weight: inherit;
}

.ti-nav-link:hover,
.ti-nav-link.is-active {
  color: var(--primary);
  font-weight: 600;
}

.ti-crown-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 55%, #d97706 100%);
  color: #ffffff;
  border: 1px solid rgba(253, 230, 138, 0.7);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* Mega Menu */
.ti-mega-wrap {
  position: static;
}

.ti-mega-panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%) translateY(6px);
  width: calc(100vw - 2rem);
  max-width: 1240px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: 0 20px 45px -18px rgba(15, 23, 42, 0.45), 0 8px 18px -10px rgba(15, 23, 42, 0.2);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.ti-mega-wrap.is-open .ti-mega-panel,
.ti-mega-wrap:hover .ti-mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ti-mega-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ti-mega-col {
  padding: 0 1rem;
  border-right: 1px solid var(--card-border);
}

.ti-mega-col:first-child { padding-left: 0; }
.ti-mega-col:last-child { padding-right: 0; border-right: none; }

.ti-mega-col-head {
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(22, 163, 74, 0.25);
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.22) 0%, rgba(22, 163, 74, 0.12) 60%, rgba(22, 163, 74, 0.05) 100%);
}

.ti-mega-col-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ti-mega-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--primary);
  flex-shrink: 0;
}

.ti-mega-col-title strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
}

.ti-mega-col-title span {
  display: block;
  font-size: 10.5px;
  color: var(--text-subtle);
  line-height: 1.2;
}

.ti-mega-count {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 9999px;
  background: rgba(22, 163, 74, 0.16);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ti-mega-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ti-mega-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}

.ti-mega-item:hover {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.18);
}

.ti-mega-icon {
  width: 34px;
  height: 34px;
  border-radius: 0.55rem;
  background: #f1f5f9;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s, color 0.15s;
}

html.dark .ti-mega-icon {
  background: #1e293b;
}

.ti-mega-item:hover .ti-mega-icon {
  background: var(--primary);
  color: #ffffff;
}

.ti-mega-item-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.ti-mega-item-text span {
  display: block;
  font-size: 11px;
  color: var(--text-subtle);
  line-height: 1.2;
}

/* Header Controls */
.ti-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ti-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.ti-icon-btn:hover {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-main);
}

.ti-btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.24);
  transition: background-color 0.2s, transform 0.15s;
}

.ti-btn-primary-sm:hover {
  background: var(--primary-hover);
}

.ti-mobile-toggle {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .ti-mobile-toggle {
    display: none;
  }
}

.ti-mobile-drawer {
  display: none;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  padding: 1rem;
}

.ti-mobile-drawer.is-open {
  display: block;
}

.ti-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ti-mobile-nav-list a {
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.ti-mobile-nav-list a:hover,
.ti-mobile-nav-list a.is-active {
  background: rgba(22, 163, 74, 0.1);
  color: var(--primary);
}

/* =========================================================
   Hero Section
   ========================================================= */
.ti-hero {
  padding: 2.75rem 0 4rem;
  overflow: hidden;
}

.ti-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ti-hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
}

.ti-hero-left {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .ti-hero-left {
    text-align: left;
    align-items: flex-start;
  }
}

.ti-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.ti-hero-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-main);
}

@media (min-width: 640px) {
  .ti-hero-title { font-size: 2.45rem; }
}

@media (min-width: 1024px) {
  .ti-hero-title { font-size: 3rem; }
}

.ti-gradient-text {
  display: inline-block;
  background-image: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ti-hero-desc {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.ti-hero-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .ti-hero-chips { justify-content: flex-start; }
}

.ti-chip-label {
  font-size: 0.78rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.ti-chip {
  padding: 0.28rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  transition: border-color 0.2s, color 0.2s;
}

.ti-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ti-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  padding-top: 0.5rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .ti-hero-ctas { justify-content: flex-start; }
}

.ti-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.4rem;
  border-radius: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.15s, background-color 0.2s, box-shadow 0.2s;
}

.ti-cta-btn:active { transform: scale(0.98); }

.ti-cta-green {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 22px -6px rgba(22, 163, 74, 0.38);
}

.ti-cta-green:hover { background: var(--primary-hover); }

.ti-cta-white {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--card-border);
}

.ti-cta-white:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ti-cta-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

html.dark .ti-cta-amber {
  color: #fbbf24;
}

.ti-cta-amber:hover {
  background: rgba(245, 158, 11, 0.2);
}

/* Hero Promo Carousel */
.ti-hero-right {
  display: flex;
  justify-content: center;
}

.ti-carousel-frame {
  width: 100%;
  max-width: 448px;
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  padding: 1rem;
  background: linear-gradient(45deg, rgba(22, 163, 74, 0.22), rgba(132, 204, 22, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

html.dark .ti-carousel-frame {
  border-color: #1e293b;
}

.ti-carousel-viewport {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.ti-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 2.5rem;
  color: #ffffff;
  background: radial-gradient(circle at 75% 30%, #15803d 0%, #064e3b 48%, #022c22 100%);
  text-align: center;
}

.ti-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.ti-slide-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  color: #064e3b;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ti-slide-headline {
  margin: 0.45rem 0 0.25rem;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
  color: #fde047;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
  .ti-slide-headline { font-size: 1.5rem; }
}

.ti-slide-sub {
  margin: 0;
  font-size: 0.85rem;
  color: #d1fae5;
  font-weight: 500;
}

.ti-slide-graphic {
  margin: 0.45rem auto;
  width: 100%;
  max-width: 250px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(167, 243, 208, 0.25);
  border-radius: 1rem;
  padding: 0.65rem;
  backdrop-filter: blur(8px);
}

.ti-slide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 auto;
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.ti-slide-url {
  font-size: 0.75rem;
  color: rgba(209, 250, 229, 0.85);
  margin-top: 0.35rem;
}

.ti-carousel-dots {
  position: absolute;
  bottom: 1.45rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.45rem;
}

.ti-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s, background-color 0.25s;
}

.ti-dot.is-active {
  width: 24px;
  background: var(--primary);
}

/* =========================================================
   Shared Section Headers & Buttons
   ========================================================= */
.ti-section {
  padding: 2.5rem 0;
}

@media (min-width: 640px) {
  .ti-section { padding: 3.25rem 0; }
}

.ti-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.ti-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.ti-h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

@media (min-width: 640px) {
  .ti-h2 { font-size: 1.875rem; }
}

.ti-nav-arrows {
  display: flex;
  gap: 0.5rem;
}

.ti-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.ti-arrow-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* =========================================================
   Section 2: Circulars Horizontal Carousel
   ========================================================= */
.ti-scroll-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.15rem 1rem;
  scrollbar-width: none;
}

.ti-scroll-track::-webkit-scrollbar { display: none; }

.ti-circular-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.125rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

@media (min-width: 640px) {
  .ti-circular-card { flex: 0 0 calc((100% - 20px) / 2); }
}

@media (min-width: 1024px) {
  .ti-circular-card { flex: 0 0 calc((100% - 40px) / 3); }
}

.ti-circular-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(22, 163, 74, 0.45);
}

.ti-circular-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ti-circular-org {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.ti-org-badge {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background: var(--surface-soft);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.ti-circular-org h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ti-circular-sub {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.ti-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

html.dark .ti-status-pill { color: #34d399; }

.ti-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #10b981;
}

.ti-circular-stats {
  background: var(--surface-soft);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
}

.ti-countdown-pill {
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.72rem;
}

html.dark .ti-countdown-pill { color: #fbbf24; }

.ti-circular-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-subtle);
  padding: 0 0.25rem;
}

.ti-circular-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--card-border);
}

.ti-btn-soft {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--surface-soft);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ti-btn-soft:hover { background: rgba(148, 163, 184, 0.18); }

.ti-btn-solid {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ti-btn-solid:hover { background: var(--primary-hover); }

.ti-center-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.ti-outline-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.85rem;
  background: var(--primary);
  color: #ffffff;
  border: 2px solid var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 18px -6px rgba(22, 163, 74, 0.35);
  transition: all 0.2s;
}

.ti-outline-cta:hover {
  background: transparent;
  color: var(--primary);
}

/* =========================================================
   Section 3: Popular Online Tools Grid
   ========================================================= */
.ti-title-with-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ti-title-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 0.85rem;
  background: rgba(22, 163, 74, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ti-subtitle-xs {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.ti-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .ti-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .ti-tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .ti-tools-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem;
  }
}

.ti-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 1rem;
  text-align: center;
  border-radius: 1rem;
  background: var(--card-bg);
  border: 1px solid color-mix(in srgb, var(--tool-color, #16a34a) 32%, transparent);
  box-shadow: 0 10px 25px -8px color-mix(in srgb, var(--tool-color, #16a34a) 18%, transparent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ti-tool-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 34px -10px color-mix(in srgb, var(--tool-color, #16a34a) 28%, transparent);
}

.ti-tool-icon-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  padding: 0.4rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  background: linear-gradient(145deg, color-mix(in srgb, var(--tool-color, #16a34a) 12%, #ffffff), color-mix(in srgb, var(--tool-color, #16a34a) 4%, #f8fafc));
}

html.dark .ti-tool-icon-wrap {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.9));
}

@media (min-width: 640px) {
  .ti-tool-icon-wrap { width: 112px; height: 112px; }
}

.ti-tool-icon-wrap svg {
  width: 68px;
  height: 68px;
}

@keyframes aiRisingHeat {
  0% { background-position: 0 0; }
  100% { background-position: 0 150%; }
}

.ti-badge-ai {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  border: 2px solid #ffffff;
  background-image: linear-gradient(#7f1d1d, #dc2626, #f97316, #facc15, #f97316, #dc2626, #7f1d1d);
  background-size: 100% 300%;
  animation: aiRisingHeat 2.2s linear infinite;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

.ti-badge-pro {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 55%, #d97706 100%);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}

.ti-badge-pill {
  position: absolute;
  bottom: -4px;
  right: -6px;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.ti-badge-pill.is-new { background: linear-gradient(90deg, #10b981, #14b8a6); }
.ti-badge-pill.is-pop { background: linear-gradient(90deg, #f97316, #f43f5e); }

.ti-tool-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tool-color, var(--primary));
  line-height: 1.35;
}

@media (min-width: 1024px) {
  .ti-tool-title { font-size: 1.12rem; }
}

/* =========================================================
   Section 4: Important Official Links Directory
   ========================================================= */
.ti-search-wrap {
  position: relative;
  width: 100%;
}

@media (min-width: 640px) {
  .ti-search-wrap { width: 300px; }
}

.ti-search-input {
  width: 100%;
  padding: 0.65rem 3.2rem 0.65rem 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ti-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.ti-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.ti-search-kbd {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.1rem 0.4rem;
  border-radius: 0.375rem;
  border: 1px solid var(--card-border);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-subtle);
}

.ti-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.ti-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ti-filter-pill:hover {
  border-color: var(--primary);
}

.ti-filter-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 14px -4px rgba(22, 163, 74, 0.35);
}

.ti-pill-count {
  padding: 0.05rem 0.4rem;
  border-radius: 0.375rem;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--surface-soft);
  color: var(--text-subtle);
}

.ti-filter-pill.is-active .ti-pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.ti-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .ti-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .ti-links-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ti-link-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.ti-link-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 55px;
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.08), transparent);
  pointer-events: none;
}

.ti-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 163, 74, 0.5);
  box-shadow: var(--shadow-hover);
}

.ti-link-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.ti-link-icon {
  width: 50px;
  height: 50px;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ti-link-body {
  flex: 1;
  min-width: 0;
}

.ti-link-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.ti-link-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ti-link-card:hover .ti-link-title {
  color: var(--primary);
}

.ti-link-desc {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-subtle);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ti-link-foot {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ti-tag-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 0.5rem;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.ti-link-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-subtle);
  font-size: 12px;
}

.ti-mini-btn {
  width: 28px;
  height: 28px;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.ti-mini-btn:hover {
  background: rgba(22, 163, 74, 0.1);
  color: var(--primary);
}

.ti-mini-btn.is-fav {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
}

/* =========================================================
   Section 5: Blog Cards Grid (Unique SEO Content)
   ========================================================= */
.ti-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .ti-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .ti-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ti-blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.ti-blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: var(--shadow-hover);
}

.ti-blog-cover {
  height: 155px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #065f46 0%, #16a34a 65%, #65a30d 100%);
  color: #ffffff;
  position: relative;
}

.ti-blog-cat {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
}

.ti-blog-body {
  padding: 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.ti-blog-body h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

.ti-blog-card:hover .ti-blog-body h3 {
  color: var(--primary);
}

.ti-blog-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ti-blog-meta {
  padding-top: 0.7rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-subtle);
  font-weight: 600;
}

/* =========================================================
   Section 6: Active Members Grid
   ========================================================= */
.ti-members-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .ti-members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .ti-members-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .ti-members-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ti-member-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.ti-member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 163, 74, 0.5);
  box-shadow: var(--shadow-hover);
}

.ti-avatar-box {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.ti-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a 0%, #0d9488 100%);
}

.ti-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 13px;
  height: 13px;
  border-radius: 9999px;
  background: #10b981;
  border: 2px solid #ffffff;
}

.ti-member-info {
  min-width: 0;
  flex: 1;
}

.ti-member-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ti-member-top strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ti-tier-badge {
  padding: 0.1rem 0.38rem;
  border-radius: 0.35rem;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.ti-tier-badge.is-pro { background: rgba(22, 163, 74, 0.14); color: var(--primary); }
.ti-tier-badge.is-new { background: rgba(59, 130, 246, 0.14); color: #2563eb; }

.ti-member-role,
.ti-member-loc {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 11px;
  color: var(--text-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

/* =========================================================
   Section 7: Dark Video & Social CTA Banner
   ========================================================= */
.ti-dark-cta {
  margin-top: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(22, 163, 74, 0.28);
  background: linear-gradient(110deg, #0f172a 0%, #162238 50%, #0f172a 100%);
  padding: 2rem 1.5rem;
  color: #ffffff;
  box-shadow: 0 22px 45px -16px rgba(15, 23, 42, 0.5);
}

@media (min-width: 640px) {
  .ti-dark-cta { padding: 2.75rem; }
}

.ti-dark-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ti-dark-cta-grid { grid-template-columns: 7fr 5fr; }
}

.ti-dark-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
}

.ti-dark-cta h3 {
  margin: 0.85rem 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .ti-dark-cta h3 { font-size: 2.15rem; }
}

.ti-dark-cta p {
  margin: 0;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.ti-dark-btns {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ti-btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.25rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background-color 0.2s;
}

.ti-btn-glass:hover { background: rgba(255, 255, 255, 0.2); }

.ti-glass-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.ti-glass-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.ti-glass-card.is-wide {
  grid-column: span 2;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.ti-glass-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.ti-glass-card h4 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.ti-glass-card span {
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* =========================================================
   Footer & Floating WhatsApp
   ========================================================= */
.ti-footer {
  background: #0f172a;
  color: #cbd5e1;
  border-top: 1px solid #1e293b;
  padding: 3rem 0 2rem;
}

.ti-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1e293b;
}

@media (min-width: 768px) {
  .ti-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .ti-footer-grid { grid-template-columns: 5fr 2fr 2fr 3fr; }
}

.ti-footer-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.5rem;
}

.ti-footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.ti-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.ti-footer-links a {
  color: #94a3b8;
  transition: color 0.2s;
}

.ti-footer-links a:hover { color: var(--primary); }

.ti-socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.ti-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  background: rgba(30, 41, 59, 0.9);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.ti-social-btn:hover { transform: scale(1.06); color: #ffffff; }
.ti-social-btn.fb:hover { background: #1877f2; }
.ti-social-btn.wa:hover { background: #25d366; }
.ti-social-btn.yt:hover { background: #ff0000; }
.ti-social-btn.tw:hover { background: #1da1f2; }

.ti-copyright {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.ti-wa-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: linear-gradient(45deg, #128c7e, #25d366, #2ecc71);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42);
  transition: transform 0.25s;
}

.ti-wa-fab:hover { transform: scale(1.08); }

/* =========================================================
   Subpages, Blog Prose & Interactive Tools Workspace
   ========================================================= */
.ti-page-banner {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 2rem;
}

.ti-prose-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .ti-prose-card { padding: 2.25rem; }
}

.ti-prose h2 { color: var(--text-main); margin-top: 1.75rem; margin-bottom: 0.65rem; font-size: 1.4rem; }
.ti-prose h3 { color: var(--primary); margin-top: 1.35rem; margin-bottom: 0.45rem; font-size: 1.15rem; }
.ti-prose p { color: var(--text-muted); margin-bottom: 1rem; }
.ti-prose ul, .ti-prose ol { color: var(--text-muted); padding-left: 1.35rem; margin-bottom: 1rem; }
.ti-prose li { margin-bottom: 0.4rem; }
.ti-prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9rem; }
.ti-prose th, .ti-prose td { border: 1px solid var(--card-border); padding: 0.65rem 0.85rem; text-align: left; }
.ti-prose th { background: rgba(22, 163, 74, 0.12); color: var(--text-main); font-weight: 700; }

/* Interactive Tool Workspace */
.ti-tool-workspace {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}

.ti-tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.ti-tool-tab {
  padding: 0.5rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.ti-tool-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.ti-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ti-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ti-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.ti-input, .ti-select, .ti-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
  color: var(--text-main);
  font-size: 0.9rem;
}

.ti-result-box {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(22, 163, 74, 0.09);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

/* Modal */
.ti-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ti-modal-backdrop.is-open { display: flex; }

.ti-modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.ti-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 120;
}

.ti-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
