/**
 * DiziZona VIP Site - Premium Crimson Red Dark Theme
 * vip.dizizona.top
 */

:root {
    --bg-dark: #08090d;
    --bg-card: rgba(18, 20, 29, 0.75);
    --bg-card-hover: rgba(26, 30, 44, 0.85);
    --bg-inner: rgba(11, 13, 20, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(229, 9, 20, 0.4);
    --primary-red: #e50914;
    --primary-red-hover: #ff1e2e;
    --primary-red-glow: rgba(229, 9, 20, 0.35);
    --primary-red-glow-strong: rgba(229, 9, 20, 0.65);
    --accent-gold: #f59e0b;
    --text-white: #ffffff;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(229, 9, 20, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 80% 30%, rgba(255, 30, 46, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(180, 5, 15, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Container */
.vip-container {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 16px 50px 16px;
    flex: 1;
}

/* Header */
.vip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 20px 0;
    margin-bottom: 8px;
}

.vip-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.vip-logo-icon {
    font-size: 26px;
    filter: drop-shadow(0 0 12px rgba(229, 9, 20, 0.6));
    animation: pulseGem 3s infinite ease-in-out;
}

@keyframes pulseGem {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.6)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 18px rgba(255, 50, 70, 0.9)); }
}

.vip-logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #ff4d5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    padding: 3px;
    gap: 3px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 99px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary-red);
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-red-glow);
}

/* Common Card Box */
.vip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.vip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Card Section Titles */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(229, 9, 20, 0.2);
    color: #ff4d5a;
    border: 1px solid rgba(229, 9, 20, 0.4);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

/* Telegram Auth Section */
.auth-box {
    text-align: center;
}

.btn-tg-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e50914 0%, #b80710 100%);
    border: 1px solid rgba(255, 77, 90, 0.4);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-red-glow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-tg-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 26px var(--primary-red-glow-strong);
    background: linear-gradient(135deg, #ff1e2e 0%, #d00812 100%);
}

.btn-tg-login:active {
    transform: translateY(0);
}

.btn-tg-login .tg-icon {
    font-size: 20px;
}

.auth-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.4;
}

/* User Profile Info (Logged In) */
.user-profile-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-inner);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    gap: 12px;
}

.user-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914 0%, #3b0709 100%);
    border: 2px solid #ff4d5a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name-line {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta-line {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.user-meta-id {
    font-family: var(--font-mono);
    color: #ff808b;
    background: rgba(229, 9, 20, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
}

.vip-status-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.vip-status-pill.active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.vip-status-pill.inactive {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    color: #ff4d5a;
    border-color: rgba(229, 9, 20, 0.4);
    background: rgba(229, 9, 20, 0.1);
}

/* 1. Plans List */
.plans-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-item {
    background: var(--bg-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.plan-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(229, 9, 20, 0.3);
    transform: translateY(-1px);
}

.plan-item.active {
    border-color: #ff3344;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(18, 20, 29, 0.95) 100%);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.25), inset 0 0 10px rgba(229, 9, 20, 0.1);
}

.plan-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-icon {
    font-size: 20px;
}

.plan-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.plan-badge {
    background: var(--primary-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 99px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.plan-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-price-uzs {
    font-size: 16px;
    font-weight: 800;
    color: #ff4d5a;
}

.plan-price-rub {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.plan-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: var(--transition);
}

.plan-item.active .plan-check {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
    box-shadow: 0 0 10px var(--primary-red-glow);
}

/* 2. Payment Section */
.payment-amount-box {
    text-align: center;
    padding: 10px 0 16px 0;
}

.payment-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.payment-sum {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ff4d5a 0%, #ff808b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(229, 9, 20, 0.3));
    transition: var(--transition);
}

.payment-sum-sub {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

/* Card Visual Box */
.card-details-box {
    background: linear-gradient(135deg, #181b27 0%, #10121a 100%);
    border: 1px solid rgba(229, 9, 20, 0.25);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 14px;
    position: relative;
}

.card-number-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.card-number-val {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.card-holder-val {
    font-size: 13px;
    font-weight: 700;
    color: #ff808b;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.card-banks-tag {
    font-size: 11px;
    color: var(--text-muted);
}

/* Copy Card Button */
.btn-copy-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.35);
    border-radius: var(--radius-md);
    color: #ff6b77;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy-card:hover {
    background: rgba(229, 9, 20, 0.25);
    color: #ffffff;
    border-color: #ff3344;
    box-shadow: 0 0 16px rgba(229, 9, 20, 0.3);
}

.btn-copy-card:active {
    transform: scale(0.98);
}

/* 3. Upload Receipt Section */
.upload-dropzone {
    border: 2px dashed rgba(229, 9, 20, 0.3);
    background: var(--bg-inner);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: #ff3344;
    background: rgba(229, 9, 20, 0.08);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.2);
}

.upload-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 38px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.4));
}

.upload-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.upload-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Preview Box */
.receipt-preview-box {
    display: none;
    margin-top: 14px;
    background: var(--bg-inner);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: var(--radius-md);
    padding: 12px;
    align-items: center;
    gap: 12px;
}

.receipt-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.receipt-info {
    flex: 1;
    min-width: 0;
}

.receipt-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.receipt-size {
    font-size: 11px;
    color: var(--text-muted);
}

.receipt-remove-btn {
    background: transparent;
    border: none;
    color: #f87171;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
}

.receipt-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Submit VIP Button */
.btn-submit-vip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    margin-top: 16px;
    background: linear-gradient(135deg, #e50914 0%, #a8050e 100%);
    border: 1px solid rgba(255, 77, 90, 0.5);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 25px var(--primary-red-glow-strong);
    transition: var(--transition);
}

.btn-submit-vip:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 30, 46, 0.8);
    background: linear-gradient(135deg, #ff1e2e 0%, #c40611 100%);
}

.btn-submit-vip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* VIP Perks Showcase Box */
.perks-box {
    background: rgba(229, 9, 20, 0.05);
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 20px;
}

.perks-title {
    font-size: 14px;
    font-weight: 700;
    color: #ff808b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perks-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.perk-item {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.perk-item span {
    color: #ff4d5a;
    font-weight: 700;
}

/* Footer */
.vip-footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.vip-footer a {
    color: #ff6b77;
    text-decoration: none;
    transition: var(--transition);
}

.vip-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Modal for Telegram Auth */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #13151f;
    border: 1px solid rgba(229, 9, 20, 0.4);
    border-radius: var(--radius-xl);
    padding: 30px 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 9, 20, 0.3);
    animation: modalAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalAppear {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(229, 9, 20, 0.15);
    border-top-color: #ff2b44;
    border-radius: 50%;
    margin: 0 auto 18px auto;
    animation: spin 1s linear infinite;
}

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

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-modal-open-tg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    background: #e50914;
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-red-glow);
    transition: var(--transition);
}

.btn-modal-open-tg:hover {
    background: #ff1e2e;
}

.btn-modal-cancel {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-cancel:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    background: #171a26;
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(229, 9, 20, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.3s ease-out 3.7s forwards;
    pointer-events: auto;
}

.toast.success {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(34, 197, 94, 0.3);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.6);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-15px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-15px); }
}

/* Success Card View */
.success-card {
    text-align: center;
    padding: 30px 20px;
}

.success-icon-big {
    font-size: 64px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.5));
    animation: pulseGem 2s infinite ease-in-out;
}

.success-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.success-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.success-detail-box {
    background: var(--bg-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.success-detail-row:last-child {
    border-bottom: none;
}

.success-detail-row .label {
    color: var(--text-muted);
}

.success-detail-row .value {
    color: #fff;
    font-weight: 700;
}
