/* ─────────────────────────────────────
   RankUpTogether — Website Styles
   ───────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #00F0FF;
  --cyan: #00F0FF;
  --accent: #BC00FF;
  --gold: #FFD700;
  --red: #FF4655;
  --green: #00FF9C;
  --bg: #0A0B10;
  --bg2: #0F111A;
  --surface: #13151F;
  --border: rgba(255, 255, 255, 0.07);
  --text: #F0F2FF;
  --muted: rgba(255, 255, 255, 0.45);
  --radius: 14px;
  --font: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* Utilities */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 48px;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #000;
}

.brand-icon.sm {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--text);
}

.btn-nav {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #000 !important;
  font-weight: 700;
  border-radius: 100px;
  font-size: 13px !important;
  transition: opacity .2s;
}

.btn-nav:hover {
  opacity: .85;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 899;
}

.mobile-menu a {
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  padding-top: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-left: clamp(24px, 5vw, 120px);
  padding-right: clamp(24px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .35;
}

.orb1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: -200px;
  left: -200px;
}

.orb2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  bottom: -150px;
  right: -100px;
}

.orb3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #FF4655, transparent 70%);
  top: 40%;
  left: 40%;
  opacity: .15;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #000;
  font-weight: 700;
  font-size: 15px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform .2s, opacity .2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.btn-primary.large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  border-radius: 100px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-secondary.large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Coming Soon Badge */
.coming-soon-btn {
  position: relative;
  cursor: default;
  opacity: 0.75;
}

.coming-soon-btn:hover {
  transform: none !important;
  opacity: 0.75 !important;
}

.coming-soon-tag {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  margin-left: 4px;
  white-space: nowrap;
  vertical-align: middle;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(0.96);
  }
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.stat-lab {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Phone Mockup */
.hero-phone-wrap {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.phone-mock {
  width: 240px;
  height: 480px;
  background: #0D0E18;
  border-radius: 36px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 120px rgba(0, 240, 255, .15), 0 0 0 8px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0D0E18;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.phone-screen {
  position: absolute;
  inset: 0;
  padding: 32px 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-ui {
  width: 100%;
  position: relative;
}

.phone-card {
  background: linear-gradient(145deg, #161826, #1a1c2e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.phone-card2 {
  margin-top: -20px;
  opacity: .5;
  transform: scale(0.92);
  transform-origin: top center;
}

.phone-avatar {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, #1e2035, #252840);
  border-radius: 12px;
}

.pav2 {
  background: linear-gradient(135deg, #1e2530, #252d40);
}

.phone-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-name {
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  width: 70%;
}

.pn2 {
  width: 60%;
}

.phone-rank {
  height: 8px;
  background: linear-gradient(90deg, var(--primary)60, transparent);
  border-radius: 4px;
  width: 50%;
}

.pr2 {
  background: linear-gradient(90deg, var(--accent)60, transparent);
  width: 45%;
}

.phone-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.phone-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.phone-btn.red {
  background: rgba(255, 70, 85, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 70, 85, 0.3);
}

.phone-btn.green {
  background: rgba(0, 255, 156, 0.15);
  color: var(--green);
  border: 1px solid rgba(0, 255, 156, 0.3);
}

/* ─── FEATURES ─── */
.features {
  padding: 100px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 240, 255, 0.06);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── GAMES STRIP ─── */
.games-strip {
  padding: 80px 0;
  overflow: hidden;
}

.games-scroll {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  margin-top: 8px;
}

.games-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}

.games-track:hover {
  animation-play-state: paused;
}

.game-pill {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
  cursor: default;
}

.game-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ─── CTA ─── */
.download-cta {
  padding: 80px 0;
}

.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 60px clamp(24px, 5vw, 80px);
}

.cta-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary)12, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.cta-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 16px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* Admin Zone (discreet) */
.admin-zone {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: color .2s;
  user-select: none;
}

.admin-toggle:hover {
  color: rgba(255, 255, 255, 0.45);
}

.admin-login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.admin-input {
  width: 220px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}

.admin-input:focus {
  border-color: rgba(0, 240, 255, 0.3);
}

.admin-err {
  font-size: 12px;
  color: #FF4655;
}

.admin-btn {
  padding: 9px 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #000;
  font-weight: 700;
  font-size: 13px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ─── ADMIN PANEL SCREEN ─── */
.admin-panel-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: flex;
  animation: fadeIn .2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.ap-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 8px;
}

.ap-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  padding: 0 8px;
}

.ap-navbtn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-align: left;
}

.ap-navbtn.active,
.ap-navbtn:hover {
  background: rgba(0, 240, 255, 0.08);
  color: var(--primary);
}

.ap-logout {
  margin-top: auto;
  padding: 10px 12px;
  background: rgba(255, 70, 85, 0.08);
  border: 1px solid rgba(255, 70, 85, 0.2);
  border-radius: 10px;
  color: #FF4655;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ap-main {
  flex: 1;
  overflow-y: auto;
  padding: 32px clamp(16px, 3vw, 40px);
}

.ap-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.ap-title {
  font-size: 24px;
  font-weight: 800;
}

.ap-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.ap-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ap-search {
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  width: 220px;
}

.ap-search:focus {
  border-color: rgba(0, 240, 255, 0.3);
}

.ap-sync {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
}

.ap-sync.synced {
  background: rgba(0, 255, 156, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 255, 156, 0.2);
}

.ap-sync.saving {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Game Grid */
.ap-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.ap-game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
}

.ap-game-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.05);
}

.ap-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ap-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ap-card-name {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
}

.ap-card-id {
  font-size: 10px;
  color: var(--muted);
  font-family: monospace;
}

.ap-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ap-chip {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid;
  font-weight: 500;
}

.ap-chip.role {
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--primary);
  background: rgba(0, 240, 255, 0.06);
}

.ap-chip.rank {
  border-color: rgba(255, 215, 0, 0.3);
  color: var(--gold);
  background: rgba(255, 215, 0, 0.06);
}

.ap-chip.char {
  border-color: rgba(188, 0, 255, 0.3);
  color: var(--accent);
  background: rgba(188, 0, 255, 0.06);
}

.ap-chip.none {
  border-color: var(--border);
  color: var(--muted);
}

.ap-card-edit {
  padding: 7px 0;
  text-align: center;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

/* ─── EDIT MODAL ─── */
.em-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.em-box {
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.em-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
}

.em-title {
  font-size: 18px;
  font-weight: 800;
}

.em-id {
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
  margin-top: 3px;
  display: block;
}

.em-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}

.em-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.em-toggles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.em-toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  min-width: 140px;
  cursor: pointer;
}

.sw {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  margin-left: auto;
  flex-shrink: 0;
}

.sw input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sw-sl {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  cursor: pointer;
  transition: background .2s;
}

.sw-sl::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
}

.sw input:checked+.sw-sl {
  background: var(--primary);
}

.sw input:checked+.sw-sl::before {
  transform: translateX(16px);
  background: #000;
}

.em-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.em-sh {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.em-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
}

.em-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

.em-tag-del {
  background: none;
  border: none;
  color: rgba(255, 80, 80, 0.7);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}

.em-tag-del:hover {
  color: #FF4655;
}

.em-chars-tags .em-tag {
  border-radius: 10px;
}

.em-nodata {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.em-addrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.em-input {
  flex: 1;
  min-width: 140px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}

.em-input:focus {
  border-color: rgba(0, 240, 255, 0.35);
}

.em-addbtn {
  padding: 9px 18px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 9px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.em-addbtn:hover {
  background: rgba(0, 240, 255, 0.18);
}

.em-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.em-cancel {
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.em-save {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #000;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1c2e;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  animation: slideUp .25s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 24px 60px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-phone-wrap {
    display: none;
  }

  .ap-sidebar {
    width: 180px;
  }

  .ap-sidebar .ap-brand span {
    display: none;
  }
}

@media (max-width: 640px) {
  .ap-sidebar {
    width: 60px;
    padding: 16px 8px;
  }

  .ap-navbtn span,
  .ap-brand span,
  .ap-logout {
    display: none;
  }

  .ap-logout {
    font-size: 18px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .em-toggles {
    flex-direction: column;
  }
}