/* ITKOM UI — shared by the store, partner area and other site pages.
   Same tokens and components as /style.css (main site): square corners, navy +
   teal, uppercase mono labels. Interactions stay quiet: colour and border
   changes, no movement beyond 1px, nothing when reduced motion is requested. */
:root {
    --navy: #13343B; --navy-deep: #0d262b; --teal: #32B8C6; --teal-soft: #E8F7F9;
    --white: #FFFFFF; --off-white: #F8FAFC; --slate: #475569; --muted: #94A3B8; --border: #E2E8F0;
    --ok: #0F7B4F; --ok-soft: #E8F5EE; --warn: #9A5B00; --warn-soft: #FFF5E5; --err: #B42318; --err-soft: #FDEDEC;
    --font-latin: 'Plus Jakarta Sans', sans-serif; --font-ar: 'IBM Plex Sans Arabic', sans-serif; --font-mono: 'JetBrains Mono', monospace;
    --t: 150ms ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-latin); color: var(--navy); background: var(--off-white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
[lang="ar"] body { font-family: var(--font-ar); }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.border-top { border-top: 1px solid var(--border); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--white); }

/* Typography */
.eyebrow { color: var(--teal); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; }
.mono { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--slate); }
.h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -2px; margin: 16px 0; }
.h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin: 10px 0 14px; }
.h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.lead { font-size: 18px; color: var(--slate); max-width: 640px; }
.muted { color: var(--slate); }
.small { font-size: 13px; }

/* Header (same as the main site) */
.header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header__bar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header__logo img { height: 32px; display: block; }
.header__nav { display: flex; align-items: center; gap: 28px; }
.header__nav a { text-decoration: none; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; transition: color var(--t); }
.header__nav a:hover { color: var(--teal); }
.lang-btn { background: none; border: none; cursor: pointer; color: var(--slate); font-family: var(--font-mono); font-size: 11px; padding: 4px 6px; opacity: 0.55; transition: opacity var(--t); }
.lang-btn:hover { opacity: 0.9; }
.lang-btn.active { opacity: 1; font-weight: 800; color: var(--navy); }
@media (max-width: 760px) { .header__nav .hide-sm { display: none; } .header__nav { gap: 14px; } }

/* Buttons (main site) */
.btn { padding: 16px 32px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
    cursor: pointer; border: 1px solid transparent; background: none; color: inherit; font-family: inherit; transition: background var(--t), color var(--t), border-color var(--t); }
.btn--solid { background: var(--navy); color: var(--white); }
.btn--solid:hover { background: var(--teal); }
.btn--line { border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--white); }
.btn--light { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--navy); }
.btn--sm { padding: 10px 18px; font-size: 11px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.is-busy { opacity: 0.7; cursor: progress; }

/* Surfaces */
.card { background: var(--white); border: 1px solid var(--border); padding: 32px; }
.card--accent { border-left: 4px solid var(--teal); }
[dir="rtl"] .card--accent { border-left: 1px solid var(--border); border-right: 4px solid var(--teal); }
.stat-box { background: var(--off-white); padding: 22px 26px; border-left: 4px solid var(--teal); }
[dir="rtl"] .stat-box { border-left: 0; border-right: 4px solid var(--teal); }
.stat-val { font-size: 26px; font-weight: 800; display: block; line-height: 1; }
.stat-lbl { font-size: 10px; text-transform: uppercase; color: var(--slate); font-family: var(--font-mono); margin-top: 8px; display: block; letter-spacing: 1px; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--slate); }
.field > span em { font-style: normal; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 13px 14px; border: 1px solid var(--border); background: var(--white); color: var(--navy); width: 100%; border-radius: 0; transition: border-color var(--t); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #CBD5E1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field.has-error input, .field.has-error select { border-color: var(--err); }
.field .hint { font-size: 12px; color: var(--muted); }
.field.has-error .hint { color: var(--err); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* Segmented choice (radio cards) */
.choice { display: grid; gap: 12px; }
.choice--3 { grid-template-columns: repeat(3, 1fr); }
.choice--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .choice--3, .choice--2 { grid-template-columns: 1fr; } }
.choice label { display: block; border: 1px solid var(--border); background: var(--white); padding: 18px 20px; cursor: pointer; transition: border-color var(--t), background var(--t); position: relative; }
.choice label:hover { border-color: #CBD5E1; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice input:checked + .choice__body { color: var(--navy); }
.choice label:has(input:checked) { border-color: var(--navy); background: var(--off-white); box-shadow: inset 0 3px 0 var(--teal); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.choice__title { font-weight: 800; font-size: 15px; display: block; }
.choice__text { font-size: 13px; color: var(--slate); display: block; margin-top: 4px; }
.choice__meta { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--teal); display: block; margin-top: 10px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--slate); font-weight: 700; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--off-white); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .c { text-align: center; }
.table tbody tr { transition: background var(--t); }
.table tbody tr:hover { background: #FBFCFD; }

/* Badges and messages */
.badge { display: inline-block; padding: 2px 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; border: 1px solid var(--border); color: var(--slate); background: var(--white); white-space: nowrap; }
.badge--teal { border-color: transparent; background: var(--teal-soft); color: var(--navy); }
.badge--ok { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.badge--warn { border-color: transparent; background: var(--warn-soft); color: var(--warn); }
.badge--err { border-color: transparent; background: var(--err-soft); color: var(--err); }
.alert { padding: 14px 16px; border-left: 4px solid var(--err); background: var(--err-soft); font-size: 14px; }
.alert--ok { border-color: var(--ok); background: var(--ok-soft); }
.alert--info { border-color: var(--teal); background: var(--teal-soft); }
[dir="rtl"] .alert { border-left: 0; border-right: 4px solid var(--err); }
[dir="rtl"] .alert--ok { border-right-color: var(--ok); }
[dir="rtl"] .alert--info { border-right-color: var(--teal); }

/* Loading */
.skeleton { background: linear-gradient(90deg, #EEF2F6 25%, #F6F8FA 50%, #EEF2F6 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; min-height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 40px; height: 40px; border: 3px solid var(--teal-soft); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer (main site) */
.footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--white); font-size: 13px; color: var(--slate); }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
