.withdraw-voucher-page {
    min-height: 100vh;
    background: var(--bg-page);
    position: relative;
    padding-bottom: 100px;
}

.withdraw-voucher-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 201, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.15), rgba(10, 22, 40, 0.35));
    pointer-events: none;
    z-index: 0;
}

.withdraw-voucher-page .universal-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(10, 22, 40, 0.98) 100%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 32px rgba(0, 201, 255, 0.08);
}

.withdraw-voucher-page .universal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 280px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 201, 255, 0.7), transparent);
    filter: blur(4px);
    transform: translateX(-50%);
}

.withdraw-voucher-page .universal-header-title {
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(0, 201, 255, 0.28);
}

.withdraw-voucher-page .universal-back-btn {
    background: rgba(0, 201, 255, 0.1);
    border-color: rgba(0, 201, 255, 0.28);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.withdraw-voucher-page .universal-back-btn:hover {
    background: rgba(0, 201, 255, 0.18);
    border-color: rgba(0, 201, 255, 0.48);
    box-shadow: var(--shadow-glow-primary);
}

.withdraw-voucher-page .universal-back-btn svg {
    color: var(--accent-secondary);
    filter: drop-shadow(0 0 8px rgba(0, 201, 255, 0.35));
}

.main-content-area {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

.voucher-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.voucher-card {
    background: var(--gradient-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.voucher-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    border-color: var(--accent-secondary);
}

.voucher-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: rgba(15, 23, 42, 0.92);
}

.voucher-images.multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
}

.voucher-images.multi .voucher-image {
    height: 360px;
}

.voucher-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.voucher-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.voucher-image:hover img {
    transform: none;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.voucher-image:hover .image-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.image-overlay svg {
    width: 48px;
    height: 48px;
    color: #fff;
}

.voucher-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(20, 27, 45, 0.94));
}

.voucher-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.voucher-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.voucher-user svg {
    width: 20px;
    height: 20px;
    color: var(--accent-secondary);
}

.voucher-time {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
}

.voucher-reward {
    text-align: right;
    align-self: flex-end;
}

.reward-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.reward-amount {
    font-size: 18px;
    font-weight: 700;
    color: #E2E8F0;
    font-family: var(--font-mono);
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.loading-indicator .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.empty-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    max-width: 280px;
    line-height: 1.6;
}

.voucher-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 28px 0 8px;
}

.voucher-pagination.hidden {
    display: none;
}

.page-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(20, 27, 45, 0.95));
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-glow-primary);
    transform: translateY(-2px);
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.page-btn svg {
    width: 20px;
    height: 20px;
}

.page-info {
    min-width: 74px;
    padding: 10px 18px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.65);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 700;
    text-align: center;
}

.upload-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 140px;
    height: 56px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 201, 255, 0.35);
    transition: var(--transition);
    z-index: 100;
}

.upload-fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

.upload-fab:active {
    transform: translateY(0) scale(0.98);
}

.upload-fab.disabled {
    opacity: 0.55;
}

.upload-fab svg {
    width: 20px;
    height: 20px;
}

.upload-modal,
.image-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.upload-modal.active,
.image-viewer-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.upload-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.upload-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.98), rgba(30, 41, 59, 0.96));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-modal.active .upload-modal-content {
    transform: scale(1);
}

.upload-modal-header {
    padding: 24px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.upload-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.upload-modal-close {
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-modal-close:hover {
    background: var(--accent-gradient);
    border-color: var(--accent-secondary);
    transform: rotate(90deg);
}

.upload-modal-close svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.upload-modal-close:hover svg {
    color: #fff;
}

.upload-modal-body {
    padding: 24px;
    max-height: calc(90vh - 88px);
    overflow-y: auto;
}

.upload-instructions {
    background: rgba(15, 23, 42, 0.55);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.instruction-item:last-child {
    margin-bottom: 0;
}

.instruction-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instruction-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.instruction-item p {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.upload-zone {
    border: 3px dashed var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(15, 23, 42, 0.55);
    margin-bottom: 24px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent-secondary);
    background: rgba(20, 27, 45, 0.8);
}

.upload-zone.drag-over {
    transform: scale(1.02);
}

.upload-zone.has-preview {
    padding: 0;
    border: none;
    min-height: 320px;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.upload-icon-wrapper svg {
    width: 36px;
    height: 36px;
    color: #fff;
}

.upload-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.upload-hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.format-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.format-tag {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.upload-preview {
    position: relative;
    width: 100%;
    min-height: 320px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.preview-item {
    position: relative;
    min-height: 320px;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.92);
}

.preview-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.preview-remove:hover {
    background: var(--danger);
    transform: scale(1.1);
}

.preview-remove svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.preview-add {
    min-height: 320px;
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.preview-add:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    background: rgba(0, 201, 255, 0.08);
}

.preview-add svg {
    width: 34px;
    height: 34px;
}

.preview-add span {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.upload-count {
    margin: -10px 0 18px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-secondary);
}

.submit-button {
    width: 100%;
    height: 56px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-primary);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-button svg {
    width: 20px;
    height: 20px;
}

.image-viewer-modal {
    z-index: 2000;
}

.image-viewer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.image-viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.image-viewer-close svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .upload-fab {
        bottom: 24px;
        right: 24px;
        width: 120px;
        height: 52px;
        font-size: 15px;
    }

    .voucher-image {
        height: 300px;
    }

    .voucher-images.multi .voucher-image {
        height: 320px;
    }

    .upload-modal-content {
        max-width: 100%;
        margin: 0 8px;
    }

    .upload-zone {
        padding: 24px;
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .upload-fab {
        width: 56px;
        height: 56px;
        border-radius: 50%;
    }

    .upload-fab span {
        display: none;
    }

    .upload-fab svg {
        width: 24px;
        height: 24px;
    }

    .voucher-info {
        padding: 14px;
    }

    .voucher-user-row {
        gap: 8px;
    }

    .voucher-user {
        font-size: 13px;
        flex: 1;
        min-width: 0;
    }

    .voucher-time {
        font-size: 11px;
    }

    .voucher-reward {
        text-align: left;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        align-self: flex-start;
    }

    .reward-label {
        margin-bottom: 0;
    }

    .upload-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .voucher-image,
    .voucher-images.multi .voucher-image {
        height: 300px;
    }

    .upload-zone.has-preview,
    .upload-preview,
    .preview-item,
    .preview-add {
        min-height: 260px;
    }
}
