/* =========================================
   RATOOLZ - GLOBAL CSS (100% Error-Free & Premium)
   ========================================= */

/* ========================
   1. VARIABLES (THEME)
   ======================== */
:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --success: #10B981;

    /* Colors */
    --bg-body: #f8fafc;           
    --bg-card: #ffffff;           
    --bg-secondary: #F0F4F8;      
    --bg-input: #f3f4f6;          
    --text-main: #0f172a;         
    --text-muted: #64748b;        
    --border: #e2e8f0;            
    --shadow: rgba(0,0,0,0.05);   
    
    /* Gradients & Highlights */
    --bg-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --bg-search: #ffffff;
    --hover-accent: #2563EB; 
    --btn-hover: #e2e8f0;
}

[data-theme="dark"] {
    --bg-body: #020617;           
    --bg-card: #0f172a;           
    --bg-secondary: #1e293b;      
    --bg-input: #1e293b;          
    --text-main: #f1f5f9;         
    --text-muted: #94a3b8;        
    --border: #334155;            
    --shadow: rgba(0,0,0,0.5);    

    --bg-hero: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    --bg-search: #1e293b;
    --hover-accent: #3b82f6;
    --btn-hover: #334155;
}

/* ========================
   2. BASIC RESETS
   ======================== */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-body); 
    color: var(--text-main);
    overflow-x: hidden; 
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; transition: .3s; }
ul { list-style: none; }

/* ========================
   3. HEADER & NAV
   ======================== */
.main-header {
    background: var(--bg-card); height: 65px; width: 100%;
    position: fixed; top: 0; left: 0; z-index: 1000;
    box-shadow: 0 1px 3px var(--shadow); padding: 0 15px;
    display: flex; align-items: center; transition: background 0.3s ease;
    border-bottom: 1px solid var(--border);
}
.header-container { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.header-left-group { display: flex; align-items: center; gap: 15px; }
.brand-logo { display: flex; align-items: center; gap: 6px; }
.logo-box { background-color: var(--primary); color: #fff; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 1.3rem; padding: 4px 8px; border-radius: 6px; }
.logo-text { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--text-main); text-transform: uppercase; }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-link { font-weight: 600; font-size: .95rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.nav-link:hover { color: var(--primary); }
.nav-item-dropdown { position: relative; height: 65px; display: flex; align-items: center; }

.header-right-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle-btn {
    background: var(--bg-input); border: 1px solid var(--border); color: var(--text-main);
    width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.1rem; transition: 0.3s; padding: 0;
}
.theme-toggle-btn:hover { background: var(--btn-hover); color: var(--primary); border-color: var(--primary); }
.theme-toggle-btn .fa-sun { display: none; }
.theme-toggle-btn .fa-moon { display: block; }
[data-theme="dark"] .theme-toggle-btn .fa-sun { display: block; }
[data-theme="dark"] .theme-toggle-btn .fa-moon { display: none; }

/* ========================
   4. MEGA MENU & SIDEBAR
   ======================== */
.mega-menu-wrapper { display: none; position: absolute; top: 65px; left: 50%; transform: translateX(-50%); width: 1000px; height: 500px; background: var(--bg-card); border-radius: 0 0 12px 12px; box-shadow: 0 15px 50px rgba(0,0,0,.15); border-top: 3px solid var(--primary); z-index: 1100; overflow: hidden; }
.nav-item-dropdown:hover .mega-menu-wrapper { display: flex; }
.mm-sidebar { width: 260px; background: var(--bg-secondary); border-right: 1px solid var(--border); overflow-y: auto; padding: 10px 0; }
.mm-cat-link { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: .9rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.mm-cat-link:hover, .mm-cat-link.active { background: var(--bg-card); color: var(--primary); border-left: 4px solid var(--primary); padding-left: 16px; }
.mm-content { flex: 1; padding: 25px; overflow-y: auto; background: var(--bg-card); }
.mm-panel { display: none; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mm-panel.active { display: grid; }
.mm-tool { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); padding: 8px 12px; border-radius: 6px; background: var(--bg-secondary); border: 1px solid transparent; }
.mm-tool:hover { background: var(--bg-input); color: var(--primary); }

.mobile-header-actions { display: none; align-items: center; gap: 15px; }
.mobile-toggle, .mobile-search-trigger { display: none; font-size: 1.3rem; color: var(--text-main); background: 0 0; border: none; padding: 5px; cursor: pointer; }

.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 1001; opacity: 0; visibility: hidden; backdrop-filter: blur(2px); transition: .3s; }
.menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-sidebar { position: fixed; top: 0; left: -100%; width: 85%; max-width: 350px; height: 100vh; background: var(--bg-card); transition: left .3s; z-index: 1002; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.mobile-sidebar.active { left: 0; }
.sidebar-header { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.close-menu-btn { font-size: 1.2rem; color: var(--text-muted); background: 0 0; border: none; cursor: pointer; }
.sidebar-search-area { padding: 15px 20px; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.search-input-wrapper { position: relative; width: 100%; }
.search-input-wrapper input { width: 100%; padding: 10px 15px 10px 40px; background: var(--bg-input); border: 1px solid transparent; border-radius: 8px; color: var(--text-main); }
.search-input-wrapper i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.sidebar-scroll-area { flex: 1; overflow-y: auto; padding: 10px 15px 150px 15px; }
.cat-btn { width: 100%; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; background: 0 0; border: none; font-size: .9rem; font-weight: 500; color: var(--text-main); cursor: pointer; text-align: left; }
.cat-btn:hover { background-color: var(--bg-secondary); }
.cat-btn.active { background-color: var(--bg-input); font-weight: 600; }
.cat-menu { display: none; background: var(--bg-card); padding: 5px 0 10px 15px; }
.cat-menu.show { display: block; }
.tool-link { display: flex; align-items: center; gap: 12px; padding: 10px 15px; font-size: .85rem; font-weight: 500; color: var(--text-muted); }

@media (max-width:991px){
    .nav-links { display: none; }
    .mobile-header-actions { display: flex; }
    .header-container { padding: 0 15px; } 
    .mobile-toggle, .mobile-search-trigger { display: flex; align-items: center; justify-content: center; }
}

/* ========================
   5. HOMEPAGE HERO SECTION
   ======================== */
.hero-section { 
    background: var(--bg-hero); 
    color: #fff; 
    padding: 140px 20px 80px; 
    text-align: center; 
    position: relative; 
    margin-top: 0; 
    display: flex; flex-direction: column; justify-content: center;
}
.hero-content { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge { 
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); 
    backdrop-filter: blur(10px); padding: 8px 22px; border-radius: 50px; 
    font-size: 0.95rem; font-weight: 600; display: inline-block; margin-bottom: 2rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.hero-title { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 900; margin-bottom: 1.5rem; line-height: 1.15; text-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.hero-subtitle { font-size: 1.15rem; margin-bottom: 3.5rem; opacity: 0.95; max-width: 650px; margin: 0 auto; line-height: 1.6; }

.search-box-wrapper { 
    max-width: 650px; margin: 0 auto 3.5rem; position: relative; display: flex; align-items: center; 
    background: var(--bg-card); border-radius: 18px; padding: 10px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); border: 1px solid var(--border);
}
.search-icon { position: absolute; left: 25px; color: var(--text-muted); font-size: 1.3rem; }
.main-search-input { width: 100%; padding: 1.2rem 1rem 1.2rem 4rem; border: none; background: transparent; font-size: 1.15rem; color: var(--text-main); outline: none; font-family: inherit; font-weight: 500; }
.search-action-btn { 
    background: var(--primary); color: #fff; border: none; padding: 1.2rem 2.5rem; 
    border-radius: 14px; font-weight: 700; font-size: 1.05rem; cursor: pointer; 
    transition: all 0.3s ease; box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}
.search-action-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(37,99,235,0.5); background: var(--primary-dark); }

.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-primary-gradient { 
    background: linear-gradient(135deg, var(--primary), #3b82f6); color: #ffffff !important; 
    padding: 16px 35px; border-radius: 14px; font-weight: 700; font-size: 1.1rem;
    display: inline-flex; align-items: center; gap: 12px; transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37,99,235,0.3); border: none;
}
.btn-primary-gradient:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(37,99,235,0.4); background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.btn-glass { 
    background: rgba(255, 255, 255, 0.1); color: #ffffff !important; border: 1px solid rgba(255, 255, 255, 0.2); 
    padding: 15px 33px; border-radius: 14px; font-weight: 600; font-size: 1.1rem;
    display: inline-flex; align-items: center; gap: 12px; transition: all 0.3s ease; backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* ========================
   6. STATS & SEO SECTIONS
   ======================== */
.stats-section { background: var(--bg-card); padding: 4rem 2rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; z-index: 10; }
.stats-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 3rem; text-align: center; }
.stat-num { display: block; font-size: 3rem; font-weight: 900; color: var(--primary); margin-bottom: 5px; }
.stat-text { color: var(--text-muted); font-weight: 600; font-size: 1.1rem; display: block; text-transform: uppercase; letter-spacing: 1px; }

.seo-section { padding: 5rem 1.5rem; background: var(--bg-card); text-align: center; }
.section-heading h2 { font-size: clamp(2rem, 5vw, 2.5rem); font-weight: 800; color: var(--text-main); margin-bottom: 15px; }
.section-heading p { font-size: 1.1rem; color: var(--text-muted); margin: 0 auto 3.5rem auto; max-width: 650px; }

/* ========================
   7. POPULAR TOOLS (FEATURED)
   ======================== */
.featured-section { background: var(--bg-card); padding: 5rem 1.5rem; text-align: center; }
.featured-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 25px; }
.featured-grid .tool-card { 
    background: var(--bg-card); padding: 2rem; border-radius: 20px; box-shadow: 0 4px 20px var(--shadow); 
    border: 1px solid var(--border); transition: all 0.3s ease; text-align: left; display: flex; flex-direction: column; 
}
.featured-grid .tool-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 15px 35px rgba(37,99,235,0.1); }
.tool-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.tool-icon { font-size: 2rem; color: var(--primary); }
.tool-tag { background: rgba(239, 68, 68, 0.1); color: #ef4444; padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; border: 1px solid rgba(239, 68, 68, 0.2); }
.featured-grid .tool-card h4 { font-size: 1.3rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.featured-grid .tool-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }
.tool-action-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--bg-input); color: var(--text-main); padding: 12px; border-radius: 12px; font-weight: 600; transition: 0.3s; }
.tool-action-link:hover { background: var(--primary); color: #fff; }

/* ========================
   8. CATEGORIES (BIG & PREMIUM DESIGN)
   ======================== */
.categories-section { background: var(--bg-secondary); padding: 5rem 1.5rem; text-align: center; }
.category-grid { 
    max-width: 1300px; margin: 0 auto; display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; 
}
.category-card { 
    background: var(--bg-card); padding: 40px 30px; border-radius: 24px; 
    box-shadow: 0 10px 30px var(--shadow); border: 1px solid var(--border); 
    display: flex; flex-direction: column; align-items: center; text-align: center; 
    position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 1;
}
.category-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(37,99,235,0.05), transparent);
    z-index: -1; opacity: 0; transition: 0.4s;
}
.category-card:hover::before { opacity: 1; }
.category-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(37,99,235,0.12); }
.cat-icon-wrapper { 
    width: 85px; height: 85px; background: rgba(37,99,235,0.1); border-radius: 22px; 
    display: flex; align-items: center; justify-content: center; font-size: 3rem; 
    margin-bottom: 25px; transition: 0.4s; border: 1px solid rgba(37,99,235,0.1);
}
.category-card:hover .cat-icon-wrapper { background: var(--primary); color: #fff; transform: scale(1.15) rotate(10deg); box-shadow: 0 15px 30px rgba(37,99,235,0.3); border-color: var(--primary); }
.cat-info { width: 100%; }
.cat-info h3 { font-size: 1.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; transition: 0.3s; }
.category-card:hover .cat-info h3 { color: var(--primary); }
.cat-info p { color: var(--text-muted); font-size: 1rem; margin-bottom: 20px; line-height: 1.6; }
.cat-badge { background: var(--bg-body); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; display: inline-block; border: 1px solid rgba(37,99,235,0.2); }

/* ========================
   9. SHARED UI & TOOL PAGES (View Category)
   ======================== */
.rt-toast-container { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 99999; pointer-events: none; }
.rt-toast { background: var(--bg-card); color: var(--text-main); padding: 12px 24px; border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); border: 1px solid var(--border); display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 600; opacity: 0; transform: translateY(20px); transition: all 0.3s; pointer-events: auto; min-width: 300px; justify-content: center; }
.rt-toast.show { opacity: 1; transform: translateY(0); }
.rt-toast.success { background: #ecfdf5; color: #047857; border-color: #10b981; }
.rt-toast.error { background: #fef2f2; color: #b91c1c; border-color: #ef4444; }

.premium-input, .premium-textarea { width: 100%; padding: 16px; border: 2px solid var(--border); background: var(--bg-input); border-radius: 14px; font-size: 1.1rem; color: var(--text-main); outline: none; box-sizing: border-box; transition: 0.3s; font-family: inherit; }
.premium-input:focus, .premium-textarea:focus { border-color: var(--primary); background: var(--bg-card); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.btn-premium { flex: 1; padding: 18px; background: var(--primary); color: white; border: none; border-radius: 14px; font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 8px 20px rgba(37,99,235,0.25); transition: 0.2s; }
.btn-premium:hover { transform: translateY(-2px); }
.btn-outline { flex: 1; padding: 18px; background: transparent; color: var(--text-muted); border: 2px solid var(--border); border-radius: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }
.btn-outline:hover { border-color: var(--text-muted); color: var(--text-main); background: var(--bg-input); }

/* View Category - Original Premium Tool Cards */
.tool-page-container { padding-top: clamp(80px, 10vh, 110px); padding-bottom: 60px; background: var(--bg-body); min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.category-header-box { text-align: center; margin-bottom: 50px; }
.cat-icon-large { width: 80px; height: 80px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary); box-shadow: 0 10px 30px var(--shadow); margin-bottom: 20px; }
.cat-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

.tools-grid-display { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; width: 100%; max-width: 1200px; padding: 0 20px;}
.premium-tool-card { 
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; 
    transition: all 0.3s; display: flex; flex-direction: column; height: 100%; 
    box-shadow: 0 4px 6px -1px var(--shadow); text-decoration: none; position: relative; overflow: hidden; 
}
.premium-tool-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); border-color: var(--primary); }
.tool-icon-box { 
    width: 55px; height: 55px; background: var(--bg-input); border-radius: 14px; 
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; 
    color: var(--primary); margin-bottom: 20px; transition: 0.3s; 
}
.premium-tool-card:hover .tool-icon-box { background: var(--primary); color: #fff; transform: rotate(5deg) scale(1.1); }
.premium-tool-card h4 { font-size: 1.15rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.premium-tool-card p { font-size: 0.9rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 20px; }
.tool-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid var(--border); }
.action-arrow { color: var(--text-muted); transition: 0.3s; }
.premium-tool-card:hover .action-arrow { color: var(--primary); transform: translateX(5px); }

/* Workspace & SEO Sections */
.premium-workspace { width: 95%; max-width: 800px; background: var(--bg-card); padding: 35px; border-radius: 24px; border: 1px solid var(--border); box-shadow: 0 15px 40px var(--shadow); position: relative; z-index: 10; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 50px; text-align: left; }
.feature-card { background: var(--bg-card); padding: 25px; border-radius: 16px; border: 1px solid var(--border); transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.f-icon { width: 50px; height: 50px; background: rgba(37,99,235,0.1); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 15px; }

.faq-container { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 15px; overflow: hidden; }
details summary { padding: 20px; cursor: pointer; font-weight: 600; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; list-style: none; }
details summary::after { content: '\f078'; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.8rem; color: var(--text-muted); transition: 0.3s; }
details[open] summary::after { transform: rotate(180deg); color: var(--primary); }
details p { padding: 0 20px 20px 20px; margin: 0; color: var(--text-muted); line-height: 1.6; }

/* Coming Soon & 404 */
.content-page-wrapper { padding: 100px 20px 60px 20px; background: var(--bg-body); min-height: 85vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.coming-soon-card { background: var(--bg-card); padding: 60px 40px; border-radius: 24px; text-align: center; max-width: 600px; width: 100%; box-shadow: 0 25px 50px -12px var(--shadow); border: 1px solid var(--border); }
.hero-logo-wrapper { animation: floatLogo 3s ease-in-out infinite; display: inline-flex; align-items: center; gap: 12px; justify-content: center; }
@keyframes floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ========================
   10. MOBILE RESPONSIVE FIXES (UNIFIED GLOBAL GAPS)
   ======================== */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 25px 15px; }
    .stat-num { font-size: 2.2rem; }
    .stat-text { font-size: 0.85rem; }

    /* 🔴 STEP 1: Wrappers se extra side-padding khatam kar di taake double gap na aaye */
    .categories-section, .featured-section { 
        padding-left: 0 !important; 
        padding-right: 0 !important; 
    }

    /* 🔴 STEP 2: YEH HAI WOH GLOBAL CODE! 
       Ab chahe homepage ho, category ho ya search page, sab cards ke dono side par exactly 20px ka VIP gap aayega */
    .category-grid, .featured-grid, .tools-grid-display { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        padding: 0 20px !important; /* Screen ke dono side par perfect gap */
        width: 100%;
        box-sizing: border-box;
    }
    
    .category-card, .featured-grid .tool-card, .premium-tool-card {
        width: 100%; 
        box-sizing: border-box;
        margin: 0;
    }

    /* Categories Specific Mobile Adjustments */
    .category-card { padding: 35px 20px; flex-direction: column; text-align: center; gap: 0; align-items: center; }
    .cat-icon-wrapper { width: 75px; height: 75px; font-size: 2.5rem; margin: 0 auto 20px auto; }
    .cat-info h3 { font-size: 1.35rem; margin-bottom: 10px; }
    .cat-info p { display: block; font-size: 0.95rem; margin-bottom: 18px; line-height: 1.5; }
    .cat-badge { font-size: 0.8rem; padding: 5px 14px; }
    
    .hero-title { font-size: 2.2rem; }
}

/* ========================
   11. DARK MODE FIXES
   ======================== */
[data-theme="dark"] .rt-toast { background: #0f172a; color: #ffffff !important; border-color: #334155; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
[data-theme="dark"] .search-input, [data-theme="dark"] .main-search-input { color: var(--text-main) !important; }

/* Icons Fix */
[data-theme="dark"] .f-icon i,
[data-theme="dark"] .tool-icon i,
[data-theme="dark"] .cat-icon-wrapper { color: var(--primary) !important; }
[data-theme="dark"] .f-icon { background: rgba(37,99,235,0.15); }
[data-theme="dark"] .coming-soon-card .btn-outline { background-color: transparent !important; border: 1px solid #334155 !important; color: #cbd5e1 !important; }

/* ========================
   12. FOOTER & ANIMATIONS
   ======================== */
.custom-merged-footer { font-family: 'Poppins', sans-serif; position: relative; overflow-x: hidden; }
.footer-body { background-color: var(--bg-secondary); padding-top: 25px; } 
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 20px; padding-bottom: 40px; }
.f-col { display: flex; flex-direction: column; }
.footer-logo { display: inline-block; text-decoration: none; margin-bottom: 15px; }
.logo-row { display: flex; align-items: center; gap: 8px; }
.f-logo-box { background-color: var(--primary); color: #fff; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.4rem; padding: 4px 10px; border-radius: 6px; }
.f-logo-text { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--text-main); }
.footer-desc { font-size: .9rem; color: var(--text-muted); margin: 0; line-height: 1.6; max-width: 260px; }
.footer-address { margin-top: 15px; margin-bottom: 15px; font-size: .85rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; font-weight: 500; background: var(--bg-card); padding: 8px 15px; border-radius: 50px; box-shadow: 0 2px 5px var(--shadow); width: fit-content; }
.footer-address i { color: #ef4444; }
.brand-socials { display: flex; gap: 12px; margin-top: 10px; }
.brand-socials a { width: 36px; height: 36px; background-color: var(--bg-card); color: var(--text-muted); display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 2px 5px var(--shadow); }
.brand-socials a:hover { background-color: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-bottom-bar { border-top: 1px solid var(--border); padding: 20px 20px; background-color: var(--bg-card); }
.bottom-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.copyright-txt { font-size: .85rem; color: var(--text-muted); margin: 0; font-weight: 500; }
.f-heading { font-size: 1.05rem; font-weight: 700; text-transform: uppercase; color: var(--text-main); margin-bottom: 20px; }
.f-links li { margin-bottom: 12px; }
.f-links a { font-size: .95rem; color: var(--text-muted); transition: .3s; display: inline-block; }
.f-links a:hover { color: var(--primary); transform: translateX(5px); }

@media (max-width:900px){
    .footer-grid { grid-template-columns: 1fr; gap: 50px; }
    .f-col, .logo-row, .footer-desc { align-items: center!important; text-align: center!important; margin: 0 auto!important; }
    .brand-socials { justify-content: center!important; }
}
@media (min-width:901px){ .bottom-content { flex-direction: row; justify-content: space-between; } }

@keyframes heartBeat { 0%, 28%, 70% { transform: scale(1); } 14%, 42% { transform: scale(1.3); } }
.heart-icon i { color: #ef4444; animation: heartBeat 1.5s infinite; display: inline-block; }
@keyframes spinEarth { 100% { transform: rotate(360deg); } }
.earth-icon i { color: var(--primary); animation: spinEarth 10s linear infinite; display: inline-block; }
@keyframes waveFlag { 0% { transform: rotate(-5deg) translateY(0); } 100% { transform: rotate(5deg) translateY(-2px); } }
.flag-icon img { animation: waveFlag 2s ease-in-out infinite alternate; transform-origin: bottom; }
.text-muted-link { color: var(--text-muted) !important; text-decoration: none; }
.flag-icon { margin: 0 5px; display: inline-flex; align-items: center; }
.nav-chevron { font-size: 0.8em; margin-left: 5px; }
/* ========================
   13. ABOUT US PAGE
   ======================== */
.about-page-container { padding-top: clamp(110px, 12vh, 150px); background: var(--bg-body); min-height: 100vh; padding-bottom: 80px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Hero Section */
.about-hero-section { text-align: center; margin-bottom: 5rem; padding: 0 20px; }

/* Mission Section & Grid */
.about-mission-section { max-width: 1200px; margin: 0 auto 6rem auto; padding: 0 20px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-heading { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; color: var(--text-main); margin-bottom: 20px; line-height: 1.2; }
.about-paragraph { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }

/* VIP Premium Graphic Box (CSS Art instead of Image) */
.about-graphic-box { 
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 30px; 
    height: 100%; min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; 
    box-shadow: 0 20px 50px var(--shadow); position: relative; overflow: hidden; z-index: 1; transition: 0.4s;
}
.about-graphic-box::before {
    content: ""; position: absolute; width: 200px; height: 200px; background: var(--primary); 
    filter: blur(80px); opacity: 0.15; z-index: -1; border-radius: 50%; top: -50px; right: -50px;
}
.about-graphic-box:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 25px 60px rgba(37,99,235,0.15); }

.graphic-circle { 
    width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 1.8rem; position: absolute; box-shadow: 0 10px 20px rgba(0,0,0,0.1); background: var(--bg-card); border: 1px solid var(--border);
}

/* FIX: Perfect Triangle Alignment */
.graphic-circle-1 { color: #f59e0b; top: 15%; left: 15%; animation: floatLogo 4s ease-in-out infinite; }
.graphic-circle-2 { color: #10b981; top: 15%; right: 15%; animation: floatLogo 5s ease-in-out infinite reverse; }

/* FIX: Margin-left use kiya taake animation transform ko kharab na kare */
.graphic-circle-3 { color: #ef4444; bottom: 15%; left: 50%; margin-left: -35px; animation: floatLogo 4.5s ease-in-out infinite; }

/* FIX: Margin-top remove kar diya taake text bilkul center mein rahay */
.graphic-text { font-size: 1.5rem; font-weight: 800; color: var(--text-main); z-index: 2; text-align: center; padding: 0 20px; }

/* Values Section */
.about-values-section { padding: 5rem 20px; background: var(--bg-secondary); margin-bottom: 5rem; }

/* Call To Action (CTA) Section */
.about-cta-section { max-width: 800px; margin: 0 auto; padding: 0 20px; text-align: center; }
.cta-spacing { margin-bottom: 40px; }

/* Outline Button Fixes */
.btn-outline-dark { 
    background: transparent; color: var(--text-main); border: 2px solid var(--border); 
    padding: 15px 33px; border-radius: 14px; font-weight: 700; font-size: 1.1rem; 
    display: inline-flex; align-items: center; gap: 12px; transition: all 0.3s ease; 
}
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-input); transform: translateY(-4px); }
[data-theme="dark"] .btn-outline-dark { color: #cbd5e1; border-color: #334155; }
[data-theme="dark"] .btn-outline-dark:hover { color: var(--primary); border-color: var(--primary); background: var(--bg-card); }

/* Mobile Responsive */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .about-graphic-box { min-height: 350px; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .hero-actions a { width: 100%; justify-content: center; }
}
/* ========================
   17. SEARCH RESULTS PAGE
   ======================== */

.search-page-wrapper { padding-top: 120px; padding-bottom: 80px; }
.search-max-width { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header Styling */
.search-header-area { margin-bottom: 50px; }
.search-header-area .main-title { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; color: var(--text-main); margin-bottom: 10px; }
.search-header-area .tagline { font-size: 1.1rem; color: var(--text-muted); }

/* No Results Premium Card */
.no-results-card {
    background: var(--bg-card);
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px var(--shadow);
    border: 1px dashed var(--border);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.no-results-card::before {
    content: ""; position: absolute; width: 250px; height: 250px; background: var(--primary); 
    filter: blur(90px); opacity: 0.1; z-index: -1; border-radius: 50%; top: -50px; left: -50px;
}

.no-results-icon-box {
    width: 90px;
    height: 90px;
    background: rgba(37,99,235,0.05);
    color: var(--border); /* Slightly faded color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px auto;
}

.no-results-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}
.no-results-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .no-results-card { padding: 40px 20px; }
}
/* ============================================================
   18. CONTACT US PAGE
   ============================================================ */
.contact-form-box { background: var(--bg-card); padding: 40px; border-radius: 24px; box-shadow: 0 15px 40px var(--shadow); border: 1px solid var(--border); }
.text-left-strict { text-align: left !important; }
.form-group-unified { margin-bottom: 22px; text-align: left; }
.form-group-unified label { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.unified-input { width: 100%; padding: 16px 20px; border: 2px solid var(--border); border-radius: 14px; background: var(--bg-input); color: var(--text-main); font-size: 1rem; font-family: inherit; outline: none; transition: 0.3s; box-sizing: border-box; }
.unified-input:focus { border-color: var(--primary); background: var(--bg-card); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.custom-select { appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 20px top 50%; background-size: 12px auto; cursor: pointer; }
.security-box-unified { background: rgba(16, 185, 129, 0.05); padding: 20px; border-radius: 14px; border: 1px dashed var(--success); }
.submit-btn-wrapper { margin-top: 10px; }
.submit-unique-btn { width: 100%; justify-content: center; padding: 18px; font-size: 1.1rem; border-radius: 14px; border: none; cursor: pointer; }

.contact-direct-info { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.c-info-row { display: flex; align-items: flex-start; gap: 15px; }
.c-info-row i { font-size: 1.5rem; color: var(--primary); margin-top: 5px; background: rgba(37,99,235,0.1); padding: 12px; border-radius: 12px; }
.c-info-row strong { display: block; color: var(--text-main); font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.c-info-row a, .c-info-row span { color: var(--text-muted); font-size: 1rem; text-decoration: none; transition: 0.3s; }
.c-info-row a:hover { color: var(--primary); }

.contact-social-row { display: flex; align-items: center; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.contact-social-row a { width: 42px; height: 42px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); transition: 0.3s; font-size: 1.1rem; }
.contact-social-row a:hover { background: var(--primary); color: white; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(37,99,235,0.2); }

/* ============================================================
   19. LEGAL PAGES (Privacy, Terms, Disclaimer)
   ============================================================ */
.legal-hero { padding-bottom: 3rem !important; margin-bottom: 3rem !important; }
.legal-content-section { max-width: 900px; margin: 0 auto; padding-bottom: 80px; }
.legal-card { background: var(--bg-card); padding: 50px; border-radius: 24px; box-shadow: 0 15px 40px var(--shadow); border: 1px solid var(--border); color: var(--text-muted); line-height: 1.8; font-size: 1.05rem; }
.legal-card h3 { color: var(--text-main); font-size: 1.4rem; font-weight: 800; margin: 35px 0 15px 0; border-bottom: 2px solid var(--bg-input); padding-bottom: 10px; }
.legal-card p { margin-bottom: 15px; }
.legal-card ul { margin-bottom: 20px; padding-left: 20px; list-style-type: disc; }
.legal-card ul li { margin-bottom: 10px; }
.legal-link { color: var(--primary); font-weight: 600; text-decoration: none; transition: 0.2s; }
.legal-link:hover { text-decoration: underline; color: var(--primary-dark); }
.legal-footer-actions { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); display: flex; justify-content: center; gap: 15px; }

/* ============================================================
   20. 404 ERROR PAGE
   ============================================================ */
.error-404-card { padding: 60px 40px; text-align: center; max-width: 600px; margin: 0 auto; background: var(--bg-card); border-radius: 24px; box-shadow: 0 20px 50px var(--shadow); border: 1px solid var(--border); }
.error-icon-box { width: 100px; height: 100px; background: rgba(239, 68, 68, 0.1); color: #ef4444; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3rem; margin: 0 auto 25px auto; }
.error-404-card h1 { font-size: 6rem; font-weight: 900; color: var(--text-main); line-height: 1; margin-bottom: 10px; text-shadow: 4px 4px 0px rgba(37,99,235,0.1); }

/* ============================================================
   21. GLOBAL TOOL COMPONENTS (Tabs, Dropzone, Toggles)
   ============================================================ */
/* ============================================================
   iPhone Style Pill Tabs (Upload vs Live Input)
   ============================================================ */

.rt-tab-switcher-wrapper { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 25px; 
}

/* Container (Like iOS Gray Background) */
.rt-pill-tabs { 
    display: inline-flex; 
    background: var(--bg-input); 
    border-radius: 50px; 
    padding: 5px; /* Gives that inner border space */
    position: relative;
}

/* Default Tab Button */
.rt-pill-btn { 
    background: transparent; 
    color: var(--text-muted); 
    border: none; 
    padding: 10px 24px; 
    border-radius: 50px; 
    font-size: 0.95rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    outline: none; 
}

.rt-pill-btn:hover { 
    color: var(--text-main); 
}

/* The iOS Magic (Active Tab pops out like a 3D switch) */
.rt-pill-btn.active { 
    background: var(--bg-card); /* Becomes white in light mode, dark in dark mode */
    color: var(--text-main); 
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); 
}

/* Tab Panels Animation */
.rt-tab-panel { 
    display: none; 
    animation: fadeIn 0.4s ease; 
}

.rt-tab-panel.active { 
    display: block; 
}

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


/* Global SEO Panel */
.rt-seo-panel { display: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; margin-top: 25px; overflow: hidden; animation: fadeIn 0.4s ease; }
.rt-seo-header { background: var(--bg-secondary); padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.rt-seo-header h3 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.rt-seo-score-circle { width: 55px; height: 55px; border-radius: 50%; background: var(--primary); color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.rt-seo-body { padding: 20px; }
.rt-seo-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.rt-seo-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.rt-seo-item i { font-size: 1.4rem; margin-top: 2px; }
.rt-seo-item.success i { color: var(--success); }
.rt-seo-item.error i { color: #dc2626; }
.rt-seo-item.warning i { color: #d97706; }
.rt-seo-text h4 { margin: 0 0 5px 0; font-size: 1.05rem; font-weight: 700; color: var(--text-main); }
.rt-seo-text p { margin: 0; font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }
/* ============================================================
   DRAG & DROP FILE UPLOAD (GLOBAL UI) - VIP PREMIUM DESIGN
   ============================================================ */
.rt-dropzone {
    background: rgba(37, 99, 235, 0.02); /* Soft blue tint */
    border: 2px dashed rgba(37, 99, 235, 0.3); /* Premium blue dashed border */
    border-radius: 24px; /* More modern rounded corners */
    padding: 50px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

/* Dark Mode Support for Dropzone */
[data-theme="dark"] .rt-dropzone {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.4);
}

/* Active State & Hover Animations */
.rt-dropzone:hover, .rt-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-2px);
}

/* Premium Icon inside a Glowing Circle */
.rt-dropzone-icon {
    font-size: 2.5rem;
    color: var(--primary);
    background: var(--bg-card); /* White in light mode, dark in dark mode */
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15); /* Soft glow */
    margin-bottom: 20px;
    transition: 0.3s ease;
}

.rt-dropzone:hover .rt-dropzone-icon {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.25);
}

.rt-dropzone h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.rt-dropzone p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Hidden File Input */
.rt-file-input {
    display: none;
}

/* Browse File Button */
.rt-browse-btn {
    background: var(--primary);
    color: #fff;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: 0.3s;
}

.rt-browse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    background: var(--primary-dark);
}

/* File Uploaded Success Info Box */
.rt-file-info {
    display: none; 
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 15px 20px;
    border-radius: 14px;
    margin-bottom: 25px;
    align-items: center;
    justify-content: space-between;
}

.rt-file-info.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.rt-file-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rt-file-icon {
    font-size: 2rem;
    color: #10b981;
}

.rt-file-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    display: block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rt-file-size {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Remove/Delete Uploaded File Button */
.rt-remove-file {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.rt-remove-file:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg); /* Cool delete animation */
}



/* Mobile Responsiveness for New Blocks */
@media (max-width: 768px) {
    .contact-form-box { padding: 25px 20px; }
    .legal-card { padding: 30px 20px; }
    .error-404-card h1 { font-size: 5rem; }
    .rt-pill-btn { padding: 8px 16px; font-size: 0.85rem; }
}
/* ============================================================
   22. QUICK START GUIDE & HOW TO USE (GLOBAL)
   ============================================================ */

/* --- Main Headings --- */
.tool-h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 30px;
    text-align: center;
}

/* --- Style 1: Modern Grid Guide (For Minifiers, Base64, JSON) --- */
.tool-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.tool-guide-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 25px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-guide-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15);
}

.step-badge {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.tool-guide-step h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.tool-guide-step p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- Style 2: List Box Guide (For QR Tools) --- */
.pro-guide {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.guide-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px var(--shadow);
}

.guide-box h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-main);
    border-left: 5px solid var(--primary);
    padding-left: 15px;
}

.step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step:last-child {
    margin-bottom: 0;
}

.step-i {
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.step-c h4 {
    margin: 0 0 8px 0;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
}

.step-c p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
/* ============================================================
   GLOBAL TOOL COMPONENTS (Shared Grids, Panels & Textareas)
   ============================================================ */
/* For Minifiers & Converters */
.b64-workspace, .cm-workspace, .hm-workspace, .jm-workspace, .jf-workspace { max-width: 1200px; margin: 0 auto 50px auto; padding: 25px; }
.b64-editor-grid, .cm-editor-grid, .hm-editor-grid, .jm-editor-grid, .jf-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px; align-items: stretch; }
.b64-code-wrapper, .cm-code-wrapper, .hm-code-wrapper, .jm-code-wrapper, .jf-code-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.b64-panel-header, .cm-panel-header, .hm-panel-header, .jm-panel-header, .jf-panel-header { padding: 20px 20px 10px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.b64-panel-body, .cm-panel-body, .hm-panel-body, .jm-panel-body, .jf-panel-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.b64-textarea, .cm-textarea, .hm-textarea, .jm-textarea, .jf-textarea { flex: 1; min-height: 350px; border: none; padding: 0; font-family: 'Consolas', monospace; font-size: 14.5px; resize: none; background: transparent; color: var(--text-main); outline: none; line-height: 1.6; }
.b64-editor-label, .cm-editor-label, .hm-editor-label, .jm-editor-label, .jf-editor-label { font-size: 0.9rem; font-weight: 800; color: var(--text-dark); text-transform: uppercase; }
.b64-mini-btn, .cm-mini-btn, .hm-mini-btn, .jm-mini-btn, .jf-mini-btn { background: none; border: none; color: var(--text-muted); font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 6px; outline: none; }
.b64-mini-btn:hover, .cm-mini-btn:hover, .hm-mini-btn:hover, .jm-mini-btn:hover, .jf-mini-btn:hover { color: var(--text-dark); }
.b64-action-bar, .cm-action-bar, .hm-action-bar, .jm-action-bar, .jf-action-bar { padding: 20px; border-top: 1px solid var(--border); background: var(--bg-secondary); display: flex; flex-direction: column; gap: 15px; }
.b64-action-btn, .cm-minify-btn, .hm-minify-btn, .jm-minify-btn, .jf-action-btn { width: 100%; justify-content: center; font-size: 1.1rem; padding: 15px; border-radius: 12px; }
.cm-stats-badge, .hm-stats-badge, .jm-stats-badge, .jf-stats-badge { font-size: 0.75rem; padding: 4px 10px; border-radius: 6px; font-weight: 700; background: var(--border); color: var(--text-muted); transition: 0.3s; }

/* ============================================================
   24. UNIFIED TEXT TOOLS (Case, Lorem, Duplicates, Reverser, Small, Slug, Upside, Word Counter)
   ============================================================ */
/* Shared Workspaces */
.li-workspace, .rd-workspace, .st-workspace, .tr-workspace, .cc-workspace, .ts-workspace, .ud-workspace { max-width: 900px; margin: 0 auto 50px auto; }

/* Shared Textareas */
.cc-textarea, .li-textarea, .rd-textarea, .tr-textarea, .ts-textarea, .ud-textarea { resize: vertical; margin-bottom: 25px; cursor: text; }
.li-textarea, .rd-textarea { height: 260px; }
.cc-textarea { height: 250px; }
.tr-textarea { height: 160px; }
.st-textarea { height: 120px; margin-bottom: 0; resize: none; }
.ts-textarea { height: 130px; margin-bottom: 0; }
.ud-textarea { height: 140px; margin-bottom: 0; }

/* Shared Grids */
.cc-options-grid, .li-para-grid, .wc-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.cc-options-grid { margin-bottom: 35px; }
.rd-stats-grid, .rd-process-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; }
.tr-options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 25px; }

/* Shared Button & Stat Box Styles */
.cc-btn, .li-btn, .tr-btn, .rd-stat-box, .wc-stat-box { padding: 15px 10px; border-radius: 12px; text-align: center; border: 1px solid transparent; transition: all 0.2s ease; background: transparent; font-family: inherit; outline: none; cursor: pointer; }
.rd-stat-box, .wc-stat-box { cursor: default; }
.cc-btn:hover, .li-btn:hover, .tr-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px var(--shadow); }
.tr-btn { border-color: var(--border); background: var(--bg-card); }
.tr-btn:hover { border-color: var(--primary); }
.cc-btn:active, .li-btn:active, .tr-btn:active { transform: scale(0.95); }

/* Color Themes for Text Tool Buttons & Boxes */
.btn-upper, .opt-blue, .box-original, .box-words { background: rgba(37, 99, 235, 0.1); border-color: rgba(37, 99, 235, 0.2); }
.btn-upper .cc-title, .opt-blue .num, .box-original .stat-val, .box-words .stat-val, .opt-icon { color: var(--primary); }

.btn-lower, .opt-green, .box-unique, .box-chars { background: rgba(22, 163, 74, 0.1); border-color: rgba(22, 163, 74, 0.2); }
.btn-lower .cc-title, .opt-green .num, .box-unique .stat-val, .box-chars .stat-val { color: #16a34a; }

.btn-sentence, .opt-orange, .box-sentences { background: rgba(234, 88, 12, 0.1); border-color: rgba(234, 88, 12, 0.2); }
.btn-sentence .cc-title, .opt-orange .num, .box-sentences .stat-val { color: #ea580c; }

.btn-capitalized, .opt-purple, .box-paras { background: rgba(124, 58, 237, 0.1); border-color: rgba(124, 58, 237, 0.2); }
.btn-capitalized .cc-title, .opt-purple .num, .box-paras .stat-val { color: #7c3aed; }

/* Typography inside Text Tools */
.cc-title, .li-btn .num, .stat-val { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1; margin-bottom: 5px; }
.cc-title { font-size: 1.6rem; }
.opt-icon { font-size: 1.4rem; margin-bottom: 8px; }
.cc-lbl, .li-btn .lbl, .stat-lbl, .opt-lbl { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
@media (max-width:768px){.cc-options-grid,.li-para-grid{grid-template-columns:repeat(2,1fr)}.wc-stats-grid,.rd-stats-grid{grid-template-columns:repeat(2,1fr);gap:10px}.wc-stat-box,.rd-stat-box{padding:12px 5px}.stat-val{font-size:1.3rem}.stat-lbl{font-size:0.65rem}.rd-process-actions,.tr-options-grid{grid-template-columns:1fr}}
/* ============================================================
   MOBILE RESPONSIVE FIX FOR MINIFIERS & FORMATTERS
   ============================================================ */
@media (max-width: 900px) {
    /* Yeh line 2 boxes ko mobile par upar-neechay karegi */
    .b64-editor-grid, .cm-editor-grid, .hm-editor-grid, .jm-editor-grid, .jf-editor-grid { 
        grid-template-columns: 1fr; 
    }
    
    /* Textareas ki height mobile ke hisaab se theek karegi */
    .b64-textarea, .cm-textarea, .hm-textarea, .jm-textarea, .jf-textarea { 
        min-height: 250px; 
    }
    
    /* Buttons ki padding mobile par set karegi */
    .b64-action-bar, .cm-action-bar, .hm-action-bar, .jm-action-bar, .jf-action-bar { 
        padding: 15px; 
    }
}
/* ============================================================
   PREMIUM TOGGLE SWITCHES (GLOBAL UI)
   ============================================================ */
.rt-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.rt-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.rt-toggle input {
    display: none; /* Hide default ugly checkbox */
}

/* The Switch Track */
.rt-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: var(--border);
    border-radius: 34px;
    transition: 0.3s;
}

/* The Switch Circle */
.rt-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* When Checked */
.rt-toggle input:checked + .rt-slider {
    background-color: var(--primary);
}

.rt-toggle input:checked + .rt-slider:before {
    transform: translateX(20px);
}

.rt-toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    user-select: none;
}

