/* ==========================================================================
   PVPBUL.COM - Base Design Tokens
   ========================================================================== */

:root {
    --color-bg: #f4f5f7;
    --color-white: #ffffff;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;

    --color-brand-red: #dc2626;
    --color-brand-red-dark: #b91c1c;
    --color-brand-dark: #111827;

    --color-sponsor-bg: #fef9e7;
    --color-sponsor-border: #fbe8a6;
    --color-sponsor-badge: #f59e0b;

    --color-upcoming-bg: #eff6ff;
    --color-upcoming-border: #bfdbfe;
    --color-upcoming-text: #2563eb;

    --radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

    --premium-font-original: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --premium-font-poppins: 'Poppins', sans-serif;
    --premium-font-orbitron: 'Orbitron', sans-serif;
    --premium-font-bebas_neue: 'Bebas Neue', sans-serif;
    --premium-font-pacifico: 'Pacifico', cursive;
    --premium-font-press_start_2p: 'Press Start 2P', monospace;
    --premium-font-anton: 'Anton', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   Top Banner (Ad space)
   ========================================================================== */

.top-banner-wrap {
    display: flex;
    justify-content: center;
}

.top-banner {
    width: 100%;
    max-width: 1400px;
    aspect-ratio: 1400 / 200;
    background: linear-gradient(120deg, var(--color-brand-dark), var(--color-brand-red-dark));
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-transform: uppercase;
}

.top-banner__title {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.top-banner--active {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.top-banner--active img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-banner__size {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 4px;
}

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

.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo__main {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-brand-dark);
}

.logo__pvp {
    color: var(--color-brand-red);
}

.logo__sub {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

.main-nav {
    display: flex;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.main-nav__link {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.main-nav__link--active {
    color: var(--color-brand-red);
    border-bottom-color: var(--color-brand-red);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.btn--dark {
    background: var(--color-brand-dark);
    color: var(--color-white);
}

.btn--red {
    background: var(--color-brand-red);
    color: var(--color-white);
}

.btn--sponsor {
    background: var(--color-sponsor-badge);
    color: var(--color-white);
}

.btn--balance {
    background: #16a34a;
    color: var(--color-white);
    cursor: default;
}

.btn--topup {
    background: #16a34a;
    color: var(--color-white);
}

.btn--topup:hover {
    background: #15803d;
}

.btn--sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

.profile-dropdown {
    position: relative;
}

.profile-dropdown__toggle {
    min-width: 160px;
    justify-content: center;
}

.profile-dropdown__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 20;
}

.profile-dropdown__menu.is-open {
    display: flex;
}

.profile-dropdown__item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--color-text);
    text-align: left;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__toggle {
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.nav-dropdown__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 20;
}

.nav-dropdown__menu.is-open {
    display: flex;
}

.nav-dropdown__item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--color-text);
    text-align: left;
    white-space: nowrap;
}

.nav-dropdown__item:hover {
    background: var(--color-bg);
}

.profile-dropdown__item:hover {
    background: var(--color-bg);
}

/* ==========================================================================
   Page Layout (sidebars + main content)
   ========================================================================== */

.page-layout {
    width: 100%;
    display: flex;
    gap: 16px;
    padding: 16px 8px 48px;
    align-items: flex-start;
}

.page-layout__main {
    flex: 1;
    min-width: 0;
}

.site-main {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
}

.side-banner {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 16px;
}

.side-banner__box {
    background: linear-gradient(160deg, var(--color-brand-dark), var(--color-brand-red-dark));
    border-radius: var(--radius);
    height: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--color-white);
    text-align: center;
    padding: 16px;
}

.side-banner__image {
    display: block;
    width: 200px;
    height: 850px;
    object-fit: cover;
    border-radius: var(--radius);
}

.side-banner__title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
}

.side-banner__highlight {
    color: #fca5a5;
    font-size: 17px;
}

.side-banner__size {
    font-size: 12px;
    opacity: 0.7;
}

/* Hide side banners on smaller screens so content stays usable */
@media (max-width: 1500px) {
    .side-banner {
        display: none;
    }
}

/* ==========================================================================
   Panels (Sponsor / Upcoming / Latest)
   ========================================================================== */

.columns {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .columns {
        flex-direction: column;
    }
}

.panel {
    flex: 1;
    background: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 16px 20px 20px;
    min-width: 0;
}

.panel--sponsor {
    position: relative;
    background: var(--color-sponsor-bg);
    border-color: var(--color-sponsor-border);
}

/*
 * Comet border effect: each .panel__comet is sized to exactly cover the panel
 * (inset:0) and rides `offset-path` around that same box's rounded-rect outline.
 * offset-distance is arc-length parameterized per spec, so — unlike the earlier
 * conic-gradient version — the traced point moves at one constant speed the
 * whole way around, corners included, with no fast/slow difference.
 *
 * The tail is built from many small overlapping dots (one .panel__comet per
 * dot, each independently riding the same offset-path with its own small
 * negative animation-delay) rather than a single elongated bar. A rigid bar
 * pulled behind a moving point stays straight through a corner and pokes
 * outside the rounded curve; a chain of dots close enough together to overlap
 * has no such problem because each dot sits exactly on the curve at its own
 * point, and reads as one continuous fading tail. --comet-delay/-opacity/-blur
 * are set inline per dot in the Blade loop that renders these.
 */
.panel__comet {
    position: absolute;
    /* -1px cancels the panel's own 1px border: an absolutely positioned child
       with inset:0 fills the ancestor's padding box (just inside the border),
       so without this the traced path sits a border-width inside the visible
       rounded corner instead of coinciding with it. */
    inset: -1px;
    offset-path: inset(0 round 8px);
    offset-distance: 0%;
    offset-anchor: 0 0;
    offset-rotate: 0deg;
    pointer-events: none;
    animation: premium-comet-move 6s linear infinite;
    animation-delay: var(--comet-delay, 0s);
}

.panel__comet-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fde047;
    opacity: var(--comet-opacity, 1);
    filter: blur(var(--comet-blur, 0px));
    transform: translate(-50%, -50%);
}

.panel__comet--head .panel__comet-dot {
    box-shadow: 0 0 5px #fde047, 0 0 10px rgba(253, 224, 71, 0.6);
}

@keyframes premium-comet-move {
    to {
        offset-distance: 100%;
    }
}

.panel--upcoming {
    background: var(--color-upcoming-bg);
    border-color: var(--color-upcoming-border);
}

.panel__title {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 14px;
}

.panel__see-all {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Server list rows (used in Sponsor / Upcoming panels)
   ========================================================================== */

.server-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 10px 14px;
    border: 1px solid var(--color-border);
}

.server-row__logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    object-fit: cover;
}

.server-row__logo--small {
    width: 32px;
    height: 32px;
}

.server-row__info {
    flex: 1;
    min-width: 0;
}

.server-row__name {
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-row__url {
    font-size: 12px;
    color: var(--color-text-muted);
}

.server-row__date {
    font-size: 13px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.server-row__countdown {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
}

.countdown {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-upcoming-text);
}

.server-row__actions {
    display: flex;
    gap: 6px;
}

.server-row__actions form {
    display: contents;
}

.server-row__actions--stretch {
    width: 100%;
}

.server-row__actions--stretch .btn {
    flex: 1;
    justify-content: center;
}

.icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

.badge--sponsor {
    background: var(--color-sponsor-badge);
    color: var(--color-white);
}

.badge--premium {
    background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6);
    color: var(--color-white);
}

/* ==========================================================================
   Bottom row: Latest servers table + Ad CTA
   ========================================================================== */

.bottom-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .bottom-row {
        flex-direction: column;
    }
}

.panel--latest {
    flex: 1;
}

.server-table {
    width: 100%;
    border-collapse: collapse;
}

.server-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 8px 10px;
    border-bottom: 1px solid var(--color-border);
}

.server-table td {
    padding: 10px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.server-table__name {
    font-weight: 700;
}

.server-table__url {
    color: var(--color-text-muted);
    font-size: 13px;
}

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

.site-footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
}

.site-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--color-text-muted);
}

.site-footer__brand strong {
    color: var(--color-text);
    margin-right: 8px;
}

.site-footer__links {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   Auth (login / register / verify-email)
   ========================================================================== */

.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.auth-card__title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 20px;
}

.auth-card__text {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 20px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list__item {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.contact-list__label {
    font-weight: 700;
    color: var(--color-brand-dark);
}

.contact-list__value {
    color: var(--color-text-muted);
}

.balance-info-text {
    white-space: pre-line;
}

.balance-contact-hint {
    margin-top: 20px;
}

.auth-card__footer {
    margin: 20px 0 0;
    font-size: 14px;
    text-align: center;
    color: var(--color-text-muted);
}

.auth-card__footer a {
    color: var(--color-brand-red);
    font-weight: 600;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form + .auth-form {
    margin-top: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
}

.form-group--inline {
    flex-direction: row;
    align-items: center;
}

.password-field {
    display: flex;
    align-items: stretch;
    position: relative;
}

.password-field input[type="password"],
.password-field input[type="text"] {
    flex: 1;
    width: 100%;
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 6px;
    opacity: 0.6;
}

.password-toggle:hover {
    opacity: 1;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.profile-info__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.profile-info__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.profile-info__value {
    font-size: 14px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
}

.auth-form__submit {
    width: 100%;
    justify-content: center;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.auth-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--color-brand-red-dark);
}

.auth-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* ==========================================================================
   Dashboard (server management, admin approval)
   ========================================================================== */

.dashboard-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 16px;
}

.dashboard-wrap .panel {
    width: 100%;
    max-width: 900px;
}

.panel--form {
    max-width: 560px;
}

.panel--wide {
    max-width: 1100px;
}

.panel__title--sub {
    margin-top: 28px;
    font-size: 14px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card__value {
    font-size: 28px;
    font-weight: 700;
}

.stat-card__label {
    font-size: 13px;
    color: var(--color-text-muted);
}

.stat-card__breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 8px;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inline-form__select,
.inline-form__input {
    padding: 6px 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    background: var(--color-white);
}

.inline-form__input {
    width: 90px;
}

.panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.panel__header .panel__title {
    margin: 0;
}

.form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.form-group input[type="file"] {
    font-size: 13px;
}

.form-logo-preview {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    margin-bottom: 8px;
}

.banner-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    display: block;
}

.badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.badge--approved {
    background: #dcfce7;
    color: #166534;
}

.badge--rejected {
    background: #fee2e2;
    color: var(--color-brand-red-dark);
}

.badge--active {
    background: #dbeafe;
    color: var(--color-upcoming-text);
}

.badge--expired {
    background: var(--color-bg);
    color: var(--color-text-muted);
}

.form-group select {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--color-white);
}

.form-hint {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Banner availability calendar
   ========================================================================== */

.calendar {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px;
}

.calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 10px;
}

.calendar__nav {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
}

.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar__weekday {
    font-size: 11px;
    text-align: center;
    color: var(--color-text-muted);
    font-weight: 600;
    padding-bottom: 4px;
}

.calendar__day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
}

.calendar__day--free {
    background: #f0fdf4;
    color: #166534;
}

.calendar__day--reserved {
    background: #fee2e2;
    color: var(--color-brand-red-dark);
}

.calendar__error {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}

/* ==========================================================================
   Confirm modal (replaces native browser confirm())
   ========================================================================== */

.confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

.confirm-modal.is-open {
    display: flex;
}

.confirm-modal__box {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    width: 100%;
    max-width: 380px;
    border-top: 4px solid var(--color-brand-red);
}

.confirm-modal__message {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
}

.confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   Premium server toggle + text effects
   ========================================================================== */

.form-group--premium-toggle {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toggle-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-premium-toggle__label {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-hint--error {
    color: var(--color-brand-red-dark);
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch__slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.switch__slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--color-white);
    border-radius: 50%;
    transition: transform 0.2s;
}

.switch input:checked + .switch__slider {
    background: var(--color-brand-red);
}

.switch input:checked + .switch__slider::before {
    transform: translateX(20px);
}

.switch input:disabled + .switch__slider {
    cursor: default;
    opacity: 0.85;
}

.premium-options {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    margin: 4px 0 20px;
    padding: 16px;
    border: 1px dashed #ec4899;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fdf4ff, #fff7ed);
}

.premium-options[hidden] {
    display: none;
}

.premium-options__controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.premium-options__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.premium-options__preview-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}

.premium-preview-box {
    width: 100%;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--color-brand-dark);
    border-radius: var(--radius);
}

.premium-preview-box .premium-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-white);
    text-align: center;
    word-break: break-word;
}

@media (max-width: 640px) {
    .premium-options {
        grid-template-columns: 1fr;
    }
}

.form-group--checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.premium-text {
    display: inline-block;
}

.premium-text--bold {
    font-weight: 700;
}

.premium-text--rgb {
    background: linear-gradient(90deg, #ff0000, #ff8000, #ffee00, #22e000, #00e0ff, #2200ff, #ff00e0, #ff0000);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    will-change: background-position;
}

/*
 * .premium-text--rgb and .premium-text--blink each need their own "animation"
 * shorthand, but a second "animation" declaration on the same element does not
 * merge with the first — it replaces it entirely. When both classes are present,
 * the combined selector below re-declares both keyframes as one comma-separated
 * list so neither effect silently overrides the other.
 */
.premium-text--rgb:not(.premium-text--blink) {
    animation: premium-rgb-shift 7s linear infinite;
}

.premium-text--blink:not(.premium-text--rgb) {
    animation: premium-blink 1.4s ease-in-out infinite;
}

.premium-text--rgb.premium-text--blink {
    animation: premium-rgb-shift 7s linear infinite, premium-blink 1.4s ease-in-out infinite;
}

@keyframes premium-rgb-shift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

@keyframes premium-blink {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 3px #fde68a) drop-shadow(0 0 8px #fde68a);
    }

    50% {
        opacity: 0.55;
        filter: drop-shadow(0 0 1px #fde68a);
    }
}
