:root {
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-tertiary: #334155;
  --bg-card: #1E293B;
  --bg-input: #0F172A;
  --gold-primary: #FBBF24;
  --gold-light: #FCD34D;
  --gold-dark: #D97706;
  --gold-bg: rgba(251, 191, 36, 0.08);
  --gold-border: rgba(251, 191, 36, 0.2);
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --border-color: #334155;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(251, 191, 36, 0.15);
  --shadow-gold-lg: 0 8px 40px rgba(251, 191, 36, 0.2);
  --header-bg: rgba(15, 23, 42, 0.98);
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --loader-bg: rgba(15, 23, 42, 0.95);
  --divider-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-input: #F1F5F9;
  --gold-primary: #D97706;
  --gold-light: #F59E0B;
  --gold-dark: #B45309;
  --gold-bg: rgba(217, 119, 6, 0.08);
  --gold-border: rgba(217, 119, 6, 0.2);
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 20px rgba(217, 119, 6, 0.1);
  --shadow-gold-lg: 0 8px 40px rgba(217, 119, 6, 0.15);
  --header-bg: rgba(255, 255, 255, 0.98);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --loader-bg: rgba(248, 250, 252, 0.95);
  --divider-color: rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.4s ease, color 0.4s ease;
  padding-top: 64px;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 10px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
  }
}

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

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.5);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  animation: fadeInDown 0.6s ease-out;
}
.header.scrolled {
  box-shadow: var(--shadow-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  font-size: 16px;
  box-shadow: var(--shadow-gold);
}
.logo-text h1 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gold-primary);
  white-space: nowrap;
}
.logo-text .tagline {
  font-size: 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  border-color: var(--gold-primary);
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-gold);
  transform: rotate(15deg);
}

.hamburger {
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--gold-primary);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  background: var(--gold-primary);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 98;
  display: none;
  backdrop-filter: blur(4px);
}
.menu-overlay.active {
  display: block;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--bg-secondary);
  z-index: 99;
  transition: right 0.4s ease;
  overflow-y: auto;
  padding: 20px 16px;
  box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--border-color);
}
.menu-panel.active {
  right: 0;
}

.menu-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
}
.menu-close:hover {
  color: var(--gold-primary);
  transform: rotate(90deg);
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.menu-link:hover,
.menu-link.active {
  background: var(--gold-bg);
  color: var(--gold-primary);
  font-weight: 700;
}

.menu-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #0F172A;
  padding: 14px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 800;
  margin-top: 16px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-gold);
}

.app {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  flex: 1;
}

.hero {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 20px 16px;
  margin: 12px 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  animation: fadeInScale 0.8s ease-out;
  text-align: center;
}
.hero h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.hero h2 span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.search-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}
.search-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.search-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
  transition: all 0.4s ease;
}
.search-input-wrap:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px var(--gold-bg);
}
.search-input-wrap input {
  flex: 1;
  border: none;
  background: none;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
  min-width: 0;
  width: 100%;
}
.search-input-wrap input::placeholder {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.search-input-wrap input.valid {
  border-color: var(--gold-primary);
}
.search-input-wrap input.invalid {
  border-color: #EF4444;
}
.search-btn {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #0F172A;
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  min-height: 42px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-gold);
}
.search-btn:hover {
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-2px);
}

.result-item {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--gold-primary);
  margin-bottom: 12px;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
}
.result-item:hover {
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-2px);
}
.result-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 6px;
}
.sim-tag {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #0F172A;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 800;
}
.net-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 800;
  color: white;
}
.info-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider-color);
  transition: all 0.3s ease;
}
.info-row:last-child {
  border-bottom: none;
}
.info-icon {
  color: var(--gold-primary);
  font-size: 0.85rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.info-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}
.action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}
.btn-action {
  padding: 10px 8px;
  border-radius: 24px;
  border: 2px solid var(--gold-primary);
  background: transparent;
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.6rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.4s ease;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn-action:hover {
  background: var(--gold-bg);
  border-color: var(--gold-light);
  color: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}
.btn-action.save-image {
  border-color: #8B5CF6;
  color: #8B5CF6;
}
.btn-action.save-image:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #A78BFA;
  color: #A78BFA;
}
.btn-action.whatsapp {
  border-color: #25D366;
  color: #25D366;
}
.btn-action.whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  border-color: #34D399;
  color: #25D366;
}

.dev-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
  border: 1px solid var(--border-color);
  text-align: center;
}
.dev-section img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  margin-bottom: 8px;
}
.dev-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-primary);
}
.dev-section p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.dev-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.dev-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-tertiary);
  padding: 6px 16px;
  border-radius: 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.dev-links a:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

.about-text {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.about-text strong {
  color: var(--gold-primary);
}

.footer {
  background: #1E293B;
  margin-top: 24px;
  border-top: 3px solid #FBBF24;
}
.footer-container {
  padding: 28px 16px 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #FBBF24, #D97706);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}
.footer-logo-text h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
}
.footer-logo-text h3 span {
  color: #FBBF24;
}
.footer-tagline {
  font-size: 0.55rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.footer-description {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #94A3B8;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border: 1px solid #475569;
}
.footer-social-link:hover {
  background: #FBBF24;
  color: #0F172A;
  border-color: #FBBF24;
  transform: scale(1.1) rotate(5deg);
}
.footer-column h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: #FBBF24;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #334155;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links li a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links li a:hover {
  color: #FCD34D;
  padding-left: 8px;
}
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.footer-copyright {
  font-size: 0.7rem;
  color: #94A3B8;
}
.footer-copyright strong {
  color: #FCD34D;
}
.footer-bottom-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-bottom-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.65rem;
  transition: all 0.3s ease;
}
.footer-bottom-links a:hover {
  color: #FCD34D;
}

.loader {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--loader-bg);
  backdrop-filter: blur(8px);
  z-index: 999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}
.loader.active {
  display: flex;
}
.loader-spinner-wrap {
  position: relative;
  width: 60px;
  height: 60px;
}
.spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--gold-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loader-text {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
}
.loader-dots {
  display: flex;
  gap: 6px;
}
.loader-dot {
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}
.loader-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.loader-dot:nth-child(2) {
  animation-delay: -0.16s;
}
.loader-dot:nth-child(3) {
  animation-delay: 0s;
}

.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 92vw;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  font-weight: 600;
  animation: fadeInDown 0.5s ease-out;
  pointer-events: auto;
  border-left: 4px solid var(--gold-primary);
  color: var(--text-primary);
}
.toast.success {
  border-left-color: #10B981;
}
.toast.error {
  border-left-color: #EF4444;
}
.toast.info {
  border-left-color: #60A5FA;
}

.fab-wa {
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #FBBF24, #D97706);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
  z-index: 90;
  text-decoration: none;
}

@media (min-width: 600px) {
  .app {
    padding: 0 20px;
  }
  .header {
    padding: 0 20px;
  }
  .logo-text .tagline {
    display: block;
  }
  .hero {
    padding: 28px 24px;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
  .search-card {
    padding: 20px;
  }
  .footer-container {
    padding: 32px 24px 24px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 900px) {
  .app {
    max-width: 900px;
  }
  .hamburger {
    display: none;
  }
  .hero {
    padding: 36px 32px;
  }
  .hero h2 {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
  }
}