/* ================================================================
   ARK TOOLKIT — Extensions v3
   Sections: 26-30
   ================================================================ */

/* ----------------------------------------------------------------
   26. BADGE / PILL REMOVAL
   ---------------------------------------------------------------- */
.section-kicker { display: none !important; }

/* ----------------------------------------------------------------
   27. CONTACT — SUPPORT CHANNEL LIST
   ---------------------------------------------------------------- */
.support-channels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}
.support-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.022);
  transition: border-color .2s, background .2s;
}
.support-channel-item:hover { border-color: var(--line-2); background: rgba(255,255,255,.038); }
.support-channel-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(76,142,247,.22);
  background: rgba(76,142,247,.1);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.support-channel-icon svg { width: 16px; height: 16px; fill: var(--blue-2); }
.support-channel-item strong { display: block; font-size: .94rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 3px; }
.support-channel-item span { font-size: .84rem; color: var(--muted); line-height: 1.5; }

/* ----------------------------------------------------------------
   28. CHECKOUT V2 — PREMIUM REBUILD
   ---------------------------------------------------------------- */
.checkout-hero { padding: 44px 0 0; }
.checkout-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: .9;
  letter-spacing: -.08em;
  margin-bottom: 10px;
  animation: titleFade .8s var(--ease-out) both;
}
.co-section-label {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 24px 0 10px;
}

/* Plan selector */
.plan-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.plan-option {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.024);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.plan-option:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.plan-option.active {
  border-color: rgba(76,142,247,.65);
  background: linear-gradient(160deg, rgba(76,142,247,.16), rgba(76,142,247,.06));
  box-shadow: 0 0 0 3px rgba(76,142,247,.12);
}
.plan-option-period { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 4px; }
.plan-option.active .plan-option-period { color: var(--blue-2); }
.plan-option-name { font-size: .96rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; }
.plan-option-note { font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* Checkout inner grid */
.checkout-inner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 20px;
  align-items: start;
  margin-top: 12px;
}
.co-form-side { display: flex; flex-direction: column; gap: 16px; }

/* Checkout blocks (left side panels) */
.checkout-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  padding: 28px 30px;
}
.co-block-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 20px;
}
.co-step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 900;
  flex: 0 0 auto;
}
.co-fields { display: flex; flex-direction: column; gap: 14px; }

/* Payment method tabs */
.pmt-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.pmt-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  transition: border-color .2s, background .2s, color .2s;
}
.pmt-opt:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); color: var(--text); }
.pmt-opt.active { border-color: rgba(76,142,247,.55); background: rgba(76,142,247,.1); color: var(--text); }
.pmt-opt svg { width: 20px; height: 20px; fill: currentColor; }
.pmt-pane { display: flex; flex-direction: column; gap: 12px; }

/* Card visual */
.card-visual {
  background: linear-gradient(135deg, #0c1929 0%, #1a3058 55%, #0a1421 100%);
  border-radius: 16px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  margin-bottom: 6px;
  border: 1px solid rgba(76,142,247,.18);
  aspect-ratio: 1.586 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-visual::before {
  content: "";
  position: absolute;
  top: -50%; right: -15%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76,142,247,.2), transparent 68%);
  pointer-events: none;
}
.card-visual::after {
  content: "";
  position: absolute;
  bottom: -40%; left: -10%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76,142,247,.1), transparent 70%);
  pointer-events: none;
}
.card-visual-top { display: flex; align-items: center; justify-content: space-between; }
.card-chip {
  width: 34px; height: 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, #c8a84b, #e8cb72, #a87828);
  position: relative;
}
.card-chip::before {
  content: "";
  position: absolute;
  inset: 6px 4px;
  border-radius: 3px;
  border: 1.5px solid rgba(0,0,0,.25);
}
.card-chip::after {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1.5px;
  background: rgba(0,0,0,.2);
  transform: translateY(-50%);
}
.card-visual-brand {
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .24em;
  color: rgba(255,255,255,.72);
  font-style: italic;
}
.card-visual-number {
  font-family: 'Courier New', monospace;
  font-size: 1.08rem;
  letter-spacing: .22em;
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.card-visual-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.card-visual-bottom > div { display: flex; flex-direction: column; }
.card-visual-bottom small {
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 2px;
}
.card-visual-bottom span {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.card-inputs { display: flex; flex-direction: column; gap: 12px; }
.card-row { display: grid; grid-template-columns: 1fr .6fr 1fr; gap: 12px; }

/* PayPal pane */
.paypal-pane-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.022);
  padding: 28px;
  text-align: center;
}
.paypal-logo-text { font-size: 1.6rem; font-weight: 900; letter-spacing: -.03em; margin-bottom: 14px; }
.paypal-pane-inner p { color: var(--muted); font-size: .9rem; line-height: 1.65; }
.paypal-redirect-note {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
}

/* Crypto pane */
.crypto-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.crypto-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  cursor: pointer;
  font-size: .88rem; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.crypto-opt:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.crypto-opt input[type="radio"] { width: 16px; height: 16px; accent-color: var(--blue); }
.crypto-note { color: var(--muted); font-size: .83rem; line-height: 1.55; }

/* Summary side (right sticky) */
.co-summary-side { position: relative; }
.co-summary-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.036), rgba(255,255,255,.018));
  padding: 24px;
}

/* Plan preview */
.co-plan-preview {
  border: 1px solid rgba(76,142,247,.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(76,142,247,.12), rgba(76,142,247,.04));
  padding: 16px 18px;
}
.co-plan-preview-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.co-plan-dur { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 3px; }
.co-plan-nm { font-size: 1.12rem; font-weight: 900; letter-spacing: -.04em; }
.co-change-plan { font-size: .74rem; padding: 5px 10px; color: var(--muted); border-color: var(--line); }
.co-change-plan:hover { color: var(--text); border-color: var(--line-2); }
.co-plan-feats { display: flex; flex-direction: column; gap: 5px; }
.co-plan-feats li { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.co-plan-feats li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex: 0 0 auto; }

/* Price breakdown */
.co-price-section {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.co-price-row {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 12px; padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
}
.co-price-row:last-child { border-bottom: none; }
.co-price-row span { color: var(--muted); }
.co-saving-row { background: rgba(52,211,153,.04); }
.co-saving-row span { color: var(--green); font-weight: 600; font-size: .82rem; }
.co-saving-val { color: var(--green) !important; font-weight: 700; }
.co-total-row { background: rgba(255,255,255,.022); }
.co-total-row span { color: var(--text); font-weight: 700; }
.co-total-row strong { font-size: .96rem; }

/* Code sections */
.co-code-section { display: flex; flex-direction: column; gap: 7px; }
.co-code-title {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 0;
}
.co-code-optional {
  font-size: .7rem; font-weight: 600;
  letter-spacing: 0; text-transform: none;
  color: var(--muted); opacity: .65;
}
.co-code-row { display: flex; gap: 8px; }
.co-code-row .field-input {
  flex: 1;
  padding: 10px 12px;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.co-code-apply-btn {
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: .82rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: border-color .2s, background .2s, transform .15s;
  flex: 0 0 auto;
}
.co-code-apply-btn:hover {
  border-color: rgba(76,142,247,.4);
  background: rgba(76,142,247,.1);
  transform: translateY(-1px);
}
.co-code-apply-btn:active { transform: none; }
.co-code-msg { font-size: .8rem; font-weight: 600; min-height: 14px; }
.co-code-msg.valid, .co-code-msg.applied { color: var(--green); }
.co-code-msg.invalid { color: #f87171; }

/* Terms */
.co-terms-label {
  display: flex; align-items: flex-start;
  gap: 10px; cursor: pointer;
  font-size: .81rem; color: var(--muted); line-height: 1.55;
}
.co-terms-label input[type="checkbox"] {
  width: 16px; height: 16px;
  flex: 0 0 auto; margin-top: 2px;
  accent-color: var(--blue); cursor: pointer;
}
.co-terms-label a { color: var(--blue-2); font-weight: 600; }
.co-terms-label a:hover { text-decoration: underline; }

/* CTA */
.co-cta-btn { padding: 15px 20px !important; font-size: .96rem !important; font-weight: 800 !important; }

/* Secure note */
.co-secure-note {
  display: flex; align-items: center;
  justify-content: center; gap: 7px;
  font-size: .76rem; color: var(--muted); text-align: center;
}
.co-secure-note svg { width: 12px; height: 12px; fill: var(--muted); flex: 0 0 auto; }

/* Confirmation state */
.checkout-confirmation {
  display: none; flex-direction: column;
  align-items: center; text-align: center;
  padding: 56px 32px; gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  margin-bottom: 0;
}
.checkout-confirmation.visible { display: flex; }
.confirmation-icon {
  width: 68px; height: 68px; border-radius: 50%;
  border: 2px solid rgba(52,211,153,.35); background: rgba(52,211,153,.1);
  display: flex; align-items: center; justify-content: center;
}
.confirmation-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.confirmation-title { font-size: 1.9rem; font-weight: 900; letter-spacing: -.07em; margin-bottom: 8px; }
.confirmation-text { color: var(--muted); font-size: .93rem; line-height: 1.65; max-width: 400px; }
.confirmation-steps { display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%; max-width: 400px; }
.conf-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--line); background: rgba(255,255,255,.022); font-size: .88rem; }
.conf-step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; flex: 0 0 auto; }
.confirmation-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Checkout responsive */
@media (max-width: 1180px) {
  .checkout-inner-grid { grid-template-columns: 1fr; }
  .plan-selector { grid-template-columns: 1fr; }
  .co-summary-sticky { position: static; }
  .card-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 940px) {
  .card-row { grid-template-columns: 1fr; }
  .pmt-selector { grid-template-columns: repeat(3, 1fr); }
  .crypto-options { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   29. ADMIN PAGE
   ---------------------------------------------------------------- */
.admin-layout {
  display: grid;
  grid-template-columns: 234px 1fr;
  min-height: calc(100vh - var(--nav-h));
  align-items: start;
}
.admin-sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.012);
  padding: 22px 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-sidebar-heading {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  padding: 0 18px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.admin-sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.admin-sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px;
  border-radius: var(--radius-md);
  color: var(--muted); font-size: .86rem; font-weight: 600;
  transition: background .18s, color .18s;
}
.admin-sidebar-link:hover { background: rgba(255,255,255,.04); color: var(--text); }
.admin-sidebar-link.active { background: rgba(76,142,247,.1); color: var(--text); }
.admin-sidebar-link svg { width: 15px; height: 15px; fill: currentColor; flex: 0 0 auto; }
.admin-sidebar-footer { padding: 14px 10px 0; border-top: 1px solid var(--line); margin-top: auto; }
.admin-sidebar-footer a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: var(--radius-md);
  color: var(--muted); font-size: .82rem; font-weight: 600;
  transition: background .18s, color .18s;
}
.admin-sidebar-footer a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.admin-sidebar-footer a svg { fill: none; stroke: currentColor; flex: 0 0 auto; }
.admin-main { padding: 30px 32px; display: flex; flex-direction: column; gap: 22px; }
.admin-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-page-header h1 { font-size: 1.75rem; font-weight: 900; letter-spacing: -.06em; }
.admin-stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-stat-card {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.022);
}
.admin-stat-card span {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 6px;
}
.admin-stat-card strong { font-size: 1.56rem; font-weight: 900; letter-spacing: -.05em; }

/* Filter tabs */
.admin-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-filter-tab {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: none;
  color: var(--muted); font-size: .82rem; font-weight: 700;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.admin-filter-tab:hover { background: rgba(255,255,255,.04); color: var(--text); }
.admin-filter-tab.active { background: rgba(255,255,255,.08); color: var(--text); border-color: var(--line-2); }

/* Code table */
.admin-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.admin-table th {
  padding: 12px 16px; text-align: left;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015); white-space: nowrap;
}
.admin-table td { padding: 13px 16px; font-size: .87rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.012); }
.admin-table tr[data-status="disabled"] { opacity: .5; }
.admin-table tr[data-status="disabled"]:hover { opacity: .72; }
.code-string { font-family: 'Courier New', monospace; font-size: .86rem; font-weight: 700; color: var(--blue-2); letter-spacing: .05em; }
.code-type-pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.type-discount { background: rgba(76,142,247,.14); color: var(--blue-2); }
.type-creator { background: rgba(52,211,153,.12); color: var(--green); }
.type-seasonal { background: rgba(251,191,36,.12); color: #fbbf24; }
.type-giveaway { background: rgba(248,113,113,.12); color: #f87171; }
.code-status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.dot-green { background: var(--green); box-shadow: 0 0 6px rgba(52,211,153,.5); }
.dot-muted { background: var(--muted); }
.admin-row-actions { display: flex; align-items: center; gap: 6px; }
.admin-action-btn {
  padding: 4px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: none;
  color: var(--muted); font-size: .76rem; font-weight: 700;
  cursor: pointer; transition: border-color .18s, background .18s, color .18s;
}
.admin-action-btn:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); color: var(--text); }
.admin-action-btn.danger:hover { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.06); color: #f87171; }
.admin-action-btn.success:hover { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.06); color: var(--green); }

/* Create panel */
.admin-create-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  padding: 28px 30px;
}
.admin-create-title { font-size: 1.1rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: 22px; }
.admin-create-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.admin-create-grid .field { margin: 0; }
.admin-create-full { grid-column: 1 / -1; }
.admin-form-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--line);
}
.admin-toggle-row { display: flex; align-items: center; gap: 12px; }
.admin-toggle-label { font-size: .9rem; font-weight: 600; }
.toggle-switch { position: relative; width: 40px; height: 22px; display: inline-block; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: background .2s; }
.toggle-slider::before {
  content: ""; position: absolute;
  left: 3px; top: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--blue); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* Admin responsive */
@media (max-width: 1180px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-stats-row { grid-template-columns: repeat(2, 1fr); }
  .admin-create-grid { grid-template-columns: 1fr; }
}
