/**
 * Dark Gallery Premium Styles
 */

/* Pricing Page */
.dg-premium-pricing-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dg-pricing-header {
    text-align: center;
    margin-bottom: 50px;
}

.dg-pricing-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #f8f9fa;
    margin-bottom: 15px;
}

.dg-pricing-subtitle {
    font-size: 18px;
    color: #adb5bd;
}

.dg-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.dg-pricing-card {
    background: linear-gradient(135deg, #1a1d23, #0e0f12);
    border: 2px solid #2a2d33;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.dg-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 77, 109, 0.2);
}

.dg-pricing-card.popular {
    border-color: #ff4d6d;
    background: linear-gradient(135deg, #1a1d23, rgba(255, 77, 109, 0.1));
}

.dg-pricing-card.elite {
    border-color: #ffd700;
    background: linear-gradient(135deg, #1a1d23, rgba(255, 215, 0, 0.1));
}

.dg-pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #ff4d6d, #ff6b8a);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.dg-pricing-badge.elite-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1d23;
}

.dg-pricing-card-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #f8f9fa;
    margin-bottom: 25px;
}

.dg-pricing-options {
    margin-bottom: 25px;
}

.dg-pricing-option {
    background: rgba(42, 45, 51, 0.5);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dg-pricing-option:hover {
    background: rgba(42, 45, 51, 0.8);
}

.dg-pricing-option.active {
    border-color: #ff4d6d;
    background: rgba(255, 77, 109, 0.1);
}

.dg-pricing-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.dg-pricing-duration {
    font-weight: 600;
    color: #f8f9fa;
}

.dg-pricing-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff4d6d;
}

.dg-pricing-save {
    font-size: 11px;
    color: #28a745;
    font-weight: 600;
}

.dg-pricing-per-month {
    font-size: 12px;
    color: #adb5bd;
}

.dg-pricing-features {
    margin-bottom: 25px;
}

.dg-pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dg-pricing-features li {
    padding: 10px 0;
    color: #adb5bd;
    font-size: 14px;
    border-bottom: 1px solid rgba(42, 45, 51, 0.5);
}

.dg-pricing-features li:last-child {
    border-bottom: none;
}

.dg-pricing-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #ff4d6d, #ff6b8a);
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.dg-pricing-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 77, 109, 0.4);
}

.dg-pricing-info {
    background: #1a1d23;
    border: 1px solid #2a2d33;
    border-radius: 20px;
    padding: 40px;
    margin-top: 50px;
}

.dg-pricing-info h3 {
    text-align: center;
    font-size: 28px;
    color: #f8f9fa;
    margin-bottom: 30px;
}

.dg-pricing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.dg-pricing-step {
    text-align: center;
}

.dg-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff4d6d, #ff6b8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
}

.dg-step-content h4 {
    font-size: 18px;
    color: #f8f9fa;
    margin-bottom: 10px;
}

.dg-step-content p {
    color: #adb5bd;
    font-size: 14px;
}

/* Activation Page */
.dg-premium-activation-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dg-activation-header {
    text-align: center;
    margin-bottom: 40px;
}

.dg-activation-header h1 {
    font-size: 36px;
    color: #f8f9fa;
    margin-bottom: 10px;
}

.dg-activation-form-wrapper {
    background: #1a1d23;
    border: 1px solid #2a2d33;
    border-radius: 20px;
    padding: 40px;
}

.dg-form-group {
    margin-bottom: 25px;
}

.dg-form-group label {
    display: block;
    color: #f8f9fa;
    font-weight: 600;
    margin-bottom: 8px;
}

.dg-code-input,
.dg-email-input {
    width: 100%;
    padding: 14px;
    background: #0e0f12;
    border: 2px solid #2a2d33;
    border-radius: 10px;
    color: #f8f9fa;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    transition: border-color 0.3s ease;
}

.dg-code-input:focus,
.dg-email-input:focus {
    outline: none;
    border-color: #ff4d6d;
}

.dg-form-hint {
    display: block;
    color: #adb5bd;
    font-size: 12px;
    margin-top: 5px;
}

.dg-form-messages {
    margin-bottom: 20px;
}

.dg-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.dg-message.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.dg-message.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.dg-activation-button {
    width: 100%;
    background: linear-gradient(135deg, #ff4d6d, #ff6b8a);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dg-activation-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 77, 109, 0.4);
}

.dg-activation-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dg-activation-help {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #2a2d33;
    text-align: center;
}

.dg-activation-help h3 {
    color: #f8f9fa;
    margin-bottom: 10px;
}

.dg-activation-help p {
    color: #adb5bd;
    margin-bottom: 20px;
}

.dg-telegram-link {
    display: inline-block;
    background: #0088cc;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dg-telegram-link:hover {
    background: #006ba3;
    transform: translateY(-2px);
}

/* Premium Status Block in Profile */
.dg-premium-status-block {
    background: linear-gradient(135deg, #1a1d23, rgba(255, 77, 109, 0.1));
    border: 2px solid #ff4d6d;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dg-vip-badge {
    border-color: #ffd700;
    background: linear-gradient(135deg, #1a1d23, rgba(255, 215, 0, 0.1));
}

.dg-platinum-badge {
    border-color: #9d4edd;
    background: linear-gradient(135deg, #1a1d23, rgba(157, 78, 221, 0.1));
}

.dg-premium-badge-icon {
    font-size: 40px;
    line-height: 1;
}

.dg-premium-badge-content {
    flex: 1;
}

.dg-premium-badge-title {
    font-size: 20px;
    font-weight: 700;
    color: #f8f9fa;
    margin-bottom: 5px;
}

.dg-premium-badge-expires {
    font-size: 14px;
    color: #adb5bd;
}

/* Voting Page */
.dg-premium-voting-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dg-voting-header {
    text-align: center;
    margin-bottom: 40px;
}

.dg-voting-header h1 {
    font-size: 36px;
    color: #f8f9fa;
    margin-bottom: 10px;
}

.dg-voting-add-section,
.dg-voting-premium-cta {
    background: #1a1d23;
    border: 1px solid #2a2d33;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.dg-model-request-form .dg-input,
.dg-model-request-form .dg-textarea {
    width: 100%;
    padding: 12px;
    background: #0e0f12;
    border: 2px solid #2a2d33;
    border-radius: 8px;
    color: #f8f9fa;
    font-size: 14px;
}

.dg-model-request-form .dg-textarea {
    resize: vertical;
    min-height: 80px;
}

.dg-submit-button {
    background: linear-gradient(135deg, #ff4d6d, #ff6b8a);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dg-submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 77, 109, 0.4);
}

.dg-voting-premium-cta {
    text-align: center;
}

.dg-premium-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff4d6d, #ff6b8a);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.dg-premium-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 77, 109, 0.4);
}

.dg-premium-info {
    text-align: left;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #2a2d33;
}

.dg-premium-info ul {
    list-style: none;
    padding: 0;
}

.dg-premium-info li {
    padding: 8px 0;
    color: #adb5bd;
}

.dg-requests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dg-request-item {
    background: #1a1d23;
    border: 1px solid #2a2d33;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dg-request-item:hover {
    border-color: #ff4d6d;
    transform: translateX(5px);
}

.dg-request-content {
    flex: 1;
}

.dg-request-name {
    font-size: 18px;
    font-weight: 600;
    color: #f8f9fa;
    margin-bottom: 8px;
}

.dg-request-description {
    color: #adb5bd;
    font-size: 14px;
    margin-bottom: 10px;
}

.dg-request-meta {
    font-size: 12px;
    color: #6c757d;
}

.dg-request-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.dg-votes-count {
    text-align: center;
}

.dg-votes-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #ff4d6d;
}

.dg-votes-label {
    font-size: 12px;
    color: #adb5bd;
}

.dg-vote-button {
    background: #2a2d33;
    color: #f8f9fa;
    border: 1px solid #3a3d43;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dg-vote-button:hover:not(:disabled) {
    background: #ff4d6d;
    border-color: #ff4d6d;
}

.dg-vote-button.voted {
    background: #28a745;
    border-color: #28a745;
    cursor: default;
}

/* Locked Content Overlay */
.dg-locked-content {
    position: relative;
    overflow: hidden;
}

.dg-locked-content img,
.dg-locked-content video {
    filter: blur(5px);
    opacity: 0.75;
    transition: all 0.3s ease;
}

.dg-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Fix for locked content in mini galleries */
.dg-mini-gallery .dg-g-item-wrapper.dg-locked-content {
    position: relative;
}

.dg-mini-gallery .dg-locked-content .dg-g-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.dg-mini-gallery .dg-locked-content img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.dg-locked-overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Fix video height when locked */
.dg-video-item.dg-locked-content {
    position: relative;
    width: 100%;
}

.dg-video-item.dg-locked-content .dg-video-placeholder {
    height: auto;
    min-height: 300px;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1a;
}

.dg-video-item.dg-locked-content .dg-video-poster {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dg-video-item.dg-locked-content .dg-video-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 1;
}

.dg-video-item.dg-locked-content .dg-video-play-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
    pointer-events: none;
}

.dg-video-item.dg-locked-content .dg-video-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dg-video-item.dg-locked-content .dg-video-locked-overlay:hover {
    background: rgba(0, 0, 0, 0.65);
}

.dg-video-item.dg-locked-content .dg-locked-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    padding: 20px;
}

.dg-video-item.dg-locked-content .dg-locked-icon {
    font-size: 56px;
    margin-bottom: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.dg-video-item.dg-locked-content .dg-locked-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dg-video-item.dg-locked-content .dg-locked-cta {
    margin-top: 5px;
    padding: 14px 28px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}

.dg-locked-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.dg-locked-text {
    color: #f8f9fa;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.dg-locked-cta {
    background: linear-gradient(135deg, #ff4d6d, #ff6b8a);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dg-locked-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 77, 109, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .dg-pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .dg-pricing-steps {
        grid-template-columns: 1fr;
    }
    
    .dg-request-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dg-request-votes {
        margin-left: 0;
        margin-top: 15px;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
}

