/* Emoji Picker - Animated & Visual UI (Getsmore.in) */
@font-face {
  font-family: "Twemoji Country Flags";
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ep-primary: #007aff;
  --ep-primary-dark: #005ecb;
  --ep-text: #0f172a;
  --ep-muted: #64748b;
  --ep-border: #e2e8f0;
  --ep-surface: #ffffff;
  --ep-bg: #f4f7fb;
  --ep-rainbow: linear-gradient(45deg, #ff9a9e, #fad0c4, #ffecd2, #a1c4fd, #c2e9fb, #d4fc79, #84fab0);
  --ep-emoji-font: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  --ep-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Twemoji Country Flags", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--ep-bg);
  color: var(--ep-text);
  line-height: 1.45;
  overflow-x: clip;
}

.ep-main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 52px;
}

/* Signature Getsmore Animated Rainbow Frame */
.ep-rainbow-wrap {
  padding: 3px;
  border-radius: 26px;
  background: var(--ep-rainbow);
  background-size: 300% 300%;
  animation: epRainbowMove 7s linear infinite;
  box-shadow: 0 16px 40px rgba(0, 122, 255, 0.08);
  margin-bottom: 14px;
}

@keyframes epRainbowMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.ep-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  border-radius: 23px;
  padding: 18px 20px;
}

.ep-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.ep-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ep-hero h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ep-count-pill {
  font-size: 12px;
  font-weight: 800;
  color: #1e40af;
  background: #dbeafe;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Skin Tones + Variant Switch */
.ep-tone-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ep-tones {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 999px;
  padding: 3px;
}

.ep-tone-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  font-family: var(--ep-emoji-font);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
}

.ep-tone-btn:hover {
  transform: scale(1.18);
}

.ep-tone-btn.active {
  background: #eff6ff;
  border-color: var(--ep-primary);
  transform: scale(1.06);
}

.ep-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--ep-border);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s;
}

.ep-toggle-pill:hover {
  border-color: var(--ep-primary);
}

.ep-toggle-pill input {
  accent-color: var(--ep-primary);
  width: 14px;
  height: 14px;
}

/* Search + Visual Animated Inspector Row */
.ep-controls-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.ep-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ep-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
}

.ep-search-input {
  width: 100%;
  height: 100%;
  min-height: 52px;
  padding: 11px 38px 11px 40px;
  border-radius: 15px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ep-text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.ep-search-input:focus {
  border-color: var(--ep-primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.14);
}

.ep-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.ep-search-clear.visible {
  display: inline-flex;
}

/* Animated Preview Inspector Card */
.ep-inspector {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 15px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
}

.ep-insp-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ep-insp-stage {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ep-insp-char {
  font-family: var(--ep-emoji-font);
  font-size: 27px;
  line-height: 1;
  display: inline-block;
}

.ep-insp-char.pop {
  animation: epPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes epPop {
  0% {
    transform: scale(0.75) rotate(-8deg);
  }

  60% {
    transform: scale(1.22) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.ep-insp-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-insp-code {
  font-size: 11px;
  font-weight: 600;
  color: var(--ep-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ep-insp-btns {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.ep-btn {
  border: 1px solid var(--ep-border);
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
}

.ep-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.ep-btn:active {
  transform: scale(0.95);
}

.ep-btn-primary {
  background: var(--ep-primary);
  border-color: var(--ep-primary);
  color: #ffffff;
}

.ep-btn-primary:hover {
  background: var(--ep-primary-dark);
  border-color: var(--ep-primary-dark);
}

/* Quick Spotlight Row (Popular & E16.0 New Picks) */
.ep-quick-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  padding: 7px 12px;
}

.ep-quick-picks {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.ep-quick-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ep-muted);
  margin-right: 4px;
}

.ep-quick-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: #f8fafc;
  font-family: var(--ep-emoji-font);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
}

.ep-quick-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateY(-2px) scale(1.18);
}

.ep-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sticky Category & Multi-Copy Tray Bar */
.ep-sticky-bar {
  position: sticky;
  top: 8px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ep-border);
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ep-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.ep-cat-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ep-border);
  background: #ffffff;
  color: #334155;
  font-family: "Inter", var(--ep-emoji-font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s, background 0.14s, color 0.14s, border-color 0.14s;
}

.ep-cat-pill:hover {
  border-color: var(--ep-primary);
  color: var(--ep-primary);
  transform: translateY(-1px);
}

.ep-cat-pill.active {
  background: var(--ep-primary);
  border-color: var(--ep-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.22);
}

/* Multi-Copy Builder Tray */
.ep-tray-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.ep-tray-input {
  flex: 1 1 220px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid var(--ep-border);
  background: #f8fafc;
  font-family: var(--ep-emoji-font), "Inter", sans-serif;
  font-size: 16px;
  outline: none;
}

.ep-tray-input:focus {
  border-color: var(--ep-primary);
  background: #ffffff;
}

/* Animated Emoji Sections & Grid */
.ep-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ep-section {
  background: var(--ep-surface);
  border: 1px solid var(--ep-border);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--ep-shadow);
  content-visibility: auto;
  contain-intrinsic-size: 280px;
  animation: epFadeUp 0.28s ease both;
}

@keyframes epFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ep-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ep-sec-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.ep-sec-cnt {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ep-muted);
  background: #f1f5f9;
  padding: 2px 9px;
  border-radius: 999px;
}

.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 4px;
}

.ep-tile {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 11px;
  font-family: var(--ep-emoji-font);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.12s, border-color 0.12s, box-shadow 0.15s;
  user-select: none;
}

.ep-tile:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-3px) scale(1.22);
  box-shadow: 0 8px 18px rgba(0, 122, 255, 0.15);
  z-index: 3;
}

.ep-tile:active {
  transform: scale(0.9);
}

.ep-flag-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.ep-quick-btn .ep-flag-img {
  width: 19px;
  height: 19px;
}

.ep-insp-stage .ep-flag-img {
  width: 26px;
  height: 26px;
}

.ep-tile.copied {
  background: #dcfce7;
  border-color: #22c55e;
  animation: epTileBounce 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes epTileBounce {
  0% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1.26);
  }

  100% {
    transform: scale(1);
  }
}

/* Floating Particle Burst on Copy */
.ep-burst {
  position: fixed;
  pointer-events: none;
  font-family: var(--ep-emoji-font);
  font-size: 19px;
  line-height: 1;
  z-index: 9999;
  will-change: transform, opacity;
  animation: epBurstFly 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes epBurstFly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.7);
  }

  100% {
    opacity: 0;
    transform: translate(var(--dx, 0px), var(--dy, -46px)) scale(1.35) rotate(var(--rot, 12deg));
  }
}

.ep-empty {
  text-align: center;
  padding: 36px 16px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: var(--ep-muted);
  font-size: 14px;
  font-weight: 600;
}

.ep-empty[hidden] {
  display: none;
}

/* AdSense Containers */
.ep-ad-wrapper {
  margin: 20px 0;
  padding: 10px 12px 14px;
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 16px;
  text-align: center;
  overflow: hidden;
}

.ep-ad-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}

/* Educational Guide Above FAQ */
.ep-guide-card {
  margin-top: 22px;
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: var(--ep-shadow);
}

.ep-guide-card h2 {
  margin: 0 0 10px;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.ep-guide-card h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.ep-guide-card p,
.ep-guide-card li {
  font-size: 14px;
  color: #475569;
  line-height: 1.68;
}

.ep-guide-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.ep-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.ep-guide-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  padding: 13px 14px;
}

.ep-guide-box h4 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.ep-guide-box p {
  margin: 0;
  font-size: 13px;
}

/* Minimal FAQ */
.ep-faq-wrap {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--ep-shadow);
}

.ep-faq-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 9px;
}

.ep-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  overflow: hidden;
}

.ep-faq-q {
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  background: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.ep-faq-a {
  display: none;
  padding: 0 13px 11px;
  font-size: 13px;
  color: #475569;
}

.ep-faq-item.open .ep-faq-a {
  display: block;
}

.ep-disclaimer {
  max-width: 1180px;
  margin: 0 auto 20px;
  padding: 10px 16px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

.ep-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 9px 15px;
  border-radius: 12px;
  font-family: "Inter", var(--ep-emoji-font);
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 9999;
}

.ep-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

  .ep-rainbow-wrap,
  .ep-section,
  .ep-insp-char.pop,
  .ep-tile.copied,
  .ep-burst {
    animation: none !important;
  }

  .ep-tile:hover {
    transform: none;
  }
}

@media (max-width: 820px) {

    .ep-controls-row,
    .ep-guide-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 600px) {
    .ep-main {
      padding: 12px 10px 40px;
    }

    .ep-hero {
      padding: 14px 12px;
    }

    .ep-sticky-bar {
      position: static;
    }

    .ep-grid {
      grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    }

    .ep-tile {
      font-size: 23px;
    }
  }