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

body {
  background: #0a0a0a;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, 'Arial', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

[dir="rtl"] .result-box {
  text-align: right;
}

[dir="rtl"] .result-value {
  direction: ltr;
  text-align: left;
}

.container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.card {
  background: #111;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.lang-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
}

[dir="ltr"] .lang-toggle {
  left: auto;
  right: 12px;
}

.lang-toggle button {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #888;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.lang-toggle button:hover {
  color: #fff;
  border-color: #5cab5c;
}

.card {
  position: relative;
}

.brand {
  font-size: 28px;
  font-weight: bold;
  color: #5cab5c;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 13px;
  color: #555;
  margin-bottom: 32px;
}

.screen { display: none; }
.screen.active { display: block; }

h2 {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 20px;
}

input {
  width: 100%;
  padding: 14px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

input:focus {
  border-color: #5cab5c;
}

input::placeholder {
  color: #555;
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  background: #5cab5c;
  box-shadow: 0 0 15px #5cab5c66, 0 0 30px #5cab5c33;
  animation: glow 2s ease-in-out infinite alternate;
  transition: transform 0.2s;
}

.btn:hover {
  transform: scale(1.02);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
}

@keyframes glow {
  from { box-shadow: 0 0 10px #5cab5c55, 0 0 20px #5cab5c22; }
  to { box-shadow: 0 0 20px #5cab5c88, 0 0 40px #5cab5c44; }
}

.error {
  color: #ff3333;
  font-size: 13px;
  margin-top: 12px;
  min-height: 20px;
}

.success-msg {
  color: #5cab5c;
  font-size: 14px;
  margin-bottom: 16px;
}

.result-box {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: left;
}

.result-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.result-value {
  font-family: monospace;
  font-size: 18px;
  color: #5cab5c;
  word-break: break-all;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy-btn {
  background: none;
  border: 1px solid #333;
  color: #888;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
  margin-inline-start: 8px;
}

.copy-btn:hover {
  color: #fff;
  border-color: #5cab5c;
}

.otp-info {
  color: #888;
  font-size: 13px;
  margin-bottom: 16px;
}

.timer {
  color: #1f9480;
  font-weight: bold;
}

.loading .btn {
  opacity: 0.7;
  pointer-events: none;
}

.progress-wrap {
  margin: 24px 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #5cab5c;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #5cab5c;
  margin-top: 12px;
}

#accountsList .result-box {
  text-align: left;
}

[dir="rtl"] #accountsList .result-box {
  text-align: right;
}

.footer {
  text-align: center;
  font-size: 10px;
  color: #333;
  margin-top: 16px;
  letter-spacing: 1px;
}
