:root {
  --main-bg: #111217;
  --accent1: #eec956;
  --accent2: #10b6e8;
  --accent3: #e81a4f;
  --text-main: #fff;
  --text-muted: #bbb;
  --btn-bg: linear-gradient(90deg, #eec956 0%, #e81a4f 100%);
  --btn-shadow: 0 4px 24px 0 #eec95655;
  --success: #00e87c;
  --danger: #e81a4f;
}

body {
  font-family: 'Cairo', Arial, sans-serif;
  background: var(--main-bg);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  direction: rtl;
}

#app {
  max-width: 460px;
  margin: 0 auto;
  padding: 16px 0 80px 0;
}

.locker-btn {
  display: inline-block;
  margin: 18px 0 8px 0;
  font-size: 1.3rem;
  padding: 14px 38px;
  border-radius: 12px;
  text-decoration: none;
}
.locker-tip {
  margin-top: 10px;
  font-size: 1.04rem;
  color: var(--accent2);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 350px;
  animation: fadeIn 0.7s;
}

.welcome-container, .form-container, .loading-container {
  background: #191a20;
  border-radius: 18px;
  padding: 24px 16px;
  width: 100%;
  box-shadow: 0 0 24px 0 #0002;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-container h1 {
  font-size: 2.1rem;
  margin-bottom: 10px;
  color: var(--accent1);
  font-weight: 900;
  text-shadow: 0 2px 6px #000a;
}
.fire { color: var(--accent3); }
.welcome-container p { color: var(--text-muted); margin-bottom: 18px; }

.gold-coin {
  width: 62px;
  margin-bottom: 8px;
  filter: drop-shadow(0 3px 12px #eec95688);
}
.icon-inline, .icon-inline-s {
  vertical-align: middle;
  display: inline-block;
}
.icon-inline { width: 26px; margin: 0 4px; }
.icon-inline-s { width: 19px; margin: 0 2px; }

.counter-animation {
  display: flex;
  align-items: center;
  background: #23242e;
  border-radius: 18px;
  padding: 12px 20px;
  margin-bottom: 18px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent1);
  gap: 10px;
}
.counter-animation .arrow {
  color: var(--accent2);
  font-size: 2rem;
}

.main-btn {
  background: var(--btn-bg);
  color: #222;
  border: none;
  border-radius: 14px;
  padding: 12px 38px;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 16px 0 8px 0;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.main-btn:active {
  filter: brightness(0.97);
  box-shadow: 0 2px 12px 0 #eec95644;
}
.pulse {
  animation: pulseBtn 1.2s infinite;
}
@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 #eec95655; }
  70% { box-shadow: 0 0 0 18px #eec95611; }
  100% { box-shadow: 0 0 0 0 #eec95655; }
}

.fake-live {
  font-size: 1.05rem;
  color: var(--accent2);
  margin-top: 12px;
  animation: fadeLive 2s infinite alternate;
}
@keyframes fadeLive {
  from { opacity: 1; }
  to { opacity: 0.65; }
}

input[type="text"], input[type="number"] {
  width: 90%;
  padding: 13px 12px;
  margin: 12px 0 8px 0;
  border-radius: 10px;
  border: 1.5px solid var(--accent2);
  font-size: 1.08rem;
  background: #21222b;
  color: var(--text-main);
  outline: none;
  transition: border 0.2s;
}
input:focus {
  border: 1.5px solid var(--accent1);
}
.form-container h2 {
  margin-bottom: 10px;
  color: var(--accent1);
  font-size: 1.4rem;
}

.input-with-icon {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.input-with-icon input[type="number"], .input-with-icon input[type="text"] {
  width: 100%;
  padding-right: 38px;
  margin: 0;
}
.input-with-icon img {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.result-box {
  margin: 10px 0 16px 0;
  background: #272830;
  padding: 8px 12px 4px 12px;
  border-radius: 10px;
  color: var(--success);
  font-weight: bold;
  font-size: 1.07rem;
  display: flex;
  align-items: flex-end;
  gap: 13px;
  flex-direction: column;
}
.result-label {
  font-size: 0.93rem;
  color: var(--accent2);
  margin-top: 2px;
  font-weight: bold;
}

.info {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.error-msg {
  color: var(--danger);
  font-size: 0.97rem;
  margin-top: 7px;
  font-weight: bold;
  background: #2a1f22;
  border-radius: 6px;
  padding: 5px 10px 4px 10px;
  text-align: center;
  letter-spacing: 0.6px;
  display: none;
}

.success-msg {
  color: var(--success);
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: center;
}
.cpa-info {
  margin: 10px 0 16px 0;
  color: var(--accent2);
  font-weight: bold;
  background: #21222b;
  border-radius: 9px;
  padding: 9px 10px;
}

/* Loader styles */
.loader {
  border: 6px solid #23242e;
  border-top: 6px solid var(--accent1);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  animation: spin 1s linear infinite;
  margin-bottom: 18px;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
.loading-container p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: bold;
}

.progress-bar-outer {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.progress-bar {
  background: #23242e;
  border-radius: 12px;
  width: 210px;
  height: 22px;
  margin-bottom: 0px;
  overflow: hidden;
  position: relative;
}
.progress {
  height: 100%;
  background: linear-gradient(90deg, #eec956 0%, #10b6e8 100%);
  width: 0%;
  border-radius: 12px;
  transition: width 0.5s;
}

/* Comments Section */
.comments-section {
  background: #22232b;
  border-radius: 14px;
  padding: 12px 10px;
  margin-top: 18px;
  margin-bottom: 6px;
}
.comments-section h3 {
  color: var(--accent1);
  font-size: 1.1rem;
  margin-bottom: 7px;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
}
.comment-item {
  background: #23242e;
  border-radius: 8px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
}
.comment-diamond {
  width: 15px;
  margin-left: 2px;
  margin-right: 2px;
  vertical-align: middle;
}
.comment-amount { color: var(--accent1); font-weight: bold; }
.comment-id { color: var(--accent2); font-size: 0.93em; direction: ltr; font-family: monospace, Arial, sans-serif;}
/* Responsive */
@media (max-width: 600px) {
  #app { padding: 7px 0 60px 0; }
  .welcome-container, .form-container, .loading-container {
    padding: 16px 4px;
  }
  .progress-bar { width: 95vw; max-width: 97%; }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px);}
  to { opacity: 1; transform: none;}
}