*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    margin: 0; min-height: 100vh; color: #fff;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; line-height: 1.7;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(200,166,110,.16), transparent 55%),
        radial-gradient(ellipse at 50% 110%, #151b4f 0%, transparent 70%),
        #03051a;
    background-attachment: fixed;
}
body::before { content: ""; position: fixed; inset: 0; background: url('/assets/img/pattern.svg') center / 160px; opacity: .04; pointer-events: none; }
.skip { position: absolute; top: 0; inset-inline-start: 0; transform: translateY(-200%); }
.skip:focus { transform: none; top: 8px; inset-inline-start: 8px; z-index: 10; background: #c8a66e; color: #03051a; padding: 8px 14px; border-radius: 4px; }
.wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 18px 28px; }

.topbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: .82rem; color: rgba(255,255,255,.55); }
.topbar .lang { color: #e6d3a6; text-decoration: none; border: 1px solid rgba(200,166,110,.4); padding: 3px 14px; border-radius: 99px; transition: background .25s; }
.topbar .lang:hover { background: rgba(200,166,110,.15); }

.hero { text-align: center; padding: 24px 0 18px; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: #c8a66e; }
.divider { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 14px 0 18px; }
.divider span { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, #c8a66e); }
.divider span:last-child { transform: scaleX(-1); }
.divider i { width: 7px; height: 7px; background: #c8a66e; transform: rotate(45deg); }
h1 {
    margin: 0 0 4px; font-family: 'El Messiri', 'Tajawal', serif; font-weight: 600; line-height: 1.25;
    font-size: clamp(2.2rem, 7vw, 3.6rem);
    background: linear-gradient(135deg, #ecdcb2, #c8a66e 55%, #a3834d); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.domain { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.5rem, 5vw, 2.2rem); letter-spacing: .08em; color: #e6d3a6; }
.lead { margin: 6px 0 0; color: rgba(255,255,255,.7); font-size: 1.05rem; }

.panel { background: rgba(255,255,255,.045); border: 1px solid rgba(200,166,110,.22); border-radius: 12px; padding: 22px; margin-top: 16px; backdrop-filter: blur(6px); }
.panel h2 { margin: 0 0 14px; font-size: 1.15rem; font-weight: 700; color: #ecdcb2; }
small { color: rgba(255,255,255,.55); font-size: .82rem; }
.muted { color: rgba(255,255,255,.5); font-size: .88rem; }

.price-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; text-align: center; }
.price-block, .leader-block { display: flex; flex-direction: column; gap: 4px; }
.price { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(2.6rem, 11vw, 4rem); line-height: 1; color: #ecdcb2; transition: transform .35s, color .35s; }
.price.bump { transform: scale(1.08); color: #fff; }
.leader { font-size: 1.15rem; letter-spacing: .06em; color: #fff; word-break: break-all; }

.timer-panel { text-align: center; }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.timer div { background: rgba(3,5,26,.6); border: 1px solid rgba(200,166,110,.2); border-radius: 8px; padding: 10px 4px; }
.timer b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.1; color: #e6d3a6; font-variant-numeric: tabular-nums; }
.timer span { font-size: .78rem; color: rgba(255,255,255,.55); }
.renew { margin: 8px 0 10px; color: rgba(255,255,255,.7); font-size: .92rem; }
.meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: .85rem; color: rgba(255,255,255,.55); }
.meta b { color: #e6d3a6; }

label { display: block; margin: 12px 0 6px; font-size: .9rem; color: rgba(255,255,255,.8); }
input[type=tel], input[type=text] {
    width: 100%; padding: 13px 14px; font: inherit; font-size: 1.05rem; color: #fff;
    background: rgba(3,5,26,.7); border: 1px solid rgba(200,166,110,.3); border-radius: 8px; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: #c8a66e; box-shadow: 0 0 0 3px rgba(200,166,110,.2); }
input::placeholder { color: rgba(255,255,255,.28); }
.amount-row { display: flex; align-items: center; gap: 8px; }
.amount-row span { font-size: 1.4rem; color: #c8a66e; }
.hint { display: block; margin-top: 6px; }
.hint b { color: #e6d3a6; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
button[type=submit] {
    width: 100%; margin-top: 18px; padding: 14px; font: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer; color: #03051a; border: 0; border-radius: 8px;
    background: linear-gradient(135deg, #ecdcb2, #c8a66e 60%, #a3834d); transition: transform .15s, filter .2s;
}
button[type=submit]:hover { filter: brightness(1.08); }
button[type=submit]:active { transform: scale(.985); }
button[type=submit]:disabled { opacity: .6; cursor: wait; }
.msg { min-height: 1.6em; margin: 10px 0 0; font-size: .92rem; }
.msg.ok { color: #7be0a3; }
.msg.err { color: #ff8f8f; }
.privacy { margin: 6px 0 0; font-size: .82rem; color: rgba(255,255,255,.5); }

.bids { list-style: none; margin: 0; padding: 0; }
.bids li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.07); }
.bids li:first-child .amt { color: #ecdcb2; font-weight: 700; }
.bids li.new { animation: flash 1.4s ease-out; }
.bids .who { letter-spacing: .08em; color: rgba(255,255,255,.8); word-break: break-all; }
.bids .amt { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; color: rgba(255,255,255,.7); }
.empty { margin: 0; text-align: center; }
@keyframes flash { from { background: rgba(200,166,110,.28); } to { background: transparent; } }

.about { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.55); font-size: .85rem; }
.about h2 { margin: 0 0 6px; font-size: .95rem; color: rgba(255,255,255,.7); }
.about p { margin: 0 0 6px; }
footer { margin-top: 18px; text-align: center; font-size: .78rem; color: rgba(255,255,255,.45); }
footer p { margin: 2px 0; }
footer a { color: #e6d3a6; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 520px) {
    .price-panel { grid-template-columns: 1fr; }
    .panel { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.rules { margin-top: 26px; padding: 22px; border: 1px solid rgba(200,166,110,.22); border-radius: 12px; background: rgba(255,255,255,.03); }
.rules h2 { margin: 0 0 12px; font-size: 1.1rem; color: #ecdcb2; }
.rules ol { margin: 0; padding-inline-start: 22px; color: rgba(255,255,255,.72); font-size: .92rem; }
.rules li { margin: 0 0 8px; padding-inline-start: 4px; }
.rules li::marker { color: #c8a66e; }
