:root {
    --bg-dark: #07050e;
    --card-bg: rgba(18, 15, 31, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary-cyan: #00f3ff;
    --secondary-magenta: #ff00ff;
    --text-bright: #ffffff;
    --text-dim: #9aa0b4;
    --accent-green: #00ff88;
    --accent-red: #ff3366;
    --glow-cyan: 0 0 25px rgba(0, 243, 255, 0.35);
    --glow-magenta: 0 0 25px rgba(255, 0, 255, 0.35);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 243, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #0c0819 0%, #040207 100%);
    color: var(--text-bright);
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
    gap: 16px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 18px;
}

.omega-emblem {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.omega-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.6));
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.title-group h1 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.badge-app {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    background: rgba(0, 243, 255, 0.12);
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: var(--primary-cyan);
    padding: 3px 8px;
    border-radius: 12px;
}

.neon-text {
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(0, 243, 255, 0.5));
}

.subtitle {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Selector */
.lang-selector {
    display: flex;
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 5px 10px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s ease;
}

.lang-btn .flag {
    font-size: 14px;
}

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

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-magenta));
    color: #000;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

/* User Status Bar */
.user-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--primary-cyan);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout {
    background: rgba(255, 51, 102, 0.15);
    border: 1px solid rgba(255, 51, 102, 0.4);
    color: var(--accent-red);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.4);
}

/* Auth Section */
.auth-section {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 35px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 10px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--primary-cyan), #0099ff);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form h2 {
    font-size: 22px;
    font-weight: 700;
}

.auth-desc {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 5px;
    line-height: 1.5;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
}

.input-group input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: #fff;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-cyan);
}

.btn-primary-auth {
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-magenta));
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.3);
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-auth:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(255, 0, 255, 0.5);
}

/* Dashboard Section */
.dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Dropzone */
.dropzone {
    position: relative;
    background: rgba(22, 17, 41, 0.6);
    border: 2px dashed rgba(0, 243, 255, 0.3);
    border-radius: 24px;
    padding: 45px 30px;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--primary-cyan);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    color: var(--primary-cyan);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
    transition: transform 0.3s ease;
}

.dropzone:hover .upload-icon {
    transform: translateY(-5px) scale(1.05);
}

.dropzone h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.highlight {
    color: var(--primary-cyan);
    text-decoration: underline;
}

.hint {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 22px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), #0099ff);
    color: #000;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.3);
    transition: all 0.2s ease;
    pointer-events: none;
}

.dropzone:hover .btn-primary {
    box-shadow: 0 6px 25px rgba(0, 243, 255, 0.5);
    transform: scale(1.02);
}

.upload-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-magenta));
    width: 0%;
    transition: width 0.3s ease;
}

/* Recent Upload Banner */
.recent-upload-banner {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(12px);
}

.recent-upload-banner h3 {
    font-size: 16px;
    color: var(--primary-cyan);
}

.recent-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
}

/* Gallery Section */
.gallery-section {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.search-box input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-bright);
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    width: 260px;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-cyan);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.image-card {
    background: rgba(10, 7, 20, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.image-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.card-preview {
    width: 100%;
    height: 180px;
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .card-preview img {
    transform: scale(1.05);
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filename {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.filesize {
    font-size: 12px;
    color: var(--text-dim);
}

/* Link Actions */
.link-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-link-http {
    background: rgba(0, 243, 255, 0.12);
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: var(--primary-cyan);
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-link-http:hover {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.btn-link-https {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    color: var(--text-dim);
    padding: 7px 10px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-link-https:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.date-text {
    font-size: 11px;
    color: var(--text-dim);
}

.btn-delete {
    background: transparent;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    font-size: 13px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 4px 8px;
}

.btn-delete:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--text-dim);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #0f172a;
    border: 1px solid var(--primary-cyan);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.25);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(10px); }
}

/* Responsive */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .user-status-bar {
        align-self: flex-start;
    }
}
