:root {
    --bg-dark: #09090b;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary: #3b82f6;
    --secondary-glow: rgba(59, 130, 246, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background elements */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-glow);
    bottom: -100px;
    right: -100px;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

/* Reusable Components */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.glow-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 14px 28px;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.glow-btn:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.glow-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.text-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    margin-bottom: 20px;
}

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

.hidden {
    display: none !important;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.logo i {
    color: var(--primary);
}

.incognito-btn {
    color: white;
    text-decoration: none;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.incognito-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 60vh;
}

.hero-content {
    flex: 1;
}

.badge {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.glow-text {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.search-box {
    display: flex;
    padding: 10px;
    gap: 10px;
    border-radius: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 15px;
    gap: 12px;
}

.search-icon {
    font-size: 1.5rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#ig-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-family: inherit;
    width: 100%;
    outline: none;
}

#ig-input::placeholder {
    color: #475569;
}

.error-msg {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 10px;
    margin-left: 15px;
}

.hero-mascot {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.mascot-img-placeholder {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(139, 92, 246, 0.2);
}

.placeholder-icon {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 20px var(--primary));
}

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

/* Result View */
.result-view {
    animation: fadeIn 0.5s ease-out;
}

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

.profile-card {
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    padding: 3px;
    background: #000;
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.profile-info h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 15px;
}

.profile-bio {
    white-space: pre-wrap;
    font-size: 0.95rem;
}

.profile-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.stat {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.stat span {
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
}

.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

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

.tab-btn:hover:not(.active) {
    color: white;
}

.tab-content {
    min-height: 400px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-state {
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Mock Grid */
.mock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}
.mock-item {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255,255,255,0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}
.mock-item:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.1);
    color: var(--primary);
}

/* Features Box */
.features {
    padding: 100px 0;
}

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

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.hover-glow:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
}

/* How It Works */
.how-it-works {
    padding: 50px 0;
}

.steps-container {
    display: flex;
    gap: 30px;
}

.step {
    flex: 1;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
}

.step-num {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.step h3 {
    margin-bottom: 10px;
}

.step p {
    color: var(--text-muted);
}

/* Privacy Alert */
.privacy-notice {
    display: flex;
    gap: 20px;
    padding: 30px;
    margin: 80px 0;
    align-items: center;
    border-left: 4px solid var(--secondary);
}

.alert-icon {
    font-size: 2.5rem;
    color: var(--secondary);
}

.alert-text h3 {
    margin-bottom: 5px;
}

.alert-text p {
    color: var(--text-muted);
}

/* FAQ Section */
.faq {
    padding: 50px 0;
    max-width: 800px;
    margin: 0 auto;
}

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

.accordion-item {
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-content p {
    padding: 0 20px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.accordion-item.open {
    border-color: rgba(139, 92, 246, 0.5);
}

.accordion-item.open .accordion-content {
    max-height: 200px; /* arbitrary large value */
}

.accordion-item.open .accordion-content p {
    padding-bottom: 20px;
    opacity: 1;
}

.accordion-item.open .accordion-header i {
    transform: rotate(45deg);
    color: var(--primary);
}
.accordion-header i {
    transition: transform 0.3s ease;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
    padding: 40px 20px;
    background: rgba(0,0,0,0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 30px;
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

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

.footer-brand p {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 10px;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-disclaimer {
    flex-basis: 100%;
    text-align: center;
    color: #475569;
    font-size: 0.85rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Light Mode Variables & Overrides */
body.light-mode {
    --bg-dark: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 0, 0, 0.1);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary-glow: rgba(139, 92, 246, 0.2);
    --secondary-glow: rgba(59, 130, 246, 0.2);
}

body.light-mode .section-title, body.light-mode .glow-text {
    background: linear-gradient(to right, #1e293b, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}
body.light-mode .logo, body.light-mode .stat span, body.light-mode #ig-input, body.light-mode .accordion-header, body.light-mode .feature-card h3 {
    color: var(--text-main);
}
body.light-mode .tab-btn:hover:not(.active), body.light-mode .footer-links a:hover {
    color: var(--text-main);
}
body.light-mode .incognito-btn {
    color: var(--text-main);
    border-color: var(--border-color);
}
body.light-mode .incognito-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}
body.light-mode .glass-panel {
    background: var(--card-bg);
}
body.light-mode .mock-item {
    background: rgba(0,0,0,0.05);
    color: rgba(0,0,0,0.3);
}

/* Nav Menu Styles */
.main-menu {
    display: flex;
    gap: 30px;
}
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}
.theme-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
    .main-menu {
        display: none;
    }
    .top-nav {
        padding: 20px;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .glow-text {
        font-size: 3rem;
    }
    
    .subtitle {
        margin: 0 auto 30px;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .search-box {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 15px;
    }
    
    .search-input-wrapper {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 15px;
        width: 100%;
    }
    
    #search-btn {
        width: 100%;
        justify-content: center;
        border-radius: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .top-nav {
        flex-direction: column;
        gap: 15px;
    }
    .hero-mascot .mascot-img-placeholder {
        width: 250px;
        height: 250px;
        border-radius: 50%;
    }
}
