/* ===================================================================
   8MBets Bangladesh Design System — DNA Prefix: tnz7
   Domain: play8mbets.com | Architecture: Dashboard-Sidebar Left Rail
   Typography: Chivo (Headings) + Libre Franklin (Body)
   Palette: Complementary Electric Indigo (#5B3ADF) & Berry Coral (#C63963)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chivo:ital,wght@0,300..900;1,300..900&family=Libre+Franklin:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  --tnz7-bg: #F6F7F5;
  --tnz7-surface: #FFFFFF;
  --tnz7-surface-alt: #EDF0EA;
  --tnz7-surface-elevated: #FFFFFF;
  --tnz7-ink: #1E220D;
  --tnz7-ink-muted: #535C43;
  --tnz7-ink-light: #7E876E;
  --tnz7-accent: #5B3ADF;
  --tnz7-accent-hover: #4726C9;
  --tnz7-accent-glow: rgba(91, 58, 223, 0.16);
  --tnz7-accent2: #C63963;
  --tnz7-accent2-hover: #AB264D;
  --tnz7-success: #10B981;
  --tnz7-warning: #F59E0B;
  --tnz7-border: rgba(30, 34, 13, 0.08);
  --tnz7-border-strong: rgba(30, 34, 13, 0.16);
  
  --tnz7-font-heading: 'Chivo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tnz7-font-body: 'Libre Franklin', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --tnz7-radius-sm: 8px;
  --tnz7-radius-md: 14px;
  --tnz7-radius-card: 24px;
  --tnz7-radius-pill: 9999px;
  
  --tnz7-shadow-sm: 0 2px 4px rgba(30, 34, 13, 0.03);
  --tnz7-shadow-card: 0 10px 30px -5px rgba(30, 34, 13, 0.05), 0 0 1px rgba(30, 34, 13, 0.1);
  --tnz7-shadow-lg: 0 20px 45px -10px rgba(91, 58, 223, 0.12), 0 0 1px rgba(30, 34, 13, 0.12);
  
  --tnz7-sidebar-w: 280px;
  --tnz7-topbar-h: 70px;
}

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

html {
  font-size: 17px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--tnz7-bg);
  color: var(--tnz7-ink);
  font-family: var(--tnz7-font-body);
  font-size: 1rem;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tnz7-font-heading);
  color: var(--tnz7-ink);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.75rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.15rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.15rem;
  color: var(--tnz7-ink-muted);
}

a {
  color: var(--tnz7-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--tnz7-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Core */
.tnz7-layout-container {
  display: flex;
  min-height: 100vh;
}

/* Left Rail Sidebar */
.tnz7-sidebar {
  width: var(--tnz7-sidebar-w);
  background-color: var(--tnz7-surface);
  border-right: 1px solid var(--tnz7-border);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  overflow-y: auto;
}

.tnz7-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--tnz7-border);
}

.tnz7-brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.tnz7-brand-text {
  font-family: var(--tnz7-font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--tnz7-ink);
  line-height: 1.1;
}

.tnz7-brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: var(--tnz7-accent2);
  color: #FFF;
  padding: 2px 6px;
  border-radius: var(--tnz7-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tnz7-nav-group-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--tnz7-ink-light);
  margin: 1rem 0.5rem 0.4rem;
}

.tnz7-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tnz7-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--tnz7-radius-pill);
  color: var(--tnz7-ink);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}

.tnz7-nav-link:hover, .tnz7-nav-link.active {
  background-color: var(--tnz7-surface-alt);
  color: var(--tnz7-accent);
}

.tnz7-nav-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.tnz7-sidebar-cta {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Main Content Area */
.tnz7-main-wrap {
  flex: 1;
  margin-left: var(--tnz7-sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Sticky Top Bar */
.tnz7-topbar {
  height: var(--tnz7-topbar-h);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tnz7-border);
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 2px 8px rgba(30, 34, 13, 0.02);
}

.tnz7-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Brand Logo & Name (hidden on desktop) */
.tnz7-mobile-brand {
  display: none;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.tnz7-mobile-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}

.tnz7-mobile-brand-name {
  font-family: var(--tnz7-font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--tnz7-ink);
  letter-spacing: -0.02em;
}

/* Sidebar Close Button */
.tnz7-sidebar-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 8px;
  color: var(--tnz7-ink-muted);
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: background-color 0.2s, color 0.2s;
}

.tnz7-sidebar-close:hover {
  background-color: var(--tnz7-bg);
  color: var(--tnz7-ink);
}

/* Sidebar Backdrop Overlay */
.tnz7-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(30, 34, 13, 0.45);
  backdrop-filter: blur(2px);
  z-index: 95;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.tnz7-sidebar-overlay.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.tnz7-ticker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  background-color: var(--tnz7-bg);
  padding: 0.35rem 0.9rem;
  border-radius: var(--tnz7-radius-pill);
  color: var(--tnz7-ink-muted);
}

.tnz7-ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--tnz7-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: tnz7-pulse 2s infinite;
}

@keyframes tnz7-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.tnz7-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.tnz7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--tnz7-radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

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

.tnz7-btn-primary {
  background-color: var(--tnz7-accent);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px var(--tnz7-accent-glow);
}

.tnz7-btn-primary:hover {
  background-color: var(--tnz7-accent-hover);
  box-shadow: 0 6px 20px var(--tnz7-accent-glow);
  color: #FFFFFF !important;
}

.tnz7-btn-secondary {
  background-color: var(--tnz7-surface-alt);
  color: var(--tnz7-ink) !important;
}

.tnz7-btn-secondary:hover {
  background-color: #E2E6DD;
  color: var(--tnz7-ink) !important;
}

.tnz7-btn-coral {
  background-color: var(--tnz7-accent2);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(198, 57, 99, 0.25);
}

.tnz7-btn-coral:hover {
  background-color: var(--tnz7-accent2-hover);
  color: #FFFFFF !important;
}

.tnz7-btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
}

.tnz7-btn-block {
  width: 100%;
}

/* Content Container */
.tnz7-content {
  padding: 2rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* Breadcrumbs */
.tnz7-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--tnz7-ink-light);
}

.tnz7-breadcrumbs a {
  color: var(--tnz7-ink-muted);
}

.tnz7-breadcrumbs a:hover {
  color: var(--tnz7-accent);
}

.tnz7-breadcrumbs-sep {
  opacity: 0.4;
}

/* Soft-pill Card Components */
.tnz7-card {
  background-color: var(--tnz7-surface);
  border-radius: var(--tnz7-radius-card);
  padding: 1.75rem;
  box-shadow: var(--tnz7-shadow-card);
  border: 1px solid var(--tnz7-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
}

.tnz7-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--tnz7-shadow-lg);
}

.tnz7-card-tinted {
  background-color: var(--tnz7-surface-alt);
  border: 1px solid rgba(30, 34, 13, 0.05);
}

/* Grid Layouts */
.tnz7-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tnz7-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tnz7-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Game Card */
.tnz7-game-card {
  background: var(--tnz7-surface);
  border-radius: var(--tnz7-radius-card);
  overflow: hidden;
  box-shadow: var(--tnz7-shadow-card);
  border: 1px solid var(--tnz7-border);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.tnz7-game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tnz7-shadow-lg);
}

.tnz7-game-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background-color: #121826;
}

.tnz7-game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tnz7-game-card:hover .tnz7-game-img {
  transform: scale(1.05);
}

.tnz7-game-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(30, 34, 13, 0.85);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--tnz7-radius-pill);
  backdrop-filter: blur(4px);
}

.tnz7-game-rtp {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--tnz7-success);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--tnz7-radius-pill);
}

.tnz7-game-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tnz7-game-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.tnz7-game-desc {
  font-size: 0.88rem;
  color: var(--tnz7-ink-muted);
  margin-bottom: 1rem;
  flex: 1;
}

/* Hero Section */
.tnz7-hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0EEFC 100%);
  border-radius: 32px;
  padding: 3rem 2.5rem;
  border: 1px solid var(--tnz7-border);
  box-shadow: var(--tnz7-shadow-lg);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.tnz7-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.tnz7-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--tnz7-accent-glow);
  color: var(--tnz7-accent);
  padding: 0.35rem 0.9rem;
  border-radius: var(--tnz7-radius-pill);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.tnz7-hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.tnz7-hero-highlight {
  color: var(--tnz7-accent);
}

.tnz7-hero-lead {
  font-size: 1.12rem;
  color: var(--tnz7-ink-muted);
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.tnz7-hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tnz7-trust-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tnz7-border);
  font-size: 0.85rem;
  color: var(--tnz7-ink-muted);
}

.tnz7-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

/* Payment Badges Grid */
.tnz7-payment-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: var(--tnz7-surface);
  border-radius: var(--tnz7-radius-card);
  border: 1px solid var(--tnz7-border);
  margin-bottom: 2rem;
}

.tnz7-payment-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--tnz7-bg);
  padding: 0.5rem 1rem;
  border-radius: var(--tnz7-radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
}

.tnz7-payment-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Tables */
.tnz7-table-wrap {
  overflow-x: auto;
  border-radius: var(--tnz7-radius-card);
  background: var(--tnz7-surface);
  border: 1px solid var(--tnz7-border);
  margin: 1.5rem 0;
}

.tnz7-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.tnz7-table th {
  background-color: var(--tnz7-surface-alt);
  font-family: var(--tnz7-font-heading);
  font-weight: 800;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--tnz7-border-strong);
  color: var(--tnz7-ink);
}

.tnz7-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--tnz7-border);
  color: var(--tnz7-ink-muted);
}

.tnz7-table tr:last-child td {
  border-bottom: none;
}

.tnz7-table tr:hover td {
  background-color: rgba(91, 58, 223, 0.02);
}

/* FAQ Accordion (GEO / AEO Discovery) */
.tnz7-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.tnz7-faq-item {
  background: var(--tnz7-surface);
  border-radius: var(--tnz7-radius-md);
  border: 1px solid var(--tnz7-border);
  overflow: hidden;
}

.tnz7-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  font-family: var(--tnz7-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tnz7-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.tnz7-faq-answer {
  padding: 0 1.5rem 1.2rem;
  color: var(--tnz7-ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* E-E-A-T Author Card */
.tnz7-author-box {
  background: var(--tnz7-surface-alt);
  border-radius: var(--tnz7-radius-card);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2.5rem 0 1.5rem;
  border: 1px solid var(--tnz7-border);
}

.tnz7-author-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--tnz7-surface);
  box-shadow: var(--tnz7-shadow-sm);
  flex-shrink: 0;
}

.tnz7-author-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--tnz7-ink);
  margin-bottom: 0.2rem;
}

.tnz7-author-meta {
  font-size: 0.85rem;
  color: var(--tnz7-ink-light);
  margin-bottom: 0.4rem;
}

.tnz7-author-bio {
  font-size: 0.9rem;
  color: var(--tnz7-ink-muted);
  margin-bottom: 0;
}

/* Responsible Gaming Notice (Non-blocking) */
.tnz7-rg-banner {
  background: #1E220D;
  color: #D6DEC8;
  padding: 1.5rem 2rem;
  border-radius: var(--tnz7-radius-card);
  margin: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tnz7-rg-badge {
  background: #E11D48;
  color: #FFF;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--tnz7-radius-sm);
  flex-shrink: 0;
}

.tnz7-rg-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #D6DEC8;
  margin: 0;
}

.tnz7-rg-text strong {
  color: #FFF;
}

/* Accordion Footer */
.tnz7-footer {
  background: var(--tnz7-surface);
  border-top: 1px solid var(--tnz7-border);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.tnz7-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.tnz7-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.tnz7-footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  margin-top: 0;
  color: var(--tnz7-ink);
}

.tnz7-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tnz7-footer-links a {
  color: var(--tnz7-ink-muted);
  font-size: 0.88rem;
}

.tnz7-footer-links a:hover {
  color: var(--tnz7-accent);
}

.tnz7-footer-bottom {
  border-top: 1px solid var(--tnz7-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--tnz7-ink-light);
}

/* Mobile Responsiveness */
.tnz7-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--tnz7-ink);
  border-radius: 8px;
  transition: background-color 0.2s;
}

.tnz7-mobile-toggle:hover {
  background-color: var(--tnz7-bg);
}

@media (max-width: 1024px) {
  :root {
    --tnz7-topbar-h: 58px;
  }
  .tnz7-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
    z-index: 100;
    max-width: 84vw;
  }
  .tnz7-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);
  }
  .tnz7-main-wrap {
    margin-left: 0;
  }
  .tnz7-topbar {
    height: var(--tnz7-topbar-h);
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 90;
  }
  .tnz7-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
  }
  .tnz7-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .tnz7-mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
  }
  .tnz7-ticker {
    display: none !important; /* Eliminate bulky ticker inside sticky header on mobile */
  }
  .tnz7-sidebar-close {
    display: inline-flex;
  }
  .tnz7-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
  }
  .tnz7-topbar-actions .tnz7-btn {
    padding: 0.42rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
  }
  .tnz7-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .tnz7-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .tnz7-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tnz7-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .tnz7-content { padding: 1rem; }
  .tnz7-hero { padding: 1.75rem 1rem; border-radius: 20px; }
  .tnz7-hero-title { font-size: 1.75rem; }
  .tnz7-grid-2, .tnz7-grid-3, .tnz7-grid-4 {
    grid-template-columns: 1fr;
  }
  .tnz7-footer-grid {
    grid-template-columns: 1fr;
  }
  .tnz7-topbar {
    padding: 0 0.85rem;
  }
  .tnz7-rg-banner { flex-direction: column; align-items: flex-start; }
  .tnz7-author-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .tnz7-topbar {
    padding: 0 0.6rem;
  }
  .tnz7-topbar-left {
    gap: 0.35rem;
  }
  .tnz7-mobile-brand-name {
    font-size: 1rem;
  }
  .tnz7-mobile-logo {
    width: 28px;
    height: 28px;
  }
  .tnz7-topbar-actions {
    gap: 0.3rem;
  }
  .tnz7-topbar-actions .tnz7-btn {
    padding: 0.38rem 0.65rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 350px) {
  .tnz7-mobile-brand-name {
    display: none; /* Icon only on ultra compact devices */
  }
  .tnz7-topbar-actions .tnz7-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
  }
}
