/* OurPlat 2026 redesign - shared styles for the new pages (server_v2.php, checkout_v2.php, v2_layout.php).
   Warm black ground, gold accents, orange buttons. Phone first; wider screens get two columns. */
:root {
    --bg: #0A0A0A;
    --top: #2A1E12;
    --card: #17120E;
    --raised: #221A13;
    --line: #2E2620;
    --line2: #3A3027;
    --field: #4A3F35;
    --text: #F6EEDD;
    --muted: #BBB0A0;
    --gold: #F5AA28;
    --btn: #F08A1C;
    --btn-hover: #F6A040;
    --btn-text: #1A1206;
    --ok: #7FD88F;
    --bad: #F08A7A;
    --pick: #2E200C;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.v2 { margin: 0; background: var(--bg) linear-gradient(180deg, var(--top) 0, #140F0A 300px, var(--bg) 640px) no-repeat; color: var(--text);
    font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.v2 a { color: var(--gold); }
.v2 a:hover { color: #FFC45C; }
.v2 h1, .v2 h2, .v2 h3 { line-height: 1.2; }
.v2 .display { font-family: Cinzel, Georgia, serif; }
.v2 .wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.v2 .muted { color: var(--muted); }
.v2 .ok { color: var(--ok); }
.v2 [hidden] { display: none !important; }
.v2 .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* wide screens (2026-10-23): the site sits in a centred panel with a thin double gold frame, on warm brown sides
   (option 1 of the side designs). Phones and tablets are unchanged; LiveChat still floats at the bottom right. */
@media (min-width: 1320px) {
    html { background-color: #0b0805; background-attachment: fixed;
        background-image: radial-gradient(55% 90% at 0% 45%, rgba(122,74,30,.55), rgba(122,74,30,0) 72%),
            radial-gradient(55% 90% at 100% 55%, rgba(122,74,30,.5), rgba(122,74,30,0) 72%); }
    body.v2 { max-width: 1240px; margin: 0 auto;
        box-shadow: 0 0 0 1px #6B4E1A, 0 0 0 4px #0b0805, 0 0 0 5px #F5AA28, 0 0 48px 8px rgba(0,0,0,.65); }
    /* the header black (and the gold line under it) runs the full width of the screen; the framed panel starts below */
    html { overflow-x: clip; }
    body.v2 .v2-head { box-shadow: 0 0 0 100vmax #000; clip-path: inset(0 -100vmax -6px -100vmax); }
    body.v2 .v2-head::after { left: calc(620px - 50vw); right: calc(620px - 50vw); } /* exactly to the screen edges (the panel is 1240px wide) */
    /* the footer the same: black and its gold line across the full width */
    body.v2 .v2-foot { box-shadow: 0 0 0 100vmax #000; clip-path: inset(-6px -100vmax 0 -100vmax); }
    body.v2 .v2-foot::before { left: calc(620px - 50vw); right: calc(620px - 50vw); }
}

/* header */
.v2-head { position: relative; background: #000; }
/* double gold line under the header and above the footer, matching the gold frame round the page on wide screens */
.v2-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; z-index: 1; pointer-events: none;
    background: #0b0805; border-top: 1px solid #F5AA28; border-bottom: 1px solid #6B4E1A; }
.v2-head + .v2-notice { margin-top: 5px; }
.v2-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 8px; padding-bottom: 8px; }
.v2-logo img { height: 72px; width: auto; display: block; } /* the badge at 72px so "The EverQuest Specialists" can be read */
.v2-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 320px; }
.v2-nav a { color: #E6DCCB; text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 12px; border-radius: 8px; white-space: nowrap; }
.v2-nav a:hover { color: var(--gold); background: var(--raised); }
.v2-nav a.on { color: var(--gold); background: var(--raised); box-shadow: inset 0 -2px 0 var(--gold); }
.v2-nav a:focus-visible, .v2-help:focus-visible, .v2-cart:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* phones: logo, Live Support (icon) and cart on one row, the menu on a second row that scrolls sideways */
@media (max-width: 760px) {
    .v2-head .wrap { gap: 6px 10px; }
    .v2-logo { margin-right: auto; }
    .v2-logo img { height: 60px; }
    .v2-nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
    .v2-nav::-webkit-scrollbar { display: none; }
    .v2-nav a { font-size: 14px; padding: 8px 10px; }
    .v2-help { padding: 0; width: 44px; height: 44px; justify-content: center; }
    .v2-help .t { display: none; }
}
.v2-help { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--gold); border-radius: 8px; color: var(--gold); text-decoration: none; font-weight: 600; font-size: 14px; }
.v2-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: var(--raised); color: var(--text); }
.v2-cart b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--btn); color: var(--btn-text); font-size: 11px; line-height: 18px; text-align: center; }
.v2-notice { display: flex; align-items: center; justify-content: center; gap: 8px; background: #2E200C; border-bottom: 1px solid var(--gold); color: #FFE2A8; text-align: center; padding: 10px 16px; font-weight: 600; font-size: 15px; }
.v2-notice svg { flex: none; }

/* layout bits */
body.v2 { display: flex; flex-direction: column; min-height: 100vh; }
.v2-main { flex: 1 0 auto; width: 100%; padding-top: 20px; padding-bottom: 48px; }
.v2-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.v2-crumbs a { color: var(--muted); }
.v2-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.v2-grow { flex: 999 1 540px; min-width: 0; }
.v2-side { flex: 1 1 320px; min-width: 0; }
.v2-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.v2-card.strong { border-color: var(--line2); }
.v2-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--raised); color: var(--gold); font-size: 13px; font-weight: 600; }
.v2-h2 { margin: 0 0 12px; font-family: Cinzel, Georgia, serif; font-size: 25px; color: var(--gold); }
.v2-section { margin-top: 36px; }

/* buttons and fields */
.v2-btn { display: block; width: 100%; padding: 15px 18px; border: 0; border-radius: 10px; background: var(--btn); color: var(--btn-text) !important; text-align: center; text-decoration: none;
    font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.v2-btn:hover { background: var(--btn-hover); }
.v2-btn[disabled] { background: #4A3F35; color: #9A8F80 !important; cursor: not-allowed; }
.v2-btn.line { background: transparent; border: 1px solid var(--gold); color: var(--gold) !important; }
.v2-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.v2-field input, .v2-field select, .v2 select.v2-select { width: 100%; height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--field); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.v2-field input:focus, .v2-field select:focus, .v2 select.v2-select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.v2-field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.v2-field.bad input { border-color: var(--bad); }
.v2-err { color: var(--bad); font-size: 14px; font-weight: 600; margin-top: 6px; }

/* amount cards */
.v2-amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.v2-amt { position: relative; text-align: left; font: inherit; color: var(--text); cursor: pointer; padding: 16px 14px 14px; border-radius: 12px; background: var(--card); border: 2px solid var(--line); }
.v2-amt:hover { border-color: var(--line2); }
.v2-amt[aria-pressed="true"] { background: var(--pick); border-color: var(--gold); }
.v2-amt[disabled] { opacity: .45; cursor: not-allowed; }
.v2-amt .big { display: block; font-size: 24px; font-weight: 700; }
.v2-amt .full { display: block; font-size: 13px; color: var(--muted); }
.v2-amt .price { display: block; margin-top: 10px; font-size: 20px; font-weight: 700; color: var(--gold); }
.v2-amt .per { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; margin-top: 2px; font-size: 13px; }
.v2-amt .per > span { white-space: nowrap; }
.v2-amt .save { color: var(--ok); font-weight: 600; }
.v2-amt .badge { position: absolute; top: -11px; left: 12px; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: var(--btn-text); font-size: 12px; font-weight: 700; }
.v2-amt .state { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* checkout: on phones the order summary comes before the details form */
.v2-checkout .v2-side { order: -1; }
.v2-checkout .v2-next-narrow { order: 1; flex: 1 1 100%; }
.v2-checkout .v2-next-wide { display: none; }
@media (min-width: 900px) { .v2-checkout .v2-side { order: 0; } .v2-checkout .v2-next-wide { display: block; } .v2-checkout .v2-next-narrow { display: none; } }

.v2-amounts.v2-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 520px) { .v2-amounts.v2-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#v2-qty { -moz-appearance: textfield; }
#v2-qty::-webkit-outer-spin-button, #v2-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* lists, stats, reviews */
.v2-trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.v2-trust li { display: flex; gap: 10px; }
.v2-trust svg { flex: none; margin-top: 2px; }
.v2-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.v2-stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.v2-stat b { display: block; font-size: 25px; color: var(--gold); }
.v2-stat span { font-size: 14px; color: var(--muted); }
.v2-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.v2-review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.v2-review .stars { color: var(--gold); letter-spacing: 2px; }
.v2-review blockquote { margin: 8px 0 12px; font-size: 15px; }
.v2-review figcaption { font-size: 13px; color: var(--muted); }
.v2-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.v2-steps li { display: flex; gap: 14px; }
.v2-steps .n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--btn); color: var(--btn-text); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.v2-delivery img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line2); }
.v2-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.v2-faq summary { cursor: pointer; font-weight: 600; }
.v2-faq p { margin: 10px 0 0; color: var(--muted); }

/* home page */
.v2-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text) !important; text-decoration: none; }
.v2-shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.v2-shopcard { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text) !important; }
.v2-shopcard:hover { border-color: var(--gold); }
.v2-shopcard .kicker { font-size: 13px; color: var(--gold); font-weight: 700; }
.v2-shopcard .name { font-size: 21px; font-weight: 700; }
.v2-shopcard .muted { font-size: 14px; }
.v2-shopcard .go { margin-top: 10px; color: var(--gold); font-weight: 600; }
.v2-live { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.v2-live .v2-card { display: flex; gap: 12px; align-items: center; padding: 16px; }
.v2-live .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.v2-text { font-size: 16px; }
.v2-text b { color: var(--text); }

/* legal pages */
.v2-legal { line-height: 1.65; }
.v2-legal h4 { color: var(--gold); margin: 24px 0 6px; font-size: 18px; }
.v2-legal h4:first-child { margin-top: 0; }
.v2-legal p, .v2-legal li { margin: 0 0 10px; }
.v2-legal ul { margin: 0 0 10px 20px; padding: 0; }
.v2-legal .legal-updated { color: var(--muted); font-size: 14px; }
/* the reCAPTCHA notice is written under each form, so the floating badge (which covers Live Support) is hidden */
.grecaptcha-badge { visibility: hidden; }

/* footer */
.v2-foot { position: relative; background: #000; }
.v2-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 5px; pointer-events: none;
    background: #0b0805; border-top: 1px solid #6B4E1A; border-bottom: 1px solid #F5AA28; }
.v2-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: var(--muted); }
.v2-foot a { color: var(--muted); }
.v2-foot .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
