* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(150deg, #000000 0%, #0a0a12 40%, #151520 70%, #1a1a2e 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.top-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 0;
}

.logo {
    max-width: 300px;
    height: auto;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #8b5cf6;
    color: #8b5cf6;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.tab-btn:hover, .tab-btn.active {
    background: #8b5cf6;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.upload-area {
    border: 3px dashed #8b5cf6;
    border-radius: 16px;
    padding: 40px 60px 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(139, 92, 246, 0.08);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #a78bfa;
    background: rgba(139, 92, 246, 0.15);
}

.upload-logo {
    margin-bottom: 20px;
}

.centered-logo {
    max-width: 280px;
    height: auto;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
    }
}

.upload-text {
    color: #9ca3af;
    font-size: 16px;
    margin-bottom: 8px;
}

.upload-limit {
    color: #9ca3af;
    font-size: 14px;
}

.tier-highlight {
    color: #8b5cf6;
}

.title-group {
    width: 100%;
    margin-bottom: 15px;
}

.title-input {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a2e;
    border: 2px solid #374151;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 8px;
}

.title-input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.title-input::placeholder {
    color: #6b7280;
}

.upload-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.upload-area p {
    color: #9ca3af;
    font-size: 16px;
}

.options {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-group label {
    color: #9ca3af;
}

.option-group select {
    padding: 10px 15px;
    background: #1a1a2e;
    border: 2px solid #374151;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: #8b5cf6;
}

.progress-container {
    margin-top: 30px;
}

.progress-bar {
    height: 10px;
    background: #374151;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    width: 0%;
    transition: width 0.3s;
}

#progressText {
    text-align: center;
    margin-top: 10px;
    color: #9ca3af;
}

.result-box {
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid #8b5cf6;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 30px;
}

.result-box h3 {
    color: #10b981;
    margin-bottom: 20px;
    font-size: 24px;
}

.lock-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.lock-code-display span {
    color: #9ca3af;
}

.code {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: bold;
    color: #8b5cf6;
    letter-spacing: 8px;
    background: #1a1a2e;
    padding: 15px 25px;
    border-radius: 8px;
}

.copy-btn {
    padding: 10px 20px;
    background: #8b5cf6;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #7c3aed;
}

.expires-text {
    color: #9ca3af;
    margin-top: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #8b5cf6;
    color: #fff;
}

.btn-primary:hover {
    background: #7c3aed;
}

.btn-secondary {
    background: #374151;
    color: #fff;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-outline {
    background: transparent;
    border: 2px solid #8b5cf6;
    color: #8b5cf6;
}

.btn-outline:hover {
    background: #8b5cf6;
    color: #fff;
}

.access-form {
    text-align: center;
    padding: 40px 0;
}

.access-form h2 {
    margin-bottom: 30px;
    color: #fff;
}

.code-input {
    font-family: 'Courier New', monospace;
    font-size: 36px;
    text-align: center;
    letter-spacing: 12px;
    padding: 20px;
    background: #1a1a2e;
    border: 3px solid #374151;
    color: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.code-input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.file-viewer {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.file-info h3 {
    color: #fff;
}

.countdown {
    background: #ef4444;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.countdown.permanent {
    background: #10b981;
}

.viewer-container {
    background: #000;
    border-radius: 12px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.viewer-container img,
.viewer-container video {
    max-width: 100%;
    max-height: 500px;
}

.viewer-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.viewer-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.request-form {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
}

.request-form h3 {
    margin-bottom: 20px;
    text-align: center;
}

.request-form input,
.request-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #1a1a2e;
    border: 2px solid #374151;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
}

.request-form textarea {
    min-height: 100px;
    resize: vertical;
}

.request-form input:focus,
.request-form textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

.request-form .btn {
    width: 100%;
    margin-bottom: 10px;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    color: #ef4444;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.admin-container {
    max-width: 1200px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header .logo {
    max-width: 200px;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.admin-tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #374151;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.admin-tab-btn:hover, .admin-tab-btn.active {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #374151;
}

.admin-table th {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    font-weight: 600;
}

.admin-table code {
    background: #1a1a2e;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 5px;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: #10b981;
    color: #fff;
}

.btn-success:hover {
    background: #059669;
}

.status-active {
    color: #10b981;
    font-weight: bold;
}

.status-expired {
    color: #ef4444;
    font-weight: bold;
}

.status-permanent {
    color: #8b5cf6;
    font-weight: bold;
}

.countdown-timer {
    color: #fbbf24;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.countdown-timer.expired {
    color: #ef4444;
}

.review-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.review-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.review-approved {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.review-flagged {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-warning {
    background: #f59e0b;
    color: #000;
}

.btn-warning:hover {
    background: #d97706;
}

.action-buttons {
    white-space: nowrap;
}

.action-buttons .btn {
    margin-right: 4px;
    margin-bottom: 4px;
}

.lock-code {
    background: #1a1a2e;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 1px;
}

.plan-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.plan-badge.premium {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

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

.reject-modal-content {
    max-width: 500px;
    width: 90%;
}

.reject-modal-content h3 {
    margin-bottom: 15px;
    color: #ef4444;
}

.reject-modal-content p {
    color: #9ca3af;
    margin-bottom: 20px;
}

.reject-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background: #1a1a2e;
    border: 2px solid #374151;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 20px;
}

.reject-textarea:focus {
    outline: none;
    border-color: #ef4444;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.rejection-reason-preview {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    font-style: italic;
}

.rejection-display {
    text-align: center;
    padding: 60px 40px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    border-radius: 16px;
}

.rejection-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.rejection-display h3 {
    color: #ef4444;
    font-size: 24px;
    margin-bottom: 15px;
}

.rejection-reason {
    color: #9ca3af;
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.no-data {
    text-align: center;
    color: #9ca3af;
    padding: 40px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 30px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

#modalViewer img,
#modalViewer video {
    max-width: 100%;
    max-height: 70vh;
}

.admin-login-form {
    max-width: 400px;
    margin: 50px auto;
    background: rgba(26, 26, 46, 0.8);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.admin-login-form h2 {
    margin-bottom: 30px;
}

.admin-login-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #1a1a2e;
    border: 2px solid #374151;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
}

.admin-login-form input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.admin-login-form .btn {
    width: 100%;
}

.back-link {
    display: block;
    margin-top: 20px;
    color: #8b5cf6;
    text-decoration: none;
}

/* Google Sign-In Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    color: #3c4043;
    border: 2px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #8b5cf6;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

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

.google-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.privacy-notice {
    font-size: 11px;
    color: #6b7280;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Username Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a2e;
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 35px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-content h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
}

.modal-content p {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-content input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: #0f0f23;
    border: 2px solid #374151;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.modal-content input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.modal-content .btn {
    width: 100%;
    margin-bottom: 10px;
}

.btn-cancel {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #9ca3af;
    border: 1px solid #374151;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 15px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #374151;
}

.auth-divider span {
    color: #6b7280;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Auth Form */
.auth-form {
    max-width: 420px;
    margin: 40px auto;
    background: rgba(26, 26, 46, 0.8);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #374151;
}

/* Center logo on auth pages */
.container > header {
    text-align: center;
}

.container > header .logo {
    margin: 0 auto;
}

.auth-form h2 {
    margin-bottom: 25px;
    color: #fff;
    font-size: 24px;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: #1a1a2e;
    border: 2px solid #374151;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.auth-form input::placeholder {
    color: #6b7280;
}

.auth-form .btn {
    width: 100%;
    margin-top: 5px;
}

.auth-link {
    margin-top: 15px;
    color: #9ca3af;
    font-size: 14px;
}

.auth-link a {
    color: #8b5cf6;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.file-preview-icon {
    font-size: 80px;
    color: #8b5cf6;
}

/* Header Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    color: #9ca3af;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.user-badge {
    background: #374151;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #9ca3af;
}

.user-badge.paid {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    color: #fff;
}

.user-badge.admin-badge {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    color: #fff;
    font-weight: 700;
}

.admin-storage {
    color: #f59e0b !important;
    font-weight: 600;
}

/* User Navigation */
.user-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Storage Indicator */
.storage-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #9ca3af;
}

.storage-mini-bar {
    width: 100px;
    height: 6px;
    background: #374151;
    border-radius: 3px;
    overflow: hidden;
}

.storage-mini-fill {
    height: 100%;
    background: #8b5cf6;
}

.upgrade-link {
    color: #8b5cf6;
    text-decoration: none;
    font-size: 12px;
}

.upload-limit {
    font-size: 14px;
    margin-top: 10px;
}

/* Auth Form */
.auth-form {
    max-width: 400px;
    margin: 50px auto;
    background: rgba(26, 26, 46, 0.8);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.auth-form h2 {
    margin-bottom: 30px;
    color: #fff;
}

.auth-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #1a1a2e;
    border: 2px solid #374151;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
}

.auth-form input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.auth-form .btn {
    width: 100%;
    margin-bottom: 15px;
}

.auth-link {
    color: #9ca3af;
    margin-top: 15px;
}

.auth-link a {
    color: #8b5cf6;
    text-decoration: none;
}

/* Account Page */
.account-container {
    max-width: 600px;
    margin: 0 auto;
}

.account-section {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.account-section h3 {
    color: #8b5cf6;
    margin-bottom: 15px;
    font-size: 18px;
}

.account-info p {
    color: #9ca3af;
    margin-bottom: 10px;
}

.account-info strong {
    color: #fff;
}

.plan-card {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #374151;
}

.plan-card.premium {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.plan-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    background: #374151;
    color: #9ca3af;
    margin-bottom: 10px;
}

.plan-card.premium .plan-badge {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    color: #fff;
}

.plan-details p {
    color: #9ca3af;
    font-size: 14px;
    margin: 5px 0;
}

.upgrade-btn {
    margin-top: 15px;
    width: 100%;
}

.storage-bar {
    height: 10px;
    background: #374151;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.storage-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.storage-text {
    color: #9ca3af;
    font-size: 14px;
}

/* Flash Messages */
.flash-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* My Files Page */
.my-files-container {
    max-width: 900px;
    margin: 0 auto;
}

.my-files-container h2 {
    text-align: center;
    margin-bottom: 30px;
}

.files-grid {
    display: grid;
    gap: 20px;
}

.file-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
}

.file-icon {
    width: 80px;
    height: 80px;
    background: #1a1a2e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.file-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-large {
    font-size: 40px;
}

.file-info h4 {
    color: #fff;
    margin-bottom: 8px;
    word-break: break-all;
}

.file-meta {
    color: #9ca3af;
    font-size: 14px;
}

.file-code {
    color: #9ca3af;
    font-size: 14px;
    margin-top: 5px;
}

.file-code strong {
    color: #8b5cf6;
    font-family: 'Courier New', monospace;
}

.copy-small {
    background: #374151;
    border: none;
    color: #9ca3af;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
}

.copy-small:hover {
    background: #4b5563;
}

.file-status {
    margin-top: 5px;
    font-size: 13px;
}

.status-permanent {
    color: #10b981;
}

.file-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-files {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.no-files p {
    margin-bottom: 20px;
}

/* ===== RECIPIENT INSTRUCTIONS ===== */
.recipient-instructions {
    margin-top: 16px;
    text-align: left;
}

.instructions-label {
    font-size: 13px;
    color: #a78bfa;
    margin-bottom: 8px;
    font-weight: 600;
}

.instructions-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

.instructions-box pre {
    color: #d1d5db;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    margin: 0;
}

.btn-copy-instructions {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-copy-instructions:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* ===== ENCRYPTION ANIMATION OVERLAY ===== */
.encrypt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.encrypt-overlay.active {
    display: flex;
    pointer-events: auto;
}

.encrypt-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.encrypt-overlay video {
    max-width: 500px;
    width: 90vw;
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.4), 0 0 120px rgba(139, 92, 246, 0.15);
}

.encrypt-overlay-text {
    color: #a78bfa;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    animation: encryptPulse 1.5s ease-in-out infinite;
}

@keyframes encryptPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

/* ===== 3-COLUMN HOMEPAGE LAYOUT ===== */
.homepage-layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 16px;
    align-items: start;
}

.upload-center {
    min-width: 0;
}

/* ===== ANIMATED CHECKLIST ===== */
.upload-checklist {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 14px;
    position: sticky;
    top: 20px;
}

.checklist-title {
    color: #a78bfa;
    font-size: 13px;
    margin-bottom: 10px;
    text-align: center;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid #374151;
    transition: all 0.4s ease;
}

.checklist-item.completed {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.check-circle {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.checklist-item.completed .check-circle {
    background: #10b981;
    border-color: #10b981;
    animation: checkBounce 0.5s ease;
}

.check-icon {
    width: 12px;
    height: 12px;
    fill: transparent;
    transition: fill 0.3s ease;
}

.checklist-item.completed .check-icon {
    fill: #fff;
}

.check-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.step-num {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 600;
}

.checklist-item.completed .step-num {
    color: #10b981;
}

.step-desc {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.2;
}

.checklist-item.completed .step-desc {
    color: #d1fae5;
}

.checklist-progress {
    height: 4px;
    background: #374151;
    border-radius: 2px;
    margin-top: 16px;
    overflow: hidden;
}

.checklist-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 2px;
}

.checklist-status {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #6b7280;
    margin-top: 8px;
}

@keyframes checkBounce {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes checkPop {
    0% { transform: translateX(-5px); opacity: 0.7; }
    50% { transform: translateX(3px); }
    100% { transform: translateX(0); opacity: 1; }
}

/* ===== COUPON SECTION ===== */
.coupon-section {
    position: sticky;
    top: 20px;
}

.coupon-unrevealed {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
}

.coupon-gift-icon {
    font-size: 36px;
    margin-bottom: 8px;
    animation: giftBounce 2s ease-in-out infinite;
}

@keyframes giftBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(-5deg); }
    75% { transform: translateY(-4px) rotate(5deg); }
}

.coupon-title {
    color: #a78bfa;
    font-size: 18px;
    margin-bottom: 8px;
}

.coupon-subtitle {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 20px;
}

.btn-coupon {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    animation: couponGlow 2s ease-in-out infinite alternate;
}

.btn-coupon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

@keyframes couponGlow {
    0% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.3); }
    100% { box-shadow: 0 0 25px rgba(236, 72, 153, 0.4); }
}

@keyframes couponFadeOut {
    to { opacity: 0; transform: scale(0.9); }
}

@keyframes couponFadeIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.coupon-revealed {
    animation: couponFadeIn 0.6s ease;
}

.coupon-card {
    background: linear-gradient(150deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
}

.coupon-sparkle {
    font-size: 36px;
    margin-bottom: 8px;
}

.coupon-card-title {
    color: #a78bfa;
    font-size: 15px;
    margin-bottom: 16px;
}

.coupon-code-display {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 14px;
}

.coupon-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 36px;
    background: #1a1a2e;
    border: 2px solid #374151;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: transparent;
    transition: all 0.4s ease;
}

.coupon-letter.revealed {
    color: #8b5cf6;
    border-color: #8b5cf6;
    animation: letterReveal 0.4s ease;
}

@keyframes letterReveal {
    0% { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}

.copy-coupon-btn {
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid #8b5cf6;
    color: #a78bfa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.copy-coupon-btn:hover {
    background: #8b5cf6;
    color: #fff;
}

.coupon-discount {
    color: #10b981;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.coupon-instructions {
    text-align: left;
    margin-bottom: 16px;
}

.coupon-instructions h4 {
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.coupon-instructions ol {
    padding-left: 18px;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.8;
}

.coupon-instructions a {
    color: #8b5cf6;
    text-decoration: none;
}

.coupon-instructions a:hover {
    text-decoration: underline;
}

/* Flipdown Timer */
.coupon-timer {
    margin-top: 8px;
}

.timer-label {
    color: #6b7280;
    font-size: 11px;
    margin-bottom: 8px;
}

.flipdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.flip-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flip-digit {
    background: #1a1a2e;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 6px 8px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
    min-width: 40px;
    text-align: center;
    transition: transform 0.15s ease;
}

.flip-digit.flip-animate {
    transform: scaleY(0.6);
}

.flip-separator {
    color: #6b7280;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 14px;
}

.flip-label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-top: 4px;
}

/* ===== ANONYMOUS NOTICE ===== */
.anon-notice {
    color: #f59e0b !important;
    font-size: 12px !important;
    margin-top: 8px;
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.anon-notice a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
}

.anon-notice a:hover {
    text-decoration: underline;
}

/* ===== SELECTED FILES LIST ===== */
.selected-files-list {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 12px;
    margin-top: 16px;
}

.files-header {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 8px;
}

.selected-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(139, 92, 246, 0.06);
    border-radius: 6px;
    margin-bottom: 4px;
}

.selected-file-item .file-name {
    color: #d1d5db;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 10px;
}

.selected-file-item .file-size {
    color: #6b7280;
    font-size: 12px;
    margin-right: 10px;
    white-space: nowrap;
}

.remove-file-btn {
    background: rgba(239, 68, 68, 0.2);
    border: none;
    color: #ef4444;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-file-btn:hover {
    background: #ef4444;
    color: #fff;
}

/* ===== ENCRYPT BUTTON ===== */
.encrypt-btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border: none;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.encrypt-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.encrypt-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .homepage-layout {
        grid-template-columns: 1fr;
    }
    
    .upload-checklist,
    .coupon-section {
        position: static;
    }
    
    .upload-checklist {
        order: -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-nav {
        justify-content: center;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .code {
        font-size: 24px;
        letter-spacing: 4px;
    }
    
    .code-input {
        font-size: 24px;
        letter-spacing: 6px;
    }
    
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 5px;
    }
    
    .file-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .file-icon {
        margin: 0 auto;
    }
    
    .file-actions {
        flex-direction: row;
        justify-content: center;
    }

    .homepage-layout {
        grid-template-columns: 1fr;
    }

    .coupon-code-display {
        gap: 2px;
    }

    .coupon-letter {
        width: 24px;
        height: 30px;
        font-size: 14px;
    }
}
