/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
  --bg:             #F7F7F5;
  --surface:        #FFFFFF;
  --surface-2:      #F2F2EF;
  --surface-3:      #EAEAE6;
  --border:         #D8D8D4;
  --border-subtle:  #EEEEE9;
  --text-1:         #111111;
  --text-2:         #555555;
  --text-3:         #999999;
  --accent:         #1D4ED8;
  --accent-bg:      #EFF6FF;
  --accent-border:  #BFDBFE;
  --success:        #16A34A;
  --success-bg:     #F0FDF4;
  --success-border: #BBF7D0;
  --success-text:   #166534;
  --danger:         #DC2626;
  --danger-bg:      #FEF2F2;
  --danger-border:  #FECACA;
  --danger-text:    #991B1B;
  --warn:           #B45309;
  --warn-bg:        #FFFBEB;
  --warn-border:    #FDE68A;
  --hosting-color:  #1D4ED8;
  --hosting-bg:     #F5F8FF;
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --sidebar-w: 216px;
  --max-w: 920px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text-1); line-height: 1.5; min-height: 100vh; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
ul { list-style: none; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
#vof-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  position: sticky; top: 0; z-index: 100;
}
.vof-header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.vof-logo { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.vof-locale { display: flex; align-items: center; gap: 10px; }
.vof-locale-group { display: flex; gap: 2px; }
.vof-locale-btn {
  font-size: 11px; font-weight: 600;
  padding: 3px 9px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text-2); background: var(--surface);
  transition: all .15s;
}
.vof-locale-btn.active { background: var(--text-1); color: white; border-color: var(--text-1); }
.vof-locale-btn:not(.active):hover { border-color: var(--text-2); color: var(--text-1); }
.vof-locale-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.vof-locale-sep { color: var(--border); }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
#vof-layout {
  max-width: var(--max-w); margin: 0 auto;
  padding: 20px 20px 120px;
  display: flex; gap: 16px; align-items: flex-start;
}
.vof-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
#vof-sidebar { width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 58px; }

/* ─── Sections ───────────────────────────────────────────────────────────── */
.vof-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.vof-sec-head {
  background: var(--surface-2); padding: 9px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.vof-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: #E24B4A; color: white; font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.vof-sec-title { font-size: 13px; font-weight: 600; }
.vof-login-trigger { margin-left: auto; font-size: 12px; color: var(--accent); }
.vof-login-trigger[data-i18n]:hover { text-decoration: underline; }
.vof-login-trigger:not([data-i18n]) { color: var(--text-2); cursor: default; }
.vof-login-trigger [data-action="logout"] { color: var(--accent); cursor: pointer; }
.vof-login-trigger [data-action="logout"]:hover { text-decoration: underline; }
.vof-sec-body { padding: 14px; }

/* ─── Tooltip ────────────────────────────────────────────────────────────── */
.vof-tooltip-anchor { position: relative; flex-shrink: 0; }
.vof-sec-head .vof-tooltip-anchor { margin-left: auto; }
.vof-tooltip-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border); color: var(--text-2);
  font-size: 11px; font-weight: 700; line-height: 1;
  transition: border-color .15s, color .15s;
}
.vof-tooltip-trigger:hover,
.vof-tooltip-anchor.is-locked .vof-tooltip-trigger { border-color: var(--accent); color: var(--accent); }
.vof-tooltip-box {
  position: fixed; display: none;
  width: 240px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 12px 14px; z-index: 300;
  font-size: 12px; line-height: 1.55; color: var(--text-1);
}
.vof-tooltip-anchor.is-open .vof-tooltip-box { display: block; }
.vof-tooltip-box p { margin-bottom: 6px; }
.vof-tooltip-box p:last-child { margin-bottom: 0; }
.vof-tooltip-box ul { list-style: disc; padding-left: 16px; margin-top: 4px; }
.vof-tooltip-box li { margin-bottom: 2px; }
.vof-tooltip-box strong { font-weight: 600; }

/* ─── Search ─────────────────────────────────────────────────────────────── */
.vof-search-row { display: flex; gap: 6px; margin-bottom: 6px; }
.vof-search-input {
  flex: 1; height: 36px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font-size: 13px;
  transition: border-color .15s;
}
.vof-search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,78,216,.08); }
.vof-search-input.error { border-color: var(--danger); }
.vof-search-input.error:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,.08); }
.vof-search-hint.error  { color: var(--danger); }
.vof-search-btn {
  height: 36px; padding: 0 18px;
  background: var(--accent); color: white;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  transition: background .15s; flex-shrink: 0;
}
.vof-search-btn:hover { background: #1a44c4; }
.vof-own-domain-btn {
  height: 36px; padding: 0 12px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 12px; color: var(--text-2); background: var(--surface-2);
  white-space: nowrap; transition: all .15s;
}
.vof-own-domain-btn:hover { border-color: var(--text-2); color: var(--text-1); }
.vof-search-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ─── Results ────────────────────────────────────────────────────────────── */
.vof-results-empty { font-size: 12px; color: var(--text-3); padding: 8px 2px; }
.vof-search-error  { font-size: 12px; color: var(--danger);  padding: 8px 2px; }
.vof-result-row {
  padding: 8px 10px; border: 1px solid var(--border);
  border-radius: var(--r-sm); margin-bottom: 5px; background: var(--surface);
}
.vof-result-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.vof-result-name { font-size: 12px; font-weight: 600; }
.vof-result-status { font-size: 11px; font-weight: 500; }
.status-available  { color: var(--success); }
.status-taken      { color: var(--warn); }
.status-quarantine { color: var(--danger); }
.status-reserved   { color: var(--danger); }
.status-blocked    { color: var(--danger); }
.status-unsupported{ color: var(--text-3); font-style: italic; }
.vof-result-price  { font-size: 11px; color: var(--text-2); }
.vof-action-row { display: flex; gap: 5px; flex-wrap: wrap; }
.vof-action-btn {
  font-size: 11px; border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 3px 10px; color: var(--text-2); background: var(--surface-2);
  transition: all .15s;
}
.vof-action-btn:hover { border-color: var(--text-2); color: var(--text-1); }
.vof-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vof-action-btn.primary {
  background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent);
}
.vof-action-btn.primary:hover { background: var(--accent); color: white; }
.vof-action-note { font-size: 10px; color: var(--text-3); margin-left: 2px; }

/* ─── Domains in order ───────────────────────────────────────────────────── */
#vof-domain-cards { display: flex; flex-direction: column; }
#vof-domain-cards:not(:empty) { margin-top: 8px; }

/* ─── Domain card ────────────────────────────────────────────────────────── */
.vof-dcard { border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 6px; }
.vof-dcard.error { border-color: var(--danger); }
.vof-card-error { font-size: 11px; color: var(--danger); margin-top: 2px; }
.vof-dcard-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px; border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.vof-dcard-head:last-child { border-bottom: none; border-radius: var(--r-md); }
.vof-dcard-head.reg { background: var(--surface-2); }
.vof-dcard-head.ext { background: var(--surface-3); }
.vof-dcard-name { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.vof-badge {
  font-size: 9px; background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text-2); border-radius: 3px; padding: 1px 5px; font-weight: 500;
}
.vof-dcard-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-2); }
.vof-rm-btn { font-size: 11px; color: var(--danger); }
.vof-rm-btn:hover { text-decoration: underline; }

/* ─── Add-on rows ────────────────────────────────────────────────────────── */
.vof-addon-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-bottom: 1px solid var(--border-subtle);
}
.vof-addon-row.hosting { background: var(--hosting-bg); }
.vof-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.vof-dot.hosting { background: var(--hosting-color); }
.vof-dot.addon   { background: var(--border); }
.vof-addon-label { font-size: 11px; font-weight: 600; min-width: 84px; flex-shrink: 0; }
.vof-addon-label.hosting { color: var(--hosting-color); }
.vof-addon-label.addon   { color: var(--text-1); }
.vof-inline-select {
  flex: 1; height: 24px; padding: 0 6px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font-size: 11px;
  appearance: auto;
}
.vof-compare-link { font-size: 11px; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.vof-compare-link:hover { text-decoration: underline; }
.vof-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 9px; color: var(--text-3); flex-shrink: 0; cursor: help;
}
.vof-addon-rm { font-size: 10px; color: var(--danger); flex-shrink: 0; }
.vof-addon-rm:hover { text-decoration: underline; }

/* ─── Card add-on section ────────────────────────────────────────────────── */
.vof-addon-section {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  padding: 7px 12px;
}
.vof-addon-section--open { padding: 0; }
.vof-addon-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; color: var(--text-1); font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 2px 6px 2px 8px;
}
.vof-addon-chip-rm {
  font-size: 10px; color: var(--text-3); line-height: 1;
  width: 14px; height: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .1s;
}
.vof-addon-chip-rm:hover { background: var(--surface-3); color: var(--danger); }
.vof-addon-more {
  font-size: 11px; border: 1px dashed var(--border); border-radius: 20px;
  padding: 2px 9px; color: var(--text-2); transition: all .15s;
}
.vof-addon-more:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-bg); }
.vof-addon-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 12px; background: var(--surface-2);
  border-bottom: 1px solid var(--border-subtle);
}
.vof-addon-section-title {
  font-size: 10px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .5px;
}
.vof-addon-collapse {
  font-size: 10px; color: var(--text-3); padding: 1px 5px;
  border: 1px solid var(--border-subtle); border-radius: var(--r-sm);
  transition: all .15s;
}
.vof-addon-collapse:hover { border-color: var(--border); color: var(--text-2); }
.vof-addon-list-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 6px 12px; border-bottom: 1px solid var(--border-subtle);
}
.vof-addon-list-row:last-child { border-bottom: none; }
.vof-addon-list-row.is-inactive .vof-dot { background: var(--border-subtle); }
.vof-addon-list-row.is-inactive .vof-addon-list-name { color: var(--text-3); font-weight: 400; }
.vof-addon-list-name { font-size: 11px; font-weight: 600; min-width: 84px; flex-shrink: 0; }
.vof-addon-list-desc {
  width: 100%; padding-left: 14px; /* 6px dot + 8px gap = name column offset */
  margin-top: -4px; margin-bottom: 2px;
  font-size: 10px; color: var(--text-3); line-height: 1.35;
}
.vof-addon-plan-fixed { flex: 1; font-size: 11px; color: var(--text-2); }
.vof-addon-spacer { flex: 1; }
.vof-addon-list-price { font-size: 11px; color: var(--text-2); min-width: 56px; text-align: right; flex-shrink: 0; }
.vof-add-addon-btn {
  font-size: 11px; flex-shrink: 0; white-space: nowrap;
  color: var(--accent); border: 1px solid var(--accent-border);
  border-radius: var(--r-sm); padding: 2px 7px; background: var(--accent-bg);
  transition: all .15s;
}
.vof-add-addon-btn:hover { background: var(--accent); color: white; }

/* ─── Hosting / add-on chips ─────────────────────────────────────────────── */
.vof-add-chip {
  font-size: 11px; border: 1px dashed var(--border); border-radius: 20px;
  padding: 2px 10px; color: var(--text-2); transition: all .15s;
}
.vof-add-chip:hover:not(:disabled) { border-color: var(--text-2); color: var(--text-1); }
.vof-add-chip.hosting { border-color: var(--accent-border); color: var(--accent); }
.vof-add-chip.hosting:hover:not(:disabled) { background: var(--accent-bg); }
.vof-add-chip:disabled { opacity: 0.5; cursor: not-allowed; }


/* ─── Hosting section (Section 2) ───────────────────────────────────────── */
#vof-hosting-section { display: flex; flex-direction: column; gap: 8px; }
.vof-hslot { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.vof-hslot-head {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; background: var(--surface-2);
  border-bottom: 1px solid var(--border-subtle);
}
.vof-hslot-name { font-size: 12px; font-weight: 600; }
.vof-hslot-body {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: var(--hosting-bg);
}
.vof-hslot-footer { padding: 8px 12px; }
.vof-hslot-footer .vof-add-chip { margin-top: 8px; }
.vof-billing-label { font-size: 11px; color: var(--text-2); white-space: nowrap; flex-shrink: 0; }
.vof-hslot-price { font-size: 11px; color: var(--text-2); min-width: 56px; text-align: right; flex-shrink: 0; }
.vof-hslot-type-sel {
  border: none; background: transparent; font: inherit; font-size: 11px;
  font-weight: 600; color: var(--hosting-color); padding: 0; cursor: pointer;
}
.vof-hosting-add-wrap { padding-top: 4px; }

/* ─── Cart sidebar ───────────────────────────────────────────────────────── */
.vof-cart { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.vof-cart-top { background: var(--accent-bg); padding: 12px; border-bottom: 1px solid var(--accent-border); }
.vof-cart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.vof-cart-label { font-size: 11px; color: var(--accent); }
.vof-cart-total { font-size: 21px; font-weight: 700; color: var(--accent); margin-bottom: 10px; line-height: 1.2; }
.vof-cart-total small { font-size: 12px; font-weight: 400; opacity: .7; }
.vof-pay-btn {
  width: 100%; height: 34px; background: var(--accent); color: white;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 600; transition: background .15s;
}
.vof-pay-btn:hover { background: #1a44c4; }
.vof-pay-btn:disabled, .vof-bar-pay:disabled { opacity: .4; cursor: not-allowed; }
.vof-cart-body { padding: 10px 12px; }
.vof-cart-section-label {
  font-size: 9px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .4px;
  margin-bottom: 4px; margin-top: 8px;
}
.vof-cart-section-label:first-child { margin-top: 0; }
.vof-ci {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; padding: 3px 0; border-bottom: 1px solid var(--border-subtle);
}
.vof-ci:last-child { border-bottom: none; }
.vof-ci-price { color: var(--text-2); flex-shrink: 0; }
.vof-ci-sub { padding-left: 8px; }
.vof-ci-sub .vof-ci-name { color: var(--text-2); }
.vof-ci-tag { font-size: 10px; color: var(--text-3); margin-left: 3px; }
.vof-cart-note { font-size: 10px; color: var(--text-3); margin-top: 8px; font-style: italic; border-top: 1px solid var(--border-subtle); padding: 7px; line-height: 1.45; }
.vof-cart-empty { padding: 20px 12px; text-align: center; font-size: 12px; color: var(--text-3); }

/* ─── Info form ──────────────────────────────────────────────────────────── */
.vof-subsec {
  font-size: 10px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .5px; margin: 11px 0 6px;
}
.vof-subsec:first-child { margin-top: 0; }
.vof-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 4px; }
.vof-field { display: flex; flex-direction: column; }
.vof-field.full { grid-column: 1 / -1; }
.vof-field label { font-size: 11px; color: var(--text-2); margin-bottom: 3px; display: flex; align-items: center; gap: 3px; }
.vof-input, .vof-select {
  height: 30px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font-size: 12px; transition: border-color .15s;
}
.vof-input:focus, .vof-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,78,216,.08); }
.vof-input.error, .vof-select.error { border-color: var(--danger); }
.vof-input.error:focus, .vof-select.error:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,.08); }
.vof-field-error { font-size: 11px; color: var(--danger); margin-top: 2px; }
.vof-optional    { font-size: 10px; color: var(--text-3); font-weight: 400; }
.vof-subsec-divider { height: 1px; background: var(--border-subtle); margin: 11px 0; }
.vof-company-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-2); cursor: pointer;
  margin-top: 8px; user-select: none;
}
.vof-company-toggle input[type="checkbox"] { display: none; }
.vof-toggle-track {
  width: 32px; height: 18px; border-radius: 9px; flex-shrink: 0;
  background: var(--border); position: relative; transition: background .2s;
}
.vof-toggle-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: white; transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.vof-company-toggle input:checked ~ .vof-toggle-track { background: var(--accent); }
.vof-company-toggle input:checked ~ .vof-toggle-track::after { transform: translateX(14px); }
.vof-link { color: var(--accent); }
.vof-link:hover { text-decoration: underline; }

.vof-consent { display: flex; flex-direction: column; gap: 2px; }
.vof-checkbox {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-2); cursor: pointer;
  user-select: none; line-height: 1.5; margin-top: 6px;
}
.vof-checkbox input[type="checkbox"] { display: none; }
.vof-checkbox-box {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  border: 1.5px solid var(--border); border-radius: 3px;
  background: var(--surface); position: relative; transition: background .15s, border-color .15s;
}
.vof-checkbox input:checked ~ .vof-checkbox-box {
  background: var(--accent); border-color: var(--accent);
}
.vof-checkbox input:checked ~ .vof-checkbox-box::after {
  content: ''; position: absolute;
  top: 1px; left: 4px; width: 5px; height: 9px;
  border: 2px solid white; border-top: none; border-left: none;
  transform: rotate(45deg);
}
.vof-checkbox.error .vof-checkbox-box { border-color: var(--danger); }

.vof-notice {
  padding: 8px 10px; border: 1px solid;
  border-radius: var(--r-sm); font-size: 11px; line-height: 1.5; margin-bottom: 8px;
}
.vof-notice--info    { background: var(--accent-bg);  border-color: var(--accent-border);  color: var(--accent); }
.vof-notice--success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.vof-notice--warning { background: var(--warn-bg);    border-color: var(--warn-border);    color: var(--warn); }
.vof-notice--danger  { background: var(--danger-bg);  border-color: var(--danger-border);  color: var(--danger-text); }

/* ─── Mobile bottom bar ──────────────────────────────────────────────────── */
#vof-bottom-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 10px 16px; z-index: 90; box-shadow: 0 -4px 16px rgba(0,0,0,.07);
}
.vof-bar-inner { display: flex; flex-direction: column; gap: 4px; }
.vof-bar-label { font-size: 10px; color: var(--text-3); }
.vof-bar-row { display: flex; align-items: center; justify-content: space-between; }
.vof-bar-total { font-size: 19px; font-weight: 700; color: var(--accent); cursor: pointer; }
.vof-bar-pay {
  width: 100%; height: 40px; padding: 0;
  background: var(--accent); color: white;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
}

/* ─── Cart drawer (mobile) ───────────────────────────────────────────────── */
.vof-scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 95; }
.vof-scrim.open { display: block; }
.vof-drawer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow-lg); z-index: 96;
  max-height: 80vh; overflow-y: auto;
  padding: 10px 16px 90px;
  bottom: -100vh; transition: bottom .25s ease;
}
.vof-drawer.open { bottom: 0; }
.vof-drawer-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 12px; }
.vof-drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.vof-drawer-title { font-size: 14px; font-weight: 700; }
.vof-drawer-close { background: none; border: none; font-size: 16px; line-height: 1; padding: 4px; cursor: pointer; color: var(--text-2); }
.vof-drawer-cart { }
.vof-drawer-cart .vof-cart-top { background: transparent; border-bottom: 1px solid var(--border-subtle); }
.vof-drawer-cart .vof-pay-btn { width: 100%; }

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.vof-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 200;
  align-items: center; justify-content: center;
}
.vof-modal-overlay.open { display: flex; }
.vof-modal {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  margin: 0 16px;
}
.vof-modal.wide { max-width: 620px; }

.vof-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px; border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.vof-modal-title { font-size: 14px; font-weight: 700; }
.vof-modal-close {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-2); transition: all .15s;
}
.vof-modal-close:hover { background: var(--surface-3); }
.vof-modal-body { padding: 18px; }

/* ─── Plans modal ────────────────────────────────────────────────────────── */
.vof-type-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.vof-type-tab {
  font-size: 12px; padding: 5px 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text-2); background: var(--surface-2); transition: all .15s;
}
.vof-type-tab.active { background: var(--text-1); color: white; border-color: var(--text-1); }
.vof-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vof-plan-card {
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 10px; cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column;
}
.vof-plan-features { flex: 1; }
.vof-plan-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-sm); }
.vof-plan-card.recommended { border-color: var(--accent-border); }
.vof-plan-rec { display: inline-block; font-size: 9px; font-weight: 600; background: var(--accent-bg); color: var(--accent); border-radius: 3px; padding: 1px 5px; margin-bottom: 6px; }
.vof-plan-name { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.vof-plan-price { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.vof-plan-price small { font-size: 10px; font-weight: 400; color: var(--text-3); }
.vof-plan-features li { font-size: 11px; color: var(--text-2); padding: 2px 0; display: flex; gap: 4px; align-items: flex-start; }
.vof-plan-features li::before { content: '✓'; color: var(--success); flex-shrink: 0; }
.vof-plan-select {
  width: 100%; margin-top: 8px; height: 30px;
  background: var(--accent-bg); color: var(--accent);
  border: 1px solid var(--accent-border); border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600; transition: all .15s;
}
.vof-plan-select:hover { background: var(--accent); color: white; }
.vof-plan-billing-radios {
  display: flex; flex-direction: column; gap: 5px;
  border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
  padding: 7px 0; margin-top: 8px;
}
.vof-plan-billing-opt { display: flex; align-items: center; gap: 5px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.vof-plan-billing-opt input[type="radio"] { cursor: pointer; margin: 0; flex-shrink: 0; }
.vof-plan-billing-opt.disabled { opacity: 0.4; cursor: not-allowed; }
.vof-plan-billing-opt.disabled input { cursor: not-allowed; }

/* ─── Payment modal ──────────────────────────────────────────────────────── */
.vof-pay-summary {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle);
}
.vof-pay-amount-label { font-size: 11px; color: var(--text-3); margin-bottom: 3px; }
.vof-pay-amount { font-size: 24px; font-weight: 700; }
.vof-pay-ref-label { font-size: 11px; color: var(--text-3); margin-bottom: 3px; text-align: right; }
.vof-pay-ref { font-size: 13px; font-weight: 600; text-align: right; }
.vof-qr-row { display: flex; gap: 14px; margin-bottom: 14px; align-items: flex-start; }
.vof-qr-box {
  width: 104px; height: 104px; flex-shrink: 0;
  background: white; border: 1px solid var(--border); border-radius: var(--r-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 4px;
}
.vof-qr-label { font-size: 9px; color: var(--text-3); }
.vof-bank-details { flex: 1; min-width: 0; }
.vof-bank-row { margin-bottom: 8px; }
.vof-bank-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.vof-bank-value {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 5px 9px; gap: 8px;
}
.vof-copy-btn { font-size: 11px; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.vof-copy-btn:hover { text-decoration: underline; }
.vof-pay-note {
  background: var(--success-bg); border: 1px solid var(--success-border);
  border-radius: var(--r-sm); padding: 10px 12px;
  font-size: 11px; color: var(--success-text); line-height: 1.5; margin-bottom: 14px;
}
.vof-other-methods { text-align: center; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.vof-other-link { font-size: 12px; color: var(--accent); display: block; margin-bottom: 3px; }
.vof-other-link:hover { text-decoration: underline; }
.vof-other-note { font-size: 11px; color: var(--text-3); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 660px) {
  #vof-layout { flex-direction: column; padding: 12px 12px 110px; }
  #vof-sidebar { display: none; }
  #vof-bottom-bar { display: block; }
  .vof-field-grid { grid-template-columns: 1fr; }
  .vof-plans-grid { grid-template-columns: 1fr; }
  .vof-type-tabs { flex-wrap: wrap; }
  .vof-qr-row { flex-direction: column; align-items: center; }
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.hidden { display: none !important; }

/* ─── Hosting slot extras ────────────────────────────────────────────────── */
.vof-hslot-rm { margin-left: auto; }

/* ─── Year selector (domain card head) ──────────────────────────────────── */
.vof-year-select {
  height: 24px; padding: 0 6px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font-size: 11px;
  appearance: auto; flex-shrink: 0;
}

/* ─── Transfer Auth-ID field (domain card) ──────────────────────────────── */
.vof-transfer-authid {
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-2);
}
.vof-transfer-authid label {
  display: block; font-size: 11px; color: var(--text-2); margin-bottom: 3px; font-weight: 600;
}
.vof-transfer-authid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; align-items: center; }
.vof-transfer-authid-row .vof-input { font-family: monospace; font-size: 12px; }
.vof-authid-request-btn {
  font-size: 11px; padding: 4px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--accent); color: var(--accent); background: none; cursor: pointer; white-space: nowrap;
}
.vof-authid-request-btn:hover:not(:disabled) { background: var(--accent); color: #fff; }
.vof-authid-request-btn:disabled { opacity: 0.6; cursor: default; border-color: var(--border); color: var(--text-2); }

/* ─── Promo price note (domain card) ────────────────────────────────────── */
.vof-dcard-promo-note {
  font-size: 11px; color: var(--success-text);
  background: var(--success-bg); border-bottom: 1px solid var(--success-border);
  padding: 4px 12px;
}

