/* obtener.css — Premium Glassmorphism Redesign */
:root {
  --neon-pink: #FF007F;
  --neon-magenta: #D900FF;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
}

body.premium-layout {
  background-color: #09050d;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Ambient Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}
.glow-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
}
.glow-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--neon-magenta) 0%, transparent 70%);
}

.mono-text {
  font-family: 'JetBrains Mono', monospace;
}

.page-centered {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.glass-card {
  box-sizing: border-box;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-header {
  text-align: center;
  margin-bottom: 32px;
}
.card-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}
.card-header .sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: flex;
  gap: 16px;
  width: 100%;
}
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
  }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0; /* Prevents flex children from overflowing */
}
.country-group {
  flex: 0 0 180px;
}
.flex-fill {
  flex: 1;
}

.input-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 4px;
}

.glass-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}
.glass-input:hover {
  border-color: var(--glass-border-hover);
}
.glass-input:focus-within, .glass-input:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 0 2px rgba(255, 0, 127, 0.2);
  outline: none;
}

/* Country Selector */
.country-select {
  position: relative;
}
.country-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
}
.flag-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 14px;
}
.country-name-truncate {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  text-align: left;
}
.country-trigger #country-dial {
  color: var(--text-secondary);
  font-size: 13px;
}
.chevron {
  color: var(--text-secondary);
}

.glass-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  background: rgba(20, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px;
  z-index: 50;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.country-panel[hidden] {
  display: none !important;
}

.search-wrap {
  position: relative;
  margin-bottom: 12px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}
.country-search {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 10px 10px 36px;
  color: white;
  font-size: 14px;
  box-sizing: border-box;
}
.country-search:focus {
  outline: none;
  border-color: var(--neon-pink);
}

.country-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}
.country-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.country-option:hover {
  background: rgba(255, 255, 255, 0.1);
}
.country-option-name {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.country-option-dial {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  font-size: 13px;
}
.country-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}
.scroll-clean::-webkit-scrollbar {
  width: 4px;
}
.scroll-clean::-webkit-scrollbar-thumb {
  background: var(--glass-border-hover);
  border-radius: 4px;
}

/* Number Input */
.number-wrapper {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 52px;
  box-sizing: border-box;
}
.number-dial-prefix {
  color: var(--text-secondary);
  font-size: 15px;
  margin-right: 8px;
}
.number-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  min-width: 0;
  padding: 0;
}
.number-input:focus {
  outline: none;
}

/* Primary Button */
.btn-primary-glow {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-magenta));
  border: none;
  border-radius: 12px;
  padding: 16px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 0, 127, 0.4);
  margin-top: 8px;
}
.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 0, 127, 0.6);
}
.btn-primary-glow:active {
  transform: translateY(0);
}

.msg {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  display: none;
}
.msg.error { display: block; color: #FF4A4A; }
.msg.info { display: block; color: var(--text-secondary); }

/* Result Box */
.glass-result {
  margin-top: 32px;
  display: none;
  animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.glass-result.visible {
  display: block;
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.code-header {
  margin-bottom: 12px;
}
.code-header .label {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.code-box-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px 16px 12px 24px;
}
.code-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: white;
}
.btn-copy-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: black;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-copy-icon:hover {
  background: #f0f0f0;
  transform: scale(1.02);
}

.code-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
}

.status-row-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}
.pulse-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.pulse {
  width: 8px;
  height: 8px;
  background: var(--neon-pink);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-pink);
  animation: pulse-anim 1.5s infinite;
}
.pulse.ok {
  background: #00FF88;
  box-shadow: 0 0 10px #00FF88;
  animation: none;
}
@keyframes pulse-anim {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.status-text {
  font-size: 13px;
  color: var(--text-secondary);
}
