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

:root {
    --primary: #ff6b35;
    --primary-dark: #e85a2a;
    --primary-light: #ff8c5f;
    --secondary: #ff9800;
    --accent: #ffab40;
    --dark: #1a1a1a;
    --dark-light: #2d2d2d;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #fff5f0;
    --error: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    --glow: 0 0 30px rgba(255, 107, 53, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 107, 53, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 107, 53, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 0.7rem 2rem !important;
    border-radius: 50px;
    color: var(--white) !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.nav-btn::after {
    display: none;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 50%, #fff8e1 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 152, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 171, 64, 0.05) 0%, transparent 60%);
    animation: pulse 10s ease-in-out infinite;
}

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

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    animation: fadeInUp 1s ease 0.2s both;
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-admin {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: var(--white);
    margin-right: 1rem;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 171, 64, 0.4);
}

.btn-glow {
    animation: fadeInUp 1s ease 0.4s both;
    position: relative;
    overflow: hidden;
}

.btn-glow::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-glow:hover::before {
    width: 300px;
    height: 300px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 25px;
    max-width: 480px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s ease;
    border: 2px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-tool {
    max-width: 1200px;
}

.close, .close-request, .close-tool {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover, .close-request:hover, .close-tool:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.tool-container {
    width: 100%;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 1rem;
    background: var(--white);
    border: 2px solid var(--bg-light);
}

.tool-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Forms */
.auth-form h2, .modal-content h2 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.auth-switch {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.error-message, .success-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    display: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.error-message {
    background: #fee;
    color: var(--error);
    border: 2px solid var(--error);
}

.success-message {
    background: #eff6ff;
    color: var(--success);
    border: 2px solid var(--success);
}

.error-message.active, .success-message.active {
    display: block;
}

/* Dashboard */
.user-dashboard {
    background: var(--bg-light);
    padding: 3rem 20px;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid rgba(255, 107, 53, 0.2);
}

.dashboard-header h2 {
    color: var(--text-dark);
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 800;
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 53, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.tool-icon-box {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    position: relative;
    overflow: hidden;
}

.tool-icon-box::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: wave 4s linear infinite;
}

@keyframes wave {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.tool-info {
    padding: 1.8rem;
}

.tool-info h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    font-weight: 800;
}

.tool-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tool-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 152, 0, 0.1));
    color: var(--primary);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tool-list-item {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 53, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.tool-list-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.15);
}

.tool-list-info h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    font-weight: 800;
}

.tool-list-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-delete {
    padding: 0.6rem 1.2rem;
    background: var(--error);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* Requests List */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.request-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 53, 0.15);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.request-title {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 800;
}

.status-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 2px solid var(--warning);
}

.status-approved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 2px solid var(--success);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 2px solid var(--error);
}

.request-details p {
    color: var(--text-light);
    margin: 0.6rem 0;
    line-height: 1.7;
}

.request-details strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* Admin Panel */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 3px solid rgba(255, 107, 53, 0.15);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-btn:hover {
    color: var(--primary-dark);
}

.tab-content {
    display: none;
}

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

.tab-content h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 900;
}

.admin-requests, .users-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-request-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 53, 0.15);
}

.admin-request-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
}

.request-actions {
    display: flex;
    gap: 0.7rem;
}

.btn-approve {
    padding: 0.6rem 1.2rem;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-approve:hover {
    background: #059669;
    transform: scale(1.05);
}

.btn-reject {
    padding: 0.6rem 1.2rem;
    background: var(--error);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-reject:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.user-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 53, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info-card h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.user-info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.role-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
}

.role-admin {
    background: rgba(255, 171, 64, 0.15);
    color: var(--accent);
    border: 2px solid var(--accent);
}

.role-user {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary);
    border: 2px solid var(--primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-state h3 {
    color: var(--text-dark);
    margin-bottom: 0.7rem;
    font-size: 1.5rem;
    font-weight: 800;
}

/* Sections */
.section {
    padding: 100px 20px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-text {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.9;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
    padding: 3rem 20px;
    border-top: 3px solid var(--secondary);
}

.footer-tagline {
    margin-top: 0.7rem;
    font-size: 1rem;
    opacity: 0.9;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.create-tool-form {
    max-width: 900px;
}

.create-tool-form textarea {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 2px solid rgba(255, 107, 53, 0.2);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        text-align: center;
        padding: 0.7rem 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .dashboard-header h2 {
        font-size: 2.2rem;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-admin {
        margin-right: 0;
    }

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

    .admin-tabs {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-left-color: var(--primary);
        border-bottom-color: transparent;
    }

    .modal-content {
        padding: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .tools-list {
        grid-template-columns: 1fr;
    }
}