/* Dashboard Fullscreen Styles */
.dashboard-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--background);
    z-index: 9999;
    overflow: hidden;
}

.dashboard-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 100%;
}

/* Sidebar */
.dashboard-sidebar {
    background: rgba(34, 63, 84, 0.6);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 1.5rem;
}

.logo-dashboard {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.logo-dashboard img {
    width: 28px;
    height: 28px;
}

.user-profile-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name-db {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    font-weight: 600;
}

.user-email-db {
    font-size: 0.75rem;
    color: var(--light-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dashboard-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: var(--light-text);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.dashboard-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.dashboard-nav .nav-item.active {
    background: rgba(133, 205, 67, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(133, 205, 67, 0.3);
}

.dashboard-nav .nav-item i {
    font-size: 1rem;
    width: 18px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.back-to-site,
.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    color: var(--light-text);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.back-to-site:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ff5555;
}

/* Main Content */
.dashboard-content {
    padding: 2rem;
    overflow-y: auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирование по горизонтали */
}

/* Dashboard Sections */
.dashboard-section {
    width: 100%;
    max-width: 800px;
}

/* Payments List */
.payments-list {
    width: 100%;
    margin-top: 1.5rem;
}

.payment-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.payment-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dashboard-container {
    width: 100%;
    max-width: 800px; /* Ограничиваем ширину для красоты */
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    width: 100%;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-badge-large {
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-badge-large.free {
    background: rgba(156, 163, 175, 0.2);
    color: #9CA3AF;
}

.status-badge-large.pro {
    background: rgba(133, 205, 67, 0.2);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(133, 205, 67, 0.3);
}

/* Details Grid */
.subscription-details-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.detail-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center; /* Центрируем содержимое карточки по вертикали */
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.detail-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: rgba(133, 205, 67, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.card-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-info-group {
    display: flex;
    flex-direction: column;
}

.card-content label {
    display: block;
    font-size: 0.7rem;
    color: var(--light-text);
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.value-small {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Специальные стили для карточки с кодом */
.detail-card.code-card {
    background: linear-gradient(135deg, rgba(133, 205, 67, 0.08), rgba(64, 137, 126, 0.08));
    border: 1px solid rgba(133, 205, 67, 0.3);
    padding: 1.25rem 1.5rem;
}

.code-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px dashed var(--primary-color);
}

.activation-code {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-weight: 700;
}

.code-display-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed var(--primary-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.activation-code {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(133, 205, 67, 0.3);
    font-weight: 700;
}

.btn-icon-copy {
    background: rgba(133, 205, 67, 0.2);
    border: none;
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-icon-copy:hover {
    background: var(--primary-color);
    color: white;
}

.help-hint {
    font-size: 0.7rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.help-hint i {
    color: var(--primary-color);
    font-size: 0.7rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.value-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.label-small {
    font-size: 0.75rem;
    color: var(--light-text);
}

.value-small {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Actions */
.dashboard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
}

/* Quick Guide */
.quick-guide {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.quick-guide h3 {
    font-size: 1rem;
    margin-bottom: 0.85rem;
    color: var(--text-color);
}

.quick-guide ol {
    padding-left: 1.25rem;
    color: var(--light-text);
    line-height: 1.6;
    font-size: 0.85rem;
}

.quick-guide li {
    margin-bottom: 0.4rem;
}

/* Custom Scrollbar */
.dashboard-content::-webkit-scrollbar {
    width: 8px;
}

.dashboard-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.dashboard-content::-webkit-scrollbar-thumb {
    background: rgba(133, 205, 67, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.dashboard-content::-webkit-scrollbar-thumb:hover {
    background: rgba(133, 205, 67, 0.5);
}

.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        display: none;
    }
    
    .dashboard-content {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-actions {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
}
