/* ===================================================
   أون تايم للاستثمار - ملف التصميم الرئيسي
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --gold:        #d4a843;
  --gold-light:  #f0c060;
  --gold-dark:   #a07830;
  --bg-base:     #0d0d14;
  --bg-card:     #161622;
  --bg-input:    #0f0f1a;
  --border:      #252535;
  --border-gold: rgba(212,168,67,.35);
  --text-main:   #e8e0d0;
  --text-sub:    #6b6880;
  --text-muted:  #3a3850;
  --green:       #3ecf8e;
  --red:         #e05252;
  --blue:        #4a9eff;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 20px 60px rgba(0,0,0,.6);
  --shadow-gold: 0 4px 20px rgba(212,168,67,.3);
}

html { font-size: 16px; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg-base);
  color: var(--text-main);
  direction: rtl;
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Utility ── */
.hidden { display: none !important; }
.flex   { display: flex; }
.grid   { display: grid; }
.center { align-items: center; justify-content: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-family: 'Cairo', sans-serif;
  font-size: .9rem; font-weight: 700; cursor: pointer; border: none;
  transition: all .2s ease; text-decoration: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0d0d14; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--text-sub);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: rgba(224,82,82,.15); color: var(--red); border: 1px solid rgba(224,82,82,.3); }
.btn-danger:hover { background: rgba(224,82,82,.25); }
.btn-sm { padding: 8px 16px; font-size: .8rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Inputs ── */
.input-group { margin-bottom: 18px; }
.input-group label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--text-sub); margin-bottom: 8px;
}
.input-wrap { position: relative; }
.input-wrap .icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none; font-size: 1rem;
}
.input-wrap .icon-left {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); cursor: pointer; font-size: 1rem;
  background: none; border: none; padding: 0;
}
input, select {
  width: 100%; padding: 13px 42px 13px 16px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-main);
  font-family: 'Cairo', sans-serif; font-size: .9rem;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
input:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,.15);
}
input[dir="ltr"] { direction: ltr; text-align: left; padding: 13px 16px 13px 42px; }
input[type="date"] { color-scheme: dark; }
select option { background: var(--bg-card); }

/* ── Cards ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card-gold { border-color: var(--border-gold); }

/* ── Alert ── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 600; text-align: center; margin-bottom: 16px;
}
.alert-error  { background: rgba(224,82,82,.12); border: 1px solid rgba(224,82,82,.3); color: #f08080; }
.alert-success{ background: rgba(62,207,142,.12); border: 1px solid rgba(62,207,142,.3); color: #3ecf8e; }

/* ── Spinner ── */
.spinner {
  width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.2);
  border-top-color: currentColor; border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Page loader ── */
#page-loader {
  position: fixed; inset: 0; background: var(--bg-base);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}
#page-loader .loader-inner { text-align: center; }
#page-loader .loader-logo {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  box-shadow: var(--shadow-gold);
}
#page-loader .loader-bar {
  width: 160px; height: 3px; background: var(--border); border-radius: 2px;
  overflow: hidden; margin: 12px auto 0;
}
#page-loader .loader-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px; animation: load 1.2s ease-in-out infinite;
}
@keyframes load {
  0%   { width: 0; margin-left: 0; }
  50%  { width: 100%; margin-left: 0; }
  100% { width: 0; margin-left: 100%; }
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,20,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px; display: flex; align-items: center; justify-content: space-between;
}
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo .logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: var(--shadow-gold);
}
.header-logo .logo-text { font-size: .95rem; font-weight: 800; color: var(--gold); }
.header-logo .logo-sub  { font-size: .7rem; color: var(--text-sub); margin-top: -2px; }

/* ── Login Page ── */
.login-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,168,67,.06) 0%, transparent 60%), var(--bg-base);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .logo-circle {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: 0 8px 30px rgba(212,168,67,.4);
}
.login-logo h1 { font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.login-logo p  { font-size: .85rem; color: var(--text-sub); margin-top: 4px; }
.login-card { width: 100%; max-width: 420px; }
.login-features {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
  margin-top: 24px; max-width: 420px; width: 100%;
}
.login-features .feat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 10px; text-align: center;
}
.login-features .feat .feat-icon { font-size: 1.4rem; margin-bottom: 6px; }
.login-features .feat .feat-text { font-size: .72rem; color: var(--text-sub); }

/* ── Dashboard ── */
.dashboard-page { min-height: 100vh; }
.dashboard-content { max-width: 600px; margin: 0 auto; padding: 24px 16px; }
.welcome-banner {
  background: linear-gradient(135deg, rgba(212,168,67,.12), rgba(212,168,67,.04));
  border: 1px solid var(--border-gold); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 16px;
}
.welcome-banner .avatar {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #0d0d14;
}
.welcome-banner h2 { font-size: 1.05rem; font-weight: 800; color: var(--text-main); }
.welcome-banner p  { font-size: .8rem; color: var(--text-sub); margin-top: 2px; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.stat-card .stat-label { font-size: .75rem; color: var(--text-sub); margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.3rem; font-weight: 800; }
.stat-card .stat-unit  { font-size: .75rem; color: var(--text-sub); margin-top: 2px; }
.stat-gold  .stat-value { color: var(--gold); }
.stat-green .stat-value { color: var(--green); }
.stat-blue  .stat-value { color: var(--blue); }
.stat-red   .stat-value { color: var(--red); }

.dates-card { margin-bottom: 20px; }
.dates-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.date-item { background: var(--bg-input); border-radius: var(--radius-sm); padding: 14px; }
.date-item .date-label { font-size: .75rem; color: var(--text-sub); margin-bottom: 6px; }
.date-item .date-value { font-size: .95rem; font-weight: 700; color: var(--text-main); }

.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 700;
}
.status-active   { background: rgba(62,207,142,.12); color: var(--green); border: 1px solid rgba(62,207,142,.25); }
.status-expired  { background: rgba(224,82,82,.12);  color: var(--red);   border: 1px solid rgba(224,82,82,.25); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Payment Page ── */
.payment-page { min-height: 100vh; }
.payment-content { max-width: 500px; margin: 0 auto; padding: 24px 16px; }
.bank-card-preview {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(212,168,67,.3); border-radius: 16px;
  padding: 24px; margin-bottom: 24px; position: relative; overflow: hidden;
}
.bank-card-preview::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,.15), transparent);
}
.bank-card-preview .card-chip {
  width: 36px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  margin-bottom: 20px;
}
.bank-card-preview .card-number {
  font-size: 1.15rem; font-weight: 700; letter-spacing: 3px;
  color: var(--text-main); margin-bottom: 16px; font-family: monospace;
}
.bank-card-preview .card-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.bank-card-preview .card-name { font-size: .85rem; color: var(--text-sub); }
.bank-card-preview .card-expiry { font-size: .85rem; color: var(--text-sub); text-align: right; }
.bank-card-preview .card-bank { font-size: .75rem; color: var(--gold); font-weight: 700; }

/* ── Verify Page ── */
.verify-page { min-height: 100vh; }
.verify-content { max-width: 440px; margin: 0 auto; padding: 24px 16px; }
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.otp-inputs input {
  width: 52px; height: 60px; text-align: center; font-size: 1.4rem; font-weight: 800;
  padding: 0; border-radius: 12px; direction: ltr;
}

/* ── Admin Panel ── */
.admin-page { min-height: 100vh; }
.admin-content { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 24px; }
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th {
  background: rgba(212,168,67,.08); color: var(--gold);
  font-size: .8rem; font-weight: 700; padding: 12px 14px; text-align: right;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 14px; font-size: .85rem; color: var(--text-main);
  border-bottom: 1px solid rgba(37,37,53,.6); vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 16px; backdrop-filter: blur(4px);
}
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.8);
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity:0; transform: scale(.95) translateY(10px); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3 { font-size: 1.05rem; font-weight: 800; color: var(--text-main); }
.modal-close { background: none; border: none; color: var(--text-sub); cursor: pointer; font-size: 1.2rem; padding: 4px; }
.modal-close:hover { color: var(--text-main); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ── Toggle ── */
.toggle-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 18px; }
.toggle {
  width: 44px; height: 24px; border-radius: 12px; background: var(--border);
  position: relative; transition: background .2s; flex-shrink: 0;
}
.toggle.on { background: var(--green); }
.toggle::after {
  content: ''; position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: white;
  transition: transform .2s;
}
.toggle.on::after { transform: translateX(-20px); }
.toggle-label { font-size: .85rem; color: var(--text-sub); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-stats .stat-card:last-child { grid-column: span 2; }
  .form-grid { grid-template-columns: 1fr; }
  .dates-row { grid-template-columns: 1fr 1fr; }
  table { font-size: .78rem; }
  th, td { padding: 10px 10px; }
  .otp-inputs input { width: 44px; height: 52px; font-size: 1.2rem; }
}
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .dates-row  { grid-template-columns: 1fr; }
}


/* ===================================================
   هلال الشرق KDD — تعديلات خاصة
   =================================================== */

/* Hero Ads */
.hero-ads { background: linear-gradient(135deg, rgba(212,168,67,.1), rgba(212,168,67,.03)); border-bottom: 1px solid var(--border); padding: 60px 20px; text-align: center; width: 100%; }
.hero-icon { font-size: 4rem; margin-bottom: 16px; display: block; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.hero-ads h1 { font-size: 1.8rem; font-weight: 900; color: var(--gold); margin-bottom: 10px; }
.hero-ads p  { font-size: .9rem; color: var(--text-sub); margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 500px; margin: 0 auto; }
.cta-buttons .btn-primary, .cta-buttons .btn-secondary { flex: 1; min-width: 160px; max-width: 220px; }

/* Services */
.services, .about { padding: 50px 20px; max-width: 1000px; margin: 0 auto; width: 100%; }
.services h2, .about h2, .tasks-title { font-size: 1.3rem; font-weight: 900; color: var(--text-main); text-align: center; margin-bottom: 28px; }
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; transition: border-color .2s; box-shadow: none; }
.card:hover { border-color: var(--border-gold); transform: none; box-shadow: none; }
.card-icon { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.card h3 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.card p   { color: var(--text-sub); font-size: .85rem; line-height: 1.6; }

/* Stats Section */
.ads-stats { background: rgba(212,168,67,.04); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 50px 20px; text-align: center; width: 100%; }
.ads-stats h2 { font-size: 1.3rem; font-weight: 900; color: var(--text-main); margin-bottom: 28px; }
.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-number { font-size: 1.8rem; font-weight: 900; color: var(--gold); margin-bottom: 6px; display: block; }
.stat-label  { font-size: .8rem; color: var(--text-sub); opacity: 1; }

/* Contact */
.contact-section { padding: 50px 20px; background: rgba(255,255,255,.01); border-top: 1px solid var(--border); width: 100%; }
.contact-section h2 { font-size: 1.3rem; font-weight: 900; color: var(--text-main); text-align: center; margin-bottom: 28px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.contact-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; transition: border-color .2s; box-shadow: none; }
.contact-card:hover { border-color: var(--border-gold); transform: none; box-shadow: none; }
.contact-icon { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.contact-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.contact-card p  { color: var(--text-sub); font-size: .85rem; margin-bottom: 16px; }
.contact-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #0d0d14; border-radius: var(--radius-sm); font-weight: 700; font-size: .85rem; transition: all .2s; width: auto; }
.contact-btn:hover { filter: brightness(1.1); }

/* Footer */
footer { background: rgba(0,0,0,.4); border-top: 1px solid var(--border); padding: 28px 20px; text-align: center; width: 100%; }
footer p { font-size: .82rem; color: var(--text-muted); margin-bottom: 6px; }
footer a { color: var(--gold); }

/* Task Grid */
.task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-bottom: 28px; }
.task-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; transition: border-color .2s; box-shadow: none; }
.task-card:hover { border-color: var(--border-gold); transform: none; box-shadow: none; }
.task-icon   { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.task-name   { font-size: .85rem; font-weight: 600; color: var(--text-main); margin-bottom: 8px; line-height: 1.4; }
.task-reward { font-size: .9rem; font-weight: 800; color: var(--gold); margin-bottom: 10px; }
.task-btn { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #0d0d14; border: none; border-radius: var(--radius-sm); padding: 9px 14px; font-size: .8rem; font-weight: 700; cursor: pointer; transition: all .2s; font-family: 'Cairo', sans-serif; width: 100%; }
.task-btn:hover:not(:disabled) { filter: brightness(1.1); }
.task-btn:disabled { background: rgba(62,207,142,.12); color: var(--green); border: 1px solid rgba(62,207,142,.3); cursor: not-allowed; }

/* Dashboard */
.dashboard-container { max-width: 700px; margin: 0 auto; padding: 24px 16px; width: 100%; }
.user-info-bar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; box-shadow: none; }
.user-name    { font-size: 1rem; font-weight: 700; color: var(--text-main); }
.user-id      { font-size: .78rem; color: var(--text-sub); }
.user-balance { font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.dashboard-hero { background: linear-gradient(135deg, rgba(212,168,67,.12), rgba(212,168,67,.04)); border: 1px solid var(--border-gold); border-radius: var(--radius); padding: 28px; text-align: center; margin-bottom: 20px; box-shadow: none; }
.dashboard-hero h1 { font-size: 1.3rem; font-weight: 900; color: var(--gold); margin-bottom: 8px; }
.balance-info  { font-size: 1.1rem; color: var(--text-sub); margin-bottom: 20px; }
.balance-amount{ font-size: 2.4rem; font-weight: 900; color: var(--gold); text-shadow: 0 0 30px rgba(212,168,67,.4); }
.main-buttons  { display: flex; flex-direction: column; gap: 12px; max-width: 400px; margin: 0 auto 20px; }
.main-btn.logout { background: rgba(224,82,82,.15) !important; color: var(--red) !important; border: 1px solid rgba(224,82,82,.3) !important; box-shadow: none !important; }
.info-text { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; font-size: .83rem; color: var(--text-sub); line-height: 1.7; }

/* Withdraw */
.withdraw-container { max-width: 520px; margin: 30px auto; padding: 20px; width: 100%; }
.withdraw-card { background: var(--bg-card); border: 1px solid var(--border-gold); border-radius: var(--radius); padding: 32px; width: 100%; box-shadow: none; }
.withdraw-card h1 { font-size: 1.3rem; font-weight: 900; color: var(--gold); margin-bottom: 8px; text-align: center; }
.withdraw-card .balance { font-size: 1rem; color: var(--text-sub); text-align: center; margin-bottom: 24px; }
.withdraw-card .balance strong { color: var(--gold); font-size: 1.4rem; }
.bank-card-preview { background: linear-gradient(135deg, #1a1a2e, #16213e); border: 1px solid rgba(212,168,67,.3); border-radius: 16px; padding: 22px; margin-bottom: 22px; position: relative; overflow: hidden; }
.bank-card-preview::before { content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(212,168,67,.15), transparent); }
.card-chip { width: 36px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); margin-bottom: 18px; }
.card-number-preview { font-size: 1rem; font-weight: 700; letter-spacing: 3px; color: var(--text-main); margin-bottom: 14px; font-family: monospace; }
.card-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.card-name-preview, .card-expiry-preview { font-size: .8rem; color: var(--text-sub); }
.card-bank-label { font-size: .72rem; color: var(--gold); font-weight: 700; }
.secure-note { display: flex; align-items: center; gap: 8px; background: rgba(62,207,142,.06); border: 1px solid rgba(62,207,142,.15); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px; font-size: .8rem; color: var(--green); }

/* Verify / OTP */
.verify-container { max-width: 440px; margin: 30px auto; padding: 20px; width: 100%; }
.verify-card { background: var(--bg-card); border: 1px solid var(--border-gold); border-radius: var(--radius); padding: 32px; text-align: center; }
.verify-card h1 { font-size: 1.3rem; font-weight: 900; color: var(--gold); margin-bottom: 8px; }
.verify-card p  { font-size: .85rem; color: var(--text-sub); margin-bottom: 20px; }
.whatsapp-icon { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; background: linear-gradient(135deg, #25d366, #128c7e); display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.otp-inputs input { width: 52px; height: 60px; text-align: center; font-size: 1.4rem; font-weight: 800; padding: 0; border-radius: 12px; direction: ltr; }
.otp-inputs input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,.2); }
.resend-timer { font-size: .8rem; color: var(--text-sub); text-align: center; margin-top: 12px; }

/* Admin */
.admin-container { max-width: 1000px; margin: 0 auto; padding: 24px 16px; width: 100%; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { font-size: 1.3rem; font-weight: 900; color: var(--gold); }
.add-user-form { background: var(--bg-card); border: 1px solid var(--border-gold); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.add-user-form h2 { font-size: 1rem; font-weight: 800; color: var(--text-main); margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; margin-bottom: 12px; }
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th { background: rgba(212,168,67,.08); color: var(--gold); font-size: .8rem; font-weight: 700; padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--border); }
td { padding: 12px 14px; font-size: .85rem; color: var(--text-main); border-bottom: 1px solid rgba(37,37,53,.6); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }
.action-btn { padding: 6px 12px; border-radius: var(--radius-sm); font-size: .78rem; font-weight: 700; cursor: pointer; border: none; font-family: 'Cairo', sans-serif; transition: all .2s; width: auto; display: inline-flex; align-items: center; gap: 4px; }
.action-btn-edit   { background: rgba(74,158,255,.12); color: var(--blue); border: 1px solid rgba(74,158,255,.3); }
.action-btn-delete { background: rgba(224,82,82,.12); color: var(--red); border: 1px solid rgba(224,82,82,.3); }
.action-btn-toggle { background: rgba(62,207,142,.12); color: var(--green); border: 1px solid rgba(62,207,142,.3); }
.action-btn-toggle.off { background: rgba(224,82,82,.12); color: var(--red); border: 1px solid rgba(224,82,82,.3); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.badge-active   { background: rgba(62,207,142,.12); color: var(--green); border: 1px solid rgba(62,207,142,.25); }
.badge-inactive { background: rgba(224,82,82,.12); color: var(--red); border: 1px solid rgba(224,82,82,.25); }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* Result / Success / Blocked */
.result-container, .success-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(ellipse at 50% 0%, rgba(212,168,67,.06) 0%, transparent 60%), var(--bg-base); }
.result-box, .success-box { background: var(--bg-card); border: 1px solid var(--border-gold); border-radius: var(--radius); padding: 48px 36px; text-align: center; max-width: 500px; width: 100%; box-shadow: var(--shadow); }
.result-icon, .success-icon { font-size: 4rem; margin-bottom: 20px; display: block; animation: none; }
.result-box h1, .success-box h1 { font-size: 1.4rem; font-weight: 900; color: var(--gold); margin-bottom: 12px; }
.result-box p, .success-box p   { font-size: .9rem; color: var(--text-sub); line-height: 1.7; margin-bottom: 16px; }

/* Responsive */
@media(max-width: 768px) {
  .task-grid { grid-template-columns: 1fr 1fr; }
  .hero-ads  { padding: 40px 16px; }
  .hero-ads h1 { font-size: 1.4rem; }
  .withdraw-container, .verify-container { margin: 16px auto; }
}
@media(max-width: 480px) {
  .otp-inputs input { width: 44px; height: 52px; font-size: 1.2rem; }
  .waiting-buttons  { flex-direction: column; }
}

/* ── Login Container Fix (hilal) ── */
.login-container {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,168,67,.06) 0%, transparent 60%);
}
.login-card {
  background: var(--bg-card); border: 1px solid var(--border-gold);
  border-radius: var(--radius); padding: 36px 32px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow);
}
.login-logo { font-size: 2.5rem; text-align: center; margin-bottom: 8px; }
.login-card h1 { font-size: 1.4rem; font-weight: 900; color: var(--gold); text-align: center; margin-bottom: 4px; }
.login-sub { font-size: .85rem; color: var(--text-sub); text-align: center; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-sub); margin-bottom: 8px; }
.form-group input { width: 100%; padding: 13px 16px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-main); font-family: 'Cairo', sans-serif; font-size: .9rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.form-group input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,.15); }
.btn-login { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #0d0d14; border: none; border-radius: var(--radius-sm); font-family: 'Cairo', sans-serif; font-size: 1rem; font-weight: 800; cursor: pointer; transition: all .2s; margin-top: 8px; }
.btn-login:hover { filter: brightness(1.1); transform: translateY(-1px); }
.login-footer { text-align: center; margin-top: 20px; font-size: .85rem; color: var(--text-sub); }
.login-footer a { color: var(--gold); font-weight: 700; }
.alert-error { background: rgba(224,82,82,.12); border: 1px solid rgba(224,82,82,.3); color: #f08080; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 16px; text-align: center; }

/* ── Header Nav Fix ── */
header { position: sticky; top: 0; z-index: 100; background: rgba(13,13,20,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
header nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; max-width: 1200px; margin: 0 auto; }
header nav .logo { font-size: .95rem; font-weight: 800; color: var(--gold); text-decoration: none; }
header nav ul { list-style: none; display: flex; gap: 20px; }
header nav ul li a { color: var(--text-sub); text-decoration: none; font-size: .88rem; font-weight: 600; transition: color .2s; }
header nav ul li a:hover, header nav ul li a.active { color: var(--gold); }
