/* ==================== CSS RESET & VARIABLES ==================== */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    --font-primary: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: -1;
    transition: background 0.4s ease;
}

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

/* ==================== UTILITY CLASSES ==================== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== WELCOME SCREEN ==================== */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
}

.welcome-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 90%;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.welcome-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.welcome-logo i {
    font-size: 60px;
    color: white;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

.welcome-logo h1 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.welcome-logo span {
    color: #ffd700;
}

.welcome-text {
    margin-bottom: 40px;
}

.welcome-text h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    min-height: 80px;
    color: white;
}

.welcome-description {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-circle {
    text-align: center;
}

.stat-circle span {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-circle p {
    font-size: 14px;
    opacity: 0.9;
}

.welcome-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 1;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-glow {
    animation: glow 2s ease-in-out infinite;
}

.welcome-features {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.feature-badge i {
    color: #ffd700;
}

/* Welcome Background Animation */
.welcome-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: floatSlow 20s ease-in-out infinite;
}

.gradient-sphere-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, rgba(255,215,0,0) 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: floatSlow 25s ease-in-out infinite reverse;
}

.floating-code {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-code i {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 40px;
    animation: float 10s ease-in-out infinite;
}

.floating-code i:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-code i:nth-child(2) { top: 70%; left: 80%; animation-delay: 2s; font-size: 60px; }
.floating-code i:nth-child(3) { top: 20%; left: 90%; animation-delay: 4s; font-size: 30px; }
.floating-code i:nth-child(4) { top: 80%; left: 15%; animation-delay: 6s; font-size: 50px; }
.floating-code i:nth-child(5) { top: 40%; left: 40%; animation-delay: 8s; font-size: 45px; }
.floating-code i:nth-child(6) { top: 60%; left: 60%; animation-delay: 10s; font-size: 55px; }

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--navbar-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-normal);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand i {
    font-size: 28px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.nav-brand:hover i {
    transform: rotate(10deg);
}

.nav-brand h1 {
    font-size: 24px;
    font-weight: 700;
}

.nav-brand span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary, var(--dark-color));
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-normal);
}

.nav-link:hover i,
.nav-link.active i {
    opacity: 1;
    transform: translateX(0);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
}

.theme-btn {
    width: 60px;
    height: 30px;
    border-radius: 30px;
    background: var(--bg-secondary, #e2e8f0);
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    transition: var(--transition-normal);
}

.theme-btn i {
    font-size: 14px;
    z-index: 2;
    color: var(--text-primary);
}

.theme-btn .fa-sun {
    color: #f59e0b;
}

.theme-btn .fa-moon {
    color: #6366f1;
}

.theme-toggle-ball {
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

/* Nav Search */
.nav-search {
    display: flex;
    align-items: center;
}

.nav-search input {
    padding: 10px 15px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    outline: none;
    width: 200px;
    transition: var(--transition-normal);
    background: var(--bg-primary, white);
    color: var(--text-primary, var(--dark-color));
    font-size: 14px;
}

.nav-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    width: 250px;
}

.nav-search button {
    padding: 10px 15px;
    background: var(--primary-color);
    border: none;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
}

.nav-search button:hover {
    background: var(--secondary-color);
}

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

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary, #f1f5f9);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-normal);
    color: var(--text-primary);
}

.user-btn:hover {
    background: var(--primary-color);
    color: white;
}

.user-btn i {
    font-size: 18px;
}

.user-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 250px;
    background: var(--card-bg, white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 15px;
    z-index: 100;
    animation: slideDown 0.3s ease;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.user-info i {
    font-size: 40px;
    color: var(--primary-color);
}

.user-info p {
    font-weight: 600;
    margin-bottom: 5px;
}

.user-info small {
    color: var(--text-secondary, #64748b);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color, #e2e8f0);
    margin: 10px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
}

.dropdown-item:hover {
    background: var(--bg-secondary, #f1f5f9);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary, var(--dark-color));
    margin: 3px 0;
    transition: var(--transition-normal);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--card-bg, white);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.4s ease;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-user-info i {
    font-size: 40px;
    color: var(--primary-color);
}

.mobile-user-info p {
    font-weight: 600;
    margin-bottom: 5px;
}

.mobile-user-info small {
    color: var(--text-secondary);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.mobile-menu-close:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.mobile-menu-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    font-weight: 500;
}

.mobile-link i {
    width: 24px;
    font-size: 20px;
}

.mobile-link:hover,
.mobile-link.active {
    background: var(--primary-color);
    color: white;
}

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-theme-btn,
.mobile-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.mobile-theme-btn:hover {
    background: var(--warning-color);
    color: white;
}

.mobile-logout-btn:hover {
    background: var(--danger-color);
    color: white;
}

/* ==================== PAGE CONTAINER ==================== */
.main-dashboard {
    min-height: 100vh;
    background: var(--bg-primary);
    transition: var(--transition-normal);
}

.page-container {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.page {
    display: none;
    opacity: 0;
    transition: var(--transition-normal);
}

.page.active-page {
    display: block;
    opacity: 1;
    animation: fadeIn 0.6s ease;
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 60px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.live-badge,
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.live-badge {
    background: linear-gradient(135deg, var(--danger-color), #ff6b6b);
    color: white;
}

.live-badge i {
    animation: pulse 1.5s ease-in-out infinite;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-pulse {
    animation: btnPulse 2s infinite;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 24px;
    color: white;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, rgba(99,102,241,0) 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: floatSlow 15s ease-in-out infinite;
}

.gradient-orb-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, rgba(139,92,246,0) 70%);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    animation: floatSlow 20s ease-in-out infinite reverse;
}

.gradient-orb-3 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,158,11,0.05) 0%, rgba(245,158,11,0) 70%);
    border-radius: 50%;
    bottom: -200px;
    right: 10%;
    animation: floatSlow 25s ease-in-out infinite;
}

/* ==================== TRENDING PREVIEW ==================== */
.trending-preview {
    padding: 80px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.section-footer {
    text-align: center;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
}

.btn-link:hover {
    gap: 15px;
    color: var(--secondary-color);
}

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon i {
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

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

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-content .btn {
    background: white;
    color: var(--primary-color);
    padding: 16px 40px;
    font-size: 18px;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0 20px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* ==================== FILTER WRAPPER ==================== */
.filter-wrapper {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

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

.filter-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-normal);
    color: var(--text-primary);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==================== SCRIPTS GRID ==================== */
.scripts-grid,
.myuploads-grid,
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.script-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
}

.script-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.script-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.script-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.script-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.script-category-badge {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    backdrop-filter: blur(5px);
}

.script-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-premium {
    background: var(--warning-color);
    color: white;
}

.badge-gratis {
    background: var(--success-color);
    color: white;
}

.script-body {
    padding: 20px;
}

.script-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.script-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.script-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.script-meta i {
    color: var(--primary-color);
    font-size: 14px;
}

.script-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.script-tag {
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.script-tag:hover {
    background: var(--primary-color);
    color: white;
}

.script-demo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-normal);
}

.script-demo-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.script-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.script-info {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-secondary);
}

.script-info i {
    margin-right: 5px;
    color: var(--primary-color);
}

.script-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-download {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-download:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.btn-delete {
    padding: 8px 15px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-delete:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
    transform: scale(1.05);
}

/* ==================== MY UPLOADS ==================== */
.myuploads-section {
    padding: 40px 0 80px;
}

.myuploads-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-mini-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-normal);
}

.stat-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-mini-card i {
    font-size: 32px;
    color: var(--primary-color);
}

.stat-mini-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-mini-card p {
    color: var(--text-secondary);
    font-size: 13px;
}

.my-script {
    border: 2px solid var(--primary-color);
    position: relative;
}

.my-script::before {
    content: '📌 Script Kamu';
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.my-script-actions {
    display: flex;
    gap: 10px;
}

/* ==================== CATEGORY PAGE ==================== */
.categories-section {
    padding: 40px 0 80px;
}

.category-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.category-card-enhanced {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.category-card-enhanced:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon i {
    font-size: 30px;
    color: white;
}

.category-card-enhanced h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.category-count {
    color: var(--text-secondary);
    font-size: 14px;
}

.category-stats {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.category-stats h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.stats-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.stat-bar-label {
    width: 100px;
    font-size: 14px;
    font-weight: 500;
}

.stat-bar-container {
    flex: 1;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s ease;
}

.stat-bar-count {
    width: 80px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: right;
}

/* ==================== UPLOAD PAGE ==================== */
.upload-section {
    padding: 40px 0 80px;
}

.upload-container {
    max-width: 800px;
    margin: 0 auto 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 10px;
    transition: var(--transition-normal);
}

.step-label {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.progress-step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: var(--font-primary);
    font-size: 14px;
    transition: var(--transition-normal);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.required {
    color: var(--danger-color);
    margin-left: 3px;
}

/* File Upload Enhanced */
.file-upload-enhanced {
    position: relative;
}

.file-upload-enhanced input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    background: var(--bg-secondary);
    transition: var(--transition-normal);
    text-align: center;
}

.file-upload-area i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-upload-area p {
    font-weight: 600;
    margin-bottom: 5px;
}

.file-upload-area span {
    color: var(--primary-color);
    cursor: pointer;
}

.file-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.file-upload-enhanced:hover .file-upload-area {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.file-info {
    display: none;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    margin-top: 15px;
}

.file-info.visible {
    display: flex;
}

.file-info i {
    font-size: 24px;
    color: var(--primary-color);
}

.file-info p {
    font-weight: 600;
    margin-bottom: 5px;
}

.file-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-remove-file {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-file:hover {
    background: var(--danger-color);
    color: white;
}

/* Checkbox Custom */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: var(--transition-normal);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-block {
    width: 100%;
}

/* Upload Guidelines */
.upload-guidelines {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.upload-guidelines h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
}

.upload-guidelines ul {
    list-style: none;
}

.upload-guidelines li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.upload-guidelines li i {
    color: var(--success-color);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.empty-state i {
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 16px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-brand i {
    font-size: 28px;
    color: var(--primary-color);
}

.footer-brand h3 {
    font-size: 24px;
}

.footer-brand span {
    color: var(--primary-color);
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition-normal);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-section ul li i {
    width: 20px;
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-normal);
    cursor: pointer;
}

.footer-links a:hover {
    color: white;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 99;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ==================== LOADING OVERLAY ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner-circle,
.spinner-circle-2 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -30px;
    margin-left: -30px;
    animation: spin 1s infinite linear;
}

.spinner-circle-2 {
    width: 80px;
    height: 80px;
    margin-top: -40px;
    margin-left: -40px;
    border-top-color: var(--secondary-color);
    animation: spin 1.5s infinite linear reverse;
}

.loading-spinner p {
    margin-top: 100px;
    font-size: 18px;
    font-weight: 500;
}

/* ==================== NOTIFICATION ==================== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    padding: 15px 25px;
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
    border-left: 4px solid var(--primary-color);
}

.notification i {
    font-size: 20px;
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-success i {
    color: var(--success-color);
}

.notification-warning {
    border-left-color: var(--warning-color);
}

.notification-warning i {
    color: var(--warning-color);
}

.notification-error {
    border-left-color: var(--danger-color);
}

.notification-error i {
    color: var(--danger-color);
}

.notification-info {
    border-left-color: var(--info-color);
}

.notification-info i {
    color: var(--info-color);
}

/* ==================== MODAL ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.modal-header h3 i {
    color: gold;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: var(--transition-normal);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
    }
}

@keyframes btnPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

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

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

/* ==================== SELECTION ==================== */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu,
    .nav-search,
    .user-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-actions {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .welcome-logo h1 {
        font-size: 36px;
    }
    
    .welcome-text h2 {
        font-size: 24px;
    }
    
    .welcome-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .features-grid,
    .preview-grid,
    .scripts-grid,
    .myuploads-grid {
        grid-template-columns: 1fr;
    }
    
    .myuploads-stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-progress {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .form-progress::before {
        display: none;
    }
    
    .progress-step {
        flex-direction: row;
        gap: 15px;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .welcome-logo h1 {
        font-size: 28px;
    }
    
    .welcome-logo i {
        font-size: 40px;
    }
    
    .welcome-text h2 {
        font-size: 20px;
    }
    
    .welcome-description {
        font-size: 16px;
    }
    
    .welcome-buttons {
        flex-direction: column;
    }
    
    .welcome-buttons .btn {
        width: 100%;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .script-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .script-badge {
        align-self: flex-start;
    }
    
    .script-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .script-actions,
    .my-script-actions {
        width: 100%;
    }
    
    .btn-download,
    .btn-delete {
        flex: 1;
        justify-content: center;
    }
    
    .filter-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .upload-container {
        padding: 25px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .notification {
        width: calc(100% - 40px);
        max-width: none;
    }
}
