/* ==========================================================================
   AF NOKOS — Matte Dark & Warm Sunset UI (nokos.afstore.biz.id)
   ========================================================================== */
:root {
  --bg-page: #0D0D0F;
  --bg-surface: #131316;
  --bg-surface-2: #1A1A1F;
  --bg-input: #1E1E24;
  --bg-input-focus: #23232B;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 130, 75, 0.42);
  --text-main: #F4F4F6;
  --text-muted: #8E8E98;
  --text-dim: #6B6B76;
  --grad-sunset: linear-gradient(90deg, #9B28B0 0%, #E1306C 44%, #FF6B2B 100%);
  --grad-sunset-hover: linear-gradient(90deg, #A932BE 0%, #EC3B77 44%, #FF7B40 100%);
  --emerald: #34D399;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(52, 211, 153, 0.3);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(circle at 20% 0%, rgba(155, 40, 176, 0.09), transparent 40%),
              radial-gradient(circle at 85% 10%, rgba(255, 107, 43, 0.08), transparent 42%),
              var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); }

/* ==========================================================================
   SCREEN 1: AUTH-FIRST GATE (MOCKUP ATM)
   ========================================================================== */
.auth-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 392px;
  padding: 58px 28px 34px;
  border-radius: 30px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.auth-corner-arcs {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 168px;
  height: 168px;
  pointer-events: none;
  opacity: 0.92;
}

.auth-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(255, 107, 43, 0.45);
  box-shadow: 0 0 12px rgba(255, 107, 43, 0.35);
}

.auth-brand-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.auth-title {
  margin: 0 0 8px 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.auth-subtitle {
  margin: 0 0 30px 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-register-fields {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.pill-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pill-input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg-input);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pill-input::placeholder {
  color: var(--text-dim);
}

.pill-input:focus {
  background: var(--bg-input-focus);
  border-color: rgba(255, 107, 43, 0.42);
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.12);
}

.pill-input-icon,
.pill-input-btn {
  position: absolute;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 4px;
}

.pill-input-btn {
  cursor: pointer;
  transition: color 0.18s ease;
}

.pill-input-btn:hover {
  color: #FFFFFF;
}

.auth-helper-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
  margin-bottom: 4px;
}

.auth-helper-link {
  background: none;
  border: none;
  padding: 2px 4px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-helper-link strong {
  color: #FF8C5A;
  font-weight: 700;
}

.auth-cta-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: var(--grad-sunset);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(225, 48, 108, 0.28);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-cta-btn:hover:not(:disabled) {
  background: var(--grad-sunset-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 107, 43, 0.34);
}

.auth-cta-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 26px 0 18px;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.auth-google-section {
  display: flex;
  justify-content: center;
}

.auth-google-pill-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
}

.google-gsi-overlay-slot {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.001;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.google-gsi-overlay-slot:empty {
  pointer-events: none;
}

.auth-google-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 176px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: #17171B;
  border: 1px solid rgba(255, 107, 43, 0.42);
  color: #F4F4F6;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.auth-google-pill:hover {
  background: #1F1F25;
  border-color: rgba(255, 107, 43, 0.75);
  transform: translateY(-1px);
}

.auth-back-store {
  margin-top: 26px;
  text-align: center;
}

.auth-back-store a {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.18s ease;
}

.auth-back-store a:hover {
  color: #FF8C5A;
}

/* ==========================================================================
   SCREEN 2: DASHBOARD MEMBER AF NOKOS
   ========================================================================== */
.dash-screen {
  min-height: 100dvh;
  padding-bottom: 48px;
}

.dash-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 13, 16, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.48), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.dash-header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dash-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 107, 43, 0.42);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: block;
  flex-shrink: 0;
}

.dash-brand-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.dash-brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.1));
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #6EE7B7;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.dash-balance-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.28);
}

.bal-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--emerald);
}

.bal-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.22);
  color: #A7F3D0;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

.dash-balance-pill:hover .bal-plus {
  transform: rotate(90deg) scale(1.08);
  background: rgba(52, 211, 153, 0.36);
}

.dash-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface-2);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.dash-icon-btn:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.22);
}

.dash-icon-btn.danger:hover {
  color: #FDA4AF;
  border-color: rgba(244, 63, 94, 0.45);
}

.dash-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0%, rgba(255, 255, 255, 0.008) 100%), #131317;
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.active-otp-card {
  border-color: rgba(52, 211, 153, 0.42);
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.13), transparent 55%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%), #131317;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.48), 0 0 36px rgba(16, 185, 129, 0.08), inset 0 1px 0 rgba(52, 211, 153, 0.22);
}

.dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dash-card-title {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
}

.dash-card-sub {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.dash-topup-btn {
  padding: 9px 17px;
  border-radius: 999px;
  border: none;
  background: var(--grad-sunset);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.dash-topup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 107, 43, 0.42);
}

.dash-ghost-btn {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.dash-ghost-btn:hover {
  border-color: rgba(255, 130, 75, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

/* Pickers & Recessed Glass Panels */
.picker-block {
  margin-bottom: 16px;
}

.picker-panel {
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(10, 10, 13, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--grad-sunset);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  margin-right: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(225, 48, 108, 0.35);
}

.picker-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.picker-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.81rem;
  font-weight: 700;
  color: #ECECF2;
}

.picker-selected-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 43, 0.14);
  border: 1px solid rgba(255, 107, 43, 0.32);
  font-size: 0.71rem;
  font-weight: 700;
  color: #FFB28E;
}

.picker-count-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.search-pill-input {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg-input);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  outline: none;
  margin-bottom: 10px;
}

.search-pill-input:focus {
  border-color: rgba(255, 107, 43, 0.45);
}

.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 43, 0.35) transparent;
}

.chips-grid::-webkit-scrollbar,
.mutations-scroll::-webkit-scrollbar {
  width: 6px;
}

.chips-grid::-webkit-scrollbar-thumb,
.mutations-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 130, 75, 0.32);
  border-radius: 999px;
}

.chips-grid::-webkit-scrollbar-track,
.mutations-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.pick-chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface-2);
  color: #D4D4DC;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.pick-chip:hover {
  border-color: rgba(255, 130, 75, 0.45);
  color: #FFFFFF;
}

.pick-chip.active {
  background: var(--grad-sunset);
  border-color: transparent;
  color: #FFFFFF;
  font-weight: 700;
}

.pick-chip.more {
  border-style: dashed;
  color: #FF9A6C;
}

.dark-select {
  width: 100%;
  max-width: 320px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-input);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.82rem;
}

/* Server Products Stack */
.servers-section {
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.products-stack,
.orders-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.empty-state {
  padding: 18px 14px;
  border-radius: 14px;
  background: var(--bg-surface-2);
  border: 1px dashed var(--border-soft);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.server-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  font-weight: 700;
  color: #FFFFFF;
}

.server-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
}

.server-tag.cheap {
  background: rgba(255, 107, 43, 0.16);
  color: #FF9A6C;
}

.server-tag.stock {
  background: var(--emerald-bg);
  color: var(--emerald);
}

.server-tag.op {
  background: rgba(255, 255, 255, 0.07);
  color: #C4C4CE;
}

.server-meta-line {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-meta-line .ok { color: var(--emerald); font-weight: 600; }
.server-meta-line .out { color: #FB7185; font-weight: 600; }

.server-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.server-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.server-price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.96rem;
  font-weight: 800;
  color: #FFFFFF;
}

.buy-pill-btn {
  padding: 8px 15px;
  border-radius: 999px;
  border: none;
  background: var(--grad-sunset);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.buy-pill-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 107, 43, 0.38);
}

.buy-pill-btn.topup {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FCD34D;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.14);
}

.buy-pill-btn.topup:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.24);
  border-color: rgba(252, 211, 77, 0.75);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.28);
}

.buy-pill-btn.qris-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E4E4EB;
  box-shadow: none;
}

.buy-pill-btn.qris-outline:hover:not(:disabled) {
  border-color: rgba(255, 130, 75, 0.5);
  background: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
}

.buy-pill-btn:disabled {
  background: #2A2A32;
  border-color: transparent;
  color: var(--text-dim);
  box-shadow: none;
  cursor: not-allowed;
}

.show-more-btn {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 130, 75, 0.38);
  background: rgba(255, 107, 43, 0.06);
  color: #FFB28E;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* Order Card */
.order-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%), #18181D;
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.order-item.has-otp {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(16, 185, 129, 0.12);
}

.order-top,
.order-phone-row,
.order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.order-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-right: 6px;
}

.order-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
}

.order-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
}

.order-badge.waiting { background: rgba(245, 158, 11, 0.16); color: #FCD34D; }
.order-badge.success { background: var(--emerald-bg); color: var(--emerald); }
.order-badge.canceled { background: rgba(244, 63, 94, 0.15); color: #FDA4AF; }

.order-status-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-timer-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 107, 43, 0.16);
  border: 1px solid rgba(255, 107, 43, 0.35);
  color: #FFAD85;
}

.order-timer-pill.urgent {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.45);
  color: #FDA4AF;
}

.picker-actions-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.refresh-mini-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 43, 0.35);
  background: rgba(255, 107, 43, 0.12);
  color: #FFB28E;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.refresh-mini-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.phone-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
}

.copy-mini-btn {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #23232A;
  color: #F4F4F6;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-mini-btn.emerald {
  border-color: var(--emerald-border);
  background: var(--emerald-bg);
  color: var(--emerald);
}

.otp-panel {
  padding: 10px 12px;
  border-radius: 12px;
  background: #121216;
  border: 1px dashed var(--border-soft);
}

.otp-panel.ready {
  border-style: solid;
  border-color: var(--emerald-border);
  background: rgba(16, 185, 129, 0.08);
}

.otp-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.otp-code-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.otp-code-text {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: 0.06em;
}

.order-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.act-btn {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #23232A;
  color: #E4E4EA;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.act-btn.finish { border-color: var(--emerald-border); color: var(--emerald); }
.act-btn.replace { border-color: rgba(255, 107, 43, 0.45); background: rgba(255, 107, 43, 0.14); color: #FFB28E; }
.act-btn.cancel { border-color: rgba(244, 63, 94, 0.4); color: #FDA4AF; }

/* Promo SC Card */
.promo-sc-card {
  padding: 22px;
  border-radius: 24px;
  background: radial-gradient(circle at top right, rgba(225, 48, 108, 0.16), transparent 55%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0%, rgba(255, 255, 255, 0.008) 100%), #131317;
  border: 1px solid rgba(255, 107, 43, 0.32);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.promo-sc-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 107, 43, 0.14);
  color: #FF9A6C;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.promo-sc-title {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
}

.promo-sc-desc {
  margin: 0 0 14px 0;
  font-size: 0.8rem;
  color: #B4B4BE;
  line-height: 1.55;
}

.promo-sc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.promo-btn-primary,
.promo-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.promo-btn-primary {
  background: var(--grad-sunset);
  color: #FFFFFF;
}

.promo-btn-secondary {
  border: 1px solid var(--border-soft);
  background: var(--bg-surface-2);
  color: #F4F4F6;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active { display: flex; }

.modal-card {
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-body { padding: 18px 20px 22px; }

.preset-helper {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.preset-chip {
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface-2);
  color: #E4E4EA;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.preset-chip.active {
  border-color: rgba(255, 107, 43, 0.65);
  background: rgba(255, 107, 43, 0.16);
  color: #FFAE8A;
}

.qris-context-banner {
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 107, 43, 0.12);
  border: 1px solid rgba(255, 107, 43, 0.28);
  color: #FFD1BA;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: left;
}

.qris-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timer-accent { color: #FF9A6C; font-weight: 700; }

.qris-frame {
  display: inline-block;
  padding: 10px;
  border-radius: 14px;
  background: #FFFFFF;
  margin-bottom: 12px;
}

.qris-frame img { width: 210px; height: 210px; display: block; }

.qris-total {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald);
}

.qris-sub { font-size: 0.74rem; color: var(--text-muted); margin-top: 4px; }
.qris-note { font-size: 0.74rem; color: #B4B4BE; line-height: 1.5; margin-top: 10px; }

.mutations-scroll { max-height: 62vh; overflow-y: auto; }

.mut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.mut-note { font-size: 0.78rem; font-weight: 600; color: #F4F4F6; }
.mut-date { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }
.mut-amt { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 800; white-space: nowrap; }
.mut-amt.plus { color: var(--emerald); }
.mut-amt.minus { color: #FDA4AF; }

/* Toast */
.toast-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: #202026;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-bar.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 480px) {
  .auth-screen { padding: 14px; }
  .auth-card { padding: 52px 22px 28px; border-radius: 26px; }
  .dash-card { padding: 16px; border-radius: 16px; }
  .pill-input, .search-pill-input { font-size: 16px; }
}

/* ==========================================================================
   MOTION, MICRO-INTERACTIONS & SKELETON SHIMMER (60FPS GPU-FRIENDLY)
   ========================================================================== */
@keyframes afFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes afArcFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.88; }
  50% { transform: translate(-3px, 3px) scale(1.03); opacity: 1; }
}

@keyframes afPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 43, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(255, 107, 43, 0); }
}

@keyframes afShimmer {
  0% { background-position: -220% 0; }
  100% { background-position: 220% 0; }
}

.auth-card {
  animation: afFadeSlideUp 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-corner-arcs {
  animation: afArcFloat 7s ease-in-out infinite;
}

.auth-brand-dot,
.bal-dot {
  animation: afPulseGlow 2.4s ease-in-out infinite;
}

.dash-card,
.promo-sc-card {
  animation: afFadeSlideUp 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.server-row {
  transition: transform 0.18s ease, border-color 0.2s ease, background-color 0.2s ease;
  animation: afFadeSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--row-idx, 0) * 35ms);
}

.server-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 130, 75, 0.28);
  background: #1E1E24;
}

.auth-cta-btn,
.auth-google-pill,
.buy-pill-btn,
.pick-chip,
.act-btn,
.refresh-mini-btn,
.copy-mini-btn,
.dash-balance-pill,
.dash-topup-btn {
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.auth-cta-btn:active,
.auth-google-pill:active,
.buy-pill-btn:active,
.pick-chip:active,
.act-btn:active,
.refresh-mini-btn:active,
.copy-mini-btn:active {
  transform: scale(0.97);
}

.modal-backdrop.active .modal-card {
  animation: afFadeSlideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.order-badge.waiting {
  position: relative;
  padding-left: 18px;
}

.order-badge.waiting::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #FCD34D;
  transform: translateY(-50%);
  animation: afPulseGlow 1.8s ease-in-out infinite;
}

.otp-panel.ready {
  animation: afFadeSlideUp 0.3s ease both;
}

.skeleton-row {
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(90deg, #17171C 25%, #23232C 50%, #17171C 75%);
  background-size: 200% 100%;
  animation: afShimmer 1.3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   TRUST STRIP, QUICK APPS BAR, SOUND TOGGLE & FOOTER KOMUNITAS
   ========================================================================== */
.auth-social-mini {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.mini-soc-link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  color: #E8E8EF;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.mini-soc-link .soc-emoji {
  font-size: 0.92rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px currentColor);
}

.mini-soc-link:hover {
  transform: translateY(-2px);
  color: #FFFFFF;
}

.mini-soc-link:active {
  transform: scale(0.97);
}

.mini-soc-link.wa {
  background: rgba(16, 185, 129, 0.11);
  border-color: rgba(52, 211, 153, 0.42);
  color: #A7F3D0;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.16);
}
.mini-soc-link.wa:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.75);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.34);
}

.mini-soc-link.tele {
  background: rgba(56, 189, 248, 0.11);
  border-color: rgba(56, 189, 248, 0.42);
  color: #BAE6FD;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.16);
}
.mini-soc-link.tele:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.34);
}

.mini-soc-link.yt {
  background: rgba(244, 63, 94, 0.11);
  border-color: rgba(244, 63, 94, 0.42);
  color: #FECDD3;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.16);
}
.mini-soc-link.yt:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.75);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.34);
}

.mini-soc-link.info {
  background: rgba(255, 107, 43, 0.12);
  border-color: rgba(255, 107, 43, 0.45);
  color: #FFD1BA;
  box-shadow: 0 0 14px rgba(255, 107, 43, 0.18);
}
.mini-soc-link.info:hover {
  background: rgba(255, 107, 43, 0.22);
  border-color: rgba(255, 107, 43, 0.8);
  box-shadow: 0 0 20px rgba(255, 107, 43, 0.38);
}

.dash-icon-btn.sound-on {
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--emerald);
}

.dash-icon-btn.sound-off {
  color: var(--text-dim);
  opacity: 0.72;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%), #131317;
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: afFadeSlideUp 0.36s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.trust-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #FF6B2B;
  box-shadow: 0 0 10px rgba(255, 107, 43, 0.55);
}

.trust-dot.emerald {
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.55);
}

.trust-dot.purple {
  background: #C084FC;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.55);
}

.trust-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #FFFFFF;
}

.trust-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.quick-apps-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.quick-app-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 43, 0.28);
  background: rgba(255, 107, 43, 0.08);
  color: #FFD1BA;
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.quick-app-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 107, 43, 0.6);
  background: rgba(255, 107, 43, 0.18);
  color: #FFFFFF;
}

.quick-app-btn.active {
  background: var(--grad-sunset);
  border-color: transparent;
  color: #FFFFFF;
}

.community-footer {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0%, rgba(255, 255, 255, 0.008) 100%), #131317;
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.community-head {
  margin-bottom: 14px;
}

.community-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #FFFFFF;
}

.community-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.comm-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  color: #F4F4F6;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.comm-card:hover {
  transform: translateY(-2px);
}

.comm-card.wa {
  color: #6EE7B7;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.1);
}
.comm-card.wa:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.25);
}
.comm-card.tele {
  color: #7DD3FC;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.1);
}
.comm-card.tele:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.25);
}
.comm-card.yt {
  color: #FDA4AF;
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.28);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.1);
}
.comm-card.yt:hover {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.65);
  box-shadow: 0 0 22px rgba(244, 63, 94, 0.25);
}
.comm-card.info {
  color: #FFB28E;
  background: rgba(255, 107, 43, 0.09);
  border-color: rgba(255, 107, 43, 0.3);
  box-shadow: 0 0 14px rgba(255, 107, 43, 0.12);
}
.comm-card.info:hover {
  background: rgba(255, 107, 43, 0.18);
  border-color: rgba(255, 107, 43, 0.7);
  box-shadow: 0 0 22px rgba(255, 107, 43, 0.28);
}

.comm-name {
  font-size: 0.77rem;
  font-weight: 800;
  color: #FFFFFF;
}

.comm-meta {
  font-size: 0.67rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.community-legal {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.71rem;
  color: var(--text-dim);
}

.community-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.community-legal a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   UNIVERSAL INTERACTIVE BUTTONS: SHEEN SWEEP, SPRING LIFT & CLICK RIPPLE
   ========================================================================== */
@keyframes afRippleWave {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.48;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.4);
    opacity: 0;
  }
}

.auth-cta-btn,
.auth-google-pill,
.buy-pill-btn,
.pick-chip,
.act-btn,
.refresh-mini-btn,
.copy-mini-btn,
.dash-topup-btn,
.dash-ghost-btn,
.dash-balance-pill,
.dash-icon-btn,
.preset-chip,
.show-more-btn,
.promo-btn-primary,
.comm-card,
.mini-soc-link {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.2s ease,
              background-color 0.2s ease,
              color 0.2s ease;
}

.auth-cta-btn::after,
.buy-pill-btn::after,
.dash-topup-btn::after,
.promo-btn-primary::after,
.mini-soc-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 75%;
  height: 100%;
  background: linear-gradient(115deg, transparent 15%, rgba(255, 255, 255, 0.24) 50%, transparent 85%);
  transform: skewX(-18deg);
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.auth-cta-btn:hover:not(:disabled)::after,
.buy-pill-btn:hover:not(:disabled)::after,
.dash-topup-btn:hover:not(:disabled)::after,
.promo-btn-primary:hover::after,
.mini-soc-link:hover::after {
  left: 140%;
}

.pick-chip:hover:not(:disabled),
.act-btn:hover:not(:disabled),
.refresh-mini-btn:hover:not(:disabled),
.copy-mini-btn:hover:not(:disabled),
.dash-ghost-btn:hover:not(:disabled),
.dash-icon-btn:hover:not(:disabled),
.preset-chip:hover:not(:disabled),
.show-more-btn:hover:not(:disabled),
.promo-btn-primary:hover {
  transform: translateY(-2px);
}

.pick-chip:hover:not(.active) {
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.32), 0 0 12px rgba(255, 107, 43, 0.14);
}

.pick-chip.active {
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.32);
}

.act-btn:hover:not(:disabled),
.copy-mini-btn:hover:not(:disabled),
.refresh-mini-btn:hover:not(:disabled) {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.btn-ripple-wave {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 145, 90, 0.2) 70%, transparent 100%);
  pointer-events: none;
  animation: afRippleWave 0.54s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}