* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0c15;
    color: #eef2ff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Animated Gradient Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #0a0c15 0%, #0f1119 50%, #1a1030 100%);
}

.animated-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    animation: slowDrift 20s ease-in-out infinite;
}

.animated-bg::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 60%);
    animation: slowDriftReverse 25s ease-in-out infinite;
}

@keyframes slowDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
}

@keyframes slowDriftReverse {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

/* Particle Canvas Background */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(16px);
    background: rgba(10, 12, 21, 0.8);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 1000;
    transition: all 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #c084fc;
}

/* Tool Page Specific */
.tool-page {
    min-height: calc(100vh - 200px);
    padding: 120px 0 60px;
}

.tool-card {
    background: rgba(20, 24, 43, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.tool-card h1 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tool-card p {
    color: #94a3b8;
    margin-bottom: 32px;
}

/* Input Groups */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 500;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(10, 12, 21, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #c084fc;
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

.result-box {
    margin-top: 32px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.result-box h3 {
    color: #c084fc;
    margin-bottom: 12px;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    word-break: break-all;
}

.copy-btn {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 8px 16px;
    border-radius: 12px;
    color: #c084fc;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #8b5cf6;
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 24px;
    color: #64748b;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: #c084fc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 50px 0 30px;
    margin-top: 60px;
    background: rgba(10, 12, 21, 0.6);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-col {
    min-width: 160px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin: 10px 0;
    transition: 0.2s;
}

.footer-col a:hover {
    color: #c084fc;
    transform: translateX(5px);
}

.footer-brand {
    max-width: 250px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #8b5cf6;
    transform: translateY(-3px);
}

.social-icons a i {
    font-size: 1.1rem;
    color: #cbd5e1;
}

/* Footer Accordion Mobile */
.footer-accordion {
    display: none;
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    color: white;
    font-weight: 600;
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: #c084fc;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 8px;
}

.accordion-content a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 10px 0;
}

.accordion-content a:hover {
    color: #c084fc;
    padding-left: 5px;
}

.footer-brand-mobile {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.social-icons-mobile {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-icons-mobile a {
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons-mobile a i {
    color: #cbd5e1;
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #64748b;
    font-size: 0.85rem;
}

/* Ad Containers */
.ad-container {
    text-align: center;
    margin: 30px auto;
    padding: 16px;
    background: rgba(20, 24, 43, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.ad-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.ad-banner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 35, 60, 0.6), rgba(20, 24, 43, 0.6));
    border-radius: 12px;
    overflow: hidden;
}

.ad-horizontal {
    max-width: 970px;
    margin-left: auto;
    margin-right: auto;
}

.ad-sidebar {
    margin: 20px 0;
}

.ad-sidebar .ad-banner {
    min-height: 250px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 12, 21, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 2rem;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-container {
        padding: 16px 24px;
    }
    .container {
        padding: 0 24px;
    }
    .tool-card {
        padding: 24px;
    }
    .tool-card h1 {
        font-size: 1.8rem;
    }
    .footer-grid {
        display: none;
    }
    .footer-accordion {
        display: block;
    }
}

@media (min-width: 1200px) {
    .content-with-sidebar {
        display: flex;
        gap: 32px;
    }
    .main-content {
        flex: 3;
    }
    .sidebar-ads {
        flex: 1;
        position: sticky;
        top: 100px;
        height: fit-content;
    }
}