/* =============================================================
   style.css — emoji-copier-coller.com
   Modern Web 2.0 redesign — clean, sharp, professional.
   ============================================================= */

/* -------------------------------------------------------------
   DESIGN TOKENS
------------------------------------------------------------- */
:root {
  --bg:           #ffffff;
  --surface:      #ffffff;
  --surface2:     #f1f5f9;
  --border:       #e2e8f0;
  --text:         #0f172a;
  --muted:        #64748b;
  --accent:       #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft:  #eef2ff;
  --nav-bg:       #4f46e5;
  --radius:       12px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);
}

/* -------------------------------------------------------------
   RESET & BASE
------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* RTL support */
[dir="rtl"] nav { flex-direction: row-reverse; }
[dir="rtl"] .logo { margin-left: auto; margin-right: 0; }
[dir="rtl"] .nav-lang { margin-left: 0; margin-right: auto; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .breadcrumb { direction: rtl; }
[dir="rtl"] .footer-cats { direction: rtl; }
[dir="rtl"] .faq-q { flex-direction: row-reverse; }
[dir="rtl"] .prose { direction: rtl; text-align: right; }
[dir="rtl"] .prose ul { padding-left: 0; padding-right: 18px; }

/* -------------------------------------------------------------
   NAVIGATION
------------------------------------------------------------- */
.site-nav {
  background: var(--nav-bg);
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-nav-inner {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo span { color: rgba(255,255,255,0.75); }

.nav-links { display: none; }

.nav-lang { position: relative; flex-shrink: 0; }

.lang-trigger {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 500;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.lang-trigger:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
}
.lang-trigger .arrow {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid rgba(255,255,255,0.60);
  border-bottom: 1.5px solid rgba(255,255,255,0.60);
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .2s;
  display: inline-block;
  flex-shrink: 0;
}
.nav-lang.open .lang-trigger .arrow { transform: rotate(225deg); margin-top: 3px; }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 200;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.lang-dropdown-inner {
  padding: 6px;
  min-width: 175px;
  max-height: 340px;
  overflow-y: auto;
}
.nav-lang.open .lang-dropdown { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: background .1s;
  white-space: nowrap;
}
.lang-option:hover { background: var(--surface2); }
.lang-flag { font-size: 17px; line-height: 1; }

/* -------------------------------------------------------------
   BREADCRUMB
------------------------------------------------------------- */
.breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 5px; }

/* -------------------------------------------------------------
   HERO
------------------------------------------------------------- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 48px 20px 40px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.7px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.hero-sub,
.quick-desc,
.cat-desc,
.section-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.hero-sub {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------
   MAIN CONTENT WRAPPER
------------------------------------------------------------- */
.main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* -------------------------------------------------------------
   SECTION
------------------------------------------------------------- */
.section { margin-bottom: 40px; }

.section-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
  display: block;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
  display: block;
}

/* Button reset inside cards */
.emoji-card button,
.sym-card button,
.combo-card button,
.meaning-card button,
.qc button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}
.meaning-card button { text-align: left; }
.combo-card button { text-align: center; }
.qc button { justify-content: center; }

/* -------------------------------------------------------------
   EMOJI GRID (category page)
------------------------------------------------------------- */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.emoji-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.emoji-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(99,102,241,.13);
  transform: translateY(-3px);
}
.emoji-card:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.ec-char { font-size: 36px; line-height: 1; display: block; }
.ec-name { font-size: 12px; color: var(--muted); line-height: 1.4; display: block; word-break: break-word; font-weight: 500; }
.ec-code { font-size: 11px; color: #94a3b8; font-family: monospace; display: block; word-break: break-all; }

/* -------------------------------------------------------------
   QUICK COPY / POPULAR EMOJIS STRIP
------------------------------------------------------------- */
.quick-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.quick-strip-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.quick-heading {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.quick-desc { margin-bottom: 20px; }
.quick-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

.quick-grid,
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 6px;
}

.qc, .ec-sm {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  user-select: none;
  box-shadow: var(--shadow-sm);
}
.qc:hover, .ec-sm:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(99,102,241,.13);
  transform: translateY(-2px);
}
.qc:active, .ec-sm:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.qc-char { font-size: 24px; line-height: 1; display: block; }
.ec-sm-char { font-size: 26px; line-height: 1; display: block; }
.ec-sm-name { font-size: 11px; color: var(--muted); display: block; margin-top: 3px; line-height: 1.2; font-weight: 500; }

/* -------------------------------------------------------------
   CATEGORY NAV CARDS (hub page)
------------------------------------------------------------- */
.cat-nav {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 36px;
}

.cat-nav-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  display: flex !important;
  align-items: center;
  gap: 12px;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  box-shadow: var(--shadow-sm);
}
.cat-nav-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(99,102,241,.11);
  transform: translateY(-2px);
}
.cnc-icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.cnc-name { font-size: 13px; font-weight: 600; color: var(--text); margin: 0; }
.cnc-count { font-size: 11px; color: var(--muted); margin: 0; }

/* -------------------------------------------------------------
   SYMBOL GRID
------------------------------------------------------------- */
.sym-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.sym-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sym-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(99,102,241,.12);
  transform: translateY(-3px);
}
.sym-card:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.sc-char { font-size: 32px; line-height: 1; }
.sc-name { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.3; word-break: break-word; font-weight: 500; }

/* -------------------------------------------------------------
   MEANING CARDS
------------------------------------------------------------- */
.meaning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.meaning-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color .15s, box-shadow .15s;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.meaning-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(99,102,241,.10);
}

.mc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mc-emoji { font-size: 28px; line-height: 1; }
.mc-name { font-size: 15px; font-weight: 600; color: var(--text); }
.mc-code { font-size: 12px; color: var(--muted); font-family: monospace; }
.mc-desc { font-size: 14px; color: var(--muted); line-height: 1.55; text-align: center; }

/* -------------------------------------------------------------
   COMBO CARDS
------------------------------------------------------------- */
.combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.combo-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  transition: border-color .15s, box-shadow .15s;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.combo-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(99,102,241,.10);
}
.combo-char { font-size: 24px; margin-bottom: 8px; word-break: break-all; }
.combo-label { font-size: 13px; color: var(--muted); font-weight: 500; }

/* -------------------------------------------------------------
   REFERENCE TABLE
------------------------------------------------------------- */
.ref-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; }
.ref-table-wrap,
.alt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ref-table thead th {
  text-align: left;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--border);
  background: var(--surface2);
}
.ref-table tbody tr {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .1s;
}
.ref-table tbody tr:hover { background: var(--accent-soft); }
.ref-table td { padding: 9px 12px; vertical-align: middle; }
.ref-table .td-emoji { font-size: 22px; width: 36px; }
.ref-table .td-copy { text-align: right; }

.copy-btn {
  font-size: 12px;
  color: white;
  font-weight: 600;
  padding: 4px 12px;
  border: none;
  border-radius: 20px;
  background: var(--accent);
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.copy-btn:hover { background: var(--accent-hover); transform: scale(1.03); }

.copy-btn-small {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  padding: 2px 8px;
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
  margin-left: 6px;
  vertical-align: middle;
}
.copy-btn-small:hover { background: var(--accent); color: white; }

/* -------------------------------------------------------------
   ALT CODE TABLE
------------------------------------------------------------- */
.alt-table { width: 100%; min-width: 400px; border-collapse: collapse; font-size: 15px; margin-bottom: 16px; }
.alt-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--border);
  background: var(--surface2);
}
.alt-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.alt-table tr { cursor: pointer; transition: background .1s; }
.alt-table tr:hover { background: var(--accent-soft); }
.alt-table .sym { font-size: 20px; }
.alt-table code {
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--border);
  font-family: monospace;
}

/* -------------------------------------------------------------
   PLATFORM TABLE
------------------------------------------------------------- */
.platform-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.platform-table th {
  text-align: left;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--border);
  background: var(--surface2);
}
.platform-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.platform-table tr:hover td { background: var(--accent-soft); }
.platform-table code {
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--border);
  font-family: monospace;
}

/* -------------------------------------------------------------
   SIDEBAR
------------------------------------------------------------- */
.sidebar { font-size: 15px; }
.sidebar-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.sidebar-box h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.sidebar-box ul { list-style: none; }
.sidebar-box a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
  font-weight: 500;
}
.sidebar-box a:last-child { border-bottom: none; }
.sidebar-box a:hover { color: var(--accent); }
.sp { font-size: 20px; }

.shortcut-mini { width: 100%; border-collapse: collapse; }
.shortcut-mini td { padding: 4px 0; font-size: 14px; vertical-align: top; }
.shortcut-mini td:first-child { font-size: 20px; width: 32px; color: var(--muted); }
.shortcut-mini td:last-child { color: var(--muted); font-family: monospace; font-size: 13px; }

/* -------------------------------------------------------------
   SEARCH
------------------------------------------------------------- */
.search-wrap {
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 12px 44px 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.13);
}
.search-wrap input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}
#search-results {
  max-width: 460px;
  margin: 8px auto 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 6px;
  display: none;
  box-shadow: var(--shadow-md);
}
#search-results.active { display: grid; }

/* -------------------------------------------------------------
   PROSE
------------------------------------------------------------- */
.prose { font-size: 15px; line-height: 1.75; color: var(--muted); }
.prose h2 { margin: 32px 0 10px; color: var(--text); }
.prose h3 { margin: 20px 0 6px; color: var(--text); }
.prose p { margin-bottom: 12px; }
.prose ul { padding-left: 18px; margin-bottom: 12px; }
.prose li { margin-bottom: 5px; }
.prose a { color: var(--accent); }
.prose code {
  font-family: monospace;
  background: var(--surface2);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* -------------------------------------------------------------
   FAQ
------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-q {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  display: none;
  padding-top: 10px;
}
.faq-item.open .faq-a { display: block; }

/* -------------------------------------------------------------
   SOURCES BOX
------------------------------------------------------------- */
.sources-box-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
.sources-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.sources-box-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.sources-box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sources-box a { font-size: 14px; color: var(--accent); text-decoration: none; }
.sources-box a:hover { text-decoration: underline; }

/* -------------------------------------------------------------
   DIVIDER
------------------------------------------------------------- */
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* -------------------------------------------------------------
   TOAST
------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: var(--text);
  color: white;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  z-index: 999;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  letter-spacing: .01em;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #f9f9f9;
  padding: 48px 20px 28px;
  margin-top: 56px;
  font-size: 15px;
  color: var(--muted);
}

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

.footer-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-cats-wrap {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-cats-wrap > .footer-section-label { text-align: center; }
.footer-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 16px;
}
.footer-cats > * { display: flex; align-items: center; gap: 6px; }
.footer-cats a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
  font-weight: 500;
}
.footer-cats a:hover { color: var(--accent); }

.footer-langs-wrap { margin-bottom: 36px; text-align: center; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 0; justify-content: center; }
.footer-lang-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 2px 12px;
  border-right: 1px solid var(--border);
  transition: color .15s;
  gap: 6px;
  line-height: 1.4;
}
.footer-lang-link:last-child { border-right: none; }
.footer-lang-link:hover { color: var(--accent); }
.footer-lang-flag { font-size: 15px; line-height: 1; }

.footer-legal {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  justify-content: center;
}
.footer-legal a {
  color: #94a3b8;
  text-decoration: none;
  padding: 0 14px;
  border-right: 1px solid var(--border);
  font-size: 14px;
  line-height: 1;
  transition: color .15s;
  font-weight: 500;
}
.footer-legal a:last-child { border-right: none; }
.footer-legal a:hover { color: var(--accent); }

.footer-copy {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #94a3b8;
}

/* -------------------------------------------------------------
   HUB CONTENT CARDS
------------------------------------------------------------- */
.hub-content-section {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hc-full { width: 100%; }
.hc-two  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hc-three{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.hc-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.hc-box--accent {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.hc-box--platform { padding-top: 20px; }
.hc-platform-icon {
  font-size: 26px;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.hc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.1px;
}
.hc-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.hc-text:last-child { margin-bottom: 0; }
.hc-text a { color: var(--accent); }
.hc-text code {
  font-family: monospace;
  background: var(--surface2);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* -------------------------------------------------------------
   MOSAIC EMOJI GRID
------------------------------------------------------------- */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  margin-top: 8px;
}

.mosaic-tile {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.mosaic-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  padding: 4px 2px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
}
.mosaic-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(99,102,241,.13);
  transform: translateY(-2px);
}
.mosaic-btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

@media (max-width: 660px) {
  .mosaic-grid { grid-template-columns: 1fr; gap: 24px; }
  .mosaic-tile { grid-template-columns: repeat(4, 70px); justify-content: center; }
  .mosaic-btn { width: 70px; height: 70px; aspect-ratio: unset; font-size: 32px; }
}

/* -------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------- */
@media (max-width: 660px) {
  .hc-two, .hc-three { grid-template-columns: 1fr; }
  .cat-nav { grid-template-columns: repeat(2, 1fr); }
  .meaning-grid { grid-template-columns: 1fr; }
  .combo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cats { grid-template-columns: 1fr; width: fit-content; margin: 0 auto; }
  .footer-legal { flex-direction: column; align-items: center; gap: 12px 0; }
  .footer-legal a { border-right: none; padding: 0; }
}

@media (max-width: 500px) {
  .nav-links { display: none; }
  .footer-langs { gap: 6px; flex-direction: column; align-items: center; }
  .footer-lang-link { border-right: none; border-bottom: 1px solid var(--border); width: 100%; justify-content: center; padding: 8px 0; }
  .footer-lang-link:last-child { border-bottom: none; }
}
