/* ============================================================
   MSME GLOBAL — assets/css/components.css
   Reusable UI components: buttons, cards, badges, nav, footer
   ============================================================ */

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm  { padding: 0.45rem 1.1rem; font-size: var(--text-xs); }
.btn-lg  { padding: 0.85rem 2rem;   font-size: var(--text-base); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 4px 16px rgba(201,150,42,0.35);
  transform: translateY(-1px);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.btn-coral:hover {
  background: #D4531F;
  border-color: #D4531F;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  padding-left: 0.5rem; padding-right: 0.5rem;
}
.btn-ghost:hover { color: var(--gold); }

/* ===================== BADGES ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge-trusted   { background: #EAF3DE; color: #2F6B10; }
.badge-premium   { background: var(--gold-pale); color: var(--gold-dark); border: 1px solid rgba(201,150,42,0.3); }
.badge-influencer{ background: #EEF0FF; color: #3939B3; }
.badge-mentor    { background: #FEF0EA; color: #B34A1B; }
.badge-pillar    { background: #F5E8FF; color: #6B1CB3; }
.badge-sponsor   { background: var(--navy); color: var(--gold-light); }
.badge-verified  { background: var(--teal-pale); color: var(--teal); }
.badge-free      { background: var(--gray-100); color: var(--gray-500); }
.badge-basic     { background: #E8F0FB; color: #1A4A9B; }
.badge-new       { background: var(--coral-pale); color: var(--coral); }

/* ===================== MEMBER CARD ===================== */
/*
   Human-first design: large face photo dominates.
   Business info is secondary.
*/
.member-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.member-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

/* Card top — photo strip */
.member-card-photo-wrap {
  position: relative;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  padding: var(--space-6) var(--space-6) 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 120px;
}
.member-card-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30px;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.member-card-avatar {
  position: relative;
  z-index: 1;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  object-fit: cover;
  object-position: center top;
  margin-bottom: -4px;
}

/* Avatar fallback (initials) */
.member-card-avatar-placeholder {
  position: relative;
  z-index: 1;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, var(--gold), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: -4px;
}

/* Plan badge — top right corner */
.member-card-plan-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
}

/* Card body — human info first */
.member-card-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.member-card-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.2;
}
.member-card-category {
  font-size: var(--text-sm);
  color: var(--coral);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.member-card-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-bottom: var(--space-4);
}
.member-card-location i { font-size: 14px; color: var(--gray-300); }

.member-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: center;
  margin-bottom: var(--space-4);
}

/* Business name — secondary, subtle */
.member-card-business {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-100);
}

.member-card-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
}
.member-card-actions .btn { flex: 1; font-size: 11px; padding: 0.4rem 0.6rem; }
.member-card-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  font-size: 16px;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.member-card-wa:hover { background: #1EB555; transform: scale(1.08); }

/* ===================== INFLUENCER CARD ===================== */
/* Larger, horizontal — emphasizes the human even more */
.influencer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-left: 4px solid var(--gold);
}
.influencer-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}
.influencer-card-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--gold-light);
  flex-shrink: 0;
}
.influencer-card-info { flex: 1; min-width: 0; }
.influencer-card-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.influencer-card-cat {
  font-size: var(--text-xs);
  color: var(--coral);
  font-weight: 600;
  margin-top: 2px;
}
.influencer-card-city {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: 2px;
}
.influencer-icon {
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
}

/* ===================== PILLAR/MENTOR CARD ===================== */
.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  padding: var(--space-6) var(--space-4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
}
.pillar-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.pillar-card-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto var(--space-3);
  border: 3px solid var(--gold-light);
}
.pillar-card-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--space-3);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold-light);
  border: 3px solid var(--gold-light);
}
.pillar-card-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.pillar-card-cat {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-bottom: var(--space-3);
}
.pillar-card-role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  background: var(--gold-pale);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ===================== CATEGORY CARD ===================== */
.category-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--color-border);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.category-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.category-card:hover .category-card-icon { background: var(--navy); color: var(--white); }
.category-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--navy);
  transition: var(--transition);
  overflow: hidden;
}
.category-card-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.category-card-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.category-card-count {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

/* ===================== TESTIMONIAL CARD ===================== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.testimonial-quote-icon {
  font-size: 48px;
  color: var(--gold-pale);
  line-height: 1;
  font-family: var(--font-display);
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
}
.testimonial-text {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: var(--space-5);
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial-author-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--gold-light);
  flex-shrink: 0;
}
.testimonial-author-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--white);
  flex-shrink: 0;
  border: 2px solid var(--gold-light);
}
.testimonial-author-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
}
.testimonial-author-title {
  font-size: var(--text-xs);
  color: var(--gray-400);
}
.testimonial-stars {
  color: var(--gold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  letter-spacing: 2px;
}

/* ===================== NAVIGATION ===================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
  height: var(--header-height);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.site-logo { flex-shrink: 0; }
.logo-img  { height: 44px; width: auto; object-fit: contain; }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}
.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: var(--gray-50); }
.nav-link.active { font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  min-width: 200px;
  padding: var(--space-2);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  z-index: var(--z-overlay);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: all;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: var(--transition-fast);
}
.dropdown-item:hover { background: var(--gray-50); color: var(--navy); }
.dropdown-item i { font-size: 18px; color: var(--gray-400); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.whatsapp-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-fast);
}
.whatsapp-btn:hover { background: #1EB555; transform: scale(1.08); }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 4px;
  margin-left: auto;
}
.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: calc(var(--z-header) - 1);
  padding: var(--space-6) var(--space-6);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-link {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-actions {
  margin-top: var(--space-6);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--navy-dark);
  color: var(--white);
}
.footer-top { padding: var(--space-16) 0 var(--space-12); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
}
.footer-logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-logo-link { display: inline-block; margin-bottom: var(--space-4); }
.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.footer-social { display: flex; gap: var(--space-3); }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  transition: var(--transition-fast);
}
.social-btn:hover { background: var(--gold); color: var(--white); }

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: var(--space-5);
}
.footer-links li { margin-bottom: var(--space-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-contact { display: flex; flex-direction: column; gap: var(--space-4); }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}
.footer-contact li i { font-size: 16px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-6) 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-copy { font-size: var(--text-xs); color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-legal a { font-size: var(--text-xs); color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }

/* ===================== WHATSAPP BUBBLE & SCROLL TOP ===================== */
.whatsapp-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-overlay);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.whatsapp-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.bubble-tooltip {
  position: absolute;
  right: 60px;
  white-space: nowrap;
  background: var(--charcoal);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.whatsapp-bubble:hover .bubble-tooltip { opacity: 1; }

.scroll-top {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: var(--z-overlay);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--gold); transform: translateY(-2px); }

/* ===================== SEARCH BOX ===================== */
.search-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-4) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.search-box .search-field {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.search-box label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding-left: 4px;
}
.search-box select,
.search-box input {
  border: none;
  outline: none;
  font-size: var(--text-sm);
  color: var(--navy);
  background: transparent;
  width: 100%;
  font-weight: 500;
  padding: 4px;
}
.search-box select option { color: var(--charcoal); }
.search-divider {
  width: 1px;
  height: 36px;
  background: var(--gray-200);
  flex-shrink: 0;
}
.search-btn {
  border-radius: var(--radius-full) !important;
  padding: 0.7rem 1.6rem !important;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===================== AD BANNER ===================== */
.ad-banner-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ad-banner-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.ad-banner-wrap:hover img { transform: scale(1.02); }

/* ===================== STATS BAR ===================== */
.stat-item {
  text-align: center;
  padding: var(--space-4) var(--space-6);
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

/* =====================================================
   RESPONSIVE — Mobile First
   Breakpoints: 768px (tablet), 480px (phone)
   ===================================================== */

/* ── Tablet & Mobile (≤768px) ──────────────────────── */
@media (max-width: 768px) {

  /* Header */
  .site-header .container { padding: 0 14px; }
  .main-nav     { display: none !important; }  /* hide desktop nav */

  /* Show hamburger */
  .mobile-menu-toggle {
    display: flex !important;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    margin-left: var(--space-2);
    z-index: 9999;
  }

  /* Shrink header actions — only show Login + WhatsApp on mobile */
  .header-actions {
    gap: var(--space-2);
  }
  .header-actions .btn-outline { display: none; } /* hide List Yourself */
  .header-actions .btn-primary { font-size: 0.82rem; padding: 7px 14px; }

  /* Member trigger on mobile — compact */
  .member-trigger {
    font-size: 0.80rem !important;
    padding: 7px 12px !important;
    gap: 4px !important;
  }
  .member-trigger i:first-child { display: none; } /* hide user icon on mobile */

  /* Member dropdown — full width on mobile */
  .member-nav-dropdown .member-dropdown-menu {
    right: -14px;
    min-width: 240px;
  }

  /* Footer grid */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }

  /* Plans */
  .plans-grid { grid-template-columns: 1fr; }

  /* Members directory */
  .members-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

  /* Profile layout */
  .profile-layout { grid-template-columns: 1fr !important; }
  .profile-sidebar { display: none; } /* sidebar below main on mobile */

  /* Profile hero */
  .profile-hero { flex-wrap: wrap; gap: 14px; }
  .profile-actions { flex-wrap: wrap; gap: 8px; padding-top: var(--space-3); }
  .profile-actions .btn { font-size: 0.82rem; padding: 8px 14px; }

  /* Tabs — horizontal scroll */
  .profile-tabs ul { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .profile-tabs ul::-webkit-scrollbar { display: none; }

  /* Cards */
  .stat-number { font-size: var(--text-3xl); }

  /* Tables — horizontal scroll */
  .adm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Registration form grid */
  .fg2, .fg2.t, .fgrid, .fgrid.t, .form-grid, .form-grid.triple {
    grid-template-columns: 1fr !important;
  }

  /* Plan cards in registration */
  .plan-grid, .pgrid { grid-template-columns: 1fr !important; }

  /* Edit profile accordion */
  .fg, .ep-sec-body .fg { grid-template-columns: 1fr !important; }
}

/* ── Phone only (≤480px) ────────────────────────────── */
@media (max-width: 480px) {

  /* Even more compact header */
  .site-header .header-inner { height: 56px; }
  .site-logo img { height: 32px; }

  /* Members grid — 2 columns still fine, just tighter */
  .members-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .member-card-name { font-size: 0.82rem; }
  .member-card-avatar-ring { width: 80px !important; height: 80px !important; }
  .member-card-avatar-placeholder { width: 80px !important; height: 80px !important; font-size: 1.6rem !important; }

  /* Sim cards */
  .sim-card { width: 130px !important; min-width: 130px !important; }
  .sim-card-photo { height: 80px !important; }
  .sim-card-photo img, .sim-initials { width: 56px !important; height: 56px !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom > * { text-align: center; }

  /* Profile name size */
  .profile-name { font-size: 1.4rem !important; }

  /* Step indicators in registration */
  .rstep-lbl { font-size: 0.55rem; }
  .rsd { width: 28px !important; height: 28px !important; font-size: 0.72rem !important; }

  /* Progress step pills wrap better */
  .ep-header div[style*="flex-wrap"] { gap: 4px !important; }
  .ep-header a[href] { font-size: 0.65rem !important; padding: 3px 7px !important; }
}

/* ── Hamburger JS toggle ────────────────────────────── */
/* (JS adds .open class to both button and mobile-nav) */