/* ===== Huda Mall - Store Styles ===== */
:root {
    --brand: #667eea;
    --brand2: #764ba2;
    --dark: #1e1b3a;
    --dark2: #2a2652;
    --text: #374151;
    --muted: #6b7280;
    --bg: #f6f7fc;
    --card: #ffffff;
    --line: #e8e8f2;
    --gold: #f6b93b;
    --green: #1a9e5b;
    --red: #e53935;
    --radius: 16px;
    --shadow: 0 10px 34px rgba(30, 27, 90, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Heebo', 'Segoe UI', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ===== Top Bar / Nav ===== */
.topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--dark); }
.logo .dot {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
}
.topnav { display: flex; gap: 22px; font-weight: 600; font-size: 0.95rem; color: var(--dark); }
.topnav a:hover { color: var(--brand); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px; border-radius: 12px; font-weight: 700; font-size: 0.98rem;
    border: none; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; box-shadow: 0 8px 22px rgba(102,126,234,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(102,126,234,0.45); }
.btn-ghost { background: #fff; color: var(--dark); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
    background: radial-gradient(1100px 500px at 85% -10%, rgba(118,75,162,0.55), transparent 60%),
                radial-gradient(900px 500px at 10% 10%, rgba(102,126,234,0.55), transparent 60%),
                linear-gradient(135deg, #171432, #241f4d);
    color: #fff;
    padding: 90px 0 110px;
    position: relative;
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero .badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    padding: 7px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 700;
    margin-bottom: 20px;
}
.hero h1 { font-size: 2.9rem; line-height: 1.25; font-weight: 900; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(90deg, #a5b4ff, #e0aaff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: 1.15rem; color: #c9c6ea; max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .card-mock {
    background: #fff; color: var(--text); border-radius: 20px; padding: 22px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4); transform: rotate(2deg);
}
.mock-top { display: flex; gap: 8px; margin-bottom: 16px; }
.mock-top i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.mock-title { height: 14px; width: 45%; background: #e5e7f2; border-radius: 6px; margin-bottom: 10px; }
.mock-title.b { width: 75%; }
.mock-line { height: 9px; width: 100%; background: #eef0f8; border-radius: 5px; margin: 7px 0; }
.mock-line.s { width: 70%; }
.mock-btn { height: 30px; width: 120px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand2)); margin-top: 14px; }

/* ===== Stats ===== */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 20px; text-align: center; }
.stat b { display: block; font-size: 1.7rem; color: var(--dark); font-weight: 900; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ===== Sections ===== */
section.block { padding: 80px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.sec-head .kicker { color: var(--brand); font-weight: 800; letter-spacing: 0.4px; margin-bottom: 8px; }
.sec-head h2 { font-size: 2.1rem; color: var(--dark); font-weight: 900; margin-bottom: 12px; }
.sec-head p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; box-shadow: var(--shadow); transition: all 0.25s;
}
.card:hover { transform: translateY(-6px); }
.card .ic {
    width: 54px; height: 54px; border-radius: 14px; font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15));
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { color: var(--dark); font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ===== How it works ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 28px 28px; box-shadow: var(--shadow); text-align: center;
}
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -22px; right: 50%; transform: translateX(50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff; font-weight: 900; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(102,126,234,0.4);
}
.step h3 { color: var(--dark); margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ===== Pricing ===== */
.pricing { background: #fff; border-top: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.price-card {
    position: relative; background: var(--bg); border: 2px solid var(--line); border-radius: 20px;
    padding: 36px 30px; display: flex; flex-direction: column; transition: all 0.25s;
}
.price-card.hot { border-color: var(--brand); background: #fff; box-shadow: var(--shadow); }
.price-card .flag {
    position: absolute; top: -14px; right: 24px;
    background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff;
    padding: 5px 16px; border-radius: 50px; font-size: 0.78rem; font-weight: 800;
}
.price-card h3 { color: var(--dark); font-size: 1.3rem; }
.price-card .desc { color: var(--muted); margin: 8px 0 18px; font-size: 0.95rem; }
.price { font-size: 2.6rem; font-weight: 900; color: var(--dark); }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-note { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.features { list-style: none; margin: 22px 0 28px; display: grid; gap: 10px; }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.features li::before { content: "✓"; color: var(--green); font-weight: 900; }
.price-card .btn { margin-top: auto; }
.combined {
    grid-column: 1 / -1; background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    border: 1px dashed var(--brand); border-radius: 14px; padding: 16px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.combined b { color: var(--dark); }
.combined .tot { font-size: 1.4rem; font-weight: 900; color: var(--brand); }

/* ===== DNS steps ===== */
.dns-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: center; }
.dns-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow);
}
.dns-card ol { padding-right: 20px; display: grid; gap: 12px; }
.dns-card li { font-size: 0.97rem; }
.dns-ip {
    background: var(--dark); color: #b7e0ff; border-radius: 10px; padding: 14px 18px;
    font-family: Consolas, monospace; font-size: 1.15rem; letter-spacing: 1px;
    display: inline-block; margin-top: 6px;
}

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item summary {
    cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--dark);
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); font-weight: 800; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); }

/* ===== CTA ===== */
.cta-band {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff; border-radius: 24px; padding: 54px 40px; text-align: center;
    box-shadow: 0 24px 60px rgba(102,126,234,0.4);
}
.cta-band h2 { font-size: 2rem; font-weight: 900; margin-bottom: 10px; }
.cta-band p { opacity: 0.92; margin-bottom: 26px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); box-shadow: none; }

/* ===== Footer ===== */
footer { background: var(--dark); color: #b8b6d8; padding: 44px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
footer .logo { color: #fff; margin-bottom: 12px; }
footer p { font-size: 0.92rem; }
footer h4 { color: #fff; margin-bottom: 12px; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 30px; padding-top: 18px; text-align: center; font-size: 0.85rem; }

/* ===== Forms (register) ===== */
.form-page { padding: 60px 0; }
.form-card {
    max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
    border-radius: 20px; padding: 40px; box-shadow: var(--shadow);
}
.form-card h1 { color: var(--dark); font-size: 1.7rem; margin-bottom: 6px; }
.form-card .lead { color: var(--muted); margin-bottom: 26px; }
.frm { display: grid; gap: 18px; }
.frm-row { display: grid; gap: 6px; }
.frm-row label { font-weight: 700; color: var(--dark); font-size: 0.92rem; }
.frm-row label .req { color: var(--red); }
.frm-row input[type="text"], .frm-row input[type="email"], .frm-row input[type="tel"], .frm-row textarea, .frm-row select {
    width: 100%; padding: 13px 15px; border: 2px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: 1rem; color: var(--dark); background: #fbfbff; transition: all 0.2s;
}
.frm-row input:focus, .frm-row textarea:focus, .frm-row select:focus {
    outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(102,126,234,0.12);
}
.frm-row textarea { resize: vertical; min-height: 90px; }
.sub-hint { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.fieldset {
    border: 2px solid var(--line); border-radius: 14px; padding: 18px;
    display: grid; gap: 12px; background: #fbfbff;
}
.fieldset legend { font-weight: 800; color: var(--dark); padding: 0 8px; }
.opt {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: all 0.2s;
}
.opt:hover { border-color: var(--brand); }
.opt input { width: 18px; height: 18px; accent-color: var(--brand); }
.opt .opt-t { font-weight: 700; color: var(--dark); }
.opt .opt-d { font-size: 0.83rem; color: var(--muted); }
.opt .opt-p { margin-right: auto; font-weight: 900; color: var(--brand); }
.opt.checked { border-color: var(--brand); background: rgba(102,126,234,0.06); }
.summary-box {
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    border: 1px dashed var(--brand); border-radius: 14px; padding: 18px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.summary-box b { color: var(--dark); }
.summary-box .total { font-size: 1.7rem; font-weight: 900; color: var(--brand); }
.msg { padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; }
.msg.err { background: #fde8e8; color: #c62828; border: 1px solid #f5c6c6; }
.msg.ok { background: #e6f6ee; color: #157347; border: 1px solid #bfe6d1; }

/* ===== Thank you ===== */
.thankyou { padding: 70px 0; }
.ok-circle {
    width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px;
    background: linear-gradient(135deg, var(--green), #28b96b); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
    box-shadow: 0 14px 34px rgba(26,158,91,0.35);
}
.order-summary { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 24px 0; box-shadow: var(--shadow); }
.order-summary .row { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.order-summary .row:last-child { border-bottom: none; }
.order-summary .row.total { background: rgba(102,126,234,0.07); font-weight: 900; color: var(--dark); }
.order-summary .row.total .v { color: var(--brand); font-size: 1.25rem; }
.order-summary .lbl { color: var(--muted); }
.pay-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-top: 18px; box-shadow: var(--shadow); }
.pay-box h3 { color: var(--dark); margin-bottom: 10px; }

/* ===== Admin ===== */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 34px 20px 70px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.admin-top h1 { color: var(--dark); font-size: 1.5rem; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab {
    padding: 10px 20px; border-radius: 50px; background: #fff; border: 2px solid var(--line);
    font-weight: 700; color: var(--dark); cursor: pointer; font-size: 0.92rem;
}
.tab.active { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border-color: transparent; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.alert-bar { background: #fff4e5; border: 1px solid #ffd9a0; color: #9a5b00; border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; font-weight: 600; }
.alert-bar.danger { background: #fde8e8; border-color: #f5c6c6; color: #b3261e; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.tbl th { text-align: right; padding: 12px 10px; background: #f3f4fe; color: var(--dark); font-weight: 800; white-space: nowrap; }
table.tbl td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 800; }
.badge.pending { background: #fff4e5; color: #9a5b00; }
.badge.paid, .badge.active { background: #e6f6ee; color: #157347; }
.badge.cancelled { background: #f0f0f5; color: #6b7280; }
.badge.expired { background: #fde8e8; color: #b3261e; }
.exp-soon { background: #fff4e5; color: #9a5b00; font-weight: 800; }
.exp-ok { color: #157347; font-weight: 800; }
.exp-gone { color: #b3261e; font-weight: 800; }
.admin-form { display: grid; gap: 16px; max-width: 640px; }
.admin-form .frm-row label { font-size: 0.88rem; }
.guide { font-size: 0.96rem; display: grid; gap: 14px; }
.guide ol, .guide ul { padding-right: 22px; display: grid; gap: 8px; }
.guide code { background: #f3f4fe; padding: 2px 8px; border-radius: 6px; color: var(--brand2); font-size: 0.9rem; }
.guide pre { background: var(--dark); color: #b7e0ff; padding: 16px; border-radius: 12px; overflow-x: auto; font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-grid, .dns-grid, .price-grid { grid-template-columns: 1fr; }
    .cards, .steps { grid-template-columns: 1fr; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.1rem; }
    .foot-grid { grid-template-columns: 1fr; }
    .topnav { display: none; }
}
@media (max-width: 520px) {
    .hero { padding: 60px 0 70px; }
    .form-card { padding: 24px 18px; }
    .price { font-size: 2rem; }
}
