/* front.css — AhmadDev Wallet Codes (Frontend) */
:root{
  --adwc-border:#e2e8f0;
  --adwc-radius:10px;
  --adwc-gap:10px;
  --adwc-success-bg:#ecfdf5;
  --adwc-success-bd:#10b98126;
  --adwc-error-bg:#fef2f2;
  --adwc-error-bd:#ef444426;
  --adwc-info-bg:#eff6ff;
  --adwc-info-bd:#3b82f626;
}

.adwc-redeem-wrapper{
  direction: rtl;
  max-width: 560px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--adwc-border);
  border-radius: var(--adwc-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.02);
}

.adwc-redeem-wrapper *{
  box-sizing: border-box;
}

.adwc-redeem-form{
  display: flex;
  gap: var(--adwc-gap);
  align-items: center;
  flex-wrap: wrap;
}

.adwc-redeem-form label{
  width: 100%;
  font-weight: 600;
  margin-bottom: 4px;
}

.adwc-redeem-form input[type="text"]{
  flex: 1 1 320px;
  padding: 10px 12px;
  border: 1px solid var(--adwc-border);
  border-radius: 8px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.adwc-redeem-form input[type="text"]:focus{
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,.25);
}

.adwc-redeem-form .button,
.adwc-redeem-form button[type="submit"]{
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #1f2937;
  color: #fff;
  cursor: pointer;
  line-height: 1.2;
  transition: transform .06s ease, opacity .15s ease;
}

.adwc-redeem-form .button:hover,
.adwc-redeem-form button[type="submit"]:hover{
  opacity: .92;
}

.adwc-redeem-form .button:active,
.adwc-redeem-form button[type="submit"]:active{
  transform: translateY(1px);
}

.adwc-redeem-form .button:disabled,
.adwc-redeem-form button[type="submit"]:disabled{
  opacity: .6;
  cursor: not-allowed;
}

/* Notices */
.adwc-notice{
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--adwc-border);
  background: #fafafa;
  font-size: 14px;
}

.adwc-success{
  background: var(--adwc-success-bg);
  border-color: var(--adwc-success-bd);
}

.adwc-error{
  background: var(--adwc-error-bg);
  border-color: var(--adwc-error-bd);
}

.adwc-info{
  background: var(--adwc-info-bg);
  border-color: var(--adwc-info-bd);
}

/* Small screens */
@media (max-width: 480px){
  .adwc-redeem-form{
    gap: 8px;
  }
  .adwc-redeem-form .button,
  .adwc-redeem-form button[type="submit"]{
    width: 100%;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark){
  .adwc-redeem-wrapper{
    background: #111827;
    border-color: #1f2937;
  }
  .adwc-redeem-form input[type="text"]{
    background: #0b1220;
    border-color: #1f2937;
    color: #e5e7eb;
  }
  .adwc-redeem-form input[type="text"]::placeholder{
    color: #9ca3af;
  }
  .adwc-notice{
    background: #0b1220;
    border-color: #1f2937;
    color: #e5e7eb;
  }
}
