@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Rabona Affiliate — Burgundy Grid Theme
   Prefix: rbn-
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--rbn-font-body);
    background-color: var(--rbn-bg);
    color: var(--rbn-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100px;
    display: block;
}

a {
    color: var(--rbn-accent);
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================================================
   Root variables
   ========================================================================== */

:root {
    --rbn-bg: #3E151E;
    --rbn-surface: #511F2A;
    --rbn-surface-2: #5E2631;
    --rbn-border: #6B2D39;
    --rbn-accent: #FF3344;
    --rbn-accent-hover: #FF5566;
    --rbn-text: #F0F0F0;
    --rbn-text-muted: #B89097;
    --rbn-text-dim: #8F6A70;

    --rbn-font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --rbn-font-heading: 'Bebas Neue', 'Inter', sans-serif;

    --rbn-radius-sm: 2px;
    --rbn-radius-md: 4px;
    --rbn-radius-lg: 6px;

    --rbn-header-h: 64px;

    --rbn-shadow-none: none;
}

/* ==========================================================================
   Container
   ========================================================================== */

.rbn-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.rbn-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--rbn-surface);
    border-bottom: 1px solid var(--rbn-border);
    z-index: 100;
    height: var(--rbn-header-h);
    display: flex;
    align-items: center;
}

.rbn-header__inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.rbn-logo {
    font-family: var(--rbn-font-heading);
    font-size: 1.75rem;
    letter-spacing: 1px;
    color: var(--rbn-accent);
    text-decoration: none;
    flex-shrink: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.rbn-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.rbn-nav__link {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.8125rem;
    color: var(--rbn-text);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--rbn-radius-sm);
    transition: background-color 0.15s ease;
}

.rbn-nav__link:hover {
    background-color: var(--rbn-surface-2);
}

.rbn-nav__link--active {
    color: var(--rbn-accent);
    font-weight: 700;
}

.rbn-nav__group {
    position: relative;
}

.rbn-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--rbn-surface);
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-sm);
    padding: 8px 0;
    display: none;
    z-index: 50;
}

.rbn-nav__dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--rbn-text);
    font-size: 0.8125rem;
}

.rbn-nav__dropdown a:hover {
    background-color: var(--rbn-surface-2);
    color: var(--rbn-accent);
}

.rbn-nav__group:hover .rbn-nav__dropdown {
    display: block;
}

.rbn-header__auth {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rbn-header__auth .rbn-btn {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

/* ==========================================================================
   Menu toggle (mobile burger)
   ========================================================================== */

.rbn-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    background: transparent;
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-sm);
    margin-left: auto;
}

.rbn-menu-toggle::before,
.rbn-menu-toggle::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    background-color: var(--rbn-text);
    transition: transform 0.2s ease, top 0.2s ease;
}

.rbn-menu-toggle::before {
    top: 13px;
}

.rbn-menu-toggle::after {
    top: 23px;
}

.rbn-header.rbn-nav-open .rbn-menu-toggle::before {
    top: 18px;
    transform: rotate(45deg);
}

.rbn-header.rbn-nav-open .rbn-menu-toggle::after {
    top: 18px;
    transform: rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.rbn-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--rbn-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    line-height: 1.2;
}

.rbn-btn:hover {
    transform: translateY(-1px);
}

.rbn-btn--primary {
    background-color: var(--rbn-accent);
    color: var(--rbn-text);
    border-color: var(--rbn-accent);
}

.rbn-btn--primary:hover {
    background-color: var(--rbn-accent-hover);
    border-color: var(--rbn-accent-hover);
}

.rbn-btn--outline {
    background-color: transparent;
    color: var(--rbn-text);
    border: 1px solid var(--rbn-border);
}

.rbn-btn--outline:hover {
    background-color: var(--rbn-surface-2);
    color: var(--rbn-accent);
}

.rbn-btn--cta {
    background-color: var(--rbn-accent);
    color: var(--rbn-text)!important;
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--rbn-radius-sm);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rbn-btn--cta:hover {
    background-color: var(--rbn-accent-hover);
}

.rbn-btn--small {
    padding: 6px 12px;
    font-size: 0.75rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.rbn-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: var(--rbn-surface);
    border-bottom: 1px solid var(--rbn-border);
    overflow: hidden;
}

.rbn-hero__bg {
    position: absolute;
    inset: 0;
    background-color: var(--rbn-surface);
    opacity: 1;
    z-index: 0;
}

.rbn-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    width: 100%;
}

.rbn-hero__title {
    font-family: var(--rbn-font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--rbn-accent);
    line-height: 1.1;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.rbn-hero__subtitle {
    font-size: 1rem;
    color: var(--rbn-text-muted);
    margin-bottom: 24px;
}

.rbn-hero__bonus {
    background-color: var(--rbn-bg);
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 20px auto;
    max-width: 420px;
}

.rbn-hero__bonus-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rbn-text-muted);
    font-weight: 600;
}

.rbn-hero__bonus-value {
    font-family: var(--rbn-font-heading);
    font-size: 2.5rem;
    color: var(--rbn-accent);
    letter-spacing: 1px;
    line-height: 1;
}

.rbn-hero__bonus-desc {
    color: var(--rbn-text-muted);
    font-size: 0.875rem;
    text-align: center;
}

.rbn-hero__cta {
    margin-top: 16px;
}

/* ==========================================================================
   Categories bar
   ========================================================================== */

.rbn-categories-bar {
    background-color: var(--rbn-surface);
    padding: 16px 20px;
    border-bottom: 1px solid var(--rbn-border);
}

.rbn-categories-bar__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.rbn-cat-tile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--rbn-bg);
    border: 1px solid var(--rbn-border);
    border-radius: 999px;
    color: var(--rbn-text);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.rbn-cat-tile:hover {
    background-color: var(--rbn-text);
    color: var(--rbn-bg);
    border-color: var(--rbn-text);
}

/* ==========================================================================
   Main content
   ========================================================================== */

.rbn-main {
    padding: 40px 20px 60px;
}

.rbn-content-section {
    margin-bottom: 48px;
}

.rbn-content-section h2 {
    font-family: var(--rbn-font-heading);
    color: var(--rbn-accent);
    font-size: 1.875rem;
    letter-spacing: 1px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rbn-border);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.rbn-content-section h3 {
    font-family: var(--rbn-font-heading);
    color: var(--rbn-text);
    font-size: 1.375rem;
    letter-spacing: 0.5px;
    margin: 24px 0 12px;
    text-transform: uppercase;
}

.rbn-content-section p {
    color: var(--rbn-text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.rbn-content-section .rbn-lead {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--rbn-text);
}

.rbn-content-section ol,
.rbn-content-section ul {
    margin: 12px 0 16px 20px;
    color: var(--rbn-text-muted);
}

.rbn-content-section ol li,
.rbn-content-section ul li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.rbn-content-section ol li::marker,
.rbn-content-section ul li::marker {
    color: var(--rbn-accent);
}

.rbn-content-section a {
    color: var(--rbn-accent);
    text-decoration: underline;
}

.rbn-content-section a:hover {
    color: var(--rbn-accent-hover);
}

/* ==========================================================================
   Bonus cards
   ========================================================================== */

.rbn-bonus-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.rbn-bonus-card {
    background-color: var(--rbn-surface);
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-md);
    padding: 20px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.rbn-bonus-card:hover {
    transform: translateY(-2px);
    border-color: var(--rbn-accent);
}

.rbn-bonus-card h4 {
    font-family: var(--rbn-font-heading);
    color: var(--rbn-accent);
    font-size: 1.125rem;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.rbn-bonus-card p {
    color: var(--rbn-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.rbn-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-md);
}

.rbn-bonus-table,
.rbn-styled-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--rbn-surface);
    font-size: 0.875rem;
}

.rbn-bonus-table th,
.rbn-styled-table th {
    background-color: var(--rbn-surface-2);
    color: var(--rbn-text);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--rbn-border);
}

.rbn-bonus-table td,
.rbn-styled-table td {
    padding: 12px 16px;
    color: var(--rbn-text-muted);
    border-bottom: 1px solid var(--rbn-border);
}

.rbn-bonus-table tr:last-child td,
.rbn-styled-table tr:last-child td {
    border-bottom: none;
}

.rbn-bonus-table tr:hover td,
.rbn-styled-table tr:hover td {
    background-color: var(--rbn-surface-2);
    color: var(--rbn-text);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.rbn-faq-list {
    margin: 20px 0;
}

.rbn-faq-list dt {
    border-left: 3px solid var(--rbn-accent);
    background-color: var(--rbn-surface);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--rbn-text);
    margin-top: 8px;
}

.rbn-faq-list dd {
    color: var(--rbn-text-muted);
    padding: 12px 16px 12px 19px;
    line-height: 1.7;
}

.rbn-faq__item {
    background-color: var(--rbn-surface);
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-md);
    margin-bottom: 8px;
    overflow: hidden;
}

.rbn-faq__question {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 600;
    color: var(--rbn-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background-color 0.15s ease;
    user-select: none;
}

.rbn-faq__question:hover {
    background-color: var(--rbn-surface-2);
}

.rbn-faq__question::after {
    content: "+";
    font-family: var(--rbn-font-heading);
    font-size: 1.5rem;
    color: var(--rbn-accent);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.rbn-faq__item.rbn-is-open .rbn-faq__question::after {
    transform: rotate(45deg);
}

.rbn-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--rbn-text-muted);
    line-height: 1.7;
}

.rbn-faq__answer-inner {
    padding: 0 20px 16px;
}

.rbn-faq__item.rbn-is-open .rbn-faq__answer {
    max-height: 500px;
}

/* ==========================================================================
   Cards grid (generic 3-column)
   ========================================================================== */

.rbn-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.rbn-card {
    background-color: var(--rbn-surface);
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-md);
    padding: 24px;
    transition: border-color 0.15s ease;
}

.rbn-card:hover {
    border-color: var(--rbn-accent);
}

.rbn-card__icon {
    font-size: 2.25rem;
    line-height: 1;
    margin-bottom: 12px;
    color: var(--rbn-accent);
}

.rbn-card h3 {
    font-family: var(--rbn-font-heading);
    color: var(--rbn-text);
    font-size: 1.125rem;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.rbn-card p {
    color: var(--rbn-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Two columns
   ========================================================================== */

.rbn-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 24px 0;
}

.rbn-two-cols--center {
    align-items: center;
}

.rbn-two-cols__text {
    color: var(--rbn-text-muted);
    line-height: 1.7;
}

.rbn-two-cols__media {
    background-color: var(--rbn-surface);
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-md);
    overflow: hidden;
}

/* ==========================================================================
   Stats bar
   ========================================================================== */

.rbn-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--rbn-surface);
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-md);
    padding: 24px;
    gap: 16px;
    margin: 24px 0;
}

.rbn-stat-item {
    text-align: center;
    border-right: 1px solid var(--rbn-border);
    padding: 0 8px;
}

.rbn-stat-item:last-child {
    border-right: none;
}

.rbn-stat-item__value {
    font-family: var(--rbn-font-heading);
    font-size: 2rem;
    color: var(--rbn-accent);
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 4px;
}

.rbn-stat-item__label {
    font-size: 0.75rem;
    color: var(--rbn-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   CTA block
   ========================================================================== */

.rbn-cta-block {
    background-color: var(--rbn-surface);
    border: 1px solid var(--rbn-accent);
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--rbn-radius-md);
    margin: 32px 0;
}

.rbn-cta-block h2 {
    font-family: var(--rbn-font-heading);
    color: var(--rbn-accent);
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
    border: none;
    padding: 0;
}

.rbn-cta-block p {
    color: var(--rbn-text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* ==========================================================================
   Lists (numbered & styled)
   ========================================================================== */

.rbn-numbered-list {
    list-style: none;
    counter-reset: rbn-num;
    padding: 0;
    margin: 16px 0;
}

.rbn-numbered-list li {
    counter-increment: rbn-num;
    position: relative;
    padding: 12px 16px 12px 56px;
    background-color: var(--rbn-surface);
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-md);
    margin-bottom: 8px;
    color: var(--rbn-text-muted);
    line-height: 1.6;
}

.rbn-numbered-list li::before {
    content: counter(rbn-num, decimal-leading-zero);
    position: absolute;
    left: 16px;
    top: 12px;
    font-family: var(--rbn-font-heading);
    color: var(--rbn-accent);
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.rbn-styled-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.rbn-styled-list li {
    position: relative;
    padding: 8px 12px 8px 28px;
    color: var(--rbn-text-muted);
    line-height: 1.6;
}

.rbn-styled-list li::before {
    content: "›";
    position: absolute;
    left: 10px;
    top: 8px;
    color: var(--rbn-accent);
    font-weight: 700;
    font-size: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.rbn-footer {
    background-color: var(--rbn-surface);
    border-top: 1px solid var(--rbn-border);
    padding: 40px 20px 20px;
    margin-top: 48px;
}

.rbn-footer__inner {
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

.rbn-footer__top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    text-align: left;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rbn-border);
}

.rbn-footer__brand {
    color: var(--rbn-text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.rbn-footer__brand .rbn-logo {
    display: inline-block;
    margin-bottom: 12px;
}

.rbn-footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rbn-footer__links-col h4 {
    font-family: var(--rbn-font-heading);
    color: var(--rbn-text);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.rbn-footer__links-col ul {
    list-style: none;
    padding: 0;
}

.rbn-footer__links-col li {
    margin-bottom: 6px;
}

.rbn-footer__links a {
    color: var(--rbn-text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.rbn-footer__links a:hover {
    color: var(--rbn-accent);
}

.rbn-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--rbn-border);
    margin-top: 20px;
}

.rbn-footer__bottom-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.rbn-footer__bottom-links a {
    color: var(--rbn-text-muted);
    font-size: 0.75rem;
    text-decoration: none;
}

.rbn-footer__bottom-links a:hover {
    color: var(--rbn-accent);
}

.rbn-footer__lang {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 12px 0;
}

.rbn-footer__lang-link {
    color: var(--rbn-text-muted);
    font-size: 0.75rem;
    padding: 4px 8px;
    text-decoration: none;
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-sm);
}

.rbn-footer__lang-link:hover {
    color: var(--rbn-accent);
    border-color: var(--rbn-accent);
}

.rbn-footer__lang-link.rbn-active {
    color: var(--rbn-text);
    background-color: var(--rbn-accent);
    border-color: var(--rbn-accent);
}

.rbn-footer__disclaimer {
    font-size: 0.75rem;
    color: var(--rbn-text-dim);
    line-height: 1.6;
    margin: 16px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.rbn-footer__badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 12px 0;
}

.rbn-footer__copy {
    font-size: 0.75rem;
    color: var(--rbn-text-dim);
    margin-top: 12px;
}

/* ==========================================================================
   Badge
   ========================================================================== */

.rbn-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--rbn-bg);
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-sm);
    font-size: 0.75rem;
    color: var(--rbn-text-muted);
    letter-spacing: 0.5px;
}

.rbn-badge--accent {
    background-color: var(--rbn-accent);
    color: var(--rbn-text);
    border-color: var(--rbn-accent);
    font-weight: 600;
}

/* ==========================================================================
   Page header
   ========================================================================== */

.rbn-page-header {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--rbn-surface);
    border-bottom: 1px solid var(--rbn-border);
}

.rbn-page-header h1 {
    font-family: var(--rbn-font-heading);
    color: var(--rbn-accent);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.rbn-breadcrumb {
    font-size: 0.8125rem;
    color: var(--rbn-text-muted);
}

.rbn-breadcrumb a {
    color: var(--rbn-accent);
    text-decoration: none;
}

.rbn-breadcrumb a:hover {
    text-decoration: underline;
}

.rbn-breadcrumb__sep {
    margin: 0 6px;
    color: var(--rbn-text-dim);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.rbn-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 200;
    padding: 20px;
}

.rbn-modal.rbn-is-open {
    opacity: 1;
    visibility: visible;
}

.rbn-modal__content {
    position: relative;
    background-color: var(--rbn-surface);
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-md);
    padding: 32px 24px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.rbn-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    color: var(--rbn-text-muted);
    font-size: 1.75rem;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.rbn-modal__close:hover {
    color: var(--rbn-accent);
}

.rbn-modal__title {
    font-family: var(--rbn-font-heading);
    color: var(--rbn-accent);
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-align: center;
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.rbn-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: var(--rbn-accent);
    color: var(--rbn-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, background-color 0.15s ease;
    z-index: 90;
    border: none;
}

.rbn-back-to-top:hover {
    background-color: var(--rbn-accent-hover);
}

.rbn-back-to-top.rbn-is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Placeholder image
   ========================================================================== */

.rbn-placeholder-img {
    aspect-ratio: 16 / 9;
    background-color: var(--rbn-surface-2);
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--rbn-text-dim);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.rbn-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rbn-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rbn-form__label {
    font-size: 0.8125rem;
    color: var(--rbn-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rbn-form__input,
.rbn-form__textarea {
    background-color: var(--rbn-bg);
    border: 1px solid var(--rbn-border);
    border-radius: var(--rbn-radius-sm);
    padding: 10px 14px;
    color: var(--rbn-text);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.15s ease;
}

.rbn-form__input:focus,
.rbn-form__textarea:focus {
    outline: none;
    border-color: var(--rbn-accent);
}

.rbn-form__textarea {
    min-height: 120px;
    resize: vertical;
}

/* ==========================================================================
   Responsive — tablet / small desktop
   ========================================================================== */

@media (max-width: 1080px) {
    .rbn-menu-toggle {
        display: block;
    }

    .rbn-nav,
    .rbn-header__auth {
        display: none;
    }

    .rbn-header.rbn-nav-open .rbn-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--rbn-header-h);
        left: 0;
        right: 0;
        background-color: var(--rbn-surface);
        border-bottom: 1px solid var(--rbn-border);
        padding: 12px 20px;
        gap: 0;
        z-index: 99;
    }

    .rbn-header.rbn-nav-open .rbn-header__auth {
        display: flex;
        position: absolute;
        top: calc(var(--rbn-header-h) + 220px);
        left: 20px;
        right: 20px;
        padding: 12px 0;
        background-color: var(--rbn-surface);
        border-top: 1px solid var(--rbn-border);
    }

    .rbn-header.rbn-nav-open .rbn-nav__link {
        padding: 12px 8px;
        border-bottom: 1px solid var(--rbn-border);
        font-size: 0.9375rem;
    }

    .rbn-header.rbn-nav-open .rbn-nav__group .rbn-nav__dropdown {
        position: static;
        display: block;
        background: transparent;
        border: none;
        padding: 0 0 0 16px;
    }
}

/* ==========================================================================
   Responsive — tablet
   ========================================================================== */

@media (max-width: 768px) {
    .rbn-cards-grid {
        grid-template-columns: 1fr;
    }

    .rbn-two-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rbn-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .rbn-stat-item {
        border-right: none;
        border-bottom: 1px solid var(--rbn-border);
        padding-bottom: 16px;
    }

    .rbn-stat-item:nth-last-child(-n+2) {
        border-bottom: none;
        padding-bottom: 0;
    }

    .rbn-footer__top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rbn-footer__links {
        grid-template-columns: repeat(2, 1fr);
    }

    .rbn-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */

@media (max-width: 600px) {
    :root {
        --rbn-header-h: 56px;
    }

    .rbn-hero {
        min-height: 260px;
        padding: 32px 16px;
    }

    .rbn-hero__title {
        font-size: 1.75rem;
    }

    .rbn-hero__bonus {
        padding: 16px;
    }

    .rbn-hero__bonus-value {
        font-size: 2rem;
    }

    .rbn-main {
        padding: 24px 16px 40px;
    }

    .rbn-content-section {
        margin-bottom: 32px;
    }

    .rbn-content-section h2 {
        font-size: 1.5rem;
    }

    .rbn-content-section h3 {
        font-size: 1.125rem;
    }

    .rbn-btn--cta {
        display: block;
        width: 100%;
        padding: 14px 20px;
    }

    .rbn-cta-block {
        padding: 28px 16px;
    }

    .rbn-cta-block h2 {
        font-size: 1.5rem;
    }

    .rbn-footer__links {
        grid-template-columns: 1fr;
    }

    .rbn-stats-bar {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .rbn-stat-item {
        padding-bottom: 12px;
    }

    .rbn-stat-item__value {
        font-size: 1.625rem;
    }

    .rbn-page-header {
        padding: 28px 16px;
    }

    .rbn-back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}
