/* Modern Dark Theme with Neon Accents */
:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(20, 20, 20, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Neon Colors */
    --neon-primary: #00ff88;
    --neon-secondary: #00ccff;
    --neon-accent: #ff00ff;
    --neon-warning: #ffaa00;
    --neon-danger: #ff0055;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;

    /* Borders and Shadows */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 255, 136, 0.3);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.9);
    --shadow-neon: 0 0 20px rgba(0, 255, 136, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    --gradient-card: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);

    /* Transitions */
    --transition-fast: 0.2s;
    --transition-base: 0.3s;
    --transition-slow: 0.5s;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Grid Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
}

/* Animated Background Gradient */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 204, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    z-index: -1;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Modern Header */
header {
    padding: 24px 0;
    position: relative;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* When no user is logged in, center the logo */
.header-top:not(:has(.user-menu)) {
    justify-content: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

header h1 i {
    font-size: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

header p {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 15px;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.user-info:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--neon-primary);
    box-shadow: var(--shadow-neon);
}

.user-info i.fa-user-circle {
    font-size: 24px;
    color: var(--neon-primary);
}

.user-info span {
    font-weight: 500;
    color: var(--text-primary);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.user-dropdown a:hover {
    color: var(--neon-primary);
    background: rgba(0, 255, 136, 0.05);
}

.user-dropdown a:hover i {
    transform: translateX(3px);
}

.user-dropdown a i {
    transition: transform var(--transition-fast);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.logout-link {
    color: var(--neon-danger) !important;
}

.logout-link:hover {
    color: var(--neon-danger) !important;
    background: rgba(255, 0, 85, 0.05) !important;
}

/* Main Content */
main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* Landing Page */
.landing-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
}

.landing-content h2 {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.landing-content .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-content p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.landing-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modern Buttons */
.btn, .landing-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.landing-btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
}

.landing-btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.landing-btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--neon-primary);
    color: var(--neon-primary);
    box-shadow: var(--shadow-neon);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 80px;
}

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-primary);
    box-shadow: var(--shadow-neon);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card i {
    font-size: 48px;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Form Styles */
form {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--neon-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
    background: rgba(0, 255, 136, 0.02);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.hint i {
    margin-right: 6px;
    color: var(--neon-secondary);
}

/* Multiple URL Generation Styles */
.label-with-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.label-with-counter label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.url-counter {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    transition: all var(--transition-base);
}

.badge-info {
    background: rgba(0, 204, 255, 0.15);
    color: var(--neon-secondary);
    border: 1px solid rgba(0, 204, 255, 0.3);
}

.badge-new {
    background: rgba(0, 255, 136, 0.15);
    color: var(--neon-primary);
    border: 1px solid rgba(0, 255, 136, 0.3);
    margin-left: 8px;
}

/* Progress Indicator */
.progress-container {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.progress-text {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* Enhanced Textarea for Multiple URLs */
#urls {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.8;
    min-height: 200px;
    resize: vertical;
}

#urls::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
    line-height: 1.8;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--neon-primary);
    color: var(--neon-primary);
}

/* Results */
.results {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
    box-shadow: var(--shadow-md);
}

.results h2 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 24px;
}

.result-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.result-item:hover {
    transform: translateX(4px);
    border-color: var(--neon-primary);
}

.result-item.success {
    border-left: 3px solid var(--neon-primary);
}

.result-item.error {
    border-left: 3px solid var(--neon-danger);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.result-header i {
    font-size: 24px;
    color: var(--neon-primary);
}

.filename {
    font-weight: 600;
    color: var(--text-primary);
}

.filesize {
    color: var(--text-muted);
    font-size: 14px;
}

.link-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.link-container input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

.copy-btn,
.download-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 14px;
    font-weight: 500;
}

.copy-btn {
    background: var(--neon-primary);
    color: var(--bg-primary);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
}

.download-btn {
    background: var(--neon-secondary);
    color: var(--bg-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 204, 255, 0.4);
}

/* Alert Styles */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

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

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-primary);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.alert-error {
    background: rgba(255, 0, 85, 0.1);
    color: var(--neon-danger);
    border: 1px solid rgba(255, 0, 85, 0.3);
}

.alert-info {
    background: rgba(0, 204, 255, 0.1);
    color: var(--neon-secondary);
    border: 1px solid rgba(0, 204, 255, 0.3);
}

/* Supported Hosts */
.supported-hosts {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
    box-shadow: var(--shadow-md);
}

.supported-hosts h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 24px;
    text-align: center;
}

.hosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.host-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.host-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.host-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-primary);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.host-card:hover::before {
    width: 200%;
    height: 200%;
}

.host-card i {
    font-size: 32px;
    color: var(--neon-primary);
    margin-bottom: 8px;
    transition: transform var(--transition-base);
}

.host-card:hover i {
    transform: scale(1.1);
}

.host-card span {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.hosts-count {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

footer p {
    font-size: 14px;
}

footer i {
    margin-right: 8px;
    color: var(--neon-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 16px;
    }

    header h1 {
        font-size: 24px;
    }

    .landing-content h2 {
        font-size: 40px;
    }

    .landing-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .link-container {
        flex-direction: column;
    }

    .hosts-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    /* Multiple URL Generation - Mobile */
    .label-with-counter {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .url-counter {
        align-self: flex-end;
    }

    .badge-info {
        font-size: 10px;
        padding: 2px 8px;
    }

    #urls {
        min-height: 180px;
        font-size: 14px;
    }

    .button-group .btn {
        width: 100%;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 50%;
    border-top-color: var(--neon-primary);
    animation: spin 0.8s linear infinite;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-secondary);
}

/* Selection */
::selection {
    background: rgba(0, 255, 136, 0.3);
    color: var(--text-primary);
}

/* Focus States */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--neon-primary);
    outline-offset: 2px;
}

/* Back Link - Elegant Style */
.back-link {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 136, 0.2);
    font-size: 14px;
}

.back-link a:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.back-link a i {
    font-size: 16px;
}

/* Admin specific styles */
.admin-container {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-header h2 {
    color: var(--text-primary);
    font-size: 28px;
    margin: 0;
}

.admin-header p {
    color: var(--text-secondary);
    margin: 5px 0 0 0;
    font-size: 16px;
}

.admin-tools {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Stored Links Section */
.stored-links-section {
    margin-top: 40px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--neon-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-sm:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-sm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Save button specific styles */
.btn-save {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-save::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-save:hover::before {
    left: 100%;
}

.btn-save:hover {
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
}

.btn-save:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-save:disabled::before {
    display: none;
}

.stored-links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stored-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all var(--transition-base);
    animation: slideIn 0.3s ease-out;
}

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

@keyframes slideInHighlight {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stored-link-item.newly-generated {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 204, 255, 0.1) 100%);
    border-color: var(--neon-primary);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    position: relative;
}

.stored-link-item.newly-generated::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary), var(--neon-accent));
    border-radius: 8px;
    z-index: -1;
    opacity: 0.5;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.new-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 255, 136, 0.6);
    }
}

.btn-success {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: var(--bg-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
    transform: translateY(-1px);
}

.btn-success:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.stored-link-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    transform: translateX(5px);
}

.link-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.link-info i.fa-file {
    font-size: 20px;
    color: var(--neon-primary);
    flex-shrink: 0;
}

.link-details {
    flex: 1;
    min-width: 0;
}

.link-details .filename {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.link-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.filesize {
    color: var(--neon-secondary);
    font-weight: 500;
}

.time-remaining {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
}

.time-remaining i {
    font-size: 12px;
}

.link-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 16px;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-copy {
    background: rgba(0, 204, 255, 0.1);
    color: var(--neon-secondary);
}

.btn-copy:hover {
    background: rgba(0, 204, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 204, 255, 0.3);
}

.btn-download {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-primary);
    text-decoration: none;
}

.btn-download:hover {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.btn-stream {
    background: rgba(138, 43, 226, 0.1);
    color: #8a2be2;
    border-color: rgba(138, 43, 226, 0.3);
    text-decoration: none;
}

.btn-stream:hover {
    background: rgba(138, 43, 226, 0.2);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
    color: #9d4edd;
}

.btn-delete {
    background: rgba(255, 0, 85, 0.1);
    color: var(--neon-danger);
}

.btn-delete:hover {
    background: rgba(255, 0, 85, 0.2);
    box-shadow: 0 4px 12px rgba(255, 0, 85, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stored-link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .link-actions {
        align-self: flex-end;
        width: 100%;
        justify-content: flex-end;
    }

    .link-info {
        width: 100%;
    }

    .link-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}
/* Host Quota Modal Styles */
.modal-large {
    max-width: 900px;
}

.host-quotas-grid {
    display: grid;
    gap: 12px;
}

.host-quota-item {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
}

.host-quota-item.has-quota {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.host-quota-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.host-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.host-domain {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.quota-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quota-input {
    flex: 1;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    font-size: 13px;
}

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

.quota-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Host Toggle Styles */
.host-toggle {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.host-enabled {
    background: rgba(0, 255, 136, 0.15);
    color: var(--neon-primary);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.host-enabled:hover {
    background: rgba(0, 255, 136, 0.25);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.host-disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.host-disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* Clickable Meta Item */
.meta-item.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.meta-item.clickable:hover {
    color: var(--neon-primary);
}

.meta-item.clickable i {
    margin-left: 5px;
    font-size: 10px;
    transition: transform 0.2s ease;
}

/* Utility classes for better spacing */
.mb-15 {
    margin-bottom: 15px;
}

.mb-10 {
    margin-bottom: 10px;
}

.d-block {
    display: block;
}

.justify-content-center {
    justify-content: center;
}

/* New Navigation Styles */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-navigation {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand i {
    color: var(--neon-primary);
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 8px;
    margin-left: 40px;
    flex: 1;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: var(--neon-primary);
    background: rgba(0, 255, 136, 0.1);
}

.nav-links a.nav-item-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-links a.nav-item-disabled:hover {
    background: transparent;
    color: var(--text-secondary);
}

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

.user-menu-container {
    position: relative;
}

.user-avatar-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: 30px;
    border: 1px solid transparent;
    transition: all var(--transition-base);
}

.user-avatar-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-avatar-trigger .username {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.user-avatar-trigger i {
    font-size: 12px;
    color: var(--text-secondary);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
}

.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a, .dropdown-item-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.nav-dropdown a:hover, .dropdown-item-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-dropdown a i, .dropdown-item-btn i {
    width: 16px;
    text-align: center;
    color: var(--neon-primary);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-text {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.btn-text:hover {
    color: var(--neon-primary);
}

.btn-primary-sm {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-base);
}

.btn-primary-sm:hover {
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
    transform: translateY(-1px);
}

.main-content {
    flex: 1;
}

.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: auto;
    background: var(--bg-secondary);
    text-align: center;
}

/* Responsive Nav */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hidden on mobile for now, ideally would use a hamburger menu */
    }
    
    .nav-wrapper {
        justify-content: space-between;
    }
}