/* Dhimaze Store — Light Premium Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f8fc;
  --bg2: #ffffff;
  --card: #ffffff;
  --card-border: #e8eaf2;
  --gold: #4f46e5;
  --gold-light: #6366f1;
  --gold-soft: #eef0ff;
  --accent: #4f46e5;
  --accent-soft: #eef0ff;
  --text: #1a1d29;
  --muted: #6b7280;
  --green: #059669;
  --green-soft: #ecfdf5;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --radius: 18px;
  --shadow: 0 4px 24px rgba(20, 24, 60, 0.07);
  --shadow-lg: 0 12px 44px rgba(20, 24, 60, 0.11);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background:
    radial-gradient(800px 400px at 50% -5%, rgba(99,102,241,0.07) 0%, transparent 60%),
    radial-gradient(600px 350px at 90% 100%, rgba(79,70,229,0.05) 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 660px; margin: 0 auto; padding: 20px 18px 70px; }

/* Header */
header.brand { text-align: center; padding: 34px 0 10px; }
header.brand .logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 5px; color: var(--gold);
  text-transform: uppercase; font-weight: 700;
  background: var(--gold-soft); border: 1px solid #c7d0fe;
  padding: 7px 16px; border-radius: 30px;
}
header.brand h1 {
  font-size: 32px; margin-top: 14px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--text);
}
header.brand h1 .hl {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
header.brand p { color: var(--muted); font-size: 14px; margin-top: 10px; line-height: 1.6; }

/* Product cards */
.grid { display: grid; gap: 18px; margin-top: 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card .phead { display: flex; align-items: center; gap: 14px; }
.card h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.card .price {
  color: var(--gold); font-size: 26px; font-weight: 800; margin: 12px 0 4px;
  letter-spacing: -0.5px;
}
.card .stock { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-top: 5px; font-weight: 500; }
.card .stock .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.card .stock.ok { color: var(--green); }
.card .stock.ok .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(5,150,105,0.15); }
.card .stock.empty { color: var(--red); }
.card .stock.empty .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }
.card .desc { color: var(--muted); font-size: 13.5px; margin: 12px 0 18px; line-height: 1.65; }

/* Small product icons */
.piconimg {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(20,24,60,0.14);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Buttons */
.btn {
  display: block; width: 100%; text-align: center;
  background: linear-gradient(135deg, #818cf8 0%, var(--gold) 100%);
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0.3px;
  padding: 14px; border: none; border-radius: 13px; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(79,70,229,0.3);
  transition: all .22s ease;
}
.btn:hover { box-shadow: 0 8px 24px rgba(79,70,229,0.42); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn:disabled {
  opacity: 1; cursor: not-allowed; box-shadow: none;
  background: #eef0f5; color: #9aa1b5;
}
.btn.ghost {
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--card-border); box-shadow: none;
}

/* Forms */
.field { margin: 16px 0; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px; border-radius: 13px; font-size: 15px;
  background: var(--bg2); border: 1.5px solid var(--card-border); color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.13);
}
.err {
  color: var(--red); font-size: 13px; margin-top: 10px; display: none;
  background: var(--red-soft); border: 1px solid #fecaca;
  padding: 11px 15px; border-radius: 11px; font-weight: 500;
}

/* Payment */
.qrbox { text-align: center; padding: 12px 0; }
#qrcode {
  display: inline-block; padding: 16px; background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--card-border);
}
.amount {
  font-size: 27px; font-weight: 800; color: var(--gold);
  background: var(--gold-soft); border: 1.5px dashed var(--gold-light); border-radius: 13px;
  padding: 14px; margin: 16px 0; word-break: break-all; text-align: center;
  letter-spacing: -0.5px;
}
.countdown { font-size: 15px; color: var(--muted); text-align: center; margin: 12px 0; }
.countdown b { color: var(--text); font-family: monospace; font-size: 19px; }
.steps { font-size: 13.5px; color: var(--muted); line-height: 2; margin: 14px 0; }
.steps b { color: var(--text); }

/* Status */
.status { text-align: center; padding: 30px 12px; }
.status .big { font-size: 54px; }
.status h2 { margin: 12px 0 8px; font-size: 23px; font-weight: 800; letter-spacing: -0.4px; }
.status p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Account reveal box */
.akunbox {
  background: linear-gradient(165deg, var(--gold-soft), #fff);
  border: 1.5px solid var(--gold-light); border-radius: 15px;
  padding: 20px; margin: 18px 0; text-align: center;
  box-shadow: 0 6px 20px rgba(79,70,229,0.12);
}
.akunbox .alabel {
  color: var(--gold); font-size: 11px; letter-spacing: 2.5px;
  margin-bottom: 10px; font-weight: 700;
}
.akunbox .avalue {
  font-family: monospace; font-size: 16px; word-break: break-all;
  color: var(--text); line-height: 1.7; font-weight: 600;
}

/* Footer */
footer { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 40px; line-height: 2; }
footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
.divider {
  height: 1px; margin: 20px auto; max-width: 220px;
  background: linear-gradient(90deg, transparent, #c7d0fe, transparent);
}

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px;
  background: var(--green-soft); color: var(--green);
  border: 1px solid #a7e3c9;
  padding: 5px 13px; border-radius: 20px; text-transform: uppercase;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.92; }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Entrance animations */
header.brand { animation: fadeUp 0.7s ease both; }
.grid .card { animation: fadeUp 0.6s ease both; }
.grid .card:nth-child(1) { animation-delay: 0.08s; }
.grid .card:nth-child(2) { animation-delay: 0.16s; }
.grid .card:nth-child(3) { animation-delay: 0.24s; }
.sec-title, .sec-sub { animation: fadeUp 0.6s ease both; }

/* Floating product icons */
.piconimg { animation: floatY 4s ease-in-out infinite; }
.grid .card:nth-child(2) .piconimg { animation-delay: 0.7s; }
.grid .card:nth-child(3) .piconimg { animation-delay: 1.4s; }

/* Shimmering buttons */
.btn {
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}
.btn:disabled::after { display: none; }

/* Pulsing logo badge */
header.brand .logo { animation: pulseSoft 3s ease-in-out infinite; }

/* Status checkmark pop */
.status .big { animation: pulseSoft 2.2s ease-in-out infinite; }

/* QR box subtle glow pulse */
#qrcode { animation: pulseSoft 4s ease-in-out infinite; }

/* Countdown urgency */
.countdown b { transition: color 0.3s; }

/* Smooth card image zoom on hover */
.card:hover .piconimg { animation-play-state: paused; transform: scale(1.08) rotate(2deg); }
.piconimg { transition: transform 0.3s ease; }

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
.card .stock .dot { animation: blinkDot 1.4s ease-in-out infinite; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Main tabs */
.maintabs {
  display: flex; gap: 4px; margin: 18px 0 6px;
  background: var(--bg2); border: 1px solid var(--card-border);
  border-radius: 20px; padding: 6px;
  box-shadow: var(--shadow);
  position: sticky; top: 10px; z-index: 50;
}
.mtab-ind {
  position: absolute; top: 6px; bottom: 6px; left: 6px;
  width: calc((100% - 12px - 8px) / 3);
  background: linear-gradient(135deg, #6366f1, #3730a3);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(79,70,229,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
}
.maintabs { position: sticky; }
.mtab {
  flex: 1; border: none; background: transparent; cursor: pointer;
  padding: 12px 6px; border-radius: 14px; font-size: 13.5px; font-weight: 700;
  color: var(--muted); font-family: inherit; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: color 0.25s ease, transform 0.15s ease;
}
.mtab svg { transition: transform 0.25s ease; }
.mtab.on { color: #fff; background: transparent; box-shadow: none; }
.mtab.on svg { transform: scale(1.12); animation: tabPop 0.35s ease; }
.mtab:active { transform: scale(0.96); }
@keyframes tabPop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1.12); }
}
.tabpane { animation: fadeUp 0.45s ease both; }

/* Social cards */
.soscard {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
  padding: 18px 20px;
}
.soscard h2 { font-size: 16px; }
.sosicon {
  width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(20,24,60,0.18);
}
.sosarrow {
  margin-left: auto; font-size: 20px; color: var(--muted);
  font-weight: 700; transition: transform 0.2s ease;
}
.soscard:hover .sosarrow { transform: translateX(4px); color: var(--accent); }

/* Order steps timeline */
.ordersteps { display: flex; flex-direction: column; gap: 0; }
.ostep { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.ostep:last-child { padding-bottom: 2px; }
.ostep::before {
  content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px;
  width: 2px; background: linear-gradient(180deg, var(--accent), rgba(79,70,229,0.12));
  border-radius: 2px;
}
.ostep:last-child::before { display: none; }
.onum {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #3730a3);
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(79,70,229,0.35);
  position: relative; z-index: 1;
}
.obody { padding-top: 2px; }
.obody b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.obody span { font-size: 13px; color: var(--muted); line-height: 1.55; }
.obody span b { display: inline; font-size: 13px; }

/* Feature pills */
.featurepills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 12px 0 4px;
}
.fpill {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid #dbe0ff;
  padding: 7px 14px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 5px;
}

/* Elegant footer */
.footerhelp {
  font-size: 13px; color: var(--muted); font-weight: 600;
  margin-bottom: 12px; letter-spacing: 0.2px;
}
.footerbtns { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.fbtn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; text-decoration: none;
  padding: 10px 20px; border-radius: 30px; color: #fff !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fbtn:hover { transform: translateY(-2px); }
.fbtn.tg { background: linear-gradient(135deg, #37aee2, #1e96c8); box-shadow: 0 4px 14px rgba(55,174,226,0.35); }
.fbtn.wa { background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 4px 14px rgba(37,211,102,0.35); }
.footercopy { font-size: 12px; color: var(--muted); }

/* Info box */
.infobox {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, #eef0ff, #f8faff);
  border: 1px solid #dbe0ff; border-radius: 14px;
  padding: 14px 16px; margin-top: 14px;
}
.infoicon {
  font-size: 20px; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 12px;
  background: #fff; border: 1px solid #dbe0ff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(79,70,229,0.1);
}
.infotext { flex: 1; min-width: 0; }
.infotitle { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.infodesc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.infodesc strong { color: var(--text); }

/* Section titles */
.sec-title {
  font-size: 21px; font-weight: 800; text-align: center;
  margin: 28px 0 6px; letter-spacing: -0.4px; color: var(--text);
}
.sec-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 4px; }

/* Admin */
table.admin { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 14px; }
table.admin th, table.admin td { padding: 10px 8px; border-bottom: 1px solid var(--card-border); text-align: left; }
table.admin th { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
textarea.stock {
  width: 100%; min-height: 130px; padding: 14px; border-radius: 13px; font-size: 13px;
  background: var(--bg2); border: 1.5px solid var(--card-border);
  color: var(--text); font-family: monospace;
}
.tabs { display: flex; gap: 10px; margin: 18px 0; }
.tabs a {
  flex: 1; text-align: center; padding: 12px; border-radius: 13px; font-size: 14px; font-weight: 600;
  background: var(--bg2); color: var(--muted); text-decoration: none;
  border: 1.5px solid var(--card-border); transition: all .2s ease;
}
.tabs a.on {
  background: var(--gold-soft); color: var(--gold); border-color: var(--gold-light);
}
h2.sec { font-size: 17px; margin: 6px 0 4px; font-weight: 700; }
p.hint { color: var(--muted); font-size: 13px; margin: 8px 0 14px; line-height: 1.7; }
