/* Proxybonanza — OLD visual language on the NEW responsive shell. */

:root {
  --brand: #22a5df;
  --brand-hover: #208bbd;
  --brand-button-hover: #1d91c7;
  --brand-soft: #e8f7fd;
  --ribbon-text: #a7e3fd;
  --ink: #373737;
  --body-text: #707070;
  --muted: #8a8a8a;
  --success: #74cb3c;
  --success-hover: #61b32c;
  --success-ink: #3f8a17;
  --warning: #a1990c;
  --error: #fd0002;
  --slate: #45575f;
  --slate-strip: #323f45;
  --slate-active: #2f3c41;
  --slate-text: #a0afb6;
  --cta: #74cb3c;
  --cta-hover: #61b32c;
  --cta-border: #67b635;
  --line: #dedede;
  --line-soft: #e5e5e5;
  --surface: #ffffff;
  --surface-alt: #f6f9fb;
  --surface-box: #f5f5f5;
  --footer: #4b4c4a;
  --footer-deep: #323232;
  --footer-text: #a2a2a2;
  --radius: 4px;
  --radius-lg: 6px;
  --shell: 980px;
  --content: 940px;
  --shadow-shell: 0 0 6px rgba(0, 0, 0, .3);
  --shadow-card: none;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  border-top: 5px solid var(--brand);
  background: #eee url('/img/pattern.gif');
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4286;
  color: var(--body-text);
}
img { max-width: 100%; border: 0; vertical-align: middle; }
a { color: var(--brand); text-decoration: none; }
a:hover, a:focus { color: var(--brand-hover); }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 400; line-height: 1.25; margin: 10px 0 10px; }
h1 { font-size: 30px; }
h2 { font-size: 30px; }
h3 { font-size: 26px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; padding-left: 20px; }
li { margin-bottom: 10px; }
li > ul, li > ol { margin-top: 5px; }
strong, b { color: var(--ink); font-weight: 700; }
small { font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 20px 0; }
code { font-family: Menlo, Consolas, monospace; font-size: 90%; color: #c7254e; background: #f9f2f4; border-radius: 3px; padding: 1px 4px; word-break: break-word; }
pre { background: #f5f5f5; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 15px; overflow: auto; }
pre code { background: none; color: inherit; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

#main {
  width: 100%;
  max-width: var(--shell);
  margin: -5px auto 0;
  background: #fff;
  border-top: 5px solid var(--brand);
  box-shadow: var(--shadow-shell);
}
main#content { display: block; min-height: 320px; }
.container { width: var(--content); max-width: calc(100% - 40px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 20px !important; }
.mb-1 { margin-bottom: 1rem !important; }
.nomargin { margin: 0 !important; }
.nopadding { padding: 0 !important; }
.break-word { word-break: break-word; }
.text-blue { color: var(--brand); }
.prose-820 { max-width: 820px; }
.honeypot { position: absolute; left: -9999px; }
.amount-positive { color: var(--success); }
.amount-negative { color: var(--error); }
.stat .value.stat-value-sm { font-size: 1rem; }
.row-actions-end { justify-content: flex-end; }

/* ---------- Header ---------- */
.site-header { position: relative; height: 118px; background: #fff; z-index: 30; }
.header-inner { position: relative; height: 100%; }
.brand { position: absolute; top: 32px; left: 20px; display: block; line-height: 0; }
.brand img { width: 374px; height: 62px; max-width: none; }
.main-nav { position: absolute; right: 8px; top: 56px; }
.main-nav .nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.main-nav .nav-list > li { margin: 0; position: relative; }
.main-nav .nav-link {
  display: block; padding: 10px 15px; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.4286;
  color: var(--ink); text-transform: uppercase; border-radius: 4px;
}
.main-nav .nav-link:hover, .main-nav .nav-link:focus,
.main-nav .nav-list > li.active > .nav-link { color: var(--brand); background: transparent; }
.caret { display: inline-block; width: 0; height: 0; margin-left: 4px; vertical-align: middle;
  border-top: 4px solid currentColor; border-right: 4px solid transparent; border-left: 4px solid transparent; }
.main-nav .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 1000; min-width: 200px;
  margin: 0; padding: 10px; list-style: none; background: #273135; border: 0; border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .18);
}
.main-nav .dropdown-menu::before {
  content: ""; position: absolute; top: -6px; left: 18px;
  border-right: 6px solid transparent; border-bottom: 6px solid #273135; border-left: 6px solid transparent;
}
.main-nav .dropdown-menu li { margin: 0; }
.main-nav .dropdown-menu a { display: block; padding: 12px 10px; color: #b7b7b7; font-size: 13px; text-transform: none; border-radius: 4px; }
.main-nav .dropdown-menu a:hover, .main-nav .dropdown-menu a:focus { background: var(--slate); color: #fff; }
.main-nav .dropdown-menu .icon { margin-right: 7px; color: #8b9aa1; }
.main-nav .has-dropdown.open > .dropdown-menu, .main-nav .has-dropdown:focus-within > .dropdown-menu { display: block; }
.main-nav .has-dropdown.open > .nav-link { color: var(--brand); }

/* Blue account ribbon */
.utility-ribbon {
  position: absolute; top: 0; right: 20px; z-index: 40; height: 31px;
  padding: 4px 12px 5px; background: var(--brand);
  border-bottom: 2px solid var(--brand-hover); border-radius: 0 0 3px 3px;
}
.ribbon-nav { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.ribbon-nav > li { position: relative; display: flex; align-items: center; margin: 0; white-space: nowrap; }
.ribbon-nav > li.ribbon-sep { margin: 0 8px; color: #fff; font-size: 11px; }
.ribbon-nav > li > form { display: flex; align-items: center; margin: 0; }
.ribbon-nav > li > form button { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--ribbon-text); font: inherit; font-size: 12px; line-height: 18px; text-transform: uppercase; cursor: pointer; }
.ribbon-nav > li > form button:hover { color: #fff; }
.ribbon-nav > li > a, .ribbon-nav > li > button, .ribbon-nav .ribbon-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none;
  color: var(--ribbon-text); font: inherit; font-size: 12px; line-height: 18px; text-transform: uppercase; cursor: pointer;
}
.ribbon-nav > li > a:hover, .ribbon-nav > li > button:hover,
.ribbon-nav > li.active > a, .ribbon-nav .ribbon-link:hover { color: #fff; }
.ribbon-nav .icon { opacity: .85; }
.ribbon-nav .dropdown-menu {
  display: none; position: absolute; top: 100%; right: 0; left: auto; z-index: 1100; min-width: 220px;
  margin: 8px 0 0; padding: 10px; list-style: none; background: #273135; border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .18);
}
.ribbon-nav .has-dropdown.open > .dropdown-menu { display: block; }
.ribbon-nav .dropdown-menu li { margin: 0; }
.ribbon-nav .dropdown-menu a, .ribbon-nav .dropdown-menu button {
  display: block; width: 100%; padding: 7px 10px; background: none; border: 0; text-align: left;
  color: #b7b7b7; font: inherit; font-size: 12px; text-transform: none; border-radius: 4px; cursor: pointer;
}
.ribbon-nav .dropdown-menu a:hover, .ribbon-nav .dropdown-menu button:hover { background: var(--slate); color: #fff; }
.ribbon-nav .dropdown-menu .flag { margin-right: 6px; }
.ribbon-login-form { width: 240px; color: #b7b7b7; }
.ribbon-login-form label { color: #b7b7b7; font-size: 11px; margin-bottom: 2px; }
.ribbon-login-form input[type="text"], .ribbon-login-form input[type="password"] { height: 30px; margin-bottom: 7px; font-size: 13px; }
.ribbon-login-form .checkbox { font-size: 11px; color: #b7b7b7; margin-bottom: 7px; }
.ribbon-login-form .btn { font-size: 12px; padding: 5px 10px; }
.ribbon-login-form .forgot { display: block; margin-top: 7px; font-size: 11px; color: var(--ribbon-text); text-transform: none; }
.nav-toggle { display: none; position: absolute; top: 15px; right: 15px; z-index: 60; width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--ink); }
.drawer-extra { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 6px 12px; margin-bottom: 0; border: 1px solid transparent;
  border-radius: var(--radius); background: #fff; color: var(--ink); font-family: inherit;
  font-size: 15px; line-height: 1.4286; text-align: center; vertical-align: middle;
  cursor: pointer; white-space: nowrap; text-shadow: 1px 1px 0 rgba(0, 0, 0, .15); text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn + .btn { margin-left: 5px; }
.btn-primary, .btn-info { background: var(--brand); color: #fff; border: 0; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1); }
.btn-primary:hover, .btn-primary:focus, .btn-info:hover, .btn-info:focus { background: var(--brand-button-hover); color: #fff; }
.btn-success, .btn-cta, form button.btn-primary[type="submit"], form input.btn-primary[type="submit"] { background: var(--cta); color: #fff; border: 0; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1); }
.btn-success:hover, .btn-success:focus, .btn-cta:hover, .btn-cta:focus,
form button.btn-primary[type="submit"]:hover, form input.btn-primary[type="submit"]:hover { background: var(--cta-hover); color: #fff; }
.btn-ghost, .btn-default { background: #fff; color: var(--ink); border: 1px solid #ccc; text-shadow: none; }
.btn-ghost:hover, .btn-ghost:focus, .btn-default:hover { background: #f5f5f5; color: var(--ink); border-color: #adadad; }
.btn-outline { background: transparent; color: var(--brand); border: 1px solid var(--brand); text-shadow: none; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-danger { background: #d9534f; color: #fff; border: 0; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1); }
.btn-danger:hover { background: #c9302c; color: #fff; }
.btn-gray { background: #d8d8d8; color: #636363; border: 0; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1); }
.btn-gray:hover { background: #c0c0c0; color: #636363; }
.btn-graydark { background: #708994; color: #fff; border: 0; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1); }
.btn-graydark:hover { background: #59707a; color: #fff; }
.btn-sm { padding: 3px 8px; font-size: 12px; border-radius: 3px; }
.btn-xs { padding: 1px 6px; font-size: 11px; }
.btn-lg, .btn-big { padding: 10px 16px; font-size: 18px; border-radius: var(--radius-lg); }
.btn-big { min-width: 200px; }
.btn-block { display: block; width: 100%; white-space: normal; }
.btn[disabled], .btn.disabled { opacity: .65; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.btn-group .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Forms ---------- */
label { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 400; color: var(--ink); }
label.required, label.required strong { font-weight: 700; }
label em { color: var(--muted); font-style: normal; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], input[type="url"], input[type="tel"], input[type="date"],
input[type="datetime-local"], input[type="time"], select, textarea {
  display: block; width: 100%; height: 34px; padding: 6px 12px;
  border: 1px solid #ccc; border-radius: var(--radius); background: #fff;
  color: #555; font-family: inherit; font-size: 15px; line-height: 1.4286;
}
textarea { height: auto; min-height: 90px; }
select { padding-right: 30px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(34, 165, 223, .8);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(34, 165, 223, .25);
}
input[disabled], select[disabled], textarea[disabled] { background: #eee; cursor: not-allowed; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); vertical-align: middle; }
input[type="file"] { display: block; font-size: 14px; }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 5px 10px; border: 1px solid #ccc; border-radius: var(--radius); background: #f5f5f5; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: #e8e8e8; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; background: linear-gradient(#f6f6f6, #e6e6e6); border: 1px solid #000; border-radius: 5px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 15px; height: 30px; margin-top: -11px; background: #fff; border: 1px solid #7d7d7d; border-radius: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); cursor: pointer; }
input[type="range"]::-moz-range-track { height: 10px; background: linear-gradient(#f6f6f6, #e6e6e6); border: 1px solid #000; border-radius: 5px; }
input[type="range"]::-moz-range-thumb { width: 15px; height: 30px; background: #fff; border: 1px solid #7d7d7d; border-radius: 5px; cursor: pointer; }
input[type="range"].range-green::-webkit-slider-thumb { background: #5cb85c; }
.form-grid { display: grid; gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field-error, .error-message { color: #d43f3a; font-size: 13px; margin-top: 3px; }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: lightcoral; box-shadow: 0 0 8px rgba(240, 128, 128, .25); }
.checkbox { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; margin-bottom: 8px; }
.checkbox input { margin-top: 1px; flex: none; }
fieldset { border: 0; padding: 0; margin: 0; }
.form-box-gray {
  padding: 20px; background: var(--surface-box); color: var(--body-text);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.form-box-gray h2, .form-box-gray h3 { margin-top: 0; }
.form-box-gray > h2 + *, .form-box-gray > h3 + * { margin-top: 10px; }
.form-box-gray hr { border-top: 1px solid #e5e5e5; }
.form-box-gray strong { color: var(--brand); }

/* ---------- Custom proxy configurator (legacy layout) ---------- */
.configurator-custom {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 30px;
  max-width: 980px; margin: 0 auto; padding: 20px 0 30px; align-items: start;
}
.config-details {
  padding: 20px; background: #f5f5f5; border: 1px solid #dedede; border-radius: 6px;
  color: #707070; font-size: 15px; line-height: 1.4286;
}
.config-details h4 {
  margin: 20px 0 10px; color: #373737; font-size: 15px; font-weight: 700;
  line-height: 1.1; text-transform: uppercase;
}
.config-row { display: flex; gap: 10px; }
.config-row .config-label { flex: 0 0 41.6667%; padding-right: 10px; }
.config-row .config-value { flex: 1; }
.config-row b { color: #707070; font-weight: 700; }
.config-submit { margin: 20px 0 0; padding-top: 20px; border-top: 1px solid #dedede; }
.config-submit .btn { width: 100%; font-weight: 700; text-shadow: none; box-shadow: none; }
.config-range label { display: block; margin: 0 0 5px; color: #8a8a8a; font-size: 15px; font-weight: 700; }
.config-range + .config-range { margin-top: 18px; }
.config-advanced { margin-top: 18px; }
.configurator-custom input[type="range"] { height: 38px; margin: 0; }
.configurator-custom input[type="range"]::-webkit-slider-runnable-track {
  width: 100%; height: 10px; background: #3071a9; border: 1px solid #000;
  border-radius: 5px; box-shadow: 1px 1px 1px #000;
}
.configurator-custom input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 15px; height: 30px; margin-top: -11px;
  background: #fff; border: 1px solid #000; border-radius: 5px;
  box-shadow: 1px 1px 1px #000; cursor: pointer;
}
.configurator-custom input[type="range"]::-moz-range-track {
  height: 10px; background: #3071a9; border: 1px solid #000;
  border-radius: 5px; box-shadow: 1px 1px 1px #000;
}
.configurator-custom input[type="range"]::-moz-range-thumb {
  width: 15px; height: 30px; background: #fff; border: 1px solid #000;
  border-radius: 5px; box-shadow: 1px 1px 1px #000; cursor: pointer;
}
.configurator-custom input[type="range"].range-green::-webkit-slider-runnable-track { background: #5cb85c; }
.configurator-custom input[type="range"].range-green::-moz-range-track { background: #5cb85c; }
.configurator-custom input[type="range"].range-red::-webkit-slider-runnable-track { background: #d9534f; }
.configurator-custom input[type="range"].range-red::-moz-range-track { background: #d9534f; }
.configurator-custom .rangeslider_grid {
  position: relative; display: block; height: 2em; margin: 0 8px;
  color: #8a8a8a; font-size: 15px;
}
.configurator-custom .rangeslider_grid span { position: absolute; width: 50px; margin-left: -25px; text-align: center; }
.configurator-custom .rangeslider_grid span:nth-of-type(1) { left: 0; }
.configurator-custom .rangeslider_grid span:nth-of-type(2) { left: 25%; }
.configurator-custom .rangeslider_grid span:nth-of-type(3) { left: 50%; }
.configurator-custom .rangeslider_grid span:nth-of-type(4) { left: 75%; }
.configurator-custom .rangeslider_grid span:nth-of-type(5) { left: 100%; }
.range-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.range-actions .btn-group { display: inline-flex; }
.range-actions .btn { margin-left: 0; }
.range-actions .btn + .btn { margin-left: -1px; }
.range-actions .btn-action {
  min-height: 0; padding: 1px 5px; color: #8a8a8a; background: #f5f5f5;
  border: 1px solid #c7cacc; border-radius: 3px; font-size: 12px; line-height: 18px;
  font-weight: 700; text-shadow: none; box-shadow: none;
}
.range-actions .btn-action:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.range-actions .btn-action:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.range-actions .btn-action:hover { color: #707070; border-color: #707070; }
.range-actions .btn-success { padding: 6px 12px; font-weight: 700; text-shadow: none; box-shadow: none; }
.config-note {
  display: grid; grid-template-columns: 25% minmax(0, 1fr); gap: 0 15px;
  margin-top: 18px; color: #707070; font-size: 15px; line-height: 1.4286;
}
.config-note b { font-weight: 700; }
.text-success { color: #3c763d; }
@media (max-width: 1020px) {
  .configurator-custom { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .config-note { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.container-gray { padding: 40px; background: var(--surface-box); border-radius: var(--radius-lg); }
.ticket-container { padding: 15px; }
.rangeslider_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 12px; color: var(--muted); }
.rangeslider_grid span { text-align: center; }

/* ---------- Checkout (legacy layout) ---------- */
.page-head h1 .icon { width: 24px; height: 24px; margin-right: 6px; vertical-align: -2px; }
.checkout-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 30px;
  max-width: 980px; margin: 0 auto; padding: 20px 0 30px; align-items: start;
}
.checkout-review h3 {
  margin: -6px 0 25px; padding-bottom: 10px; color: #373737; font-size: 26px;
  font-weight: 500; line-height: 1.1;
  background: url('/img/sep_hor_block_content.png') center bottom no-repeat;
}
.checkout-review ul { margin: 0; padding: 0; list-style: none; }
.checkout-review li {
  margin: 0; padding: 0 0 5px 25px; background: url('/img/dot-green-check.png') left top no-repeat;
  color: #707070; font-size: 15px; line-height: 1.4286;
}
.checkout-review h4 { margin: 20px 0 10px; color: #373737; font-size: 15px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.checkout-row { display: grid; grid-template-columns: 41.6667% 58.3333%; gap: 0 15px; align-items: start; }
.form-payment .checkout-row { grid-template-columns: 35% 65%; }
.checkout-row > label, .checkout-row > .control-label {
  margin: 0; padding: 7px 15px 0; color: #8a8a8a; font-size: 15px; font-weight: 400; line-height: 1.4286;
}
.checkout-review .checkout-row > label, .checkout-review .checkout-row > .control-label {
  padding-left: 0; color: #707070;
}
.checkout-row select { width: 100%; height: 34px; }
.checkout-row .control { min-width: 0; }
.form-payment h3 { margin: 15px 0 25px; color: #373737; font-size: 26px; font-weight: 500; line-height: 1.1; }
.checkbox-newsletter {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 20px;
  background: #f5f5f5; border-radius: 20px; color: #8a8a8a; font-size: 15px; font-weight: 400;
}
.checkbox-newsletter input { margin: 0; }
.form-payment .radio-line {
  display: flex; align-items: flex-start; gap: 8px; margin: 0; padding-top: 7px;
  color: #8a8a8a; font-size: 15px; font-weight: 400; line-height: 1.4286;
}
.form-payment .radio-line input { margin-top: 3px; }
.form-payment .checkbox { margin: 0 0 4px; color: #8a8a8a; font-size: 15px; font-weight: 400; }
.form-payment hr { margin: 20px 0; border: 0; border-top: 1px solid #ddd; }
.form-payment .help { display: block; margin-top: 4px; color: #8a8a8a; font-size: 13px; }
.button-submit { margin: 15px 0 10px; }
.btn-submit { padding: 6px 60px; font-weight: 700; box-shadow: none; text-shadow: none; }
.checkout-layout input:invalid {
  border-color: lightcoral;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(240, 128, 128, .25);
}
@media (max-width: 1020px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .checkout-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .checkout-row > label, .checkout-row > .control-label { padding: 0; }
}

/* ---------- Flash / alerts ---------- */
#flashbox { position: relative; }
.flash-stack { width: var(--content); max-width: calc(100% - 40px); margin: 0 auto; padding-top: 10px; }
.flash {
  position: relative; margin: 10px 0; padding: 12px 15px 12px 58px; min-height: 40px;
  border: 2px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 14px;
}
.flash .flash-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; }
.flash strong { display: block; margin-bottom: 2px; font-size: 15px; }
.flash p { margin: 0; color: var(--body-text); }
.flash-close { position: absolute; top: 4px; right: 6px; background: none; border: 0; padding: 4px; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.flash-close:hover { opacity: 1; }
.flash-success { background: #f2fef3; border-color: #bee9c3; color: #7abb81; }
.flash-danger, .flash-error { background: #fff6f4; border-color: #eec9c3; color: #ff6b51; }
.flash-warning { background: #fdfcf4; border-color: #ece3a9; color: #a1990c; }
.flash-info { background: #f0faff; border-color: #b2d6e6; color: var(--brand); }
.notice { padding: 10px 15px; border: 2px solid #b2d6e6; border-radius: var(--radius); background: #f0faff; color: var(--body-text); font-size: 14px; margin: 10px 0; }
.notice-warning { background: #fdfcf4; border-color: #ece3a9; }
.notice-error { background: #fff6f4; border-color: #eec9c3; }
.badge { display: inline-block; padding: 3px 7px; border-radius: 10px; background: #777; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; vertical-align: baseline; }
.badge-success { background: var(--success); color: #fff; }
.badge-muted { background: #eef2f5; color: #707070; }
.badge-error { background: #d9534f; color: #fff; }
.label { display: inline-block; padding: .2em .4em; border-radius: 3px; background: #777; color: #fff; font-size: 75%; font-weight: 700; line-height: 1; }
.label-danger { background: #ed1c24; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-wrap table { margin: 0; }
table { width: 100%; max-width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
th, td { padding: 10px 20px; text-align: left; vertical-align: middle; border-top: 1px dotted #ddd; }
th { border-top: 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; text-shadow: 0 1px 0 #fff; background: #f3f3f3; background-image: linear-gradient(#f3f3f3, #ebebeb); }
tbody tr:first-child td { border-top-style: solid; border-top-color: var(--line); }
tbody tr:hover td { background: #e9f6fb; }
td.num, th.num { text-align: right; }
td small, th small { color: var(--muted); }
tr.unpaid td { background: #fff6f6; }
tr.refund td { background: #f6f6f6; color: #707070; }
span.status-paid { color: #77d03d; font-weight: 700; }
span.status-unpaid { color: #fd0002; font-weight: 700; }
span.status-refunded { color: #707070; }
.row-actions { display: flex; gap: 5px; flex-wrap: wrap; }
table caption { caption-side: top; padding: 8px 14px; color: var(--ink); font-size: 18px; text-align: left; border-bottom: 1px solid var(--line); background: #f8f8f8 url('/img/block_content_bg.gif'); }
.table-offers thead th { background: #22a9e1; background-image: none; border: 0; border-left: 1px solid #1f97ca; color: #fff; font-size: 16px; text-shadow: none; }
.table-offers thead th:first-child { border-left: 0; }
.table-offers tr.title td { background: #f8f8f8 url('/img/block_content_bg.gif'); color: var(--ink); font-size: 16px; white-space: nowrap; }
.table-offers td { border-top: 1px dotted #ddd; }

/* ---------- Cards / boxes ---------- */
.card {
  display: flex; flex-direction: column; padding: 20px; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: none;
}
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-top: 0; }
.card .price { margin: 10px 0 5px; color: var(--ink); font-size: 30px; font-weight: 700; }
.card .price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.card ul { padding-left: 0; list-style: none; margin: 12px 0 16px; }
.card li { position: relative; padding: 2px 0 2px 22px; margin-bottom: 4px; font-size: 14px; }
.card li::before { content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; background: url('/img/dot-green-check.png') no-repeat center / 13px 13px; }
.card .btn { margin-top: auto; }
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.section { padding: 30px 0; }
.section-alt { background: #f1f1f1; }
.section-head { margin-bottom: 20px; }
.section-head p { color: var(--muted); }
.content-box-info { border-bottom: 1px solid #e5e5e5; margin-bottom: 20px; }
.content-box-info .cbi-item { display: flex; gap: 15px; align-items: flex-start; padding: 10px 0 20px; border: 0 solid #e5e5e5; border-width: 0 1px 1px 0; }
.content-box-info .cbi-item .cbi-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 3px; color: var(--brand); }
.content-box-info .cbi-item p { margin: 0; }

/* ---------- About / Contact (legacy layout) ---------- */
.about-page, .contact-page { padding-top: 30px; padding-bottom: 30px; }
.about-intro { margin: 0 0 30px; color: #8a8a8a; font-size: 15px; line-height: 1.4286; }
.about-page .content-box-info.about-info {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 30px; border-bottom: 1px solid #e5e5e5;
}
.about-page .content-box-info .cbi-item,
.contact-page .content-box-info .cbi-item {
  display: flex; align-items: flex-start; gap: 25px; padding: 10px 0 20px; border: 0;
}
.about-page .about-info .about-col + .about-col .cbi-item { border-left: 1px solid #e5e5e5; padding-left: 30px; }
.about-page .content-box-info .cbi-icon,
.contact-page .content-box-info .cbi-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid #8a8a8a; border-radius: 50%; color: #8a8a8a; background: #fff;
}
.about-page .cbi-icon .icon, .contact-page .cbi-icon .icon { width: 20px; height: 20px; }
.about-page .cbi-item p { margin: 0; color: #8a8a8a; font-size: 15px; line-height: 1.4286; }
.contact-page .content-box-info.contact-layout {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  margin: 0 0 30px; border-bottom: 1px solid #e5e5e5;
}
.contact-page .contact-info .cbi-item { border-bottom: 1px solid #e5e5e5; }
.contact-page .contact-info .cbi-item:last-child { border-bottom: 0; }
.contact-page .contact-info h3 { margin: 0 0 10px; color: #373737; font-size: 26px; font-weight: 400; line-height: 1.1; }
.contact-page .contact-form h3 { margin: 10px 0 25px; color: #373737; font-size: 26px; font-weight: 400; line-height: 1.1; }
.contact-page .contact-info p { margin: 0 0 10px; color: #8a8a8a; font-size: 15px; line-height: 1.4286; }
.contact-page .content-box-info .contact-form { border-left: 1px solid #e5e5e5; padding-left: 30px; }
.contact-form form { width: 100%; }
.contact-form .form-field { margin-bottom: 15px; }
.contact-form label { color: #8a8a8a; font-size: 15px; font-weight: 400; }
.contact-form input, .contact-form textarea { width: 100%; }
.contact-form textarea { min-height: 78px; }
.contact-page input:invalid {
  border-color: lightcoral;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(240, 128, 128, .25);
}
.contact-form .btn { padding: 6px 20px; box-shadow: none; text-shadow: none; }
@media (max-width: 1020px) {
  .about-page .content-box-info.about-info { grid-template-columns: minmax(0, 1fr); }
  .about-page .about-info .about-col + .about-col .cbi-item { border-left: 0; border-top: 1px solid #e5e5e5; padding-left: 0; }
  .contact-page .content-box-info.contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-page .content-box-info .contact-form { border-left: 0; border-top: 1px solid #e5e5e5; padding-left: 0; }
}
.share-block-content { background: #f8f8f8 url('/img/block_content_bg.gif'); }

/* ---------- Page bands ---------- */
.page-head, .band-title, .band-product, .hero, .band-auth, .error-page {
  background-color: var(--slate);
  color: #fff;
}
.page-head {
  position: relative; min-height: 83px; padding: 9px 20px 7px;
  background-image: url('/img/banner_bg.gif'); background-repeat: no-repeat; background-position: center top; background-size: cover;
}
.page-head .container { display: block; }
.page-head h1 { margin: 8px 0 4px; color: #fff; font-size: 30px; font-weight: 400; }
.page-head .breadcrumbs { color: #c8d2d6; font-size: 12px; margin: 0 0 2px; }
.page-head .breadcrumbs a { color: #c8d2d6; }
.page-head .breadcrumbs a:hover { color: #fff; }
.page-head p, .page-head .muted, .page-head .small { color: #d3dcdf; }
.page-head .badge { text-shadow: none; }
.page-head .hero-actions { margin-top: 8px; }
.page-head .badge { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.page-head .badge-success { background: var(--success); border-color: var(--success); }
.page-head .badge-muted { background: rgba(255, 255, 255, .14); color: #fff; }

/* Home hero */
.hero {
  position: relative; min-height: 214px; padding: 10px 32px 18px;
  background-image: url('/img/home_banner_bg.jpg'); background-repeat: no-repeat; background-position: right center; background-size: cover;
}
.hero .container { width: auto; max-width: 640px; margin: 0; }
.hero h1 { margin: 12px 0 8px; color: #fff; font-size: 34px; font-weight: 500; }
.hero p { max-width: 560px; color: #dbe5e9; font-size: 15px; }
.hero .hero-lists { display: flex; gap: 30px; margin-top: 8px; }
.hero .hero-lists ul { margin: 0; padding: 0; list-style: none; color: #fff; font-size: 18px; line-height: 30px; }
.hero .hero-lists li { margin: 0; }
.hero .hero-lists li::before { content: "›"; margin-right: 6px; color: #9fb3bb; }
.hero .hero-actions { margin-top: 14px; }
.hero .badge { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Product band with inner navigation */
.band-product { padding: 0; background-image: url('/img/banner_bg.gif'); background-repeat: no-repeat; background-position: center top; background-size: cover; }
.band-product .band-top { position: relative; min-height: 144px; padding: 16px 20px; }
.band-product .breadcrumbs { margin: 0 0 4px; color: #c8d2d6; font-size: 12px; }
.band-product .breadcrumbs a { color: #c8d2d6; }
.band-product .breadcrumbs a:hover { color: #fff; }
.band-product .badge { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); }
.band-product .badge-success { background: var(--success); border-color: var(--success); }
.band-product .badge-muted { background: rgba(255, 255, 255, .14); color: #fff; }
.band-product .muted { color: #d3dcdf; }
.band-product .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.band-product .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.band-product h1 { margin: 8px 0 8px; color: #fff; font-size: 30px; }
.band-product p { max-width: 620px; color: #d3dcdf; }
.product-nav { display: flex; list-style: none; margin: 0 -20px; padding: 0; height: 50px; background: var(--slate-strip); overflow-x: auto; }
.product-nav li { margin: 0; flex: none; }
.product-nav a { display: flex; align-items: center; height: 50px; padding: 0 10px; color: #c7d2d6; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.product-nav li:first-child a { padding-left: 20px; }
.product-nav a:hover { color: #fff; background: var(--slate); }
.product-nav li.active a { color: #fff; background: var(--slate); }
.band-product .container { padding: 0; }

/* Auth band */
.band-auth { min-height: 408px; padding: 40px 20px; background-image: url('/img/map_dotted_white.png'); background-repeat: no-repeat; background-position: center top; background-size: 100% auto; }
.band-auth .container { display: flex; justify-content: center; }
.auth-wrap { background: transparent; padding: 0; }
.auth-card {
  position: relative; width: 100%; max-width: 500px; padding: 20px; margin: 0 auto;
  background: #fff; border: 0; border-radius: var(--radius-lg); box-shadow: 0 0 6px rgba(0, 0, 0, .2);
  color: var(--body-text);
}
.auth-card h1, .auth-card h2 { margin-top: 0; color: var(--ink); font-size: 28px; }
.auth-card .hand-arrow { position: absolute; top: 45px; left: 100%; margin-left: 25px; }
.auth-card-wide { max-width: 640px; }
.auth-links { margin-top: 15px; font-size: 14px; }
.auth-links a { color: var(--brand); }
.auth-links a[href*="/register"], .auth-links a[href*="register"] { color: var(--cta); font-weight: 700; }
.auth-links a:hover { color: var(--brand-hover); }
.auth-links a[href*="register"]:hover { color: var(--cta-hover); }
.auth-links span { display: block; margin-top: 6px; }
.auth-links a:not(:last-child) { margin-right: 10px; }
.band-auth .auth-card .btn-success, .band-auth .auth-card .btn-primary { width: 100%; }

/* Error band */
.error-page { position: relative; min-height: 424px; padding: 25px 20px; text-align: right; background-image: url('/img/map_dotted_white.png'); background-repeat: no-repeat; background-position: -300px center; background-size: auto 100%; }
.error-page .error-code { color: #fff; font-size: 230px; font-weight: 700; line-height: 1; opacity: .16; }
.error-page h1 { color: #fff; font-size: 40px; text-transform: uppercase; }
.error-page h4 { color: #fff; text-transform: uppercase; border-top: 1px solid rgba(255, 255, 255, .5); padding-top: 10px; display: inline-block; }
.error-page p { color: #d3dcdf; }
.error-page .error-actions { display: flex; gap: 10px; justify-content: flex-end; }
body.error-404 .error-page .error-code { color: #f26522; opacity: 1; }
body.error-500 .error-page .error-code { color: #ed145b; opacity: 1; }

/* ---------- Old home pricing columns ---------- */
.block-content-row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(5, auto); margin: 0 0 20px; }
.block-content { display: grid; grid-template-rows: subgrid; grid-row: span 5; padding: 20px 20px 30px; text-align: center; color: var(--ink); }
.block-content h3 { font-size: 26px; }
.block-content h3 .icon { width: 22px; height: 22px; margin-right: 8px; color: var(--ink); }
.block-content > p { margin: 0; padding: 8px 20px; line-height: 24px; background: url('/img/sep_hor_block_content.png') center top no-repeat; }
.block-content .block-content-price { margin: 0 0 12px; }
.block-content .block-content-price .starting-from { display: block; margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.block-content .block-content-price mark { background: none; padding: 0; color: var(--ink); }
.block-content .block-content-price mark { font-size: 22px; }
.block-content .block-content-price mark b { font-size: 48px; font-weight: 700; line-height: 1.1; }
.block-content .block-content-price mark .currency { font-size: 22px; vertical-align: top; }
.block-content .block-content-price mark .decimals { font-size: 22px; vertical-align: top; }
.block-content .block-content-price mark small { display: block; font-size: 12px; color: var(--muted); font-style: italic; }
.block-content .btn { min-width: 230px; max-width: 100%; font-weight: 700; }
.block-content-row .sep-ver { position: absolute; top: 20px; bottom: 20px; width: 1px; background: var(--line); }
.block-content-row .sep-ver-1 { left: 33.333%; }
.block-content-row .sep-ver-2 { left: 66.666%; }
.block-content-row .sep-hor { display: none; }
.home-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; }
.home-tiles > li { margin: 0; padding: 20px 25px 25px; min-height: 235px; background: #fff; border-bottom: 3px solid #dedede; box-shadow: none; }
.home-tiles > li:hover { border-bottom-color: var(--brand); }
.home-tiles > li:only-child { grid-column: 1 / -1; }
.home-tiles h3 { font-size: 22px; font-weight: 700; }
.home-tiles .home-tile-browsers { display: flex; align-items: center; gap: 16px; margin: 12px 0 2px; }
.home-tiles .home-tile-browsers img { display: block; }
.home-tiles .btn { margin-top: 10px; }
@media (max-width: 1020px) { .home-tiles { grid-template-columns: 1fr; } }

/* ---------- Auth pages (standalone) ---------- */
.auth-wrap { min-height: 408px; display: grid; place-items: center; padding: 40px 20px; background: var(--slate) url('/img/map_dotted_white.png') center top / 100% auto no-repeat; color: #fff; }
.auth-wrap .auth-card { box-shadow: 0 0 6px rgba(0, 0, 0, .25); }

/* ---------- Panel / account ---------- */
.panel-band { background: var(--slate) url('/img/banner_bg.gif') center top / cover no-repeat; }
.panel-strip { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0 0 0 20px; min-height: 58px; overflow-x: auto; }
.panel-strip > li { margin: 0; flex: none; display: flex; }
.panel-strip a { display: flex; align-items: center; gap: 0; height: 58px; padding: 0 15px 0 50px; position: relative; color: var(--slate-text); font-size: 13px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.panel-strip a .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--slate-text); }
.panel-strip a:hover { color: #fff; background: rgba(0, 0, 0, .12); }
.panel-strip li.active a { color: #fff; background: var(--slate-active); box-shadow: inset 0 3px 5px rgba(0, 0, 0, .25); }
.panel-strip li.divider a { padding: 0 8px; color: #6f828a; }
.panel-strip a.btn { display: inline-block; height: auto; margin: 0 15px 0 10px; padding: 6px 12px; align-self: center; align-items: center; }
.panel-strip a.btn.btn-primary { padding: 9px 18px; color: #fff; font-size: 14px; }
.page-body { padding-top: 30px; padding-bottom: 30px; }
.band-product + .container, .page-head + .container, .band-auth + .container { padding-top: 30px; padding-bottom: 30px; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.billing-layout { display: grid; grid-template-columns: 25% minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 30px; padding-bottom: 30px; }
.side-nav { background: transparent; border: 0; border-radius: 0; padding: 0; position: static; }
.side-nav .side-title { margin: 0; padding: 12px 15px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; border-radius: var(--radius) var(--radius) 0 0; }
.side-nav .side-title + a { border-top: 0; }
.side-nav a { display: block; padding: 10px 15px; border: 1px solid var(--line); border-top: 0; background: #fff; color: #707070; font-size: 14px; font-weight: 700; }
.side-nav a:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.side-nav a:hover { color: var(--brand); background: #fff; }
.side-nav a.active { background: var(--surface-box); color: var(--brand); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .08); }
.side-nav .side-title:not(:first-child) { margin-top: 20px; border-radius: var(--radius) var(--radius) 0 0; }
.stat-grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.stat { padding: 12px 15px; background: var(--surface-box); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat .label { display: block; padding: 0; background: none; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.stat .value { color: var(--ink); font-size: 22px; font-weight: 700; }
.progress { height: 8px; background: #e6e6e6; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.table-list td, .table-list th { padding: 8px 12px; font-size: 14px; }
.table-list td.option_title { width: 150px; color: var(--ink); font-weight: 700; }
.table-list td.option { text-align: right; }
.table-list code, table code { background: none; color: var(--ink); padding: 0; }
.stack > .card + .card { margin-top: 0; }

/* User menu retained for any legacy markup */
.user-menu { position: relative; }
.user-menu-toggle { display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font: inherit; color: var(--ribbon-text); }
.user-menu-panel { display: none; position: absolute; right: 0; top: 100%; z-index: 1000; min-width: 200px; padding: 10px; background: #273135; border-radius: 4px; }
.user-menu-panel.open { display: block; }
.user-menu-panel a, .user-menu-panel .link-button { display: block; width: 100%; padding: 7px 10px; color: #b7b7b7; font-size: 13px; text-align: left; }
.user-menu-panel a:hover, .user-menu-panel .link-button:hover { background: var(--slate); color: #fff; }
.avatar { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .25); color: #fff; font-size: 11px; font-weight: 700; }
.user-email { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { padding: 30px 0; background: var(--footer); color: #efefef; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.footer-grid > div { padding-left: 20px; padding-right: 10px; }
.site-footer h3, .site-footer h4 { margin: 0 0 8px; color: #efefef; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.site-footer a { display: block; padding: 1px 0; color: var(--footer-text); font-size: 13px; line-height: 19px; }
.site-footer a:hover { color: #fff; }
.footer-payments { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.footer-payments img { max-width: 84px; height: auto; }
.footer-payments .card-logos { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-copyright {
  padding: 40px 20px; background: var(--footer-deep) url('/img/logo_footer_bg.gif') 650px top no-repeat;
  color: var(--footer-text); font-size: 12px; line-height: 20px;
}
.footer-copyright .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; width: 100%; max-width: none; margin: 0; }
.footer-copyright b { color: #efefef; }
.footer-brand { display: none; }
.footer-bottom { margin: 0; padding: 0; border: 0; font-size: inherit; color: inherit; display: contents; }

/* ---------- Tabs / pagination / misc ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 20px; flex-wrap: wrap; }
.tabs a, .tabs button { padding: 10px 15px; border: 0; background: none; font: inherit; font-size: 14px; cursor: pointer; color: var(--brand); border-bottom: 2px solid transparent; }
.tabs a:hover, .tabs button:hover { color: var(--brand-hover); }
.tabs a.active, .tabs button.active { color: var(--brand); background: var(--surface-box); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .08); font-weight: 700; }
.pagination { display: flex; gap: 4px; margin: 20px 0; padding: 0; list-style: none; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: 13px; }
.pagination a:hover { background: var(--surface-box); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled { color: #c0c0c0; }
.copy { max-width: 900px; color: var(--body-text); }
.copy h2 { margin-top: 30px; font-size: 28px; }
.copy h3 { margin-top: 26px; font-size: 18px; }
.copy ul { padding-left: 20px; }
.copy li { margin-bottom: 10px; }
.html-from-markdown { padding: 20px; }
.html-from-markdown h3 { font-size: 18px; }
.html-from-markdown p { white-space: pre-wrap; }
.faq-page { padding: 30px 0; }
/* International proxy configurator */
.geo-configurator { padding: 20px 0 30px; }
.geo-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
.geo-aside { position: sticky; top: 15px; }
.geo-panel { padding: 20px; background: var(--surface-box); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.geo-panel-title {
  margin: 0 0 12px; color: var(--ink); font-size: 15px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.geo-selected + .geo-panel-title { margin-top: 22px; }
.geo-selected { max-height: 330px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.geo-selected-table { margin: 0; font-size: 14px; }
.geo-selected-table thead th {
  position: sticky; top: 0; z-index: 2; padding: 9px 7px;
  border: 0; border-bottom: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: 13px; font-weight: 400; text-shadow: none;
}
.geo-selected-table td { padding: 7px; border-top: 1px dotted #ddd; background: #fff; vertical-align: middle; }
.geo-selected-table tbody tr:first-child td { border-top: 0; }
.geo-selected-table tbody tr:hover td { background: #fafafa; }
.geo-selected-table .geo-col-name strong { display: block; font-size: 14px; line-height: 1.3; }
.geo-selected-table .geo-col-name span { display: block; color: #9c9494; font-size: 13px; line-height: 1.3; }
.geo-selected-table .geo-col-num { text-align: right; color: var(--ink); font-weight: 700; }
.geo-selected-empty { margin: 0; padding: 16px 10px; border-top: 1px dotted #ddd; color: var(--muted); font-size: 13px; text-align: center; }
.geo-selected-empty[hidden] { display: none; }
.geo-col-flag { width: 24px; padding-left: 8px !important; padding-right: 2px !important; }
.geo-col-num { width: 32px; text-align: right; white-space: nowrap; }
.geo-col-btn { width: 38px; text-align: right; white-space: nowrap; }
.geo-details { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid #e3e3e3; }
.geo-detail-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 15px; }
.geo-detail-row dt { color: var(--body-text); }
.geo-detail-row dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
.geo-detail-price { margin-top: 5px; padding-top: 8px; border-top: 1px dotted #ddd; }
.geo-detail-price dd { font-size: 21px; line-height: 1.2; }
.geo-per { color: var(--muted); font-size: 14px; font-weight: 400; }
#geo-price { transition: opacity .15s ease; }
#geo-price.is-loading { opacity: .45; }
.geo-checkout { margin-top: 0; }
.geo-locations {
  background: #fff url('/img/table_list_map_bg.gif') no-repeat center 150px;
  background-size: 94% auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.geo-tabs {
  display: flex; margin: 0; padding: 0; list-style: none;
  background: #f5f5f5; border-bottom: 1px solid var(--line);
}
.geo-tabs li { flex: 1 0 auto; min-width: 0; margin: 0; border-right: 1px solid #d9d9d9; }
.geo-tabs li:last-child { border-right: 0; }
.geo-tabs button {
  display: block; width: 100%; padding: 14px 4px; border: 0; background: none;
  color: var(--ink); font: inherit; font-size: 13px; line-height: 1.25; white-space: nowrap; cursor: pointer;
}
.geo-tabs button:hover, .geo-tabs button.active { color: var(--brand); }
.geo-table-scroll { max-height: 760px; overflow: auto; scrollbar-width: thin; scrollbar-color: #c6c6c6 #f4f4f4; }
.geo-table-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.geo-table-scroll::-webkit-scrollbar-track { background: #f4f4f4; }
.geo-table-scroll::-webkit-scrollbar-thumb { background: #c6c6c6; border: 2px solid #f4f4f4; border-radius: 5px; }
.geo-table { min-width: 560px; margin: 0; background: transparent; font-size: 15px; }
.geo-table thead th {
  position: sticky; top: 0; z-index: 2; padding: 16px 12px;
  border: 0; border-bottom: 1px dotted #ccc; background: #fff;
  color: var(--ink); font-size: 15px; font-weight: 400; text-align: left; text-shadow: none;
}
.geo-table thead th.geo-col-available,
.geo-table thead th.geo-col-selected { text-align: center; }
.geo-table thead th.geo-col-steps { text-align: right; }
.geo-table tbody td { padding: 10px 12px; border-top: 1px dotted #ddd; background: transparent; vertical-align: middle; }
.geo-table tbody:first-of-type tr:first-child td { border-top: 0; }
.geo-table tbody tr:hover td { background: rgba(34, 165, 223, .055); }
.geo-table .geo-col-name strong { display: block; font-size: 15px; line-height: 1.3; }
.geo-table .geo-col-name .geo-region { display: block; color: #9c9494; font-size: 14px; line-height: 1.35; }
.geo-table .geo-col-flag { width: 28px; padding-left: 16px !important; padding-right: 4px !important; }
.geo-table .geo-col-available { width: 108px; text-align: center; color: var(--body-text); white-space: nowrap; }
.geo-table .geo-col-selected { width: 138px; text-align: center; }
.geo-table .geo-col-steps { width: 92px; text-align: right; white-space: nowrap; }
.geo-available.is-empty { color: var(--error); font-weight: 700; }
.geo-count { display: block; width: 100px; height: 40px; margin: 0 auto; padding: 6px 8px; text-align: center; font-size: 15px; }
.geo-icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid #c9c9c9; border-radius: var(--radius); background: #fff;
  color: #777; font-family: inherit; font-size: 20px; line-height: 1; cursor: pointer; vertical-align: middle;
}
.geo-icon-btn:hover { border-color: #969696; background: #f7f7f7; color: var(--ink); }
.geo-icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.geo-icon-btn + .geo-icon-btn { margin-left: 4px; }
.geo-icon-btn-sm { width: 32px; height: 32px; font-size: 18px; }
@media (max-width: 1020px) {
  .geo-layout { grid-template-columns: minmax(0, 1fr); }
  .geo-aside { position: static; order: -1; }
  .geo-table-scroll { max-height: none; }
  .geo-table thead th { position: static; }
  .geo-locations { background-size: 100% auto; }
}
@media (max-width: 560px) {
  .geo-configurator { padding: 12px 0 20px; }
  .geo-panel { padding: 15px; }
  .geo-tabs { overflow-x: auto; }
  .geo-tabs li { flex: 1 0 auto; }
  .geo-tabs button { padding: 11px 10px; font-size: 14px; }
  .geo-table { min-width: 520px; }
  .geo-table thead th { padding: 12px 10px; }
  .geo-table tbody td { padding: 8px 10px; }
  .geo-table .geo-col-flag { padding-left: 12px !important; }
  .geo-table .geo-col-available { width: 92px; font-size: 14px; }
  .geo-table .geo-col-selected { width: 120px; }
  .geo-count { width: 86px; }
  .geo-icon-btn { width: 34px; height: 34px; }
  .geo-icon-btn-sm { width: 30px; height: 30px; font-size: 17px; }
}
.time { color: var(--muted); font-size: 12px; }
.nowrap { white-space: nowrap; }
.mw-100 { max-width: 100%; }
.price-box { font-size: 30px; font-weight: 700; color: var(--ink); }

/* ---------- Page-specific ---------- */
.howitworks { counter-reset: step; }
.howitworks .card { padding: 10px 20px; border: 0; background: transparent; text-align: center; }
.howitworks .card .num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 20px; font-weight: 700; line-height: 1; }
.howitworks .card img { margin: 10px auto; max-height: 140px; }
.browser-addon { display: flex; align-items: center; gap: 20px; padding: 20px 20px 20px 0; background: #f5f5f5 url('/img/block_content_bg.gif'); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 15px; }
.browser-addon img { width: 140px; height: 140px; flex: none; }
.browser-addon .browser-addon-body { flex: 1; }
.browser-addon h3 { margin-top: 0; }
.table-country-front { background: #fff url('/img/table_list_map_bg.gif') center 100px no-repeat; }
.table-country-front table { margin: 0; background: transparent; }
.table-country-front caption { background-image: url('/img/block_content_bg.gif'); }
.table-country-front .flag { margin-right: 6px; }
.available-locations .card { max-height: none; }
.available-locations ul { list-style: none; padding: 0; margin: 0; max-height: 520px; overflow: auto; }
.available-locations li { margin: 0; padding: 4px 10px; border-top: 1px dotted #e3e3e3; font-size: 14px; }
.available-locations li:first-child { border-top: 0; }
/* ---------- Network events (legacy panel look) ---------- */
.network-events .panel-group { margin: 0 0 20px; }
.network-events .panel {
  margin-bottom: 20px; background: #fff; border: 1px solid #ddd; border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.network-events .panel-heading {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 15px; margin: 0; padding: 10px 15px 10px 35px;
  color: #333; background-color: #f5f5f5; border-radius: 3px;
  font-size: 16px; cursor: pointer; list-style: none;
}
.network-events .panel-heading::-webkit-details-marker { display: none; }
.network-events .panel-heading::before {
  content: ""; position: absolute; left: 15px; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid #777; border-bottom: 2px solid #777;
  transform: translateY(-70%) rotate(45deg); transition: transform .15s ease;
}
.network-events details[open] > .panel-heading {
  border-bottom: 1px solid #ddd; border-radius: 3px 3px 0 0;
}
.network-events details[open] > .panel-heading::before { transform: translateY(-30%) rotate(-135deg); }
.network-events .panel-title { margin: 0; color: inherit; font-size: 16px; font-weight: 400; line-height: 1.4286; }
.network-events .event-timeline { margin-left: auto; color: #8a8a8a; font-size: 13px; font-weight: 400; text-align: right; }
.network-events .panel.is-ongoing .panel-title { font-weight: 700; }
.network-events .panel-body { padding: 15px; }
.network-events .panel-body table { margin: 0; }
.network-events .panel-body th,
.network-events .panel-body td {
  padding: 10px 20px; background: none; color: #707070; font-size: 14px;
  line-height: 16px; vertical-align: middle; text-shadow: none;
  border-top: 1px dotted #ddd;
}
.network-events .panel-body th { color: #373737; font-weight: 700; border-bottom: 0; }
.network-events .panel-body tbody tr:first-child th,
.network-events .panel-body tbody tr:first-child td { border-top: 0; }
.network-events .panel-body .no-border th,
.network-events .panel-body .no-border td { border-top-color: #fff; }
.network-events .panel-body .vtop { vertical-align: top; }
.network-events .panel-body .td25 { width: 25%; min-width: 25%; }
.network-events .panel-body .html-from-markdown { padding: 20px; }
.network-events .panel-body .html-from-markdown > p:last-child { margin-bottom: 0; }
.network-events .panel-body tbody tr:hover td { background: none; }
.network-events .affected-list p { margin: 0 0 8px; }
.network-events .affected-list p:last-child { margin-bottom: 0; }

/* ---------- Helpdesk (legacy ticket layout) ---------- */
.helpdesk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 15px; flex-wrap: wrap; margin-bottom: 10px; }
.helpdesk-head h3 { margin: 0; }
.helpdesk-section { margin-top: 30px; }
.helpdesk-toplink { margin-bottom: 10px; text-align: right; }
.helpdesk_table .id { width: 5em; }
.helpdesk_table .created, .helpdesk_table .modified, .helpdesk_table .last_reply { width: 15em; }
tr[data-url] { cursor: pointer; }
.btn-success-border { border: 1px solid #67b635; background-image: linear-gradient(#7bd93f, #75cd3d); box-shadow: none; }
.btn-success-border:hover, .btn-success-border:focus { border-color: #5da330; background-image: linear-gradient(#71c63a, #61ad30); }
.btn-info-border { border: 1px solid #1e99cf; background-image: linear-gradient(#2bb1ed, #24a7e1); box-shadow: none; }
.btn-info-border:hover, .btn-info-border:focus { border-color: #1c90c3; background-image: linear-gradient(#22a2db, #1788ba); }
.container-gray.ticket-container { padding: 15px; }
.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 15px; flex-wrap: wrap; }
.ticket-head h4 { margin: 0; color: var(--ink); font-size: 22px; }
.ticket-head h4 .icon { margin-right: 5px; color: var(--muted); }
.ticket-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ticket-actions form { margin: 0; }
.container-gray.ticket-container article {
  margin-top: 15px; padding: 10px 30px 30px; background: #fff;
  border: 1px solid #ebebeb; border-radius: 4px; font-size: 90%;
}
.container-gray.ticket-container article header { overflow: hidden; }
.container-gray.ticket-container article time { float: right; color: var(--muted); font-size: 12px; }
.container-gray.ticket-container article h5 {
  margin: 0 0 10px; padding-bottom: 10px; color: var(--ink);
  border-bottom: 1px dotted #ddd; font-size: 15px; font-weight: 700;
}
.container-gray.ticket-container article p { white-space: pre-wrap; }
.container-gray.ticket-container article.admin_reply { background: #fff5f5; }
.container-gray.ticket-container article .attachment { margin-top: 10px; }
.container-gray.ticket-container article .attachment h6 { margin: 15px 0 5px; font-size: inherit; font-weight: 700; }
.container-gray.ticket-container article .attachment p { margin: 0; white-space: normal; }
.container-gray.ticket-container article .attachment .icon { width: 14px; height: 14px; }
.ticket-form-comment { margin-top: 40px; padding: 30px 20px; color: var(--ink); }
.contact-info .cbi-item { padding: 12px 0; }
.profile-photo { max-width: 100%; }

/* Invoice / print */
.invoice-doc { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.invoice-doc h1 { font-size: 26px; }
.invoice-totals { width: 360px; max-width: 100%; margin-left: auto; }
.invoice-totals td, .invoice-totals th { padding: 6px 10px; }
@media print {
  body { background: #fff !important; border: 0 !important; }
  #main { width: auto; max-width: none; margin: 0; border: 0; box-shadow: none; }
  .site-header, .utility-ribbon, .site-footer, .footer-copyright, .panel-band, .side-nav, .no-print, .page-head, .breadcrumbs, .tabs, .pagination { display: none !important; }
  #content, .container, .page-body { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .card, .invoice-doc { border: 0 !important; padding: 0 !important; }
  table { page-break-inside: auto; }
  tr, td, th { page-break-inside: avoid; }
  a { color: #000 !important; text-decoration: none !important; }
}

/* ---------- Icons ---------- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 16px; height: 16px; fill: currentColor; vertical-align: -3px; }
.icon-lg { width: 20px; height: 20px; }
.big-icon .icon { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  #main { max-width: none; box-shadow: none; }
  .container { width: auto; max-width: none; margin: 0 20px; }
  .site-header { height: 72px; }
  .brand { top: 19px; left: 16px; }
  .brand img { width: 190px; height: auto; }
  .utility-ribbon { display: none; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 55; min-height: calc(100vh - 72px); max-height: calc(100vh - 72px); overflow-y: auto; padding: 10px 20px 20px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 8px 12px rgba(0, 0, 0, .12); }
  .main-nav.open { display: block; }
  .main-nav .nav-list { display: block; }
  .main-nav .nav-list > li { border-bottom: 1px solid #eee; }
  .main-nav .nav-link { width: 100%; padding: 12px 0; text-align: left; font-size: 14px; }
  .main-nav .dropdown-menu { position: static; display: block; padding: 0 0 10px 15px; background: transparent; box-shadow: none; }
  .main-nav .dropdown-menu::before { display: none; }
  .main-nav .dropdown-menu a { color: var(--body-text); padding: 8px 0; }
  .main-nav .has-dropdown > .dropdown-menu { display: none; }
  .main-nav .has-dropdown.open > .dropdown-menu { display: block; }
  .drawer-extra { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .drawer-extra .drawer-group { margin-bottom: 12px; }
  .drawer-extra .drawer-group > a, .drawer-extra .drawer-group > button { display: block; width: 100%; padding: 8px 0; border: 0; background: none; text-align: left; font: inherit; font-size: 14px; color: var(--ink); }
  .drawer-extra .drawer-group > form { margin: 0; }
  .drawer-extra .drawer-group > form .link-button { display: block; padding: 8px 0; font-size: 14px; color: var(--ink); }
  .drawer-extra .drawer-lang { display: flex; gap: 10px; font-size: 13px; }
  .drawer-extra .drawer-lang a.active { font-weight: 700; color: var(--ink); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .footer-grid > div { padding-left: 0; }
  .footer-copyright { background-image: none; padding: 20px; }
  .billing-layout { grid-template-columns: minmax(0, 1fr); }
  .split, .split-even { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-grid { grid-template-columns: minmax(0, 1fr); }
  .block-content-row { grid-template-columns: repeat(2, 1fr); }
  .block-content-row .sep-ver-2 { display: none; }
  .block-content-row .sep-ver-1 { left: 50%; }
  .block-content-row .sep-hor { display: block; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
  .block-content-row .sep-hor-1 { top: 50%; }
  .hero { position: relative; min-height: 0; padding: 24px 20px; background-position: right -30px center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(69, 87, 95, .97) 0%, rgba(69, 87, 95, .9) 60%, rgba(69, 87, 95, .62) 100%); }
  .hero .container { position: relative; z-index: 1; margin: 0; max-width: none; }
  .hero .hero-lists { flex-direction: column; gap: 0; }
  .hero h1 { font-size: 30px; }
  .page-head { min-height: 0; padding: 16px 20px; }
  .page-head h1 { font-size: 26px; }
  .band-product .band-top { min-height: 0; padding: 16px 20px; }
  .band-product h1 { font-size: 26px; }
  .band-auth { min-height: 0; padding: 24px 20px; }
  .error-page { min-height: 0; padding: 30px 20px; text-align: center; }
  .error-page .error-code { font-size: 120px; }
  .error-page .error-actions { justify-content: center; }
  .panel-strip { padding-left: 0; }
  .panel-strip a { padding-left: 42px; }
  .panel-strip a .icon { left: 12px; }
}
@media (min-width: 561px) and (max-width: 1020px) {
  .brand img { width: 265px; height: 44px; }
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .container { margin: 0 16px; }
  .hero { background-image: none; background-color: var(--slate); }
  .hero::before { display: none; }
  .product-nav { margin-left: -16px; margin-right: -16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-copyright .container { display: block; }
  .block-content-row { grid-template-columns: 1fr; }
  .block-content-row .sep-ver,
  .block-content-row .sep-hor { display: none; }
  .block-content { padding: 20px 0; }
  .page-head h1 { font-size: 24px; }
  .hero h1 { font-size: 26px; }
  .auth-card { padding: 20px 16px; }
  .auth-card .hand-arrow { display: none; }
  .form-box-gray, .container-gray { padding: 15px; }
  .table-wrap { margin-left: -16px; margin-right: -16px; border-radius: 0; }
  th, td { padding: 8px 12px; }
  .btn { min-height: 40px; }
  .btn-sm { min-height: 30px; }
  .split, .split-even { gap: 15px; }
  .hero .hero-lists { font-size: 15px; }
  .browser-addon { flex-direction: column; padding: 15px; text-align: center; }
  .footer-copyright { padding: 16px; }
  .panel-strip { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- v2 legacy-style proxy plan view ---------- */
.legacy-plan { display: block; }
.legacy-plan-row { display: grid; gap: 20px; align-items: stretch; margin-bottom: 20px; }
.legacy-plan-row > .legacy-well { margin-bottom: 0; }
.legacy-plan-row-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legacy-plan-row-bottom { grid-template-columns: fit-content(240px) minmax(0, 1fr); }
.legacy-plan-row-bottom > .legacy-well { display: flex; flex-direction: column; height: clamp(400px, 55vh, 560px); overflow: hidden; }
.legacy-plan-row-bottom > #export { overflow-y: auto; }
#ippacks > .notice { flex: none; }
.legacy-export-view { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.legacy-export-view[hidden] { display: none; }
.legacy-export-head,
.legacy-export-lines {
  padding: 8px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.6; white-space: pre;
}
.legacy-export-head { flex: none; overflow: hidden; border-bottom: 1px solid var(--line); background: #f3f3f3; color: var(--ink); }
.legacy-export-lines { flex: 1 1 auto; min-height: 0; margin: 0; overflow: auto; background: #fff; }
.legacy-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; }
.legacy-plan-title { margin: 0; font-size: 22px; line-height: 1.25; color: var(--ink); word-break: break-word; }
.legacy-plan-id { color: var(--muted); font-weight: 400; }
.legacy-edit-link { display: inline-block; margin-left: 5px; color: var(--brand); vertical-align: middle; }
.legacy-edit-link .icon { width: 15px; height: 15px; }
.legacy-plan-summary { color: #5cb85c; font-size: 13px; line-height: 1.5; }
.legacy-well { padding: 10px; margin-bottom: 20px; background: var(--surface-box); border: 1px solid var(--line); border-radius: var(--radius); }
.legacy-well h2 { margin: 0 0 4px; font-size: 20px; }
.legacy-well .table-list { margin: 0; }
.legacy-well .table-list td { padding: 7px 8px; }
.legacy-inline-field { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.legacy-field-editor { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.legacy-field-editor[hidden], [data-field-display][hidden], [data-field-edit][hidden], [data-field-save][hidden], [data-field-error][hidden] { display: none !important; }
.legacy-inline-name .legacy-field-editor input { width: min(360px, 55vw); font-size: 19px; font-weight: 700; }
.table-list .legacy-field-editor { width: 100%; }
.table-list .legacy-field-editor input { width: 100%; min-width: 120px; }
.legacy-save-link { color: #5cb85c; font-size: 18px; font-weight: 700; line-height: 1; text-decoration: none; }
.legacy-save-link:hover { color: #449d44; }
.legacy-inline-field .field-error { display: block; width: 100%; }
.legacy-option-title { display: block; margin-bottom: 6px; color: var(--ink); font-size: 14px; font-weight: 700; }
.legacy-export-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.legacy-export-grid .checkbox { margin-bottom: 3px; }
.legacy-export-grid > div:first-child { border-bottom: 1px solid #ddd; padding-bottom: 6px; }
.legacy-checkbox { margin-top: 7px; }
.legacy-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.legacy-actions-end { display: inline-flex; margin-left: auto; }
.legacy-actions-right { justify-content: flex-end; }
.legacy-export-actions { justify-content: flex-end; margin-top: 0; }
.legacy-actions form { margin: 0; }
.legacy-footnote { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.legacy-success-link { color: #5cb85c; font-weight: 700; }
.recurring-payments-head { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.recurring-payments-head + .table-wrap { margin-top: 0; }
.text-danger { color: #d43f3a; }
.legacy-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.legacy-modal {
  width: min(780px, 94vw); max-height: 88vh; padding: 0; border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 6px; background: #fff; color: var(--body-text); box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.legacy-modal-wide { width: min(980px, 94vw); }
.legacy-modal::backdrop { background: rgba(0, 0, 0, .5); }
.legacy-modal-header { position: relative; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #f5f5f5; border-radius: 6px 6px 0 0; }
.legacy-modal-header h2 { margin: 0; font-size: 19px; }
.legacy-modal-close { position: absolute; right: 10px; top: 6px; border: 0; background: none; color: #777; font-size: 26px; line-height: 1; cursor: pointer; }
.legacy-modal-close:hover { color: #333; }
.legacy-modal-body { max-height: calc(88vh - 55px); padding: 18px; overflow: auto; }
.legacy-price-table { width: 100%; margin-bottom: 16px; border-collapse: collapse; }
.legacy-price-table th, .legacy-price-table td { padding: 8px 10px; border-top: 1px dotted #ddd; text-align: left; }
.legacy-price-table thead th { border-top: 0; border-bottom: 1px solid var(--line); background: #f3f3f3; }
.legacy-price-table input[type="number"] { display: inline-block; width: 80px; margin-right: 4px; vertical-align: middle; }
.legacy-payment-types { margin: 0 0 10px; padding: 0; border: 0; }
.legacy-payment-types legend { margin-bottom: 6px; color: var(--ink); font-size: 14px; font-weight: 700; }
.recurring-add-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.recurring-add-form select { width: auto; min-width: 200px; max-width: 100%; }
.recurring-payment-method { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.legacy-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.legacy-auth-import { padding-left: 20px; border-left: 1px solid #dfdfdf; }
.legacy-auth-import textarea { width: 100%; height: 250px; border-color: #22a5df; }
.legacy-auth-list { max-height: 253px; overflow-y: auto; background: #fff; border: 1px solid var(--line); }
.legacy-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px; border-bottom: 1px dotted #ccc; }
.legacy-auth-row-actions { display: flex; align-items: center; gap: 6px; }
.legacy-inline-form { display: flex; align-items: center; gap: 4px; margin: 0; }
.legacy-inline-form input { width: 100px; }
.legacy-auth-import-label { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.legacy-stats-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.legacy-stats-controls label { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; font-weight: 700; }
@media (max-width: 1020px) {
  .legacy-plan-row-top, .legacy-plan-row-bottom { grid-template-columns: minmax(0, 1fr); }
  .legacy-plan-row-bottom > .legacy-well { height: auto; }
  .legacy-plan-row-bottom > #export { overflow: visible; }
  .legacy-form-grid { grid-template-columns: minmax(0, 1fr); }
  .legacy-auth-grid { grid-template-columns: minmax(0, 1fr); }
  .legacy-auth-import { padding-left: 0; border-left: 0; }
}
.legacy-well .table-wrap code { white-space: nowrap; }
/* Browser-addon bridge */
.addon-key-dialog { width: min(520px, 92vw); }
.addon-key-dialog-status { margin: 12px 0 0; padding: 8px 10px; background: #fdf3f3; border: 1px solid #e4b7b7; color: #8a2b2b; font-size: 13px; }
.addon-key-dialog-status a { color: inherit; font-weight: 700; }
.proxybonanza-addon-inactive .btn-proxybonanza-addon { opacity: .65; cursor: not-allowed; }
