/* ===== 777abc login - Global Styles ===== */
/* System font stack - no Google Fonts */
:root {
  --clr-primary: #0b6e3d;
  --clr-primary-dark: #084d2b;
  --clr-accent: #e8a317;
  --clr-accent-light: #f5c842;
  --clr-bg: #f0f4f2;
  --clr-surface: #ffffff;
  --clr-surface-alt: #f7faf8;
  --clr-text: #1a2b22;
  --clr-text-secondary: #4a6355;
  --clr-border: #d4ddd8;
  --clr-footer-bg: #0a2e1a;
  --clr-footer-text: #c8ddd0;
  --clr-hero-start: #0b6e3d;
  --clr-hero-end: #1a9e5a;
  --clr-card-shadow: rgba(11,110,61,0.10);
  --clr-danger: #c0392b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-w: 1180px;
  --header-h: 72px;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-stack);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
a { color: var(--clr-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clr-accent); }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(135deg, var(--clr-primary) 0%, #14854a 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 20px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.brand-wrap {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  background: var(--clr-accent);
  border-radius: 10px;
  color: var(--clr-primary-dark);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
}
.brand-text {
  min-width: 0;
  line-height: 1.05;
}
.brand-text strong, .brand-text span {
  display: block;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}
.brand-text strong { font-size: 17px; font-weight: 700; }
.brand-text span { font-size: 11px; opacity: .85; }
.primary-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 18px);
  overflow: visible;
  flex-wrap: nowrap;
}
.primary-nav a {
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  padding: 10px 7px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.primary-nav a:hover, .primary-nav a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.header-actions .btn {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  text-decoration: none;
}
.btn-register {
  background: var(--clr-accent);
  color: var(--clr-primary-dark);
}
.btn-register:hover { background: var(--clr-accent-light); transform: translateY(-1px); color: var(--clr-primary-dark); }
.btn-login {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35) !important;
}
.btn-login:hover { background: rgba(255,255,255,.28); color: #fff; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

/* More menu */
.nav-more { position: relative; flex: 0 0 auto; }
.more-toggle {
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.13);
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
}
.more-toggle:hover { background: rgba(255,255,255,.22); }
.more-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  padding: 10px;
  border-radius: 16px;
  z-index: 1200;
  background: var(--clr-surface);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.more-menu[hidden] { display: none !important; }
.nav-more.is-open .more-menu { display: grid; gap: 4px; }
.more-menu a {
  display: block;
  width: 100%;
  max-width: none;
  padding: 11px 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--clr-text);
  font-size: 14px;
  border-radius: 8px;
  transition: background .15s;
}
.more-menu a:hover { background: var(--clr-bg); color: var(--clr-primary); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--clr-hero-start) 0%, var(--clr-hero-end) 60%, var(--clr-accent) 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--clr-bg), transparent);
}
.hero h1 {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  opacity: .92;
  max-width: 680px;
  margin: 0 auto 28px;
}
.hero .btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  background: var(--clr-accent);
  color: var(--clr-primary-dark);
  font-size: 17px;
  font-weight: 700;
  border-radius: 10px;
  transition: transform .15s, box-shadow .2s;
  text-decoration: none;
}
.hero .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); color: var(--clr-primary-dark); }
.hero-banner {
  margin-top: 32px;
  border-radius: var(--radius-md);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  padding: 14px 0;
}
.breadcrumb-bar ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
}
.breadcrumb-bar li + li::before { content: '/'; margin-right: 6px; color: var(--clr-text-secondary); }
.breadcrumb-bar a { color: var(--clr-primary); }
.breadcrumb-bar .current { color: var(--clr-text-secondary); }

/* ===== SECTIONS ===== */
.content-section { padding: 72px 0; }
.content-section:nth-child(even) { background: var(--clr-surface-alt); }
.section-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 22px;
  line-height: 1.25;
}
.section-lead {
  font-size: 17px;
  color: var(--clr-text-secondary);
  max-width: 780px;
  margin-bottom: 36px;
}

/* ===== CONTENT GRID ===== */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 36px;
  align-items: start;
}
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

/* ===== PROSE ===== */
.prose { max-width: 820px; }
.prose p {
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 18px;
  color: var(--clr-text);
}
.prose h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.25;
  margin: 42px 0 16px;
  color: var(--clr-primary);
  font-weight: 700;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.35;
  margin: 28px 0 12px;
  color: var(--clr-text);
  font-weight: 600;
}
.prose ul, .prose ol {
  padding-left: 24px;
  margin: 0 0 18px;
}
.prose li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.7;
}
.prose a { color: var(--clr-primary); text-decoration: underline; }
.prose a:hover { color: var(--clr-accent); }
.prose img {
  margin: 24px 0;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px var(--clr-card-shadow);
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: 0 2px 12px var(--clr-card-shadow);
  border: 1px solid var(--clr-border);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--clr-card-shadow); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-hero-end));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--clr-text);
}
.card p {
  font-size: 15px;
  color: var(--clr-text-secondary);
  line-height: 1.7;
}
.card img { margin-bottom: 14px; border-radius: var(--radius-sm); }

/* ===== STEP CARDS ===== */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin: 32px 0;
}
.step-card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border-top: 4px solid var(--clr-accent);
  box-shadow: 0 2px 8px var(--clr-card-shadow);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}
.step-card h4 { font-size: 17px; margin-bottom: 8px; font-weight: 600; }
.step-card p { font-size: 15px; color: var(--clr-text-secondary); line-height: 1.65; }

/* ===== TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.data-table thead { background: var(--clr-primary); color: #fff; }
.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
}
.data-table tbody tr:nth-child(even) { background: var(--clr-surface-alt); }
.data-table tbody tr:hover { background: #e8f5ee; }

/* ===== ALERT / NOTICE ===== */
.notice-box {
  background: linear-gradient(135deg, #e8f5ee, #fef9e7);
  border-left: 5px solid var(--clr-accent);
  padding: 28px;
  border-radius: var(--radius-sm);
  margin: 36px 0;
}
.notice-box h3 { color: var(--clr-primary); margin-bottom: 12px; font-size: 20px; }
.notice-box p { font-size: 16px; line-height: 1.8; }

.warning-box {
  background: linear-gradient(135deg, #fef9e7, #fde8d0);
  border: 2px solid #e8a317;
  border-radius: var(--radius-md);
  padding: 36px;
  margin: 40px 0;
}
.warning-box h2 { color: #b45309; margin-bottom: 18px; }

/* ===== FAQ ===== */
.faq-list { margin: 32px 0; }
.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 18px 20px;
  border: none;
  background: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--clr-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-stack);
}
.faq-q::after { content: '+'; font-size: 22px; color: var(--clr-primary); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--clr-text-secondary);
}
.faq-item.open .faq-a { display: block; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-hero-end) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.9); margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .btn-cta { background: var(--clr-accent); color: var(--clr-primary-dark); }

/* ===== PRICING / VIP ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.pricing-card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: 0 4px 16px var(--clr-card-shadow);
  border: 2px solid var(--clr-border);
  transition: border-color .2s, transform .2s;
  text-align: center;
}
.pricing-card:hover { border-color: var(--clr-primary); transform: scale(1.03); }
.pricing-card.featured { border-color: var(--clr-accent); background: linear-gradient(135deg, #f7faf8, #fef9e7); }
.pricing-card h3 { color: var(--clr-primary); font-size: 22px; margin-bottom: 12px; }
.pricing-amount { font-size: 32px; font-weight: 800; color: var(--clr-accent); margin: 16px 0; }
.pricing-card ul { list-style: none; padding: 0; text-align: left; margin: 18px 0; }
.pricing-card li { padding: 6px 0; font-size: 15px; color: var(--clr-text-secondary); }
.pricing-card li::before { content: '✓'; color: var(--clr-primary); margin-right: 8px; font-weight: 700; }

/* ===== INTERNAL LINK CARDS ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.related-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: border-color .2s;
}
.related-card:hover { border-color: var(--clr-primary); }
.related-card h4 { font-size: 16px; margin-bottom: 8px; }
.related-card p { font-size: 14px; color: var(--clr-text-secondary); line-height: 1.6; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--clr-footer-bg);
  color: var(--clr-footer-text);
  padding: 52px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-about p { font-size: 14px; line-height: 1.75; margin-bottom: 14px; opacity: .88; }
.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--clr-accent);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--clr-footer-text); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--clr-accent); }
.footer-contact p { font-size: 14px; margin-bottom: 6px; opacity: .85; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  opacity: .75;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 900px) {
  .header-inner {
    min-height: 64px;
    grid-template-columns: 140px 1fr auto;
    gap: 8px;
  }
  .brand-wrap { width: 140px; min-width: 140px; max-width: 140px; height: 48px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 13px; }
  .brand-text strong { font-size: 15px; max-width: 86px; }
  .brand-text span { max-width: 86px; font-size: 10px; }
  .primary-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 18px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: var(--clr-surface);
    box-shadow: 0 12px 40px rgba(0,0,0,.22);
    z-index: 1100;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    max-width: none;
    width: 100%;
    padding: 14px 12px;
    text-overflow: initial;
    color: var(--clr-text);
    font-size: 15px;
    border-radius: 8px;
  }
  .primary-nav a:hover, .primary-nav a.active { background: var(--clr-bg); color: var(--clr-primary); }
  .header-actions { justify-content: flex-end; gap: 6px; }
  .header-actions .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .nav-toggle { display: inline-flex; }
  /* Mobile: show more-menu items as regular nav links */
  .nav-more { display: contents !important; }
  .more-toggle { display: none !important; }
  .more-menu {
    display: contents !important;
    position: static !important;
    box-shadow: none !important;
    background: none !important;
    padding: 0 !important;
    min-width: 0 !important;
  }
  .more-menu a {
    padding: 14px 12px;
    font-size: 15px;
    border-radius: 8px;
  }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 24px; }
  .content-section { padding: 42px 0; }
  .content-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .prose p { font-size: 16px; line-height: 1.8; }
  .prose h2 { font-size: 22px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 12px; }
  .wrap { padding: 0 14px; }
}

/* ===== PAGE SPECIFIC ===== */
.page-header {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-hero-end) 80%);
  color: #fff;
  padding: 48px 0 40px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 14px;
}
.page-header .lead {
  font-size: 17px;
  opacity: .9;
  max-width: 700px;
  margin: 0 auto;
}
.article-meta {
  font-size: 14px;
  color: var(--clr-text-secondary);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--clr-border);
}
.article-cover {
  margin: 0 0 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--clr-card-shadow);
}

/* ===== 404 ===== */
.page-404 {
  text-align: center;
  padding: 100px 20px;
}
.page-404 h1 { font-size: 72px; color: var(--clr-primary); margin-bottom: 16px; }
.page-404 p { font-size: 18px; margin-bottom: 28px; }

/* ===== REGISTER / LOGIN PAGE ===== */
.auth-page {
  max-width: 560px;
  margin: 48px auto;
  padding: 36px;
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--clr-card-shadow);
}
.auth-page h1 { font-size: 28px; color: var(--clr-primary); margin-bottom: 18px; text-align: center; }
.auth-page .auth-notice {
  background: var(--clr-bg);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 20px 0;
}
.auth-page .auth-notice ul { padding-left: 20px; }
.auth-page .auth-notice li { margin-bottom: 6px; font-size: 15px; }
