/* ============================================================
   GropLinks - Main Stylesheet  v1.2
   ============================================================ */

/* ---- Variables ------------------------------------------- */
:root {
  --primary:       #6C63FF;
  --primary-dark:  #5A52E0;
  --primary-light: #EAE8FF;
  --telegram:      #0088CC;
  --telegram-dark: #006FAA;
  --whatsapp:      #25D366;
  --whatsapp-dark: #1DAA54;
  --channel-bg:    #FF6B6B;
  --group-bg:      #4ECDC4;
  --featured-bg:   #FFD700;
  --dark:          #1a1a2e;
  --dark2:         #16213e;
  --text:          #333344;
  --text-muted:    #6c757d;
  --light:         #f8f9fa;
  --white:         #ffffff;
  --border:        #e9ecef;
  --shadow:        0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.13);
  --radius:        12px;
  --radius-sm:     6px;
  --radius-lg:     20px;
  --transition:    all 0.25s ease;
  --container:     1260px;
  --font:          'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---- Reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 15px; color: var(--text); background: var(--light); line-height: 1.6; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul   { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea, button { font: inherit; }

/* ---- Container ------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-add { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 9px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; }
.btn-add:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(108,99,255,0.4); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---- Cookie Bar ------------------------------------------ */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--dark); color: #fff; padding: 14px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--container); margin: 0 auto; flex-wrap: wrap; }
.cookie-inner span { font-size: 14px; opacity: 0.9; }

/* ---- Header --------------------------------------------- */
.site-header { background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%); box-shadow: 0 2px 20px rgba(0,0,0,0.25); position: sticky; top: 0; z-index: 1000; }
.header-top  { padding: 12px 0; }
.header-inner { display: flex; align-items: center; gap: 16px; }

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-text { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; display: flex; align-items: center; gap: 6px; }
.logo-icon { font-size: 24px; }
.logo-img { height: 44px; width: auto; }

/* Header Search */
.header-search { flex: 1; max-width: 500px; display: flex; background: rgba(255,255,255,0.12); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(255,255,255,0.2); }
.search-input { flex: 1; background: transparent; border: none; padding: 10px 16px; color: #fff; font-size: 14px; outline: none; }
.search-input::placeholder { color: rgba(255,255,255,0.55); }
.search-btn { background: var(--primary); border: none; padding: 10px 16px; color: #fff; display: flex; align-items: center; transition: var(--transition); }
.search-btn:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hamburger { display: none; background: none; border: none; padding: 8px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }

/* Nav */
.site-nav { background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.08); }
.nav-list { display: flex; align-items: center; gap: 2px; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a { color: rgba(255,255,255,0.85); padding: 12px 16px; display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: var(--transition); }
.nav-list > li > a:hover,
.nav-list > li > a.active { color: #fff; background: rgba(255,255,255,0.1); }

/* Dropdowns */
.has-dropdown:hover > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px 0; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition); border: 1px solid var(--border); }
.dropdown-wide { min-width: 560px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px; gap: 2px; }
.dropdown-scroll { max-height: 360px; overflow-y: auto; display: block; }
.dropdown-menu li a { padding: 9px 16px; display: block; color: var(--text); font-size: 13px; white-space: nowrap; transition: var(--transition); border-radius: var(--radius-sm); }
.dropdown-menu li a:hover { background: var(--primary-light); color: var(--primary); }

/* ---- Hero ----------------------------------------------- */
.hero { background: linear-gradient(135deg, var(--dark) 0%, #2d2b70 50%, var(--dark2) 100%); color: #fff; padding: 70px 0 60px; text-align: center; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; letter-spacing: -1px; margin-bottom: 14px; background: linear-gradient(135deg, #fff, #a8a2ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: clamp(15px, 2vw, 20px); opacity: 0.8; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-search { display: flex; max-width: 600px; margin: 0 auto 40px; background: rgba(255,255,255,0.12); border-radius: 50px; overflow: hidden; border: 2px solid rgba(255,255,255,0.25); }
.hero-search-input { flex: 1; background: transparent; border: none; padding: 14px 24px; color: #fff; font-size: 16px; outline: none; }
.hero-search-input::placeholder { color: rgba(255,255,255,0.55); }
.hero-search-btn { background: var(--primary); border: none; padding: 14px 28px; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.hero-search-btn:hover { background: var(--primary-dark); }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat strong { font-size: 28px; font-weight: 800; color: #fff; }
.stat span { font-size: 13px; opacity: 0.7; }

/* ---- App Pills ------------------------------------------ */
.app-pills-section { padding: 20px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.app-pills { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.app-pill-lg { padding: 11px 22px; border-radius: 50px; font-weight: 700; font-size: 14px; transition: var(--transition); }
.app-pill-lg.tg    { background: #E3F2FF; color: var(--telegram); border: 2px solid #B3D9F7; }
.app-pill-lg.tg:hover { background: var(--telegram); color: #fff; border-color: var(--telegram); }
.app-pill-lg.tg-ch { background: #EBF9FF; color: #0066AA; border: 2px solid #B3D9F7; }
.app-pill-lg.tg-ch:hover { background: #0066AA; color: #fff; border-color: #0066AA; }
.app-pill-lg.wa    { background: #E8F9EF; color: var(--whatsapp-dark); border: 2px solid #B3EDD0; }
.app-pill-lg.wa:hover { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.app-pill-lg.wa-ch { background: #F0FBF5; color: #1A8040; border: 2px solid #B3EDD0; }
.app-pill-lg.wa-ch:hover { background: #1A8040; color: #fff; border-color: #1A8040; }

/* ---- Sections ------------------------------------------- */
.section { padding: 52px 0; }
.section-alt { background: var(--white); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { font-size: 22px; font-weight: 800; color: var(--dark); }
.see-all { font-size: 14px; color: var(--primary); font-weight: 600; }
.see-all:hover { text-decoration: underline; }

/* ---- Group Cards ---------------------------------------- */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.group-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); overflow: hidden; border: 1px solid var(--border); }
.group-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card-link { display: flex; flex-direction: column; padding: 16px; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.card-body { flex: 1; }
.card-title { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.card-cat, .card-country, .card-views { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }

/* ---- Badges --------------------------------------------- */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 50px; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; }
.badge-tg      { background: #E3F2FF; color: var(--telegram); border: 1px solid #B3D9F7; }
.badge-wa      { background: #E8F9EF; color: var(--whatsapp-dark); border: 1px solid #B3EDD0; }
.badge-group   { background: #E6FFF8; color: #008866; border: 1px solid #B3EDD0; }
.badge-channel { background: #FFF0F0; color: #CC4444; border: 1px solid #FFBBBB; }
.badge-featured{ background: #FFF8E0; color: #996600; border: 1px solid #FFDD88; }
.badge-lg { padding: 5px 14px; font-size: 13px; }

/* ---- Categories Grid ------------------------------------ */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.cat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: var(--transition); cursor: pointer; }
.cat-card:hover { background: var(--primary-light); border-color: var(--primary); transform: translateY(-2px); }
.cat-icon { font-size: 32px; }
.cat-name { font-size: 14px; font-weight: 700; color: var(--text); }
.cat-count { font-size: 12px; color: var(--text-muted); background: var(--light); padding: 2px 8px; border-radius: 50px; }

/* ---- Countries Grid ------------------------------------ */
.countries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.country-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; display: flex; align-items: center; gap: 10px; transition: var(--transition); }
.country-card:hover { border-color: var(--primary); background: var(--primary-light); }
.country-flag { font-size: 24px; }
.country-name { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; }
.country-count { font-size: 11px; color: var(--text-muted); }

/* ---- Filter Bar ----------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn { padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; border: 2px solid var(--border); background: var(--white); color: var(--text); transition: var(--transition); cursor: pointer; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cat-chip { padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--white); color: var(--text); transition: var(--transition); cursor: pointer; }
.cat-chip:hover, .cat-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---- Listing Header ------------------------------------- */
.listing-section { padding: 0 0 52px; }
.listing-header { padding: 36px 0 24px; }
.listing-header h1 { font-size: clamp(24px, 4vw, 38px); font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.listing-desc { color: var(--text-muted); font-size: 15px; max-width: 700px; }
.app-listing-header.tg-header h1 { color: var(--telegram); }
.app-listing-header.wa-header h1 { color: var(--whatsapp-dark); }

/* ---- Breadcrumb ----------------------------------------- */
.breadcrumb-nav { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.breadcrumb li:not(:last-child)::after { content: '›'; opacity: 0.5; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Group Detail Page ---------------------------------- */
.group-detail-section { padding: 32px 0 52px; }
.group-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.group-detail-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.group-detail-head { margin-bottom: 24px; }
.group-detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.group-detail-title { font-size: clamp(22px, 4vw, 36px); font-weight: 900; color: var(--dark); margin-bottom: 14px; line-height: 1.3; }
.group-meta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.meta-chip { padding: 5px 12px; background: var(--light); border-radius: 50px; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.meta-chip a { color: var(--text-muted); }
.meta-chip:hover { background: var(--primary-light); }

.group-description { margin: 24px 0; padding: 20px; background: var(--light); border-radius: var(--radius-sm); border-left: 4px solid var(--primary); }
.group-description h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.group-description p { font-size: 14px; line-height: 1.7; color: var(--text); }

/* Join Button */
.join-section { margin: 28px 0; text-align: center; }
.btn-join { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 48px; border-radius: var(--radius-lg); font-weight: 800; font-size: 18px; transition: var(--transition); text-decoration: none; border: none; cursor: pointer; min-width: 280px; }
.btn-join-tg { background: linear-gradient(135deg, var(--telegram), #00AAFB); color: #fff; box-shadow: 0 8px 25px rgba(0,136,204,0.4); }
.btn-join-tg:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,136,204,0.5); color: #fff; }
.btn-join-wa { background: linear-gradient(135deg, var(--whatsapp-dark), #2EF576); color: #fff; box-shadow: 0 8px 25px rgba(37,211,102,0.4); }
.btn-join-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,211,102,0.5); color: #fff; }
.join-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* Share */
.share-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.share-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn { padding: 9px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; border: none; cursor: pointer; transition: var(--transition); }
.share-wa { background: var(--whatsapp); color: #fff; }
.share-tg { background: var(--telegram); color: #fff; }
.share-copy { background: var(--light); color: var(--text); border: 1px solid var(--border); }
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* Sidebar */
.group-detail-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.sidebar-widget h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); color: var(--dark); }
.info-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-list li span { color: var(--text-muted); }
.sidebar-widget p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }

/* Related */
.related-section { margin-top: 48px; }
.related-section .section-head { margin-bottom: 24px; }

/* Group SEO Content */
.group-seo-content { background: var(--light); border-radius: var(--radius-sm); padding: 22px; margin-top: 24px; }
.group-seo-content h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.group-seo-content p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---- Add Group Form ------------------------------------- */
.add-group-section { padding: 32px 0 52px; }
.add-group-wrapper { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.add-group-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.add-group-header { margin-bottom: 28px; }
.add-group-header h1 { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.add-group-header p { color: var(--text-muted); }
.add-group-info { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.info-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.info-card ul { display: flex; flex-direction: column; gap: 8px; }
.info-card li { font-size: 13px; color: var(--text-muted); }
.info-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Form */
.add-group-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--dark); }
.req { color: #e53e3e; }
.form-control { padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition); background: var(--white); color: var(--text); width: 100%; }
.form-control:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(108,99,255,0.12); }
.form-hint { font-size: 12px; color: var(--text-muted); }
.form-terms { font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.6; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 18px; border: 2px solid var(--border); border-radius: var(--radius-sm); transition: var(--transition); font-size: 14px; font-weight: 600; }
.radio-label:hover { border-color: var(--primary); }
.radio-label input[type="radio"]:checked + span { color: var(--primary); }
.radio-label input[type="radio"] { accent-color: var(--primary); }
.app-detected-badge { margin-top: 6px; }

/* Alerts */
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.alert-success { background: #F0FFF4; border: 1px solid #68D391; color: #276749; }
.alert-success strong { display: block; margin-bottom: 6px; }
.alert-error { background: #FFF5F5; border: 1px solid #FC8181; color: #742A2A; }
.alert-error ul { margin-top: 8px; padding-left: 16px; list-style: disc; }
.alert-error li { font-size: 14px; }

/* ---- Search Page ---------------------------------------- */
.search-section { padding: 32px 0 52px; }
.search-header { margin-bottom: 24px; }
.search-header h1 { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.search-header p { color: var(--text-muted); }
.search-header em { color: var(--primary); font-style: normal; }
.search-page-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 28px; }
.search-form-row { display: flex; gap: 12px; margin-bottom: 16px; }
.search-input-lg { flex: 1; padding: 13px 18px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; transition: var(--transition); }
.search-input-lg:focus { border-color: var(--primary); outline: none; }
.search-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-select { padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; background: var(--white); cursor: pointer; }

/* ---- Pagination ----------------------------------------- */
.pagination { margin: 32px 0; }
.pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination li a,
.pagination li.active { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; border: 2px solid var(--border); background: var(--white); color: var(--text); transition: var(--transition); }
.pagination li a:hover { border-color: var(--primary); color: var(--primary); }
.pagination li.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---- SEO Content Blocks --------------------------------- */
.seo-block { }
.seo-content { max-width: 800px; margin: 0 auto; }
.seo-content h2 { font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 14px; }
.seo-content h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin: 20px 0 10px; }
.seo-content p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.seo-content a { color: var(--primary); font-weight: 600; }
.seo-content-block { margin-top: 48px; padding: 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.seo-content-block h2 { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.seo-content-block p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---- Empty State ---------------------------------------- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.empty-state p { color: var(--text-muted); font-size: 15px; }

/* ---- Error Page ----------------------------------------- */
.error-section { padding: 80px 0; text-align: center; }
.error-box { max-width: 500px; margin: 0 auto; }
.error-code { font-size: 100px; font-weight: 900; color: var(--primary); opacity: 0.2; line-height: 1; }
.error-box h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; color: var(--dark); }
.error-box p { color: var(--text-muted); margin-bottom: 28px; }
.error-actions { display: flex; gap: 12px; justify-content: center; }

/* ---- Ad Blocks ------------------------------------------ */
.ad-block { padding: 12px 0; text-align: center; }

/* ---- Footer --------------------------------------------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 56px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid rgba(255,255,255,0.1); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { color: rgba(255,255,255,0.65); font-size: 13px; transition: var(--transition); }
.footer-col li a:hover { color: #fff; padding-left: 4px; }
.footer-logo { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; opacity: 0.65; line-height: 1.6; margin-bottom: 16px; }
.footer-apps { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-apps .app-pill { padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.footer-apps .app-pill.tg { background: rgba(0,136,204,0.2); color: #6CC8F5; border: 1px solid rgba(0,136,204,0.3); }
.footer-apps .app-pill.wa { background: rgba(37,211,102,0.15); color: #6EE89A; border: 1px solid rgba(37,211,102,0.3); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 13px; opacity: 0.6; margin-bottom: 4px; }
.footer-bottom a { color: rgba(255,255,255,0.8); }
.footer-note { font-size: 12px !important; opacity: 0.45 !important; }

/* ---- Responsive ----------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .group-detail-layout { grid-template-columns: 1fr; }
  .group-detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .add-group-wrapper { grid-template-columns: 1fr; }
  .dropdown-wide { min-width: 340px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header-search { display: none; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px 0; }
  .nav-list > li > a { padding: 12px 20px; }
  .has-dropdown:hover > .dropdown-menu { display: none; }
  .has-dropdown.open > .dropdown-menu { display: block; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; background: rgba(0,0,0,0.15); }
  .has-dropdown.open > .dropdown-menu li a { color: rgba(255,255,255,0.8); }
  .dropdown-wide { grid-template-columns: 1fr; min-width: auto; }
  .hero { padding: 48px 0 40px; }
  .hero-search { border-radius: var(--radius-sm); }
  .hero-stats { gap: 24px; }
  .groups-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .countries-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .group-detail-card { padding: 20px; }
  .btn-join { min-width: auto; width: 100%; }
  .group-detail-sidebar { grid-template-columns: 1fr; }
  .search-form-row { flex-direction: column; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search-btn { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .app-pills { justify-content: flex-start; }
  .app-pill-lg { font-size: 12px; padding: 9px 14px; }
  .groups-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ---- Card Direct Join Button ---------------------------- */
.group-card { display: flex; flex-direction: column; }
.card-link   { flex: 1; }
.card-join-wrap {
  padding: 0 12px 12px;
  margin-top: auto;
}
.card-join-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: var(--transition); border: none; cursor: pointer;
  line-height: 1;
}
.card-join-btn:hover { text-decoration: none; color: #fff; }
.cjb-tg { background: linear-gradient(135deg, #0088CC, #00AAFB); color: #fff; }
.cjb-tg:hover { background: linear-gradient(135deg,#006FAA,#0088CC); transform:translateY(-1px); box-shadow:0 4px 14px rgba(0,136,204,.4); }
.cjb-wa { background: linear-gradient(135deg, #25D366, #1DAA54); color: #fff; }
.cjb-wa:hover { background: linear-gradient(135deg,#1DAA54,#128C3A); transform:translateY(-1px); box-shadow:0 4px 14px rgba(37,211,102,.4); }

/* Logo image sizing in header */
.logo-img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }

/* ---- Static Pages (Privacy, About, Contact, etc.) ------- */
.static-page-section { padding: 32px 0 60px; }
.static-page-wrap    { max-width: 900px; margin: 0 auto; }
.static-page-content { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 48px; }
.static-page-content h1 { font-size: clamp(24px,4vw,36px); font-weight: 900; color: var(--dark); margin-bottom: 6px; }
.static-page-content h2 { font-size: 20px; font-weight: 800; color: var(--dark); margin: 28px 0 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.static-page-content h2:first-of-type { border-top: none; }
.static-page-content h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin: 18px 0 8px; }
.static-page-content p  { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 14px; }
.static-page-content ul, .static-page-content ol { padding-left: 22px; margin-bottom: 14px; }
.static-page-content li { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 6px; }
.static-page-content a  { color: var(--primary); font-weight: 600; }
.static-page-content strong { color: var(--dark); }
.last-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
@media (max-width: 768px) {
  .static-page-content { padding: 24px 20px; }
}

/* ---- SEO Content Block (inside listing pages) ----------- */
.seo-content-block h2 { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.seo-content-block h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin: 18px 0 8px; }
.seo-content-block p  { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 10px; }
.seo-content-block ul { padding-left: 20px; margin-bottom: 12px; }
.seo-content-block li { font-size: 14px; color: var(--text-muted); margin-bottom: 5px; list-style: none; }
.seo-content-block a  { color: var(--primary); }

