/* ============================================================
   BNB UI CORE — design tokens + shared components
   Single dark skin in Binance/BNB Chain colours (near-black + #FCD535).
   Loaded by BOTH the landing (style.css) and the cabinet
   (dashboard.css); those files only add page-specific styles.
   ============================================================ */

@import url('../fonts/fonts.css');

/* ---------- 1. Tokens ---------- */
/* BNB CHAIN SKIN — single dark palette (Binance-like: near-black + yellow).
   The light theme was dropped on purpose; [data-theme="light"] is kept as an
   alias of the dark palette so any stray toggle can never blank the page. */
:root {
    /* injected at runtime from admin settings (primaryColor()) */
    --primary: #fcd535;
    --accent: #f0b90b;
    --grad: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);

    --success: #0ecb81;
    --danger: #f6465d;
    --warning: #f0b90b;
    --info: #4da3ff;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Sora', 'Inter', -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --speed: .18s;
}

:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b0e11;
    --bg-soft: #12161c;
    --surface: #181a20;
    --surface-2: #1e2329;
    --surface-3: #2b3139;
    --text: #eaecef;
    --text-soft: #c2c8d0;
    --muted: #848e9c;
    --border: #2b3139;
    --border-strong: #3c4451;
    --primary-soft: color-mix(in srgb, var(--primary) 16%, #181a20);
    --primary-ink: #0b0e11;              /* text on the yellow primary */
    --grad-text-end: #f8d12f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 4px 16px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, .6);
    --nav-bg: rgba(11, 14, 17, .88);
    --success-soft: rgba(14, 203, 129, .16);
    --danger-soft: rgba(246, 70, 93, .16);
    --warning-soft: rgba(240, 185, 11, .16);
    --info-soft: rgba(77, 163, 255, .16);

    /* legacy aliases: old inline styles in blades reference these names.
       "white" meant "main text color" and "black" meant "page bg" in the
       old dark-only skin, so they map to semantic tokens, not raw colors. */
    --white: var(--text);
    --black: var(--bg);
    --dark: var(--surface);
    --dark2: var(--surface-2);
    --bgLight: var(--surface-2);
    --bgLight2: var(--surface-3);
    --borderColor: var(--border);
    --fontColor: var(--text-soft);
    --fontColor2: var(--muted);
    --secondary: var(--accent);
    --gold: var(--warning);
    --gradiant: var(--grad);
    --gradiantAlpha: linear-gradient(90deg, color-mix(in srgb, var(--primary) 5%, transparent) 0%, color-mix(in srgb, var(--accent) 5%, transparent) 100%);
}

/* ---------- 2. Base ---------- */
* { outline-color: color-mix(in srgb, var(--primary) 60%, transparent); }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--speed) ease, color var(--speed) ease;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-head);
    color: var(--text);
    font-weight: 700;
    line-height: 1.25;
}

p { color: var(--text-soft); }
a { color: var(--primary); text-decoration: none; transition: color var(--speed); }
a:hover { color: color-mix(in srgb, var(--primary) 80%, var(--text)); }
hr { border-color: var(--border); opacity: 1; }
img { max-width: 100%; }
::selection { background: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--text); }
::-moz-selection { background: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--text); }
/* Brand-gradient cards use dark ink on the yellow primary — invert the
   highlight there so a text selection stays readable (Account Balance box). */
.wallet-box ::selection { background: var(--primary-ink); color: var(--primary); }
.wallet-box ::-moz-selection { background: var(--primary-ink); color: var(--primary); }

.text-muted { color: var(--muted) !important; }
.text-dark { color: var(--text) !important; }
.text-white { color: #fff !important; }
.golden-text { color: var(--primary); }
.darkblue-text { color: var(--text); }
.bg-custom { background: var(--surface-2) !important; }

/* thin scrollbars matching the theme */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- 3. Buttons ---------- */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    padding: 9px 18px;
    transition: all var(--speed) ease;
    box-shadow: none;
}
.btn:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }

.btn-primary,
.btn-custom,
.cmn-btn,
.base-btn,
.btn-bg,
.gold-btn {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: var(--primary-ink) !important;
    border-radius: var(--radius-sm);
    display: inline-block;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    cursor: pointer;
    transition: all var(--speed) ease;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-custom:hover, .cmn-btn:hover, .base-btn:hover, .btn-bg:hover, .gold-btn:hover {
    background: color-mix(in srgb, var(--primary) 85%, #000);
    border-color: color-mix(in srgb, var(--primary) 85%, #000);
    color: var(--primary-ink) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent);
}
.btn-custom.text-dark, .nav-dashboard-btn.text-dark { color: var(--primary-ink) !important; }
/* Currency indicator ("USD") appended to amount fields: Bootstrap's .input-group-text
   was greying out the base state, so the brand colour only showed on hover. Keep it
   consistently coloured. */
.btn-custom.show-currency { background: var(--primary) !important; border-color: var(--primary) !important; color: var(--primary-ink) !important; }

.btn-outline, .btn-custom-rounded {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: 999px;
    padding: 9px 20px;
    font-weight: 600;
    transition: all var(--speed);
}
.btn-outline:hover, .btn-custom-rounded:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.btn-secondary { background: var(--surface-3); border-color: var(--surface-3); color: var(--text); }
.btn-secondary:hover { background: var(--border); border-color: var(--border); color: var(--text); }

.btn-success { background: var(--success); border-color: var(--success); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #1c1500; }
.btn-info { background: var(--info); border-color: var(--info); color: #04121f; }

.btn-rounded { border-radius: 999px; }
.btn-block { display: block; width: 100%; }

/* ---------- 4. Forms ---------- */
label, .form-label, .col-form-label { color: var(--text-soft); font-weight: 500; font-size: 13.5px; }

.form-control, .form-select,
input.form-control, textarea.form-control, select.form-select {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    min-height: 44px;
    transition: border-color var(--speed), box-shadow var(--speed), background-color var(--speed);
}
textarea.form-control { min-height: 110px; }
.form-control:focus, .form-select:focus {
    background-color: var(--surface);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.form-control::placeholder { color: var(--muted); opacity: .8; }
.form-control:disabled, .form-control[readonly] {
    background-color: var(--surface-3);
    color: var(--muted);
    opacity: 1;
}
.form-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23667085' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6' stroke='%23667085' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.input-group-text {
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.form-check-input {
    background-color: var(--surface-2);
    border-color: var(--border-strong);
    width: 1.1em; height: 1.1em;
}
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-label { color: var(--text-soft); }
.invalid-feedback { color: var(--danger); }
.is-invalid { border-color: var(--danger) !important; }

/* ---------- 5. Cards / surfaces ---------- */
.card, .card-box, .form-box, .dashboard-box, .custom-card, .side-box, .info-box, .ticket-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    transition: background-color var(--speed), border-color var(--speed);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
}
.card-footer { background: transparent; border-top: 1px solid var(--border); }

/* ---------- 6. Tables ---------- */
.table {
    color: var(--text);
    border-color: var(--border);
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: var(--surface-2);
    --bs-table-striped-color: var(--text);
    --bs-table-hover-bg: var(--surface-2);
    --bs-table-hover-color: var(--text);
}
.table > :not(caption) > * > * {
    padding: 13px 16px;
    border-bottom-color: var(--border);
    background: transparent;
    color: var(--text-soft);
    vertical-align: middle;
}
.table thead th, .table > thead {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-strong);
    background: var(--surface-2);
}
.thead-dark th { background: var(--surface-2) !important; color: var(--muted) !important; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table-striped > tbody > tr:nth-of-type(odd) > * { color: var(--text-soft); }
.table-responsive { border-radius: var(--radius); }

/* ---------- 7. Badges / alerts ---------- */
.badge { font-weight: 600; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; }
.badge.bg-success, .badge.badge-success { background: var(--success-soft) !important; color: var(--success) !important; }
.badge.bg-danger, .badge.badge-danger { background: var(--danger-soft) !important; color: var(--danger) !important; }
.badge.bg-warning, .badge.badge-warning { background: var(--warning-soft) !important; color: var(--warning) !important; }
.badge.bg-info, .badge.badge-info { background: var(--info-soft) !important; color: var(--info) !important; }
.badge.bg-primary, .badge.badge-primary { background: var(--primary-soft) !important; color: var(--primary) !important; }
.badge.bg-dark { background: var(--surface-3) !important; color: var(--text) !important; }
.badge.bg-secondary { background: var(--surface-3) !important; color: var(--muted) !important; }

.alert { border-radius: var(--radius); border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.alert-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }

.bd-callout {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text-soft);
}

/* ---------- 8. Modals / dropdowns / offcanvas ---------- */
.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}
.modal-header { border-bottom: 1px solid var(--border); }
.modal-footer { border-top: 1px solid var(--border); }
.modal-title { color: var(--text); }
.modal-backdrop.show { opacity: .55; }
:root[data-theme="light"] .btn-close { filter: none; }
:root[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

.dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.dropdown-item { color: var(--text-soft); font-size: 14px; padding: 9px 16px; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-2); color: var(--text); }

/* ---------- 9. Pagination ---------- */
.pagination { gap: 6px; }
.page-item .page-link {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    border-radius: var(--radius-sm) !important;
    min-width: 38px;
    text-align: center;
    font-weight: 600;
    font-size: 13.5px;
    transition: all var(--speed);
}
.page-item .page-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.page-item.disabled .page-link { background: var(--surface-2); color: var(--muted); }

/* ---------- 10. Breadcrumb ---------- */
.breadcrumb { margin: 0; }
.breadcrumb-item, .breadcrumb-item a { color: var(--muted); font-size: 13.5px; }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-soft); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }

/* ---------- 11. List group / progress ---------- */
.list-group-item {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-soft);
}
.list-group-item-primary { background: var(--primary-soft); color: var(--text); }
.progress { background: var(--surface-3); border-radius: 999px; }
.progress-bar { background: var(--primary); }

/* ---------- 12. Select2 skin ---------- */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-height: 44px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text);
    line-height: 42px;
    padding-left: 14px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--muted) transparent transparent transparent; }
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--primary); }
.select2-dropdown {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    overflow: hidden;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
}
.select2-container--default .select2-results__option { color: var(--text-soft); }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--primary);
    color: var(--primary-ink);
}
.select2-container--default .select2-results__option--selected { background: var(--surface-2); }

/* ---------- 13. Datepicker skin ---------- */
.datepicker.dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}
.datepicker table tr td, .datepicker table tr th { color: var(--text-soft); }
.datepicker table tr td.active.active,
.datepicker table tr td.active:hover.active {
    background: var(--primary) !important;
    color: var(--primary-ink) !important;
}
.datepicker table tr td.day:hover { background: var(--surface-2); }
.datepicker table tr td.old, .datepicker table tr td.new { color: var(--muted); }

/* ---------- 14. Theme toggle control ---------- */
.theme-toggle {
    --size: 38px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-soft);
    cursor: pointer;
    font-size: 15px;
    transition: all var(--speed);
    padding: 0;
    line-height: 1;
    vertical-align: middle;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.theme-toggle .tt-sun { display: none; }
.theme-toggle .tt-moon { display: inline; }
:root[data-theme="dark"] .theme-toggle .tt-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .tt-moon { display: none; }

/* ---------- 15. Misc shared ---------- */
.no-data-image { max-width: 220px; opacity: .75; margin: 30px auto; display: block; }
:root[data-theme="light"] .no-data-image { filter: none; }

.tab-pane { color: var(--text-soft); }

.copytext, .copy__referal_btn { cursor: pointer; }

.section-header { margin-bottom: 40px; }
.section-header .title, .section-header h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 700;
    margin-bottom: 12px;
}
.section-header p { color: var(--muted); max-width: 640px; }
.section-header.text-center p { margin-left: auto; margin-right: auto; }
.section-header .kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* ---------- Brand logo: light/dark variant swap ---------- */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: inline-block; }

/* ---------- Theme picker segment (burger menu + cabinet sidebar) ---------- */
/* theme picker at the BOTTOM of the mobile burger menu:
   a segmented Light | Dark control, separated from the nav links */
.nav-theme-item {
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding: 14px 8px 6px;
}
.theme-seg {
    display: flex;
    gap: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
}
.theme-seg__opt {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--speed);
}
:root[data-theme="light"] .theme-seg__light,
:root[data-theme="dark"] .theme-seg__dark {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ---------- Shared top-nav components (landing + cabinet) ---------- */
/* user avatar dropdown in the top nav (shared markup with cabinet) */
.notification-panel { position: relative; display: inline-block; vertical-align: middle; }
.user-panel .profile {
    display: inline-flex;
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-strong);
    cursor: pointer;
    transition: border-color var(--speed);
}
.user-panel .profile img { width: 100%; height: 100%; object-fit: cover; }
.user-panel:hover .profile { border-color: var(--primary); }
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    margin: 0;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .18s ease;
    z-index: 1050;
}
.user-panel:hover .user-dropdown,
.user-panel:focus-within .user-dropdown { opacity: 1; visibility: visible; transform: none; }
.user-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-size: 14px;
    transition: all var(--speed);
}
.user-dropdown li a:hover { background: var(--surface-2); color: var(--text); }
.user-dropdown li a i { width: 18px; text-align: center; color: var(--muted); }
.user-dropdown .user-dropdown__lang { border-top: 1px solid var(--border) !important; }
.user-dropdown .user-dropdown__lang-label { color: var(--muted) !important; }

/* push notification bell */
.push-notification .dropdown-toggle {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text-soft);
    width: 38px; height: 38px;
    border-radius: 50%;
    position: relative;
    transition: all var(--speed);
}
.push-notification .dropdown-toggle:hover { border-color: var(--primary); color: var(--primary); }
.push-notification .dropdown-toggle::after { display: none; }
.push-notification .count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px; height: 17px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: 320px;
    max-width: 86vw;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .18s ease;
    z-index: 1050;
    overflow: hidden;
}
.push-notification:hover .notification-dropdown,
.push-notification:focus-within .notification-dropdown { opacity: 1; visibility: visible; transform: none; }
.notification-dropdown .dropdown-box {
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 8px;
}
.notification-dropdown .dropdown-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    white-space: normal;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}
.notification-dropdown .dropdown-item i { color: var(--primary); margin-top: 3px; }
.notification-dropdown .dropdown-item p { margin: 0; font-size: 13.5px; color: var(--text-soft); }
.notification-dropdown .dropdown-item .time { font-size: 11.5px; color: var(--muted); }
.notification-dropdown .clear-all {
    position: static;
    border-top: 1px solid var(--border);
    padding: 10px 14px;
    text-align: center;
    background: var(--surface-2);
}
.notification-dropdown .clear-all a { font-size: 13px; color: var(--muted); }
.notification-dropdown .clear-all .btn-clear { color: var(--danger); font-weight: 600; }

/* ---------- Cookie consent banner (plugins.blade.php) ---------- */
.cookies-allert {
    position: fixed;
    bottom: 20px;
    inset-inline-start: 20px;
    z-index: 1080;
    width: 340px;
    max-width: calc(100vw - 40px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    /* hidden by default — plugins.blade.php shows it only while not accepted */
    display: none;
}
.cookies-allert img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto; display: block; }
.cookies-allert h4 { font-size: 16px; }
.cookies-allert span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.cookies-allert .seemoreButton { color: var(--primary); font-weight: 600; }
.cookies-allert .cookieButton {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--primary-ink);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-weight: 600;
    font-size: 14px;
}
.cookies-allert .cookieClose { display: block; text-align: center; color: var(--muted); font-size: 13px; }
.cookies-allert .cookieClose:hover { color: var(--danger); }
@media (max-width: 991.98px) {
    /* keep clear of the cabinet's fixed bottom nav */
    .cookies-allert { bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- Quick-buy plan card (one-click purchase) ---------- */
.buy-card {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.buy-card__info {
    padding: 30px 32px;
    background:
        radial-gradient(420px 220px at 0% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%),
        var(--surface);
}
.buy-card__chain {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 5px 12px 5px 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
}
.buy-card__info h3 { margin: 16px 0 6px; font-size: 26px; }
.buy-card__rate { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.buy-card__rate strong {
    font-family: var(--font-head);
    font-size: 46px;
    line-height: 1;
    color: var(--primary);
}
.buy-card__rate span { color: var(--muted); font-size: 15px; }
.buy-card__list { list-style: none; margin: 0; padding: 0; }
.buy-card__list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-soft);
    font-size: 14.5px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.buy-card__list li:last-child { border-bottom: 0; }
.buy-card__list li i { color: var(--primary); margin-top: 4px; }

.buy-card__form { padding: 30px 32px; background: var(--surface-2); border-inline-start: 1px solid var(--border); }
.buy-card__label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.qb-input .form-control { font-size: 22px; font-weight: 700; font-family: var(--font-head); text-align: center; }
.qb-input .input-group-text {
    background: var(--surface-3);
    border-color: var(--border-strong);
    color: var(--text-soft);
    font-weight: 600;
}
.qb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.qb-chip {
    flex: 1 1 auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text-soft);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13.5px;
    font-weight: 600;
    transition: all var(--speed);
}
.qb-chip:hover, .qb-chip.is-active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}
.qb-calc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 18px;
}
.qb-calc__row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.qb-calc__row span { color: var(--muted); }
.qb-calc__row strong { font-family: var(--font-head); color: var(--text); }
.qb-calc__row--total { border-top: 1px dashed var(--border-strong); margin-top: 4px; padding-top: 10px; }
.qb-calc__row--total strong { color: var(--primary); font-size: 17px; }
.qb-submit { font-size: 16px; padding: 14px 20px; }
.qb-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }

@media (max-width: 991.98px) {
    .buy-card { grid-template-columns: 1fr; }
    .buy-card__form { border-inline-start: 0; border-top: 1px solid var(--border); }
    .buy-card__info, .buy-card__form { padding: 24px 20px; }
    .buy-card__rate strong { font-size: 38px; }
}

/* secondary "pay from in-site balance" options inside the quick-buy card */
.qb-alt { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.qb-alt__title { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; text-align: center; }
.qb-alt__btn {
    display: block;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text-soft);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all var(--speed);
}
.qb-alt__btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* checkout intent reminder on the auth screens */
.checkout-intent {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-inline-start: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
}
.checkout-intent__label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.checkout-intent__plan { font-family: var(--font-head); font-weight: 700; color: var(--primary); }
.checkout-intent__hint { font-size: 12.5px; color: var(--muted); }

/* implicit consent line under the signup button */
.signup-consent { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }
