:root {
    --bg-color: #0a0a0f;
    --fg-color: #ffffff;
    --border-color: #2a2a3a;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --link-color: #60a5fa;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-bg-solid: #111827;
    --subtle-text: #94a3b8;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --mobile-header-height: 60px;
    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-2: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --gradient-bg: linear-gradient(135deg, #0f0f23 0%, #1e1b4b 50%, #0c4a6e 100%);
    --slow-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body { 
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--fg-color);
    padding: 20px;
    font-size: 14px;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    position: relative;
}

/* Animated Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    opacity: 0.8;
    z-index: -3;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-container { 
    width: 100%; 
    max-width: 500px; 
    padding: 20px 0; 
}

.card, .tool-section {
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: var(--slow-transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.8s;
}

.card:hover::before {
    left: 100%;
}

.card {
    margin-bottom: 24px;
}

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

.header-badge {
    background: var(--gradient-1);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-stats .stat-online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--success-color);
    font-weight: 500;
}

.header-stats .stat-online i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.profile-content { 
    padding: 0 24px 24px; 
    position: relative; 
}

.pfp-container { 
    width: 100px; 
    height: 100px; 
    border-radius: 50%; 
    background: var(--gradient-1);
    padding: 4px; 
    border: 4px solid var(--card-bg-solid);
    position: relative;
    margin: -50px auto 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.pfp { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    object-fit: cover; 
}

.verified-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border: 2px solid var(--card-bg-solid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.profile-details { 
    text-align: center;
    margin-bottom: 24px;
}

.site-name { 
    font-size: 24px; 
    font-weight: 700; 
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.about-text { 
    font-size: 14px; 
    color: var(--subtle-text); 
    line-height: 1.6; 
    max-width: 400px;
    margin: 0 auto;
}

/* Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--fg-color);
}

.stat-label {
    font-size: 12px;
    color: var(--subtle-text);
    font-weight: 500;
}

/* Open Source Section */
.opensource-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--subtle-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 600;
}

.github-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.github-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--subtle-text);
    font-weight: 500;
}

.github-stat i {
    color: #f59e0b;
}

/* Tool Switcher */
.tool-switcher { 
    display: flex; 
    gap: 12px; 
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.tool-btn {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--subtle-text);
    transition: var(--slow-transition);
    cursor: pointer;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tool-btn.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--accent-color);
    font-size: 20px;
}

.section-title h3 {
    font-size: 18px;
    font-weight: 600;
}

.section-info {
    position: relative;
    color: var(--subtle-text);
    cursor: help;
}

.section-info .tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
}

.section-info:hover .tooltip {
    opacity: 1;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--subtle-text);
    transition: var(--slow-transition);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 20px;
}

.drop-zone:hover {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.drop-zone.dragover {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.drop-zone-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.drop-zone-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fg-color);
}

.drop-zone-subtitle {
    font-size: 12px;
    color: var(--subtle-text);
}

/* Recent Uploads */
.recent-uploads {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.recent-header .view-all {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.recent-grid {
    display: grid;
    gap: 12px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--slow-transition);
}

.recent-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.file-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-color);
}

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

/* URL Features */
.url-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-align: center;
    transition: var(--slow-transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.feature-item i {
    color: var(--accent-color);
    font-size: 16px;
}

.feature-item span {
    font-size: 11px;
    color: var(--subtle-text);
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--slow-transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin: 0 auto 12px;
}

.feature-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 12px;
    color: var(--subtle-text);
    line-height: 1.4;
}

/* Modern Buttons */
.modern-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--slow-transition);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.modern-btn::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;
}

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

.primary {
    background: var(--gradient-1);
    color: white;
}

.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

/* Input Groups */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--subtle-text);
    z-index: 2;
}

.input-with-icon input {
    padding-left: 44px;
}

.input-group input {
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--fg-color);
    padding: 14px 16px;
    border-radius: 12px;
    width: 100%;
    font-size: 14px;
    transition: var(--slow-transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input::placeholder {
    color: var(--subtle-text);
}

/* Tool Sections */
.tool-section {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: var(--slow-transition);
    margin-bottom: 0;
}

.tool-section.show {
    padding: 24px;
    opacity: 1;
    max-height: 1000px;
    pointer-events: auto;
    transform: translateY(0);
    margin-bottom: 20px;
}

/* Progress Bar */
.upload-progress {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.upload-progress.hidden {
    display: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.uploading-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--subtle-text);
}

/* Result Area */
.result-area {
    margin-top: 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--slow-transition);
}

.result-area.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-area-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    cursor: pointer;
    position: relative;
    transition: var(--slow-transition);
}

.result-area-content:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.result-url {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--link-color);
    font-weight: 600;
    text-decoration: none;
    flex: 1;
}

.result-url:hover {
    text-decoration: underline;
}

.result-area-content .copy-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--subtle-text);
    transition: var(--slow-transition);
}

.result-area-content:hover .copy-icon {
    color: var(--accent-color);
}

.result-area-content::after {
    content: 'Tersalin!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--success-color);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.result-area-content.copied::after {
    opacity: 1;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    background: var(--success-color);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    font-size: 14px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Loader */
.loader {
    width: 60px;
    aspect-ratio: 1;
    --c: no-repeat linear-gradient(var(--accent-color) 0 0);
    background: var(--c), var(--c), var(--c);
    animation: l16-1 1s infinite, l16-2 1s infinite;
}

@keyframes l16-1 {
    0%, 100% { background-size: 33% 100% }
    33%, 66% { background-size: 33% 40% }
}

@keyframes l16-2 {
    0%, 33% { background-position: 0 0, 50% 100%, 100% 0 }
    66%, 100% { background-position: 0 100%, 50% 0, 100% 100% }
}

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 520px) {
    .main-container {
        padding: 10px;
        max-width: 100%;
    }
    
    .profile-content {
        padding: 0 16px 16px;
    }
    
    .tool-section.show {
        padding: 20px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .url-features {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .section-info .tooltip {
        right: auto;
        left: 0;
    }
}
