/* ==========================================
   --- FASTIGFB PRO INSTA-THEME v4.0 ---
   (Endless Premium Flow + Mobile-First)
   ========================================== */

/* Fonts: Poppins (Punchy Headings) & Inter (Clean Body) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
    /* Pure Instagram Gradient DNA */
    --insta-orange: #f09433;
    --insta-pink: #dc2743;
    --insta-dark-purple: #bc1888;
    
    /* THE MAGIC: Endless Seamless Gradient (Orange -> Pink -> Purple -> Violet -> Orange) */
    /* Start aur End me same color (#f09433) hai, jisse loop pata hi nahi chalega */
    --endless-pro-gradient: linear-gradient(to right, #f09433, #dc2743, #bc1888, #833ab4, #dc2743, #f09433);
    
    /* Light Theme (Breathable & Clean) */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --step-bg: #fdfdfd; 
    --text-main: #1a1a1a; 
    --text-muted: #666666;
    --border-color: #efefef;
    --card-shadow: 0 4px 24px rgba(0,0,0,0.03);
    --hover-glow: 0 12px 32px rgba(220, 39, 67, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode {
    /* OLED Pro Dark Mode */
    --bg-color: #050505;
    --card-bg: #121212;
    --step-bg: #181818;
    --text-main: #f2f2f2;
    --text-muted: #999999;
    --border-color: #262626;
    --card-shadow: 0 4px 24px rgba(0,0,0,0.4);
    --hover-glow: 0 12px 32px rgba(220, 39, 67, 0.15);
    --glass-bg: rgba(18, 18, 18, 0.75);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================
   --- KEYFRAME ANIMATIONS ---
   ========================================== */

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* PERFECT RIGHT-TO-LEFT CONTINUOUS LOOP */
@keyframes flowRightToLeft {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}

@keyframes slideDownBounce {
    0% { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   --- MAIN WRAPPER & HEADER ---
   ========================================== */

.main-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px 20px; 
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 25px 0; 
    animation: fadeUp 0.5s ease forwards;
}

/* ==========================================
   --- LOGO & BRAND ICON ---
   ========================================== */

.logo {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-family: 'Poppins', sans-serif;
    font-size: 24px; 
    font-weight: 700; 
}

/* GLOBAL ANIMATED GRADIENT CLASS (Logo, Titles me use hui hai) */
.animated-logo-text, .section-title {
    background: var(--endless-pro-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text; /* 👉 Ye line add karni thi */
    -webkit-text-fill-color: transparent;
    color: transparent; /* 👉 Aur ye standard property */
    animation: flowRightToLeft 5s linear infinite; 
}

.brand-icon {
    width: 36px; 
    height: 36px;
    object-fit: contain; 
    border-radius: 8px; 
    transition: transform 0.3s ease;
}

/* Logo PNG par ab sirf Zoom hoga */
.logo:hover .brand-icon {
    transform: scale(1.15);
}

.nav-icons .icon {
    font-size: 22px;
    margin-left: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-icons .icon:hover { transform: scale(1.1); }

/* ==========================================
   --- HERO SECTION & INPUT ---
   ========================================== */

.hero-section {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 35px;
    animation: fadeUp 0.6s ease forwards;
}

.category-icons {
    font-size: 24px;
    word-spacing: 20px; 
    margin-bottom: 20px;
}

.main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px; 
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 35px;
    padding: 0 10px;
}

/* Glassmorphism Paste Area */
.input-box {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    margin: 0 auto;
    max-width: 550px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.input-box:focus-within {
    transform: translateY(-2px);
    box-shadow: var(--hover-glow);
    border-color: rgba(225, 48, 108, 0.4);
}

.input-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-main);
    padding: 10px 5px;
}

/* Paste Button par bhi same slow continuous loop laga diya hai */
.paste-btn {
    background: var(--endless-pro-gradient);
    background-size: 200% auto;
    animation: flowRightToLeft 5s linear infinite;
    border: none;
    padding: 12px 22px;
    border-radius: 40px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.25);
    transition: var(--transition-smooth);
}

.paste-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

/* ==========================================
   --- GLOBAL CARDS (Perfect Balance) ---
   ========================================== */

.discover-container, .how-to-container, .features-container, 
.why-us-container, .faq-container, .privacy-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px; 
    padding: 22px 25px; 
    margin: 25px auto; 
    max-width: 650px;
    box-shadow: var(--card-shadow);
    text-align: left;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    transition: var(--transition-smooth);
}

.discover-container:hover, .how-to-container:hover, .features-container:hover, 
.why-us-container:hover, .faq-container:hover {
    box-shadow: var(--hover-glow);
    border-color: rgba(220, 39, 67, 0.15);
}

/* Section Title CSS .animated-logo-text ke sath upar merge kar di hai taaki ek jaisa animation chale */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px; 
    font-weight: 600; 
    margin-bottom: 22px; 
    display: inline-block;
}

/* ==========================================
   --- NEW HOW-TO DOWNLOAD CARDS (PRO) ---
   ========================================== */

.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.step-card {
    display: flex;
    align-items: flex-start;
    background: var(--step-bg);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.step-card:hover {
    transform: translateX(5px); 
    border-color: rgba(220, 39, 67, 0.3);
    background: var(--card-bg);
}

.step-number {
    width: 38px;
    height: 38px;
    /* Gole (circle) ka colour simple Instagram gradient rakha hai taaki distracting na ho */
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0; 
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(225, 48, 108, 0.3);
}

.step-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 4px;
    font-weight: 600;
}

.step-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================
   --- LISTS & ACCORDIONS ---
   ========================================== */

.discover-list { list-style: none; }
.discover-list li { border-bottom: 1px solid var(--border-color); }
.discover-list li:last-child { border-bottom: none; }

.discover-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.discover-list a:hover { color: #e1306c; }

/* Features */
.features-list { list-style: none; }
.features-list li {
    font-size: 14.5px;
    color: var(--text-main);
    margin-bottom: 14px; 
    display: flex;
    align-items: center;
}
.features-list li:last-child { margin-bottom: 0; }
.bullet-icon {
    font-size: 16px;
    margin-right: 12px;
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    -webkit-background-clip: text;
    background-clip: text; /* 👉 Ye line add karni thi */
    -webkit-text-fill-color: transparent;
    color: transparent; /* 👉 Aur ye standard property */
}

/* Accordion (FAQ) */
.accordion-item {
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0; 
}
.accordion-item:last-child { border-bottom: none; }

.accordion-item summary {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 35px;
    outline: none;
    transition: color 0.3s ease;
}
.accordion-item summary::-webkit-details-marker { display: none; }

.accordion-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-item[open] summary { color: #e1306c; }
.accordion-item[open] summary::after {
    content: "×";
    transform: translateY(-50%) rotate(90deg);
    color: #e1306c;
}

.accordion-item p {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7; 
    animation: slideDownBounce 0.3s ease forwards;
}

/* ==========================================
   --- EXTRA SECTIONS ---
   ========================================== */

.terms-container {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    padding: 0 15px;
}

.terms-main-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
}

.terms-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.ads-box {
    background-color: var(--border-color);
    color: var(--text-muted);
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 12px;
    border: 1px dashed #aaa;
    margin: 25px auto;
    max-width: 650px;
}

/* ==========================================
   --- FOOTER ---
   ========================================== */

.footer-container {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px 20px;
    margin-top: 20px;
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto 35px auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px; 
    border-radius: 12px;
}

.footer-disclaimer h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.footer-disclaimer p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.footer-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    text-align: center;
    flex-direction: column; 
    align-items: center;
}

.footer-col h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s ease; }
.footer-links a:hover { color: #e1306c; }

.footer-bottom {
    max-width: 800px;
    margin: 30px auto 0;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ==========================================
   --- DESKTOP OPTIMIZATION (MEDIA QUERY) ---
   ========================================== */
@media (min-width: 768px) {
    .main-title { font-size: 34px; }
    .subtitle { font-size: 15.5px; }
    .section-title { font-size: 22px; }
    .discover-container, .how-to-container, .features-container, 
    .why-us-container, .faq-container { padding: 30px; margin: 35px auto; }
}

/* Dark mode me PNG Icons ko Black se White karne ka Jadoo */
body.dark-mode .dynamic-icon {
    filter: invert(1) brightness(2);
    transition: filter 0.3s ease;
}



/* ==========================================
   🔥 PREMIUM SWIPEABLE BOTTOM SHEET CSS 
   (100% Native App Feel & Bug Free)
   ========================================== */

.bottom-sheet-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0; right: 0;
    height: 95dvh; /* 🚀 Screen ka exactly 85% */
    background: var(--card-bg);
    z-index: 99999;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

body.dark-mode .bottom-sheet {
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

.bottom-sheet.active {
    bottom: 0;
}

/* Drag Area jahan user ungli rakhega */
.sheet-drag-area {
    width: 100%;
    padding: 15px 0;
    cursor: grab;
    display: flex;
    justify-content: center;
    background: transparent;
}

.sheet-drag-area:active { cursor: grabbing; }

.sheet-handle {
    width: 45px;
    height: 5px;
    background: var(--text-muted);
    border-radius: 10px;
    opacity: 0.5;
}

/* Scrollable part Fixed */
.sheet-scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
    -webkit-overflow-scrolling: touch; /* 🚀 iOS me smooth scroll */
    overscroll-behavior: contain; /* 🚀 Piche ka page scroll hone se rokega */
    max-height: calc(85vh - 40px); /* 🚀 85vh ke hisaab se strict limit */
}

.sheet-header {
    text-align: center;
    padding-bottom: 15px;
}

/* Dynamic Ad Area Fixed (70% Mobile Screen) */
.sheet-ad-dynamic {
    width: 100%;
    height: 73vh;
    min-height: 73vh;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Article Styling inside Sheet */
.sheet-article h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.sheet-article h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 8px;
    /* Gradient applied to sub-steps */
    background: var(--endless-pro-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: flowRightToLeft 5s linear infinite;
}

.sheet-article p, .sheet-article li {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
}