:root {
    --text-color: rgba(255, 255, 255, 0.9);
    --ot-color: rgba(255, 255, 255, 0.45);
    --border: rgba(37, 37, 37, 0.85);
    --button-back: rgba(16, 16, 16, 0.85);
    --success-color: #2ed573;
    --warning-color: #ffa502;
    --danger-color: var(--main-color);
    --info-color: #3742fa;
}

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    list-style: none;
    scroll-behavior: smooth;
}

:root[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --border: rgba(37, 37, 37, 0.85);
    --button-back: rgba(16, 16, 16, 0.85);
    --success-color: #2ed573;
    --warning-color: #ffa502;
    --danger-color: var(--main-color);
    --info-color: #3742fa;
}

:root[data-theme="light"] {
    --bg-primary: #FFF8F0;
    --bg-secondary: #FFEDE0;
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-tertiary: rgba(0, 0, 0, 0.5);
    --border: rgba(var(--main-color-rgb), 0.3);
    --button-back: rgba(255, 255, 255, 0.8);
    --success-color: #2ed573;
    --warning-color: #ffa502;
    --danger-color: var(--main-color);
    --info-color: #3742fa;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'medium', sans-serif;
    overflow-x: hidden;
    color: var(--text-primary, #ffffff);
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

:root[data-theme="light"] body {
    color: var(--text-primary, #000000);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(var(--main-color-rgb), 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(var(--main-color-rgb), 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(var(--main-color-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(var(--main-color-rgb), 0.12) 0%, transparent 45%),
        radial-gradient(circle at 70% 30%, rgba(var(--main-color-rgb), 0.1) 0%, transparent 45%),
        radial-gradient(circle at 15% 60%, rgba(var(--main-color-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 40%, rgba(var(--main-color-rgb), 0.09) 0%, transparent 50%),
        radial-gradient(circle at 60% 10%, rgba(var(--main-color-rgb), 0.07) 0%, transparent 55%),
        radial-gradient(circle at 40% 90%, rgba(var(--main-color-rgb), 0.08) 0%, transparent 55%);
    z-index: -1;
    pointer-events: none;
    opacity: 1;
}

:root[data-theme="light"] body::before {
    opacity: 0.3;
    background:
        radial-gradient(circle at 10% 20%, rgba(var(--main-color-rgb), 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(var(--main-color-rgb), 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(var(--main-color-rgb), 0.05) 0%, transparent 50%);
}

.profile-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
    position: relative;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(var(--main-color-rgb), 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(var(--main-color-rgb), 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(var(--main-color-rgb), 0.05) 0%, transparent 65%),
        radial-gradient(ellipse at 10% 80%, rgba(var(--main-color-rgb), 0.04) 0%, transparent 70%),
        radial-gradient(ellipse at 90% 20%, rgba(var(--main-color-rgb), 0.04) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.profile-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(var(--main-color-rgb), 0.03) 2px, rgba(var(--main-color-rgb), 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(var(--main-color-rgb), 0.02) 2px, rgba(var(--main-color-rgb), 0.02) 4px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.profile-container {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.profile-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    text-align: center;
    margin-bottom: 20px;
    font-family: 'semi';
}

:root[data-theme="light"] .profile-title {
    color: var(--text-primary, #000000);
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 1600px;
}

.dashboard-card {
    border: 1px solid var(--card-border, var(--card-border));
    border-radius: 16px;
    background: var(--card-bg, rgba(20, 20, 20, 0.6));
    backdrop-filter: blur(10px);
}

:root[data-theme="light"] .dashboard-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.8));
}

.unified-cabinet {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.cabinet-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-uid {
    font-size: 0.9rem;
    color: var(--main-color, var(--main-color));
    font-weight: 600;
    margin-left: 12px;
    padding: 4px 10px;
    background: rgba(var(--main-color-rgb), 0.1);
    border-radius: 6px;
    border: 1px solid var(--card-border);
}

:root[data-theme="light"] .user-uid {
    background: rgba(var(--main-color-rgb), 0.15);
    border-color: rgba(var(--main-color-rgb), 0.3);
}

.cabinet-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cabinet-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cabinet-section {
    padding: 24px 0;
    border-top: 1px solid var(--card-border, var(--card-border));
}

.cabinet-section:first-child {
    border-top: none;
    padding-top: 0;
}

.subscription-section {
    padding-top: 24px;
}

.tabbed-card {
    height: 360px;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.tab-title {
    transition: all 0.3s ease;
}

.header-icons {
    display: flex;
    gap: 10px;
}

.tab-icon {
    background: none;
    border: none;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
}

:root[data-theme="light"] .tab-icon {
    color: var(--text-secondary, rgba(0, 0, 0, 0.7));
}

.tab-icon:hover {
    background: rgba(var(--main-color-rgb), 0.05);
    color: var(--text-primary, #ffffff);
}

:root[data-theme="light"] .tab-icon:hover {
    color: var(--text-primary, #000000);
}

.tab-icon.active {
    background: var(--main-color);
    color: white;
}

.tab-icon i {
    font-size: 1.2rem;
}

.tabs-content {
    position: relative;
    flex: 1;
    overflow-y: auto;
}

.tab-content {
    display: none;
    height: 100%;
}

.tab-content.active {
    display: block;
}

.bottom-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 30px;
    align-items: start;
}

.dashboard-card {
    background: var(--card-bg, rgba(20, 20, 20, 0.6));
    border: 1px solid var(--card-border, var(--card-border));
    border-radius: 0;
    padding: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

:root[data-theme="light"] .dashboard-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.8));
    border-color: var(--card-border, rgba(var(--main-color-rgb), 0.3));
}


.large-card {
    height: 540px;
}

.welcome-card {
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.welcome-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--main-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.welcome-text {
    display: flex;
    align-items: center;
}

.welcome-message {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.welcome-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

:root[data-theme="light"] .welcome-title {
    color: var(--text-secondary, rgba(0, 0, 0, 0.7));
}

.user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
}

:root[data-theme="light"] .user-name {
    color: var(--text-primary, #000000);
}

.status-icon {
    color: var(--success-color);
    font-size: 1.1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--ot-color);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.admin-btn:hover {
    background: rgba(var(--main-color-rgb), 0.05);
    color: var(--text-color);
}

.logout-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

:root[data-theme="light"] .logout-btn {
    color: var(--text-secondary, rgba(0, 0, 0, 0.7));
}

.logout-btn:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #ffffff;
    animation: glow-red 1.5s ease-in-out infinite;
}

.download-launcher-btn {
    background: var(--main-color);
    color: white;
    border: 1px solid var(--primary-light);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'medium', sans-serif;
    white-space: nowrap;
}

.download-launcher-btn:hover {
    background: var(--primary-dark);
    opacity: 0.9;
}

.profile-card {
    display: flex;
    flex-direction: column;
}

.large-card {
    height: auto;
    min-height: 400px;
}

.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    overflow-y: auto;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(var(--main-color-rgb), 0.15);
}

:root[data-theme="light"] .info-item {
    border-bottom: 1px solid rgba(var(--main-color-rgb), 0.25);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-weight: 500;
}

:root[data-theme="light"] .info-label {
    color: var(--text-secondary, rgba(0, 0, 0, 0.7));
}

.info-value {
    color: var(--text-primary, #ffffff);
    font-weight: 600;
}

:root[data-theme="light"] .info-value {
    color: var(--text-primary, #000000);
}

.info-value-with-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn,
.reset-btn {
    background: none;
    border: none;
    color: var(--ot-color);
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.copy-btn:hover {
    color: var(--info-color);
    background: rgba(55, 66, 250, 0.03);
}

.reset-btn:hover {
    color: var(--danger-color);
    background: rgba(255, 71, 87, 0.03);
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    overflow-y: auto;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    color: var(--text-primary, #ffffff);
    font-weight: 500;
}

:root[data-theme="light"] .setting-label {
    color: var(--text-primary, #000000);
}

.setting-btn {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.setting-btn:hover {
    background: var(--info-color);
}

.setting-input {
    position: relative;
    display: flex;
    align-items: center;
}

.setting-input input {
    background: var(--border);
    border: 1px solid var(--border);
    color: var(--text-primary, #ffffff);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 120px;
    text-align: center;
}

:root[data-theme="light"] .setting-input input {
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary, #000000);
    border-color: rgba(var(--main-color-rgb), 0.25);
}

.setting-input i {
    position: absolute;
    right: 8px;
    color: var(--success-color);
    font-size: 0.9rem;
}

.setting-input input:focus {
    outline: none;
    border-color: var(--main-color);
}

.subscription-card {
    height: 400px;
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(16, 16, 16, 0.95), rgba(37, 37, 37, 0.95));
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--main-color-rgb), 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.subscription-circle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.subscription-circle-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
}

.subscription-circle {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(var(--main-color-rgb), 0.3));
}

.circle-progress {
    filter: drop-shadow(0 0 15px var(--main-color));
}

.subscription-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.subscription-days {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    font-family: 'semi', sans-serif;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(var(--main-color-rgb), 0.5);
}

:root[data-theme="light"] .subscription-days {
    color: var(--text-primary, #000000);
}

.subscription-label {
    font-size: 1.1rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-weight: 500;
    margin-bottom: 12px;
}

:root[data-theme="light"] .subscription-label {
    color: var(--text-secondary, rgba(0, 0, 0, 0.7));
}

.subscription-date {
    font-size: 0.9rem;
    color: var(--text-primary, #ffffff);
    font-weight: 500;
}

:root[data-theme="light"] .subscription-date {
    color: var(--text-primary, #000000);
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bottom-panels {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-left: 0;
        width: 100%;
    }

    .large-card {
        height: auto;
        min-height: 500px;
    }

    .welcome-card {
        height: auto;
        min-height: 300px;
    }

    .subscription-card {
        height: auto;
        min-height: 350px;
    }

    .subscription-circle-wrapper {
        width: 240px;
        height: 240px;
    }

    .subscription-days {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .profile-section {
        padding: 100px 15px 30px;
    }

    .profile-title {
        font-size: 2rem;
    }

    .header-icons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-icon {
        padding: 8px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .dashboard-card {
        padding: 20px;
    }

    .welcome-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .welcome-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .logout-btn {
        width: 100%;
        justify-content: center;
    }

    .info-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .friend-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .friend-actions {
        justify-content: center;
    }

    .purchase-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .stat-item {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .profile-title {
        font-size: 1.5rem;
    }

    .dashboard-card {
        padding: 15px;
    }

    .card-header h3 {
        font-size: 1.1rem;
    }

    .welcome-message {
        font-size: 1rem;
    }

    .download-launcher-btn {
        font-size: 1rem;
        padding: 12px;
    }

    .countdown-text {
        font-size: 1rem;
    }

    .tab-icon {
        padding: 8px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-card {
    animation: fadeInUp 0.6s ease forwards;
}

.dashboard-card:nth-child(1) {
    animation-delay: 0.1s;
}

.dashboard-card:nth-child(2) {
    animation-delay: 0.2s;
}

.dashboard-card:nth-child(3) {
    animation-delay: 0.3s;
}

.dashboard-card:nth-child(4) {
    animation-delay: 0.4s;
}

.copy-btn:active,
.reset-btn:active,
.download-launcher-btn:active,
.logout-btn:active,
.friend-action-btn:active,
.setting-btn:active,
.add-friend-btn:active {
    transform: scale(0.95);
}

.copy-btn:focus,
.reset-btn:focus,
.friend-uid-input:focus {
    outline: 2px solid rgba(var(--main-color-rgb), 0.5);
    outline-offset: 2px;
    transition: all 0.4s ease;
}

.admin-panel-minimal {
    background: var(--card-bg, rgba(20, 20, 20, 0.6));
    border: 1px solid var(--card-border, var(--card-border));
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

:root[data-theme="light"] .admin-panel-minimal {
    background: var(--card-bg, rgba(255, 255, 255, 0.8));
    border-color: rgba(var(--main-color-rgb), 0.3);
}

.admin-tabs-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.admin-tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.admin-tab-btn {
    background: var(--button-back, rgba(16, 16, 16, 0.95));
    border: 1px solid var(--border, rgba(37, 37, 37, 0.85));
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-family: 'medium';
    outline: none;
}

:root[data-theme="light"] .admin-tab-btn {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(var(--main-color-rgb), 0.3);
    color: var(--text-secondary, rgba(0, 0, 0, 0.7));
}

.admin-tab-btn:hover {
    background: var(--card-border);
    border-color: rgba(var(--main-color-rgb), 0.4);
    color: var(--text-primary, #ffffff);
}

:root[data-theme="light"] .admin-tab-btn:hover {
    background: rgba(var(--main-color-rgb), 0.15);
    color: var(--text-primary, #000000);
}

.admin-tab-btn.active {
    background: var(--main-color, var(--main-color));
    color: white;
}

.admin-tab-content {
    flex: 1;
    overflow-y: auto;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-panel-header h4 {
    color: var(--text-primary, #ffffff);
    margin: 0;
    font-size: 1.1rem;
    font-family: 'semi';
}

:root[data-theme="light"] .admin-panel-header h4 {
    color: var(--text-primary, #000000);
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--button-back, rgba(16, 16, 16, 0.95));
    border: 1px solid var(--border, rgba(37, 37, 37, 0.85));
    border-radius: 8px;
    padding: 8px 12px;
    justify-content: flex-end;
    margin-bottom: 15px;
    width: fit-content;
    margin-left: auto;
    transition: all 0.3s ease;
}

:root[data-theme="light"] .admin-search {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(var(--main-color-rgb), 0.3);
}

.admin-search:focus-within {
    border-color: rgba(var(--main-color-rgb), 0.4);
    box-shadow: 0 0 0 3px rgba(var(--main-color-rgb), 0.1);
}

.admin-search i {
    color: var(--main-color);
    font-size: 0.8rem;
}

.admin-search input {
    background: none;
    border: none;
    color: var(--text-primary, #ffffff);
    outline: none;
    font-size: 0.8rem;
    width: 160px;
}

:root[data-theme="light"] .admin-search input {
    color: var(--text-primary, #000000);
}

.admin-search input::placeholder {
    color: var(--text-secondary, rgba(255, 255, 255, 0.5));
}

:root[data-theme="light"] .admin-search input::placeholder {
    color: var(--text-secondary, rgba(0, 0, 0, 0.5));
}

.admin-table-container {
    background: var(--button-back, rgba(16, 16, 16, 0.95));
    border: 1px solid var(--border, rgba(37, 37, 37, 0.85));
    border-radius: 12px;
    overflow: hidden;
    padding: 16px;
}

:root[data-theme="light"] .admin-table-container {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(var(--main-color-rgb), 0.3);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--border);
    color: var(--text-primary, #ffffff);
    padding: 12px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'semi';
}

:root[data-theme="light"] .admin-table th {
    color: var(--text-primary, #000000);
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary, #ffffff);
    font-size: 0.9rem;
}

:root[data-theme="light"] .admin-table td {
    color: var(--text-primary, #000000);
}

.admin-table tr:hover {
    background: rgba(var(--main-color-rgb), 0.05);
}

.admin-section {
    background: var(--button-back);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.admin-section h4 {
    color: var(--text-primary, #ffffff);
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-family: 'semi';
}

:root[data-theme="light"] .admin-section h4 {
    color: var(--text-primary, #000000);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: var(--text-primary, #ffffff);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'medium';
}

:root[data-theme="light"] .form-group label {
    color: var(--text-primary, #000000);
}

.form-group input {
    background: var(--border);
    border: 1px solid var(--border);
    color: var(--text-primary, #ffffff);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

:root[data-theme="light"] .form-group input {
    color: var(--text-primary, #000000);
}

.form-group input:focus {
    border-color: var(--main-color);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.admin-btn {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    align-self: flex-start;
}

.admin-btn:hover {
    background: var(--main-color);
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(var(--main-color-rgb), 0.3);
}

.generated-keys {
    margin-top: 20px;
}

.generated-keys label {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.generated-keys textarea {
    background: var(--button-back, rgba(16, 16, 16, 0.85));
    border: 1px solid var(--border);
    color: var(--text-primary, #ffffff);
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 100%;
    resize: vertical;
    outline: none;
}

:root[data-theme="light"] .generated-keys textarea {
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary, #000000);
    border-color: rgba(var(--main-color-rgb), 0.25);
}

.info-result {
    margin-top: 15px;
    padding: 12px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
    min-height: 20px;
}

.admin-section.compact {
    padding: 15px;
    margin-bottom: 15px;
}

.admin-section.compact h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.admin-form.compact {
    gap: 12px;
}

.admin-form.compact .form-group {
    gap: 4px;
}

.admin-form.compact .form-group label {
    font-size: 0.85rem;
    color: var(--text-primary, #ffffff);
}

:root[data-theme="light"] .admin-form.compact .form-group label {
    color: var(--text-primary, #000000);
}

.admin-form.compact .form-group input {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.admin-form.compact .form-row {
    gap: 12px;
}

.admin-form.compact .admin-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.generated-keys.compact {
    margin-top: 15px;
}

.generated-keys.compact label {
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.generated-keys.compact textarea {
    padding: 8px;
    font-size: 0.85rem;
    min-height: 80px;
}

.info-result.compact {
    margin-top: 12px;
    padding: 8px;
    font-size: 0.85rem;
    min-height: 16px;
}

.admin-split-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-split-left h5 {
    color: var(--text-primary, #ffffff);
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'semi';
}

:root[data-theme="light"] .admin-split-left h5 {
    color: var(--text-primary, #000000);
}

.admin-btn.wide {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .admin-split-left {
        gap: 12px;
        margin-bottom: 15px;
    }

    .admin-tabs-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .admin-tab-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .admin-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-search {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-search input {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px;
    }
}

.edit-btn {
    padding: 6px 8px !important;
    font-size: 0.9rem !important;
    min-width: auto !important;
}

.edit-btn i {
    font-size: 0.9rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1050;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
}

.modal-content {
    background: var(--button-back);
    border: 1px solid var(--border);
    color: var(--text-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    background: var(--border);
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-title i {
    color: var(--main-color);
}

.modal-body {
    background: var(--button-back);
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid var(--border);
    background: var(--border);
    padding: 15px 20px;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    color: var(--main-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: var(--button-back, rgba(16, 16, 16, 0.85));
    border: 1px solid var(--border);
    color: var(--text-primary, #ffffff);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

:root[data-theme="light"] .form-control {
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary, #000000);
    border-color: rgba(var(--main-color-rgb), 0.25);
}

.form-control:focus {
    background: var(--button-back, rgba(16, 16, 16, 0.85));
    border-color: var(--main-color);
    color: var(--text-primary, #ffffff);
    outline: 2px solid rgba(var(--main-color-rgb), 0.5);
    outline-offset: 2px;
    transition: all 0.4s ease;
}

:root[data-theme="light"] .form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--main-color);
    color: var(--text-primary, #000000);
    outline-color: rgba(var(--main-color-rgb), 0.4);
}

.form-control::placeholder {
    color: var(--ot-color);
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-control {
    flex: 1;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline-danger {
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    background: transparent;
    transition: all 0.4s ease;
    outline: none;
}

.btn-outline-danger:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--main-color);
    color: var(--main-color);
    outline: 2px solid rgba(255, 71, 87, 0.3);
    outline-offset: 2px;
}

.btn-outline-warning {
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
    background: transparent;
    transition: all 0.4s ease;
    outline: none;
}

.btn-outline-warning:hover {
    background: rgba(255, 165, 2, 0.1);
    border-color: #ffa502;
    color: #ffa502;
    outline: 2px solid rgba(255, 165, 2, 0.3);
    outline-offset: 2px;
}

.btn-outline-success {
    border: 1px solid var(--success-color);
    color: var(--success-color);
    background: transparent;
    transition: all 0.4s ease;
    outline: none;
}

.btn-outline-success:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
    outline: 2px solid rgba(16, 185, 129, 0.3);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--main-color);
    border-color: var(--main-color);
    color: white;
}

.btn-primary:hover {
    background: var(--info-color);
    border-color: var(--info-color);
}

.btn-secondary {
    background: var(--border);
    border-color: var(--border);
    color: var(--text-color);
    transition: all 0.4s ease;
    outline: none;
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.1);
    border-color: #6c757d;
    color: #6c757d;
    outline: 2px solid rgba(108, 117, 125, 0.3);
    outline-offset: 2px;
}

.text-muted {
    color: var(--ot-color) !important;
    font-size: 0.85rem;
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.d-flex {
    display: flex;
}

.gap-2 {
    gap: 10px;
}

.youtuber-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow-y: auto;
}

.youtuber-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--main-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--main-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    color: white;
    font-size: 1.5rem;
}

.stat-info {
    flex: 1;
}

.stat-info h4 {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.promo-code {
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-code span {
    color: var(--main-color);
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
}

.stat-number {
    color: var(--main-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.youtuber-history {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    flex: 1;
}

.youtuber-history h4 {
    color: var(--text-color);
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.history-table-container {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.history-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-table td {
    padding: 12px;
    color: var(--text-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.history-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .youtuber-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon i {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .youtuber-history {
        padding: 15px;
    }

    .history-table {
        font-size: 0.8rem;
    }

    .history-table th,
    .history-table td {
        padding: 8px;
    }
}

.shopify-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow-y: auto;
}

.shopify-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-input:checked+.toggle-label {
    background-color: var(--success-color);
}

.toggle-input:checked+.toggle-label:before {
    transform: translateX(30px);
}

.shopify-history {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    flex: 1;
}

.shopify-history h4 {
    color: var(--text-color);
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .shopify-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .shopify-history {
        padding: 15px;
    }
}

.withdrawal-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(16, 16, 16, 0.85);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.withdrawal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.withdrawal-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    font-family: 'semi';
}

.available-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.available-info .available-amount {
    font-size: 0.85rem;
    color: var(--success-color);
    font-weight: 500;
}

.available-info .commission-info {
    font-size: 0.8rem;
    color: var(--warning-color);
    font-weight: 500;
}

.withdrawal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.withdrawal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.withdrawal-form .form-group label {
    font-size: 0.9rem;
    color: var(--ot-color);
    font-weight: 500;
}

.withdrawal-form .form-group input,
.withdrawal-form .form-group select {
    padding: 12px 16px;
    background: var(--button-back, rgba(16, 16, 16, 0.85));
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary, #ffffff);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

:root[data-theme="light"] .withdrawal-form .form-group input,
:root[data-theme="light"] .withdrawal-form .form-group select {
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary, #000000);
    border-color: rgba(var(--main-color-rgb), 0.25);
}

.withdrawal-form .form-group input:focus,
.withdrawal-form .form-group select:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 2px var(--card-border);
}

:root[data-theme="light"] .withdrawal-form .form-group input:focus,
:root[data-theme="light"] .withdrawal-form .form-group select:focus {
    border-color: var(--main-color);
    outline-color: rgba(var(--main-color-rgb), 0.4);
    background: rgba(255, 255, 255, 1);
}

.withdrawal-form .form-group input::placeholder {
    color: var(--ot-color);
}

.input-with-info {
    position: relative;
}

.amount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.85rem;
}

.available-amount {
    color: var(--success-color);
    font-weight: 500;
}

.commission-info {
    color: var(--warning-color);
    font-weight: 500;
}

.withdrawal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--main-color), #6b8a9a);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'semi';
    margin-top: 10px;
}

.withdrawal-btn:hover {
    background: linear-gradient(135deg, #6b8a9a, var(--main-color));
    box-shadow: 0 8px 25px rgba(var(--main-color-rgb), 0.3);
}

.withdrawal-btn:active {
    transform: translateY(0);
}

.withdrawal-btn i {
    font-size: 1.1rem;
}

.withdrawal-btn-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--main-color), #6b8a9a);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'semi';
    width: 100%;
}

.withdrawal-btn-compact:hover {
    background: linear-gradient(135deg, #6b8a9a, var(--main-color));
    box-shadow: 0 6px 20px rgba(var(--main-color-rgb), 0.3);
}

.withdrawal-btn-compact:active {
    transform: translateY(0);
}

.withdrawal-btn-compact i {
    font-size: 1rem;
}

.withdrawal-confirmation {
    text-align: left;
    padding: 10px 0;
}

.withdrawal-confirmation p {
    margin: 8px 0;
    color: var(--text-color);
}

.withdrawal-confirmation strong {
    color: var(--main-color);
}

@media (max-width: 768px) {
    .withdrawal-section {
        padding: 20px;
        margin-top: 20px;
    }

    .withdrawal-form {
        gap: 15px;
    }

    .amount-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .withdrawal-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .custom-dropdown-header {
        padding: 10px 14px;
        font-size: 13px;
    }

    .custom-dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }

    .custom-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 40px;
    }

    .subscription-controls {
        flex-direction: column;
        gap: 10px;
    }

    .subscription-controls .custom-btn {
        width: 100%;
    }

    .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer .custom-btn {
        width: 100%;
    }

    /* Адаптивность для фильтров Shopify */
    .filters-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .shopify-filters {
        padding: 16px;
    }

    .shopify-filters h4 {
        font-size: 1.1rem;
    }
}

.custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(16, 16, 16, 0.85);
    border: 1.5px solid rgba(37, 37, 37, 0.85);
    border-radius: 12px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'medium', sans-serif;
    font-size: 14px;
}

.custom-dropdown-header:hover {
    border-color: rgba(var(--main-color-rgb), 0.5);
    box-shadow: 0 4px 15px rgba(var(--main-color-rgb), 0.1);
}

.custom-dropdown-header.active {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(var(--main-color-rgb), 0.15);
}

.custom-dropdown-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.custom-dropdown-text i {
    color: var(--main-color);
    font-size: 16px;
}

.custom-dropdown-header i.ph-caret-down {
    color: var(--ot-color);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.custom-dropdown-header.active i.ph-caret-down {
    transform: rotate(180deg);
}

.custom-dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(16, 16, 16, 0.95);
    border: 1.5px solid rgba(37, 37, 37, 0.85);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) rgba(37, 37, 37, 0.85);
}

.custom-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-list::-webkit-scrollbar-track {
    background: rgba(37, 37, 37, 0.85);
    border-radius: 3px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 3px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #6b8a9a;
}

.custom-dropdown-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'medium', sans-serif;
    font-size: 14px;
}

.custom-dropdown-item:hover {
    background: rgba(var(--main-color-rgb), 0.1);
    color: var(--text-color);
}

.custom-dropdown-item.selected {
    background: var(--card-border);
    color: var(--main-color);
}

.custom-dropdown-item i {
    color: var(--main-color);
    font-size: 16px;
    flex-shrink: 0;
}

.custom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'medium', sans-serif;
    text-decoration: none;
    outline: none;
    min-height: 44px;
}

.custom-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.custom-btn:active {
    transform: translateY(0);
}

.custom-btn i {
    font-size: 16px;
}

.custom-btn-primary {
    background: linear-gradient(135deg, var(--main-color), #6b8a9a);
    border-color: var(--main-color);
    color: white;
    font-weight: 600;
    transition: all 0.4s ease;
    outline: none;
}

.custom-btn-primary:hover {
    background: linear-gradient(135deg, rgba(107, 138, 154, 0.7), rgba(var(--main-color-rgb), 0.7));
    border-color: var(--main-color);
    outline: 2px solid rgba(var(--main-color-rgb), 0.5);
    outline-offset: 2px;
    opacity: 0.8;
}

.custom-btn-secondary {
    background: rgba(16, 16, 16, 0.85);
    border-color: var(--border);
    color: var(--text-color);
}

.custom-btn-secondary:hover {
    background: rgba(32, 32, 32, 0.95);
    border-color: var(--main-color);
    color: var(--text-color);
}

.custom-btn-success {
    background: transparent;
    border-color: var(--success-color);
    color: var(--success-color);
}

.custom-btn-success:hover {
    background: rgba(46, 213, 115, 0.7);
    border-color: #2ed573;
    color: white;
    outline: 2px solid rgba(46, 213, 115, 0.5);
    outline-offset: 2px;
    transition: all 0.4s ease;
}

.custom-btn-warning {
    background: transparent;
    border-color: var(--warning-color);
    color: var(--warning-color);
    transition: all 0.4s ease;
    outline: none;
}

.custom-btn-warning:hover {
    background: rgba(255, 165, 2, 0.7);
    border-color: #ffa502;
    color: white;
    outline: 2px solid rgba(255, 165, 2, 0.5);
    outline-offset: 2px;
}

.custom-btn-danger {
    background: transparent;
    border-color: var(--danger-color);
    color: var(--danger-color);
    transition: all 0.4s ease;
    outline: none;
}

.custom-btn-danger:hover {
    background: rgba(255, 71, 87, 0.7);
    border-color: var(--main-color);
    color: white;
    outline: 2px solid rgba(255, 71, 87, 0.5);
    outline-offset: 2px;
}

.modal .custom-btn {
    border-radius: 8px;
    font-weight: 500;
    min-height: 40px;
    padding: 10px 16px;
}

.modal .custom-btn-warning {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
    width: 100%;
    margin-bottom: 8px;
}

.modal .custom-btn-warning:hover {
    background: rgba(230, 126, 34, 0.7);
    border-color: #e67e22;
    outline: 2px solid rgba(230, 126, 34, 0.5);
    outline-offset: 2px;
    transition: all 0.4s ease;
}

.modal .custom-btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    transition: all 0.4s ease;
    outline: none;
}

.modal .custom-btn-success:hover {
    background: rgba(39, 174, 96, 0.7);
    border-color: #27ae60;
    outline: 2px solid rgba(39, 174, 96, 0.5);
    outline-offset: 2px;
}

.modal .custom-btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
    width: 100%;
    margin-top: 8px;
    transition: all 0.4s ease;
    outline: none;
}

.modal .custom-btn-danger:hover {
    background: rgba(192, 57, 43, 0.7);
    border-color: #c0392b;
    outline: 2px solid rgba(192, 57, 43, 0.5);
    outline-offset: 2px;
}

.subscription-controls {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.subscription-controls .custom-dropdown {
    flex: 1;
}

.subscription-controls .custom-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 1.75rem auto;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background: rgba(16, 16, 16, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: rgba(16, 16, 16, 0.95);
}

.modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'semi';
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title i {
    color: var(--main-color);
}

.btn-close {
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    color: var(--ot-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-close:hover {
    color: var(--text-color);
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
    background: rgba(16, 16, 16, 0.95);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    background: rgba(16, 16, 16, 0.95);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'medium';
    text-decoration: none;
}

.btn-secondary {
    background: rgba(16, 16, 16, 0.85);
    border: 1px solid var(--border);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: rgba(32, 32, 32, 0.95);
    border-color: var(--main-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--main-color), #6b8a9a);
    border: none;
    color: white;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6b8a9a, var(--main-color));
    box-shadow: 0 4px 15px rgba(var(--main-color-rgb), 0.3);
}

.modal-body .form-group {
    margin-bottom: 1rem;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--ot-color);
    font-weight: 500;
}

.modal-body .form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    background: var(--button-back, rgba(16, 16, 16, 0.85));
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary, #ffffff);
    transition: all 0.3s ease;
}

:root[data-theme="light"] .modal-body .form-control {
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary, #000000);
    border-color: rgba(var(--main-color-rgb), 0.25);
}

.modal-body .form-control:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 2px var(--card-border);
}

:root[data-theme="light"] .modal-body .form-control:focus {
    border-color: var(--main-color);
    outline-color: rgba(var(--main-color-rgb), 0.4);
    background: rgba(255, 255, 255, 1);
}

.modal-body .form-control::placeholder {
    color: var(--ot-color);
}

.modal-body select.form-control {
    background: var(--button-back, rgba(16, 16, 16, 0.85));
    color: var(--text-primary, #ffffff);
    cursor: pointer;
}

:root[data-theme="light"] .modal-body select.form-control {
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary, #000000);
}

.modal-body select.form-control option {
    background: var(--button-back, rgba(16, 16, 16, 0.95));
    color: var(--text-primary, #ffffff);
}

:root[data-theme="light"] .modal-body select.form-control option {
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary, #000000);
}

.shopify-filters {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.shopify-filters h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shopify-filters h4 i {
    color: var(--main-color);
}

.filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.filters-row .form-group {
    margin-bottom: 0;
}

.filters-row .form-label {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.filters-row .form-label i {
    color: var(--main-color);
}

.youtuber-stats-form .custom-dropdown,
.shopify-filters .custom-dropdown {
    background: rgba(16, 16, 16, 0.85);
    border: 1.5px solid var(--border);
    border-radius: 12px;
}

.youtuber-stats-form .custom-dropdown-header,
.shopify-filters .custom-dropdown-header {
    background: rgba(16, 16, 16, 0.85);
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
}

.youtuber-stats-form .custom-dropdown-header:hover,
.shopify-filters .custom-dropdown-header:hover {
    border-color: rgba(var(--main-color-rgb), 0.5);
    box-shadow: 0 4px 15px rgba(var(--main-color-rgb), 0.1);
}

.youtuber-stats-form .custom-dropdown-header.active,
.shopify-filters .custom-dropdown-header.active {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(var(--main-color-rgb), 0.15);
}

.youtuber-stats-form .custom-dropdown-list,
.shopify-filters .custom-dropdown-list {
    background: rgba(16, 16, 16, 0.95);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.youtuber-stats-form .custom-dropdown-item,
.shopify-filters .custom-dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
}

.youtuber-stats-form .custom-dropdown-item:hover,
.shopify-filters .custom-dropdown-item:hover {
    background: rgba(var(--main-color-rgb), 0.1);
}

.youtuber-stats-form .custom-dropdown-item.selected,
.shopify-filters .custom-dropdown-item.selected {
    background: var(--card-border);
    color: var(--main-color);
}

#withdrawalModal .custom-dropdown {
    background: rgba(16, 16, 16, 0.85);
    border: 1.5px solid var(--border);
    border-radius: 12px;
}

#withdrawalModal .custom-dropdown-header {
    background: rgba(16, 16, 16, 0.85);
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
}

#withdrawalModal .custom-dropdown-header:hover {
    border-color: rgba(var(--main-color-rgb), 0.5);
    box-shadow: 0 4px 15px rgba(var(--main-color-rgb), 0.1);
}

#withdrawalModal .custom-dropdown-header.active {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(var(--main-color-rgb), 0.15);
}

#withdrawalModal .custom-dropdown-list {
    background: rgba(16, 16, 16, 0.95);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#withdrawalModal .custom-dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
}

#withdrawalModal .custom-dropdown-item:hover {
    background: rgba(var(--main-color-rgb), 0.1);
}

#withdrawalModal .custom-dropdown-item.selected {
    background: var(--card-border);
    color: var(--main-color);
}

.youtuber-stats-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.youtuber-stats-form h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.youtuber-stats-form h4 i {
    color: var(--main-color);
}

.stats-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stats-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-form .form-label {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stats-form .form-label i {
    color: var(--main-color);
}

.stats-form .form-select,
.stats-form .form-input {
    background: var(--button-back, rgba(16, 16, 16, 0.85));
    color: var(--text-primary, #ffffff);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: 'medium', sans-serif;
    box-shadow: none;
    padding: 12px 16px;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

:root[data-theme="light"] .stats-form .form-select,
:root[data-theme="light"] .stats-form .form-input {
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary, #000000);
    border-color: rgba(var(--main-color-rgb), 0.25);
}

.stats-form .form-select:focus,
.stats-form .form-input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 2px var(--card-border);
}

:root[data-theme="light"] .stats-form .form-select:focus,
:root[data-theme="light"] .stats-form .form-input:focus {
    border-color: var(--main-color);
    outline-color: rgba(var(--main-color-rgb), 0.4);
    background: rgba(255, 255, 255, 1);
}

.stats-form .form-select option {
    background: var(--button-back, rgba(16, 16, 16, 0.85));
    color: var(--text-primary, #ffffff);
}

:root[data-theme="light"] .stats-form .form-select option {
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary, #000000);
}

.stats-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stats-submit-btn {
    background: linear-gradient(135deg, var(--main-color), #6b8a9a);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-family: 'medium', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.stats-submit-btn:hover {
    box-shadow: 0 8px 25px rgba(var(--main-color-rgb), 0.3);
}

.stats-submit-btn:active {
    transform: translateY(0);
}

.stats-submit-btn i {
    font-size: 16px;
}

.stats-result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.stats-result p {
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
}

.stats-result .text-danger {
    color: var(--danger-color);
}

.stats-result .text-info {
    color: var(--info-color);
}

.stats-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.stats-container h5 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-container h5 i {
    color: var(--main-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat-label {
    color: var(--ot-color);
    font-size: 12px;
    font-weight: 500;
}

.stat-value {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    font-family: 'semi', sans-serif;
}

@media (max-width: 768px) {
    .youtuber-stats-form {
        padding: 16px;
        margin-top: 16px;
    }

    .stats-form .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stats-submit-btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .stats-container {
        padding: 16px;
    }

    .stat-item {
        padding: 10px;
    }

    .stat-value {
        font-size: 14px;
    }
}

.simple-datepicker {
    position: relative;
    display: inline-block;
    width: 100%;
}

.simple-datepicker-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--button-back, rgba(16, 16, 16, 0.85));
    color: var(--text-primary, #ffffff);
    border: 1.5px solid var(--border, rgba(37, 37, 37, 0.85));
    border-radius: 12px;
    font-family: 'medium', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-align: center;
    position: relative;
}

:root[data-theme="light"] .simple-datepicker-input {
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary, #000000);
    border-color: rgba(var(--main-color-rgb), 0.25);
}

.simple-datepicker-input:hover {
    border-color: rgba(var(--main-color-rgb), 0.5);
    box-shadow: 0 4px 15px rgba(var(--main-color-rgb), 0.1);
}

.simple-datepicker-input:focus {
    outline: none;
    border-color: var(--main-color, var(--main-color));
    box-shadow: 0 0 0 3px rgba(var(--main-color-rgb), 0.15);
}

.simple-datepicker-calendar {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--button-back, rgba(16, 16, 16, 0.95));
    border: 1.5px solid var(--border, rgba(37, 37, 37, 0.85));
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-width: 320px;
    margin: 0 auto;
}

:root[data-theme="light"] .simple-datepicker-calendar {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(var(--main-color-rgb), 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.simple-datepicker.active .simple-datepicker-calendar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.simple-datepicker-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--button-back, rgba(37, 37, 37, 0.85));
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid var(--card-border);
}

:root[data-theme="light"] .simple-datepicker-calendar-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--card-border);
}

.simple-datepicker-calendar-title {
    color: var(--text-primary, #ffffff);
    font-family: 'medium', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

:root[data-theme="light"] .simple-datepicker-calendar-title {
    color: var(--text-primary, #000000);
}

.simple-datepicker-calendar-nav {
    display: flex;
    gap: 8px;
}

.simple-datepicker-calendar-nav-btn {
    width: 28px;
    height: 28px;
    background: rgba(var(--main-color-rgb), 0.1);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color, var(--main-color));
    cursor: pointer;
    transition: all 0.2s ease;
}

.simple-datepicker-calendar-nav-btn:hover {
    background: var(--card-border);
    border-color: rgba(var(--main-color-rgb), 0.4);
}

.simple-datepicker-calendar-body {
    padding: 16px;
}

.simple-datepicker-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.simple-datepicker-calendar-weekday {
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color, var(--main-color));
    font-family: 'medium', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.simple-datepicker-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.simple-datepicker-calendar-day {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-primary, #ffffff);
    font-family: 'medium', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

:root[data-theme="light"] .simple-datepicker-calendar-day {
    color: var(--text-primary, #000000);
}

.simple-datepicker-calendar-day:hover {
    background: rgba(var(--main-color-rgb), 0.1);
    border-color: rgba(var(--main-color-rgb), 0.3);
}

.simple-datepicker-calendar-day.selected {
    background: linear-gradient(135deg, var(--main-color, var(--main-color)), #6b8a9a);
    color: #fff;
    border-color: var(--main-color, var(--main-color));
    box-shadow: 0 2px 8px rgba(var(--main-color-rgb), 0.3);
}

.simple-datepicker-calendar-day.today {
    background: rgba(var(--main-color-rgb), 0.1);
    color: var(--main-color, var(--main-color));
    border-color: var(--main-color, var(--main-color));
}

.simple-datepicker-calendar-day.other-month {
    color: rgba(255, 255, 255, 0.3);
}

:root[data-theme="light"] .simple-datepicker-calendar-day.other-month {
    color: rgba(0, 0, 0, 0.3);
}

.simple-datepicker-calendar-day.other-month:hover {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(var(--main-color-rgb), 0.05);
}

:root[data-theme="light"] .simple-datepicker-calendar-day.other-month:hover {
    color: rgba(0, 0, 0, 0.5);
    background: rgba(var(--main-color-rgb), 0.1);
}

@media (max-width: 768px) {
    .simple-datepicker-calendar-day {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .simple-datepicker-calendar-weekday {
        width: 28px;
        height: 20px;
        font-size: 9px;
    }
}

.telegram-status-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.telegram-status {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.telegram-status.text-success {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.telegram-status.text-danger {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.setting-btn.danger {
    background: #dc3545;
    color: white;
}

.setting-btn.danger:hover {
    background: #c82333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-dialog {
    margin: 10% auto;
    max-width: 500px;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--main-color);
    color: white;
}

.btn-primary:hover {
    background: var(--main-color-dark);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.2);
    color: #055160;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
    color: #0f5132;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #842029;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 2px rgba(0, 111, 201, 0.25);
}

.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.mb-3 {
    margin-bottom: 16px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.info {
    background: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Стили для кнопок SweetAlert2 в модальном окне выхода */
.swal2-confirm {
    transition: all 0.3s ease !important;
    border-radius: 12px !important;
    position: relative !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px) scale(1.02) !important;
}

/* Красная кнопка выхода - в стиле сайта с красным акцентом */
.swal2-confirm-red,
.swal2-popup .swal2-confirm[data-logout-btn="true"],
.swal2-popup .swal2-confirm.swal2-confirm-red {
    background: var(--button-back, rgba(16, 16, 16, 0.85)) !important;
    background-color: var(--button-back, rgba(16, 16, 16, 0.85)) !important;
    border: 1px solid rgba(255, 71, 87, 0.3) !important;
    color: rgba(255, 71, 87, 0.9) !important;
    transition: all 0.3s ease !important;
    border-radius: 12px !important;
    font-family: 'medium', sans-serif !important;
}

:root[data-theme="light"] .swal2-confirm-red,
:root[data-theme="light"] .swal2-popup .swal2-confirm[data-logout-btn="true"],
:root[data-theme="light"] .swal2-popup .swal2-confirm.swal2-confirm-red {
    background: rgba(255, 255, 255, 0.9) !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 71, 87, 0.4) !important;
    color: rgba(255, 71, 87, 0.95) !important;
}

.swal2-confirm-red:hover,
.swal2-popup .swal2-confirm[data-logout-btn="true"]:hover,
.swal2-popup .swal2-confirm.swal2-confirm-red:hover {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02) !important;
    animation: glow-red-strong 1s ease-in-out infinite !important;
    box-shadow: 0 4px 30px rgba(255, 71, 87, 0.8) !important;
}

/* Светлая тема: корректные цвета и тени для читаемости */
:root[data-theme="light"] .swal2-popup .swal2-confirm.swal2-confirm-red,
:root[data-theme="light"] .swal2-popup .swal2-confirm[data-logout-btn="true"] {
    color: #d32f2f !important;
    /* более тёмный красный для текста на светлом фоне */
    border-color: rgba(211, 47, 47, 0.55) !important;
}

:root[data-theme="light"] .swal2-popup .swal2-confirm.swal2-confirm-red:hover,
:root[data-theme="light"] .swal2-popup .swal2-confirm[data-logout-btn="true"]:hover {
    background-color: #ff5c6b !important;
    /* немного светлее на белом */
    border-color: #ff5c6b !important;
    box-shadow: 0 4px 22px rgba(211, 47, 47, 0.55) !important;
    /* меньше «размаза» на белом */
}

/* Кнопка Отмена в светлой теме — нейтральная */
:root[data-theme="light"] .swal2-cancel {
    background: #f4f4f6 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #2b2b2b !important;
}

:root[data-theme="light"] .swal2-cancel:hover {
    background: #ebebef !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.swal2-cancel {
    transition: all 0.3s ease !important;
    border-radius: 12px !important;
}

.swal2-cancel:hover {
    transform: translateY(-2px) scale(1.02) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Cabinet Navigation Buttons - Grid 2 columns */
.cabinet-nav-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.cabinet-right .nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: var(--button-back, rgba(16, 16, 16, 0.85));
    border: 1px solid var(--border, rgba(37, 37, 37, 0.85));
    border-radius: 16px;
    color: var(--text-primary, #ffffff);
    font-family: 'medium', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s ease;
    outline: none;
    text-decoration: none;
    min-height: 100px;
}

:root[data-theme="light"] .cabinet-right .nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(var(--main-color-rgb), 0.3);
    color: var(--text-primary, #000000);
}

.cabinet-right .nav-btn i {
    font-size: 32px;
    color: var(--main-color, var(--main-color));
    transition: all 0.4s ease;
}

.cabinet-right .nav-btn span {
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s ease;
}

.cabinet-right .nav-btn.active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #ffffff;
}

:root[data-theme="light"] .cabinet-right .nav-btn.active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #000000;
}

.cabinet-right .nav-btn.active i {
    color: #ffffff;
}

:root[data-theme="light"] .cabinet-right .nav-btn.active i {
    color: #000000;
}

.cabinet-right .nav-btn:hover:not(.active) {
    background: var(--button-back-hover, rgba(16, 16, 16, 0.95));
    border-color: var(--main-color, rgba(var(--main-color-rgb), 0.4));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--card-border);
}

:root[data-theme="light"] .cabinet-right .nav-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(var(--main-color-rgb), 0.5);
}

/* Setting Input Minimal - RAM field */
.setting-input-minimal {
    background: var(--button-back, rgba(16, 16, 16, 0.85));
    border: 1px solid var(--border, rgba(37, 37, 37, 0.85));
    border-radius: 8px;
    color: var(--text-primary, #ffffff);
    padding: 10px 14px;
    font-family: 'medium', sans-serif;
    font-size: 14px;
    width: 100px;
    text-align: center;
    transition: all 0.4s ease;
    outline: none;
}

:root[data-theme="light"] .setting-input-minimal {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(var(--main-color-rgb), 0.3);
    color: var(--text-primary, #000000);
}

.setting-input-minimal:focus {
    border-color: var(--main-color);
    outline: 2px solid rgba(var(--main-color-rgb), 0.3);
    outline-offset: 2px;
    background: var(--button-back-hover, rgba(16, 16, 16, 0.95));
    box-shadow: 0 0 0 4px rgba(var(--main-color-rgb), 0.1);
}

:root[data-theme="light"] .setting-input-minimal:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--main-color);
    box-shadow: 0 0 0 4px rgba(var(--main-color-rgb), 0.15);
}

.setting-input-minimal:hover:not(:focus) {
    border-color: rgba(var(--main-color-rgb), 0.4);
}

.setting-input-minimal::placeholder {
    color: var(--text-secondary, rgba(255, 255, 255, 0.4));
}

:root[data-theme="light"] .setting-input-minimal::placeholder {
    color: var(--text-secondary, rgba(0, 0, 0, 0.4));
}