.account-preferences { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.classic-base-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px 0; margin: 0; border: 0; }
.classic-base-methods legend { margin-bottom: 8px; color: #186654; }
.classic-base-methods label { position: relative; display: grid; place-items: center; min-height: 48px; border: 2px solid #d3dba9; border-radius: 6px; background: #ffffe7; cursor: pointer; }
.classic-base-methods label:has(input:checked) { border-color: #ea650a; background: #ffeba2; }
.classic-base-methods label:focus-within { outline: 2px solid #185f55; outline-offset: 2px; }
.classic-base-methods input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.classic-base-methods img { display: block; width: auto; max-width: 85%; max-height: 30px; object-fit: contain; }
.classic-base-methods > p { grid-column: 1 / -1; font-size: 13px; }
.classic-base-products.is-voucher .classic-base-stock { color: #fff; font-weight: 700; text-shadow: 0 1px 2px #124355; }
.classic-base-filters > div { display: flex; flex-wrap: wrap; gap: 5px; }
.theme-classic .classic-base-filters .button[aria-pressed="true"],
.theme-classic .classic-base-filters .button[aria-pressed="true"]:hover { background: #208776; color: #fff; }
.theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; margin: 0 0 14px; border: 0; min-width: 0; }
.theme-options legend { margin-bottom: 9px; font-size: 12px; font-weight: 650; color: var(--muted); }
.theme-options .button { font-size: 12px; }
.theme-options .button[aria-pressed="true"] { border-color: #477c72; background: #e6f4ed; color: #25664f; box-shadow: inset 0 0 0 1px #477c72; }
.account-dropdown .install-apk { color: #fff; background: #344eaa; border-color: #344eaa; }
.account-dropdown .install-apk:hover { color: #fff; background: #253d90; }
/* Classic pages use the provider's narrow canvas; account and team tools remain reachable. */
.theme-classic { background: #379285; }
.theme-classic .shell, .theme-classic .shell.nav-collapsed { display: block; grid-template-columns: none; }
.theme-classic .main-shell { width: 100%; margin: 0; }
.theme-classic .sidebar { width: min(310px, calc(100vw - 32px)); transform: translateX(-101%); visibility: hidden; z-index: 60; }
.theme-classic .shell.nav-open .sidebar { transform: translateX(0); visibility: visible; }
.theme-classic .sidebar-close { display: inline-flex; }
.theme-classic .shell.nav-open .mobile-overlay { display: block; position: fixed; inset: 0; border: 0; background: #132b4780; z-index: 59; }
.theme-classic .mobile-nav { display: none; }
.theme-classic .topbar { display: grid; grid-template-columns: auto 44px minmax(0, 1fr); align-items: center; min-height: 60px; height: auto; padding: calc(8px + env(safe-area-inset-top)) max(12px, calc((100% - 456px) / 2)) 8px; gap: 8px; background: #236d60; border: 0; }
.theme-classic .topbar-label { display: none; }
.theme-classic .navigation-toggle { height: 44px; min-height: 44px; padding: 8px 10px; margin: 0; background: transparent; border-color: #9dd1c0; color: #fff; font-size: 13px; }
.theme-classic .classic-refresh { height: 44px; min-height: 44px; width: 44px; padding: 10px; background: transparent; border-color: #9dd1c0; color: #fff; }
.theme-classic .topbar .account { margin-left: auto; max-width: 100%; justify-self: end; }
.theme-classic .account-trigger { color: #fff; background: transparent; height: 44px; min-height: 44px; max-width: 100%; gap: 8px; padding: 5px 8px; border-color: #9dd1c0; }
.theme-classic .account-trigger .account-name { color: #fff; }
.theme-classic .account-trigger.button.quiet:hover:not(:disabled), .theme-classic .account-trigger[aria-expanded="true"] { background: #286f60; color: #fff; }
.theme-classic .account-trigger .avatar { width: 28px; height: 28px; flex-basis: 28px; }
.theme-classic .account-dropdown { z-index: 55; width: min(320px, calc(100vw - 40px)); }
.theme-classic main.workspace { background: #f2f5f8; }
.classic-vip-page main.workspace { max-width: 480px; min-height: calc(100dvh - 60px - env(safe-area-inset-top)); padding: 0; margin: 0 auto; background: #379285; }
.classic-vip-page .page-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.classic-vip-page .connection-strip { margin: 0; padding: 5px 10px; border: 0; border-radius: 0; gap: 5px; flex-wrap: wrap; color: #d9ffee; background: #236d60; font-size: 11px; }
.classic-vip-page .connection-strip .muted, .classic-vip-page .connection-strip .last-sync { color: #d0f2e5; font-size: 10px; }
.classic-vip-page .connection-strip .last-sync { width: auto; margin-left: auto; }
.classic-vip-page .connection-strip .session-attribution { color: #d0f2e5; font-size: 10px; }
/* Classic connection contrast: the status strip is a dark surface, unlike Modern cards. */
.classic-vip-page .connection-strip .operational-indicators,
.classic-vip-page .connection-strip .operational-indicator strong { color: #effff8; }
.classic-vip-page .connection-strip .operational-indicator p { color: #d0f2e5; }
.classic-vip-page .connection-strip .operational-indicator { border-top-color: #9dd1c066; }
.classic-vip-page .connection-strip .operational-indicator .button.quiet { color: #effff8; border-color: #9dd1c0; background: transparent; }
.classic-vip-page .connection-strip .operational-indicator .button.quiet:hover:not(:disabled),
.classic-vip-page .connection-strip .operational-indicator .button.quiet:focus-visible { color: #174d40; background: #e2f5ed; border-color: #e2f5ed; }
.classic-vip-page .connection-strip .operational-indicator .button.quiet:focus-visible { outline: 2px solid #ffe793; outline-offset: 2px; }
.classic-vip-page .connection-strip .operational-indicator .button.quiet:disabled { opacity: 1; color: #d0f2e5; }
.classic-vip-page .classic-connection-details > summary:hover,
.classic-vip-page .classic-connection-details > summary:focus-visible { color: #effff8; background: #1b594e; }
/* End classic connection contrast. */
.classic-vip-page .classic-connection-strip { display: block; padding: 0; }
.classic-connection-details > summary { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 12px; cursor: pointer; list-style: none; border-top: 1px solid #ffffff1a; }
.classic-connection-details > summary::-webkit-details-marker { display: none; }
.classic-connection-details > summary:focus-visible { outline: 2px solid #ffe793; outline-offset: -2px; }
.classic-connection-details > summary .status-label { min-width: 0; font-size: 12px; line-height: 1.4; }
.classic-vip-page .classic-connection-details .last-sync { margin-left: auto; width: auto; flex-shrink: 0; white-space: nowrap; font-size: 11px; }
.classic-connection-details > summary svg { flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.classic-connection-details[open] > summary svg { transform: rotate(180deg); }
.classic-connection-body { padding: 2px 12px 12px; line-height: 1.5; overflow-wrap: anywhere; }
.classic-connection-body > p { margin: 0 0 6px; }
.classic-vip-page .classic-connection-strip .operational-indicators { padding: 0 12px 8px; }
.classic-vip-page .classic-vip:has(.classic-product-grid) { display: flex; flex-direction: column; min-height: calc(100dvh - 96px - env(safe-area-inset-top)); background: #225d47; }
.classic-vip-page .classic-product-grid { align-content: start; }
.classic-vip .classic-cart .vip-quantity-controls button { background: #aa4383; border-radius: 50%; height: 26px; margin: 2px; flex-basis: 26px; }
.classic-vip .is-voucher .classic-cart .vip-quantity-controls button { background: #426ad2; }
.classic-vip .classic-cart .vip-quantity-controls button img { display: block; max-width: 15px; max-height: 15px; }
/* An open quantity editor gets the full card width, outside the artwork column. */
.classic-vip .classic-product-body:has(.vip-quantity-controls) { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 4px; }
.classic-vip .classic-product-body:has(.vip-quantity-controls) .classic-product-image { grid-column: 1; grid-row: 1 / span 2; width: 100%; justify-self: center; }
.classic-vip .classic-product-body:has(.vip-quantity-controls) .classic-image-missing { grid-column: 1; grid-row: 1 / span 2; width: 100%; }
.classic-vip .classic-product-info:has(.vip-quantity-controls) { display: contents; }
.classic-vip .classic-product-info:has(.vip-quantity-controls) .classic-product-caption { grid-column: 2; grid-row: 1; align-self: end; text-align: center; }
.classic-vip .classic-product-info:has(.vip-quantity-controls) .classic-product-value { grid-column: 2; grid-row: 2; align-self: start; margin: 0; text-align: center; }
.classic-vip .classic-product-info:has(.vip-quantity-controls):not(:has(.classic-product-caption)) .classic-product-value { grid-row: 1 / span 2; align-self: center; }
.classic-vip .classic-cart:has(.vip-quantity-controls) { grid-column: 1 / -1; grid-row: 3; padding: 0; }
.classic-vip .classic-cart .vip-quantity-controls { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; gap: 4px; height: auto; }
.classic-vip .classic-cart .vip-quantity-controls button { width: 32px; height: 36px; min-height: 36px; margin: 0; border-radius: 6px; }
.classic-vip .classic-cart .vip-quantity-controls input.quantity { width: 100%; min-width: 0; min-height: 40px; height: 40px; margin: 0; padding: 4px; font-size: 16px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.classic-vip .classic-history .vip-history-filters { padding-inline: 0; gap: 7px; }
.classic-vip .classic-history .vip-history-filters label { color: #e0fff1; }
.classic-vip .classic-history .vip-history-filters input { border-radius: 22px; border-color: #b4d6c9; }
.classic-vip .classic-history .button.primary { color: #fff; background: #319a7c; border-radius: 22px; }
.classic-vip .classic-history .button.quiet, .classic-vip .classic-history .vip-history-observed { color: #e0fff1; }
.classic-vip .classic-history td, .classic-vip .classic-history th { text-align: center; }
.classic-vip .classic-history .table-product { justify-content: center; }
.classic-vip .classic-history tbody tr:nth-child(even) { background: #f6f7f7; }
.classic-vip-page [data-classic-footer] { margin-top: auto; position: sticky; bottom: 0; z-index: 3; padding-bottom: env(safe-area-inset-bottom); background: #e9f1ef; }
/* The APK's native parent owns the bottom inset; browser pages still need it. */
.android-inset-host .classic-vip-page [data-classic-footer] { padding-bottom: 0; }
#classic-cart-dialog { max-height: calc(100dvh - 24px); overflow-y: auto; }
#classic-cart-dialog .dialog-content { padding-top: 44px; }
#classic-cart-dialog .button.full + .button.full { margin-top: 8px; }
.theme-classic .toast { bottom: max(20px, calc(90px + env(safe-area-inset-bottom))); }
@media (max-width: 480px) {
  .theme-classic .topbar { padding-inline: 12px; }
  .classic-vip-page main.workspace { padding: 0; }
}
@media (max-width: 390px) {
  .classic-vip .classic-cart .vip-quantity-controls { grid-template-columns: 1fr 1fr; }
  .classic-vip .classic-cart .vip-quantity-controls input.quantity { grid-column: 1 / -1; grid-row: 1; }
  .classic-vip .classic-cart .vip-quantity-controls button { grid-row: 2; width: 100%; }
  .classic-vip .classic-header-title { gap: 8px; padding-inline: 10px; }
  .classic-vip .classic-header-title h1 { font-size: 18px; white-space: nowrap; }
  .classic-vip .classic-header-spacer, .classic-vip .classic-topup-button { width: 60px; flex-basis: 60px; }
}
