/* Referral System Module - New Design Based on Example */

/* Main Container */
.referral-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.referral-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
}

/* Классы из example CSS для совместимости - используем цвета шаблона neo_remastered */
.bg-gg-btn-secondary {
    background-color: var(--card, #12251c);
}

.bg-gg-btn-secondary_hover {
    background-color: var(--button-hover, #348360);
}

.bg-gg-btn-primary {
    background-color: var(--red, #ff4940);
}

.bg-gg-btn-primary_hover {
    background-color: var(--red, #ff4940);
}

.text-gg-text-1 {
    color: var(--text-custom, #a0f7d1);
}

.text-gg-btn-primary {
    color: var(--red, #ff4940);
}

.text-gg-btn-primary_text {
    color: var(--text-default, #ffffff);
}

.text-gg-btn-secondary_text {
    color: var(--text-custom, #a0f7d1);
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.rounded-2xl {
    border-radius: 1rem;
}

.backdrop-blur-xl {
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

/* Tailwind-подобные утилиты для совместимости */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-2\.5 {
    gap: 0.625rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.w-full {
    width: 100%;
}

.h-\[53px\] {
    height: 53px;
}

.h-\[76px\] {
    height: 76px;
}

.h-\[48px\] {
    height: 48px;
}

.min-w-\[160px\] {
    min-width: 160px;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-\[16px\] {
    padding-left: 16px;
    padding-right: 16px;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.p-6 {
    padding: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 1.25rem;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.text-white {
    color: #fff;
}

.text-\[24px\] {
    font-size: 24px;
}

.text-\[18px\] {
    font-size: 18px;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

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

.font-semibold {
    font-weight: 600;
}

.font-extrabold {
    font-weight: 800;
}

.font-medium {
    font-weight: 500;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

[class*="leading-[100%]"] {
    line-height: 100%;
}

[class*="leading-[140%]"] {
    line-height: 140%;
}

[class*="leading-[200%]"] {
    line-height: 200%;
}

.leading-5 {
    line-height: 1.25rem;
}

.max-w-\[340px\] {
    max-width: 340px;
}

.max-w-\[350px\] {
    max-width: 350px;
}

.max-w-\[210px\] {
    max-width: 210px;
}

.tracking-\[5\.60px\] {
    letter-spacing: 5.60px;
}

.scale-y-\[1\.25\] {
    transform: scaleY(1.25);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.z-0 {
    z-index: 0;
}

.z-1 {
    z-index: 1;
}

.object-cover {
    object-fit: cover;
}

.object-center {
    object-position: center;
}

.right-0 {
    right: 0;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.outline-none {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.opacity-50 {
    opacity: 0.5;
}

.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

.hover\:bg-gg-btn-secondary_hover:hover {
    background-color: var(--button-hover, #348360);
}

.hover\:bg-gg-btn-primary_hover:hover {
    background-color: #ff4444;
}

.hover\:text-gg-btn-primary:hover {
    color: #f33;
}

.text-nowrap {
    white-space: nowrap;
}

.inline-flex {
    display: inline-flex;
}

.overflow-hidden {
    overflow: hidden;
}

.flex-wrap {
    flex-wrap: wrap;
}

.self-center {
    align-self: center;
}

.h-full {
    height: 100%;
}

.mt-auto {
    margin-top: auto;
}

.mb-auto {
    margin-bottom: auto;
}

.mr-2 {
    margin-right: 0.5rem;
}

.text-gg-btn-primary\/70 {
    color: rgba(255, 51, 51, 0.7);
}

.hidden {
    display: none;
}

.w-5 {
    width: 1.25rem;
    height: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.none {
    display: none;
}

.top-\[-20\%\] {
    top: -20%;
}

.top-\[-10\%\] {
    top: -10%;
}

.gap-\[6px\] {
    gap: 6px;
}

.gap-\[10px\] {
    gap: 10px;
}

.gap-0\.5 {
    gap: 0.125rem;
}

.text-center {
    text-align: center;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus-within\:ring-4:focus-within {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus-within\:ring-gg-btn-primary\/20:focus-within {
    --tw-ring-color: rgba(255, 51, 51, 0.2);
}

.focus-within\: !border-gg-text-main:focus-within {
    border-color: #f33 !important;
}

.focus-within\:placeholder\: !text-white:focus-within::placeholder {
    color: #fff !important;
}

.placeholder\:font-semibold::placeholder {
    font-weight: 600;
}

.placeholder\:text-gg-text-1::placeholder {
    color: var(--text-custom, #a0f7d1);
}

.group {
    /* Utility class for grouping */
}

/* Select стили */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

@media (min-width: 1280px) {
    .xl\:block {
        display: block;
    }
}

/* Card стили - используем из шаблона */
.referral-card {
    /* Использует .card из шаблона */
}

/* Аватар пользователя */
.referral-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Скрытый элемент */
.referral-hidden {
    display: none;
}

/* Отступ сверху */
.referral-mt-1 {
    margin-top: 1rem;
}

/* Прогресс-бар */
.referral-progress-bar {
    /* Ширина устанавливается через data-progress атрибут в JS или inline style */
}

/* Header Section - используем классы из example CSS */
/* Фоновые изображения */
.relative .w-full.absolute {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
}

.relative .w-full.absolute.top-\[-20\%\] {
    top: -20%;
}

.relative .w-full.absolute.top-\[-10\%\] {
    top: -10%;
}

.relative .w-full.absolute img {
    position: absolute;
    object-fit: cover;
    object-position: center right;
    right: 0;
    top: 0;
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
}

.relative .w-full.absolute.none {
    display: none;
}

@media (min-width: 1280px) {
    .relative .w-full.absolute.none.xl\:block {
        display: block;
    }
}

/* Контент поверх изображений */
.relative>h1,
.relative>p {
    position: relative;
    z-index: 1;
}

/* Stats Section - используем классы из example CSS */

/* Code Section - используем классы из example CSS */

/* Code Creation Section */
.referral-code-create {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.referral-code-create-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.referral-code-create-input {
    background-color: var(--input-form, #162d23);
    border: 1px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.2s;
    height: 53px;
    width: 100%;
    outline: none;
    padding: 0 1rem;
    color: var(--text-default, #ffffff);
    font-size: 1rem;
}

.referral-code-create-input:focus {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 51, 51, 0.2);
}

.referral-code-create-input::placeholder {
    font-weight: 600;
    color: var(--text-custom, #a0f7d1);
}

.referral-code-hint {
    font-size: 0.75rem;
    color: var(--text-custom, #a0f7d1);
    margin: 0;
}

.referral-code-create-buttons {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.referral-create-code-btn,
.referral-create-random-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.5rem;
    transition: all 0.2s;
    outline: none;
    opacity: 1;
    cursor: pointer;
    height: 48px;
    padding: 0 1rem;
    font-size: 1rem;
    gap: 0.625rem;
    font-weight: 700;
    border: none;
    flex: 1;
    min-width: 150px;
}

.referral-create-code-btn {
    background-color: #22c55e;
    color: #fff;
}

.referral-create-code-btn:hover {
    background-color: #16a34a;
}

.referral-create-random-btn {
    background-color: var(--button, #2c5b46);
    color: var(--text-custom, #a0f7d1);
    border: 1px solid var(--transparent-10-w, rgba(255, 255, 255, 0.1));
}

.referral-create-random-btn:hover {
    background-color: var(--button-hover, #348360);
    border-color: var(--transparent-20-w, rgba(255, 255, 255, 0.2));
}

/* Удалены неиспользуемые стили - используются классы из example CSS */

/* Info Blocks */
.referral-info-blocks {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 1rem;
}

.referral-info-item {
    display: flex;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    line-height: 1.25rem;
    align-items: center;
}

.referral-info-icon {
    height: 100%;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}

.referral-info-icon svg {
    color: #f33;
    width: 24px;
    height: 24px;
}

.referral-info-text {
    font-weight: 500;
    align-self: center;
}

/* Activation Card */
.referral-activation-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background-color: var(--card, #12251c);
    border-radius: 20px;
    margin-top: 1rem;
}

.referral-activation-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.referral-activation-title {
    font-weight: 800;
    font-style: italic;
    color: #fff;
    font-size: 1.125rem;
    text-transform: uppercase;
    line-height: 1.25rem;
    margin: 0;
}

.referral-activation-subtitle {
    line-height: 200%;
    color: var(--text-custom, #a0f7d1);
}

.referral-activation-rewards {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.referral-reward-badge {
    display: flex;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    line-height: 1.25rem;
    width: fit-content;
    align-items: center;
}

.referral-reward-icon {
    height: 100%;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}

.referral-reward-icon svg {
    color: #f33;
    width: 24px;
    height: 24px;
}

.referral-reward-text {
    font-weight: 500;
    align-self: center;
    color: #fff;
}

.referral-activation-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-top: 0.5rem;
    width: 100%;
    flex-direction: column;
}

.referral-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    width: 100%;
}

.referral-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.referral-input {
    background-color: var(--input-form, #162d23);
    border: 1px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.2s;
    height: 53px;
    width: 100%;
    outline: none;
    padding: 0 0.75rem;
    color: var(--text-default, #ffffff);
    font-size: 1rem;
}

.referral-input:focus {
    border-color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 51, 51, 0.2);
}

.referral-input::placeholder {
    font-weight: 600;
    color: var(--text-custom, #a0f7d1);
}

.referral-input:focus::placeholder {
    color: #fff;
}

.referral-activate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.5rem;
    transition: all 0.2s;
    outline: none;
    opacity: 1;
    cursor: pointer;
    background-color: #f33;
    color: #fff;
    height: 53px;
    padding: 0 1rem;
    font-size: 1rem;
    gap: 0.625rem;
    font-weight: 700;
    border: none;
}

.referral-activate-btn:hover:not(:disabled) {
    background-color: #ff4444;
}

.referral-activate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.referral-activation-hint {
    color: rgba(255, 51, 51, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

.referral-info-alert {
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    color: var(--text-custom, #a0f7d1);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.referral-success-alert {
    padding: 0.75rem 1rem;
    background-color: rgba(34, 197, 94, 0.1);
    border-radius: 0.5rem;
    color: #4ade80;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.referral-error-alert {
    padding: 0.75rem 1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
    color: #f87171;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Удалены неиспользуемые стили - используются классы из example CSS */

/* Admin Button */
.referral-admin-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--button, #2c5b46);
    border: 1px solid var(--transparent-10-w, rgba(255, 255, 255, 0.1));
    color: var(--text-default, #ffffff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1000;
}

.referral-admin-btn:hover {
    background-color: var(--button-hover, #348360);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .referral-container {
        padding: 1rem;
    }

    .referral-stats {
        flex-direction: column;
    }

    .referral-stat-card {
        width: 100%;
    }

    .referral-code-display {
        flex-direction: column;
        align-items: stretch;
    }

    .referral-code-create-buttons {
        flex-direction: column;
    }

    .referral-create-code-btn,
    .referral-create-random-btn {
        width: 100%;
    }

    .referral-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .referral-activate-btn {
        width: 100%;
    }
}

/* Loading Spinner */
.referral-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
}

.referral-loading-spinner .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #f33;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Минимальные стили для админ-панели (используются классы из шаблона) */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Классы для админ-панели в стиле managersystem */
/* Стили для заголовков */
@media (max-width: 768.9px) {

    .container_text_access,
    .container_text_access2,
    .container_text_settings,
    .container_text_settings_2 {
        display: flex;
        padding: 1rem;
        line-height: normal;
        background-color: var(--transparent-5-w);
        border-radius: var(--br-16) 16px 0 0;
    }

    .container_text_access>svg,
    .container_text_access2>svg,
    .container_text_settings>svg,
    .container_text_settings_2>svg {
        display: none;
    }

    .settings_header_text_top {
        font-size: var(--font-size-m);
        font-weight: var(--font-weight-5);
    }

    .settings_header_text_bottom {
        display: none;
    }

    .container_text_settings_text {
        display: flex;
        justify-content: center;
    }
}

@media (min-width: 769px) {

    .container_text_access,
    .container_text_access2,
    .container_text_settings,
    .container_text_settings_2 {
        display: flex;
        padding: 1rem;
        line-height: normal;
        background-color: var(--input-form);
        border-radius: var(--br-16) 16px 0 0;
        justify-content: space-between;
        align-items: center;
    }

    .container_text_access>svg,
    .container_text_access2>svg,
    .container_text_settings>svg,
    .container_text_settings_2>svg {
        width: 2rem;
        height: 2rem;
        fill: var(--text-default);
        position: relative;
        left: 0;
        opacity: 0.1;
    }

    .settings_header_text_top {
        font-size: var(--font-size-default);
        font-weight: var(--font-weight-6);
    }

    .settings_header_text_bottom {
        font-size: var(--font-size-s);
        color: var(--text-secondary);
    }

    .container_text_settings_text {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 0.2rem;
    }
}

/* Колонки для админ-панели */
.access_block>.col-md-8 {
    flex: 0 0 calc(66.66666667% - 5px);
    max-width: calc(66.66666667% - 5px);
}

.access_block>.col-md-4 {
    flex: 0 0 calc(33.33333333% - 5px);
    max-width: calc(33.33333333% - 5px);
}

.access_block>.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

/* Для обратной совместимости */
.col-md-8 {
    flex: 0 0 66.66666667%;
    max-width: 66.66666667%;
}

.col-md-4 {
    flex: 0 0 33.33333333%;
    max-width: 33.33333333%;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 768.9px) {

    .access_block>.col-md-8,
    .access_block>.col-md-4,
    .access_block>.col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-md-8,
    .col-md-4,
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.inputs-inline {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.inputs-inline label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-5);
    color: var(--text-custom);
}

.inputs-inline label svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    opacity: 0.5;
}

.aic {
    align-items: center;
}

.width-100 {
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-s, 12px);
}

.table thead {
    background: var(--input-form, rgba(255, 255, 255, 0.02));
}

.table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: var(--font-weight-6, 600);
    color: var(--text-custom, #cacaca);
    border-bottom: 1px solid var(--transparent-5-w, rgba(255, 255, 255, 0.05));
    font-size: var(--font-size-s, 12px);
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--transparent-5-w, rgba(255, 255, 255, 0.05));
    color: var(--text-custom, #cacaca);
}

.table tbody tr:hover {
    background: var(--transparent-2-w, rgba(255, 255, 255, 0.02));
}

.card_button_flex {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.info_access {
    flex: 1 1 calc((100% / 4) - 10px);
    min-width: 200px;
    border-radius: var(--br-12);
    background: var(--bottom-line-table);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    gap: 0.5rem;
    min-height: 100px;
    transition: var(--transition-duration);
}

.info_access:hover {
    background: var(--transparent-5-w);
}

.info_span {
    display: flex;
    width: 100%;
    font-size: 2rem;
    color: var(--text-custom);
    font-weight: var(--font-weight-6);
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.info_a {
    display: flex;
    width: 100%;
    font-size: var(--font-size-l);
    color: var(--span);
    font-weight: var(--font-weight-7);
    align-items: center;
    justify-content: center;
    text-wrap: nowrap;
}

.access_block {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    align-items: flex-start;
}

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

    .access_block>.col-md-8,
    .access_block>.col-md-4 {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .access_block {
        display: flex;
        flex-direction: row;
    }
}

.flex-form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Дополнительные стили для input_wrapper */
.input_wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.input_wrapper input {
    border-radius: var(--br-8, 8px);
    background: var(--input-form, rgba(255, 255, 255, 0.02));
    border: 1px solid var(--transparent-5-w, rgba(255, 255, 255, 0.05));
    color: var(--text-custom, #cacaca);
    padding: 0.5rem 0.8rem;
    font-size: var(--font-size-s, 12px);
    width: 100%;
    height: var(--input-height, 41px);
    transition: var(--transition-duration, 0.2s);
}

.input_wrapper input:focus {
    outline: none;
    border-color: var(--span, #f33);
}

/* Радио кнопки для inputs-inline */
.inputs-inline input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.inputs-inline label[for] {
    cursor: pointer;
    user-select: none;
}

fieldset {
    margin-bottom: 0.3rem;
    border: 1px solid var(--transparent-5-w, rgba(255, 255, 255, 0.05));
    border-radius: var(--br-8, 8px);
    padding: 0.75rem;
}

fieldset legend {
    font-size: var(--font-size-s, 12px);
    font-weight: var(--font-weight-6, 600);
    color: var(--text-custom, #cacaca);
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

fieldset legend svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    opacity: 0.5;
}

/* Кнопка сохранения */
.width-100 {
    width: 100%;
    margin-top: 0.5rem;
}

button.width-100 {
    background: var(--span, #f33);
    color: var(--text-default, #fff);
    border: none;
    border-radius: var(--br-8, 8px);
    padding: 0.75rem 1rem;
    font-size: var(--font-size-s, 12px);
    font-weight: var(--font-weight-6, 600);
    cursor: pointer;
    transition: var(--transition-duration, 0.2s);
    height: var(--input-height, 41px);
}

button.width-100:hover {
    background: var(--span-hover, #ff4444);
    opacity: 0.9;
}

button.width-100:active {
    transform: scale(0.98);
}

/* Стили для sticky-block (форма настроек) */
.sticky-block {
    position: sticky;
    top: 0.5rem;
}

/* Стили для иконок статуса */
.access-svg-check {
    width: 16px;
    height: 16px;
    fill: var(--green, #4caf50);
}

.access-svg-xmark {
    width: 16px;
    height: 16px;
    fill: var(--red, #f44336);
}

/* Стили для пагинации */
/* Стили для кнопок пагинации рефералов */
.referral-page-btn.active {
    background-color: var(--red, #ff4940);
    color: var(--text-default, #ffffff);
    cursor: default;
}

.referral-page-btn.active:hover {
    background-color: var(--red, #ff4940);
}

.referral-page-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.button_pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: var(--input-height, 41px);
    padding: 0.5rem 0.75rem;
    background: var(--input-form, rgba(255, 255, 255, 0.02));
    border: 1px solid var(--transparent-5-w, rgba(255, 255, 255, 0.05));
    border-radius: var(--br-8, 8px);
    color: var(--text-custom, #cacaca);
    font-size: var(--font-size-s, 12px);
    font-weight: var(--font-weight-5, 500);
    text-decoration: none;
    transition: var(--transition-duration, 0.2s);
    cursor: pointer;
}

.button_pagination:hover {
    background: var(--transparent-5-w, rgba(255, 255, 255, 0.05));
    border-color: var(--transparent-10-w, rgba(255, 255, 255, 0.1));
    color: var(--text-default, #fff);
}

.button_pagination.active {
    background: var(--span, #f33);
    border-color: var(--span, #f33);
    color: var(--text-default, #fff);
    font-weight: var(--font-weight-6, 600);
}

.button_pagination.active:hover {
    background: var(--span-hover, #ff4444);
    border-color: var(--span-hover, #ff4444);
}

/* Улучшенные стили для card_settings (как в managersystem) */
.card_settings {
    background: var(--card);
    border-radius: 0 0 var(--br-16) var(--br-16);
    padding: 1rem;
    display: flex;
    gap: 0.3rem;
    flex-direction: column;
}

/* Примечание: .card использует стили из шаблона (storage/assets/css/style.css) */
/* Стили для card в админке применяются только через селектор .access_block .card.sticky-block */
/* Пользовательский интерфейс использует article.card с классами из шаблона */

/* Улучшенные стили для input_wrapper с span (как в managersystem) */
.input_wrapper span {
    cursor: help;
    display: flex;
    gap: 0.5rem;
    font-size: var(--font-size-s, 12px);
    height: var(--input-height, 41px);
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    padding-inline: 0.8rem;
    background-color: var(--input-form, rgba(255, 255, 255, 0.02));
    border-radius: var(--br-8, 8px) 0px 0px var(--br-8, 8px);
    border-right: 1px solid var(--transparent-3-w, rgba(255, 255, 255, 0.03));
    align-items: center;
    user-select: none;
}

.input_wrapper span svg {
    width: 1rem;
    height: 1rem;
    fill: var(--text-custom, #cacaca);
    opacity: 0.3;
    transition: var(--transition-duration, 0.2s);
}

.input_wrapper input {
    border-radius: 0px var(--br-8, 8px) var(--br-8, 8px) 0px;
    border-left: none;
}

/* Улучшенные стили для table */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-s, 12px);
}

.table thead {
    background: var(--input-form, rgba(255, 255, 255, 0.02));
}

.table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: var(--font-weight-6, 600);
    color: var(--text-custom, #cacaca);
    border-bottom: 1px solid var(--transparent-5-w, rgba(255, 255, 255, 0.05));
    font-size: var(--font-size-s, 12px);
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--transparent-5-w, rgba(255, 255, 255, 0.05));
    color: var(--text-custom, #cacaca);
}

.table tbody tr:hover {
    background: var(--transparent-2-w, rgba(255, 255, 255, 0.02));
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Стили для table-responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Улучшенные стили для card_button_flex */
.card_button_flex {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.card_button_flex.aic {
    align-items: center;
}

.card_button_flex.width-100 {
    width: 100%;
}