/* ========================================
   ToolDuniya - Modern Teal Design System
   ======================================== */

:root {
    /* Primary - Teal/Emerald */
    --accent: #10B981;
    --accent-dark: #059669;
    --accent-light: rgba(16, 185, 129, 0.12);
    --accent-glow: rgba(16, 185, 129, 0.25);

    /* Secondary - Lime */
    --secondary: #84CC16;
    --secondary-dark: #65A30D;

    /* Neutrals - Dark Theme */
    --bg-main: #09090B;
    --bg-card: #111113;
    --bg-elevated: #18181B;
    --bg-hover: #1F1F23;

    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;

    --border: #27272A;
    --border-light: #3F3F46;

    /* Category Colors */
    --prank: #F472B6;
    --download: #60A5FA;
    --utility: #10B981;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #10B981 0%, #84CC16 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 60px rgba(16, 185, 129, 0.12);

    /* Spacing */
    --nav-height: 80px;
    --container: 1200px;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --bottom-nav-height: 0px; /* unused, kept for compat */

    /* Typography */
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
    --bg-main: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-elevated: #F4F4F5;
    --bg-hover: #E4E4E7;

    --text-primary: #18181B;
    --text-secondary: #52525B;
    --text-muted: #A1A1AA;

    --border: #E4E4E7;
    --border-light: #D4D4D8;

    --accent-light: rgba(16, 185, 129, 0.1);
    --accent-glow: rgba(16, 185, 129, 0.15);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 60px rgba(16, 185, 129, 0.08);
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
    font-family: var(--font);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, textarea { font-family: inherit; border: none; outline: none; }

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

button:focus, a:focus, input:focus, textarea:focus { outline: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ========================================
   Background
   ======================================== */

.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(132, 204, 22, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

[data-theme="light"] .bg-pattern {
    background:
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(132, 204, 22, 0.06) 0%, transparent 40%);
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="light"] .bg-grid {
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.8) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.navbar.scrolled::before { opacity: 1; }

.navbar.scrolled {
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .navbar::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.45rem;
    font-weight: 700;
    transition: var(--transition);
}

.logo:hover { transform: scale(1.02); }

.logo-icon {
    position: relative;
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: 14px;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-accent);
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: var(--transition);
}

.logo:hover .logo-icon { transform: rotate(-8deg) scale(1.05); }
.logo:hover .logo-icon::after { opacity: 0.6; }

.logo-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.logo-text { display: flex; align-items: center; }

.logo-text span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Links Container */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .nav-links { background: rgba(0, 0, 0, 0.02); }

.nav-link {
    position: relative;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-radius: 50px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    transform: scale(0.9);
}

.nav-link span { position: relative; z-index: 1; transition: var(--transition); }
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover span { transform: translateY(-1px); }
.nav-link.active { color: #042f1a; }
.nav-link.active::before { opacity: 1; transform: scale(1); }
.nav-link.active span { font-weight: 600; }

/* Nav Actions */
.nav-actions { display: flex; gap: 12px; align-items: center; }

.theme-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.theme-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
}

.theme-btn:hover { border-color: transparent; transform: rotate(15deg); }
.theme-btn:hover::before { opacity: 1; }

.theme-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.theme-btn:hover svg { stroke: white; }
.theme-btn .sun { display: none; }
.theme-btn .moon { display: block; }
[data-theme="light"] .theme-btn .sun { display: block; }
[data-theme="light"] .theme-btn .moon { display: none; }

/* Mobile Button */
.mobile-btn {
    display: none;
    width: 48px;
    height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mobile-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
}

.mobile-btn:hover { border-color: transparent; }
.mobile-btn:hover::before { opacity: 1; }

.mobile-btn span {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.mobile-btn:hover span { background: white; }

.mobile-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

[data-theme="light"] .mobile-menu {
    background: rgba(255, 255, 255, 0.6);
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    padding: 16px;
    animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.mobile-menu a svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    flex-shrink: 0;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(8px);
}

.mobile-menu a:active {
    transform: translateX(8px) scale(0.98);
}

/* Bottom nav removed */

/* ========================================
   Scroll to Top
   ======================================== */

.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px var(--accent-glow);
}

.scroll-top:active { transform: scale(0.92); }

.scroll-top svg {
    width: 22px;
    height: 22px;
    stroke: #052E16;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--gradient-accent);
    color: #052E16;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.btn svg { width: 18px; height: 18px; }

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    width: fit-content;
}

.hero-badge svg { width: 16px; height: 16px; }

.hero-title {
    font-size: clamp(2.75rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 700px;
}

.hero-title .gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    width: fit-content;
}

.stat { text-align: left; }

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

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

/* Hero Visual */
.hero-visual {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.hero-orb-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    top: 30%;
    left: 60%;
    opacity: 0.2;
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* ========================================
   Tools Section
   ======================================== */

.tools-section {
    padding: 100px 0;
    position: relative;
}

.tools-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-title .gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

/* Categories */
.categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: var(--transition);
    white-space: nowrap;
}

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

.category-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #052E16;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.tool-card:hover::before { opacity: 1; }

.tool-card:active { transform: translateY(-2px) scale(0.99); }

.tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tool-icon svg { width: 26px; height: 26px; }

.tool-icon.prank { background: rgba(244, 114, 182, 0.12); }
.tool-icon.prank svg { stroke: var(--prank); }

.tool-icon.download { background: rgba(96, 165, 250, 0.12); }
.tool-icon.download svg { stroke: var(--download); }

.tool-icon.utility { background: var(--accent-light); }
.tool-icon.utility svg { stroke: var(--utility); }

.tool-name { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }

.tool-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.tool-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 100px;
    background: var(--bg-hover);
    color: var(--text-muted);
}

.tag.hot { background: rgba(244, 114, 182, 0.12); color: var(--prank); }
.tag.new { background: var(--accent-light); color: var(--accent); }

.tool-card.coming-soon {
    background: var(--bg-elevated);
    border-style: dashed;
    cursor: default;
}

.tool-card.coming-soon:hover { transform: none; box-shadow: none; }
.tool-card.coming-soon::before { display: none; }

/* ========================================
   Features Section
   ======================================== */

.features-section {
    padding: 100px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg { width: 26px; height: 26px; stroke: #052E16; }
.feature h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ========================================
   About Section
   ======================================== */

.about-section { padding: 100px 0; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.about-content h2 .gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats { display: flex; gap: 40px; margin-top: 32px; }
.about-stat-value { font-size: 1.75rem; font-weight: 700; color: var(--accent); }
.about-stat-label { font-size: 0.9rem; color: var(--text-muted); }

.about-card {
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.about-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: var(--accent-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card-icon svg { width: 36px; height: 36px; stroke: var(--accent); }
.about-card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 12px; }
.about-card p { color: var(--text-secondary); font-size: 1rem; }

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    padding: 100px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.contact-form {
    max-width: 480px;
    margin: 0 auto;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.form-group { margin-bottom: 16px; }

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 16px; /* Prevents iOS zoom */
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input::placeholder { color: var(--text-muted); }

textarea.form-input { resize: vertical; min-height: 120px; }

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   Responsive — Tablet
   ======================================== */

@media (max-width: 1024px) {
    .hero-visual { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ========================================
   Responsive — Mobile
   ======================================== */

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links { display: none; }
    .mobile-btn { display: flex; }
    .nav-inner { padding: 0 16px; }

    /* Smaller logo on mobile */
    .logo { gap: 10px; font-size: 1.25rem; }
    .logo-icon { width: 40px; height: 40px; border-radius: 11px; }
    .logo-icon svg { width: 20px; height: 20px; }

    /* Smaller theme/menu buttons */
    .theme-btn { width: 40px; height: 40px; }
    .theme-btn svg { width: 18px; height: 18px; }
    .mobile-btn { width: 40px; height: 40px; border-radius: 11px; gap: 5px; }
    .mobile-btn span { width: 16px; }

    /* Hero mobile */
    .hero {
        min-height: 100dvh;
        padding: calc(var(--nav-height) + 24px) 20px 40px;
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .hero-badge svg { width: 14px; height: 14px; }

    .hero-title {
        font-size: clamp(2.25rem, 10vw, 3rem);
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 0;
        width: 100%;
        justify-content: space-between;
        padding-top: 28px;
    }

    .stat { text-align: center; flex: 1; }
    .stat-value { font-size: 1.75rem; }
    .stat-label { font-size: 0.8rem; }

    /* Tools mobile */
    .tools-section { padding: 60px 0 80px; }

    .tools-header { margin-bottom: 32px; }
    .section-desc { font-size: 0.95rem; }

    .categories {
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 24px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .categories::-webkit-scrollbar { display: none; }

    .category-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tool-card {
        padding: 22px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0;
    }

    .tool-card .tool-icon {
        margin-bottom: 0;
        margin-right: 16px;
        width: 46px;
        height: 46px;
    }

    .tool-card .tool-icon svg { width: 22px; height: 22px; }

    .tool-card .tool-name {
        font-size: 1.05rem;
        margin-bottom: 4px;
        flex: 1;
        padding-top: 2px;
    }

    .tool-card .tool-desc {
        width: 100%;
        font-size: 0.88rem;
        margin-bottom: 12px;
        margin-top: 12px;
        line-height: 1.5;
    }

    .tool-card .tool-tags { width: 100%; }

    .tool-card:hover { transform: translateY(-2px); }

    /* Features mobile */
    .features-section { padding: 60px 0; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

    .feature {
        padding: 22px 18px;
    }

    .feature-icon { width: 44px; height: 44px; margin-bottom: 14px; }
    .feature-icon svg { width: 22px; height: 22px; }
    .feature h3 { font-size: 0.95rem; margin-bottom: 6px; }
    .feature p { font-size: 0.82rem; }

    /* About mobile */
    .about-section { padding: 60px 0; }

    .about-stats {
        flex-direction: row;
        gap: 0;
        justify-content: space-between;
    }

    .about-stats > div { text-align: center; flex: 1; }
    .about-stat-value { font-size: 1.5rem; }

    .about-card { padding: 32px 24px; }
    .about-card-icon { width: 56px; height: 56px; }
    .about-card-icon svg { width: 28px; height: 28px; }

    /* Contact mobile */
    .contact-section { padding: 60px 0 100px; }
    .contact-form { padding: 24px; }

    /* Footer mobile */
    .footer { padding: 40px 0 30px; }
    .footer-links { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .footer-col h4 { font-size: 0.75rem; margin-bottom: 12px; }
    .footer-col a { font-size: 0.85rem; padding: 4px 0; }

    /* Scroll to top */
    .scroll-top {
        bottom: 20px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .scroll-top svg { width: 20px; height: 20px; }

    /* Reveal animations — less movement on mobile */
    .reveal { transform: translateY(20px); }
}

/* ========================================
   Responsive — Small Mobile
   ======================================== */

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .hero { padding-left: 16px; padding-right: 16px; }
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { font-size: 0.95rem; }

    .stat-value { font-size: 1.5rem; }

    .features-grid { grid-template-columns: 1fr; gap: 12px; }

    .feature {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 20px;
    }

    .feature-icon {
        margin: 0;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
    }

    .feature h3 { margin-bottom: 2px; }

    .footer-links { grid-template-columns: 1fr; gap: 24px; }
}

/* ========================================
   Responsive — Very Small
   ======================================== */

@media (max-width: 360px) {
    .hero-title { font-size: 1.85rem; }
    .hero-badge { font-size: 0.7rem; }
    .stat-value { font-size: 1.35rem; }
    .stat-label { font-size: 0.75rem; }
    .bottom-nav-item { padding: 8px 10px; }
    .bottom-nav-item svg { width: 20px; height: 20px; }
    .bottom-nav-item span { font-size: 0.6rem; }
}

/* ========================================
   Landscape phone
   ======================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 20px);
        padding-bottom: 40px;
    }

    .hero-stats { flex-direction: row; gap: 32px; }
    .stat { text-align: left; }
}

/* ========================================
   Utilities
   ======================================== */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

::selection { background: var(--accent-light); color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:focus { outline: none; }

/* Hide scrollbar on mobile for horizontal scrolls */
@media (max-width: 768px) {
    ::-webkit-scrollbar { width: 0; height: 0; }
}

/* ========================================
   Tool Pages — Shared Styles
   ======================================== */

.tool-page {
    padding: calc(var(--nav-height) + 40px) 0 80px;
    max-width: var(--container);
    margin: 0 auto;
}

.tool-page .container { max-width: 800px; }

/* Tool Page Header */
.tool-page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 0 24px;
}

.tool-page-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-page-icon svg { width: 30px; height: 30px; }

.tool-page-icon.prank { background: rgba(244, 114, 182, 0.12); }
.tool-page-icon.prank svg { stroke: var(--prank); }

.tool-page-icon.download { background: rgba(96, 165, 250, 0.12); }
.tool-page-icon.download svg { stroke: var(--download); }

.tool-page-icon.utility { background: var(--accent-light); }
.tool-page-icon.utility svg { stroke: var(--accent); }

.tool-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tool-page-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

.tool-page-meta {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* Tool Interface Card */
.tool-interface {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 0 24px 32px;
}

.tool-input-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.input-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    overflow: visible;
    position: relative;
}

.phone-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.country-code-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 12px 13px 16px;
    background: none;
    border: none;
    border-right: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
}

.country-code-btn:hover {
    background: var(--bg-hover);
}

.country-code-btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.country-code-btn.open svg {
    transform: rotate(180deg);
}

.country-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    overflow: hidden;
    animation: dropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.country-dropdown.open {
    display: block;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font);
}

.country-option:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.country-option.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.country-option .code {
    font-weight: 600;
    min-width: 36px;
}

.phone-input {
    flex: 1;
    padding: 13px 16px 13px 12px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font);
    min-width: 0;
}

.phone-input:focus {
    outline: none;
}

/* URL Input Wrapper */
.url-input-wrapper { display: flex; gap: 12px; }

.url-input,
.message-input,
.qr-input,
.option-select {
    padding: 13px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font);
    transition: var(--transition);
}

.url-input { flex: 1; }
.message-input { width: 100%; resize: vertical; }
.qr-input { width: 100%; }
.option-select { width: 100%; cursor: pointer; }

.url-input:focus,
.message-input:focus,
.qr-input:focus,
.option-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.btn-fetch { padding: 13px 20px; white-space: nowrap; }

/* Options */
.options-section { margin: 24px 0; }
.options-section h3,
.message-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.message-section { margin: 20px 0; }

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.option-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.range-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-wrapper input[type="range"] {
    flex: 1;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.range-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px var(--accent-glow);
}

.range-value {
    padding: 4px 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 40px;
    text-align: center;
    color: var(--accent);
}

/* Tool Buttons */
.btn-tool { width: 100%; margin-top: 20px; padding: 16px; font-size: 1rem; }

.btn-stop {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    background: #DC2626;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-stop:hover { background: #B91C1C; }

/* Progress */
.progress-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.progress-section h3 { font-size: 1rem; margin-bottom: 12px; font-weight: 600; }

.progress-bar {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

/* Log */
.call-log,
.sms-log {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.log-item {
    padding: 8px 0;
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.log-item:last-child { border-bottom: none; }
.log-time { color: var(--text-muted); min-width: 70px; font-family: var(--font-mono); font-size: 0.8rem; }
.log-number { color: var(--accent); min-width: 90px; font-family: var(--font-mono); font-size: 0.8rem; }
.log-message { color: var(--text-secondary); flex: 1; }
.log-item.success .log-message { color: var(--accent); font-weight: 500; }
.log-item.warning .log-message { color: #F59E0B; }

/* Warning Box */
.warning-box {
    display: flex;
    gap: 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 24px;
}

.warning-box svg { width: 24px; height: 24px; stroke: #F59E0B; flex-shrink: 0; }
.warning-content h4 { font-size: 0.95rem; margin-bottom: 4px; color: #F59E0B; }
.warning-content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 20px;
}

.error-message svg { width: 24px; height: 24px; stroke: #DC2626; flex-shrink: 0; }
.error-text strong { color: #DC2626; display: block; margin-bottom: 2px; font-size: 0.9rem; }
.error-text p { font-size: 0.85rem; color: var(--text-secondary); }

/* Instructions */
.instructions-box {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.instructions-box h3 { font-size: 1rem; margin-bottom: 16px; font-weight: 600; }

.instructions-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--gradient-accent);
    color: #052E16;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Thumbnail Section */
.thumbnail-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.thumbnail-section h3 { font-size: 1rem; margin-bottom: 16px; font-weight: 600; }

.thumbnail-preview {
    max-width: 100%;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.thumbnail-preview img { width: 100%; height: auto; display: block; }

.download-options h3 { font-size: 1rem; margin-bottom: 16px; font-weight: 600; }

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.download-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    transition: var(--transition);
}

.download-card:hover { border-color: var(--accent); }

.download-preview { margin-bottom: 10px; border-radius: 6px; overflow: hidden; }
.download-preview img { width: 100%; height: auto; display: block; }
.download-info { margin-bottom: 10px; }
.download-quality { display: block; font-weight: 600; font-size: 0.85rem; }
.download-size { font-size: 0.75rem; color: var(--text-muted); }
.btn-download { width: 100%; justify-content: center; padding: 10px; font-size: 0.85rem; }

.video-info {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.video-id { color: var(--text-secondary); }
.video-id strong { color: var(--accent); font-family: var(--font-mono); }

/* QR Generator */
.qr-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.qr-type-btn {
    padding: 10px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.qr-type-btn:hover { border-color: var(--border-light); color: var(--text-primary); }

.qr-type-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #052E16;
}

.qr-input-fields .input-group { margin-bottom: 16px; }
.qr-input-fields label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }

.wifi-fields,
.email-fields { display: flex; flex-direction: column; gap: 10px; }

.qr-options { margin: 20px 0; }
.qr-options h3 { font-size: 1rem; margin-bottom: 14px; font-weight: 600; }

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
}

.color-picker {
    width: 100%;
    height: 44px;
    padding: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.qr-output {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.qr-output h3 { font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.qr-preview { display: flex; justify-content: center; margin-bottom: 20px; }

.qr-code-wrapper {
    background: white;
    padding: 16px;
    border-radius: var(--radius-sm);
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.qr-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Password Generator */
.password-output { margin-bottom: 24px; }
.password-display { display: flex; gap: 10px; }

.password-field {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.password-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

.btn-copy-inline {
    padding: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy-inline:hover { background: var(--accent); border-color: var(--accent); color: white; }
.btn-copy-inline svg { width: 20px; height: 20px; }

.password-strength { display: flex; align-items: center; gap: 12px; margin-top: 12px; }

.strength-bar { flex: 1; height: 6px; background: var(--bg-elevated); border-radius: 3px; overflow: hidden; }
.strength-fill { height: 100%; width: 0%; transition: all 0.3s ease; border-radius: 3px; }
.strength-text { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); min-width: 60px; }

.password-options { margin-bottom: 20px; }

.option-row { margin-bottom: 16px; }
.option-row > label { display: block; font-weight: 600; margin-bottom: 10px; font-size: 0.9rem; }

.length-control { display: flex; align-items: center; gap: 12px; }

.length-control input[type="range"] {
    flex: 1;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
}

.length-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.length-value {
    padding: 6px 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-weight: 600;
    min-width: 44px;
    text-align: center;
    color: var(--accent);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-item input { width: 18px; height: 18px; accent-color: var(--accent); }

.generate-buttons { display: flex; gap: 12px; }
.generate-buttons .btn { flex: 1; }

.history-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.history-section h3 { font-size: 1rem; margin-bottom: 14px; font-weight: 600; }
.history-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.history-password { flex: 1; font-family: var(--font-mono); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; }
.history-time { font-size: 0.75rem; color: var(--text-muted); }

.btn-copy-small { padding: 6px; color: var(--text-muted); transition: var(--transition); }
.btn-copy-small:hover { color: var(--accent); }
.btn-copy-small svg { width: 16px; height: 16px; }

.btn-clear-history { width: 100%; }

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    background: var(--accent);
    color: #052E16;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Image Converter */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.upload-icon { width: 48px; height: 48px; stroke: var(--text-muted); margin: 0 auto 16px; display: block; }
.upload-text { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.upload-hint { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.original-preview,
.converted-preview { text-align: center; }

.original-preview h4,
.converted-preview h4 { font-size: 0.9rem; margin-bottom: 12px; color: var(--text-secondary); font-weight: 500; }

.original-preview img,
.converted-preview img {
    max-width: 100%;
    max-height: 250px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    padding: 8px;
}

.conversion-options { margin-bottom: 20px; }
.conversion-options h3 { font-size: 1rem; margin-bottom: 16px; font-weight: 600; }

.options-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.resize-inputs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.resize-inputs input {
    width: 80px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 16px;
}

.resize-inputs input:focus { border-color: var(--accent); }

.checkbox-small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-small input { width: 16px; height: 16px; accent-color: var(--accent); }

.btn-convert { width: 100%; margin-top: 16px; }

.download-section {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.download-section h3 { font-size: 1rem; margin-bottom: 12px; font-weight: 600; }

.file-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Related Tools */
.related-tools { margin: 0 24px 32px; }
.related-tools h2 { font-size: 1.1rem; margin-bottom: 16px; font-weight: 600; }
.related-grid { display: flex; gap: 12px; flex-wrap: wrap; }

.related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.related-card:active { transform: scale(0.98); }

.related-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-icon svg { width: 18px; height: 18px; }

.related-icon.prank { background: rgba(244, 114, 182, 0.12); }
.related-icon.prank svg { stroke: var(--prank); }

.related-icon.download { background: rgba(96, 165, 250, 0.12); }
.related-icon.download svg { stroke: var(--download); }

.related-icon.utility { background: var(--accent-light); }
.related-icon.utility svg { stroke: var(--accent); }

/* ========================================
   Tool Pages — Mobile Responsive
   ======================================== */

@media (max-width: 768px) {
    .tool-page {
        padding: calc(var(--nav-height) + 20px) 0 40px;
    }

    .tool-page-header {
        padding: 0 16px;
        gap: 14px;
        margin-bottom: 24px;
    }

    .tool-page-icon { width: 48px; height: 48px; border-radius: 13px; }
    .tool-page-icon svg { width: 24px; height: 24px; }
    .tool-page-title { font-size: 1.35rem; }
    .tool-page-desc { font-size: 0.88rem; }

    .tool-interface {
        margin: 0 16px 24px;
        padding: 22px;
        border-radius: var(--radius);
    }

    .tool-input-section h2 { font-size: 1.05rem; }

    .url-input-wrapper { flex-direction: column; }
    .btn-fetch { width: 100%; justify-content: center; }

    .option-grid { grid-template-columns: 1fr; gap: 16px; }

    .download-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    .qr-type-selector { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .qr-type-btn { flex-shrink: 0; }
    .qr-actions { flex-direction: column; }
    .qr-actions .btn { width: 100%; }

    .password-display { flex-direction: column; }
    .btn-copy-inline { width: 100%; }
    .generate-buttons { flex-direction: column; }
    .checkbox-grid { grid-template-columns: 1fr; }

    .preview-container { grid-template-columns: 1fr; }
    .upload-area { padding: 32px 16px; }
    .options-row { grid-template-columns: 1fr; }

    .related-tools { margin: 0 16px 24px; }
    .related-grid { flex-direction: column; }
    .related-card { width: 100%; }

    .instructions-steps { grid-template-columns: 1fr 1fr; }

    .warning-box { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .tool-page-header { flex-direction: column; text-align: center; align-items: center; }
    .tool-page-meta { justify-content: center; }
    .instructions-steps { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr; }
}

/* ========================================
   How To Use Section
   ======================================== */

.how-to-section {
    margin: 0 24px 32px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.how-to-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.how-to-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.how-to-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    color: #052E16;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========================================
   Features Highlights (Tool Pages)
   ======================================== */

.tool-features {
    margin: 0 24px 32px;
}

.tool-features h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.tool-feature-card {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: var(--transition);
}

.tool-feature-card:hover {
    border-color: var(--border-light);
}

.tool-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.tool-feature-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tool-feature-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-section {
    margin: 0 24px 32px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.faq-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   New sections — Mobile
   ======================================== */

@media (max-width: 768px) {
    .how-to-section,
    .faq-section {
        margin: 0 16px 24px;
        padding: 22px;
    }

    .how-to-section h2,
    .faq-section h2 {
        font-size: 1.15rem;
    }

    .how-to-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tool-features {
        margin: 0 16px 24px;
    }

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

    .faq-question {
        font-size: 0.9rem;
        padding: 14px 0;
    }

    .faq-answer p {
        font-size: 0.85rem;
    }
}

/* ========================================
   SEO Content Sections
   ======================================== */

.seo-content {
    margin: 0 24px 32px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.seo-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.seo-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 20px 0 8px;
}

.seo-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.seo-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.seo-content ul li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 4px;
}

.seo-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .seo-content {
        margin: 0 16px 24px;
        padding: 22px;
    }
    .seo-content h2 { font-size: 1.15rem; }
    .seo-content p { font-size: 0.88rem; }
}

/* ========================================
   Legal / Info Pages
   ======================================== */

.legal-page {
    padding: calc(var(--nav-height) + 48px) 24px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.legal-page .page-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 32px 0 12px;
}

.legal-page h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 20px 0 8px;
}

.legal-page p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 14px;
}

.legal-page ul,
.legal-page ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-page li {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 6px;
}

.legal-page a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page a:hover {
    color: var(--accent-dark);
}

.legal-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.legal-card h3 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .legal-page {
        padding: calc(var(--nav-height) + 24px) 16px 60px;
    }
    .legal-page h1 { font-size: 1.6rem; }
}

/* ========================================
   Homepage Redesign — New Components
   ======================================== */

/* Compact Hero */
.hp-hero {
    padding: calc(var(--nav-height) + 48px) 0 48px;
    text-align: center;
}

.hp-hero-top {
    margin-bottom: 20px;
}

.hp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: var(--accent-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
}

.hp-pill svg {
    width: 14px;
    height: 14px;
}

.hp-h1 {
    font-size: clamp(2.5rem, 7vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.hp-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.hp-hero-cta {
    margin-bottom: 40px;
}

.hp-hero-cta .btn {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Hero Stats */
.hp-stats {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 20px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.hp-stat {
    text-align: center;
}

.hp-stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.hp-stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hp-stat-sep {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* Tools Section */
.hp-tools {
    padding: 32px 0 16px;
}

.hp-cat {
    margin-top: 32px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.hp-cat:first-child { margin-top: 0; }

.hp-cat h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Tool Grid — 2 columns */
.hp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hp-grid-half {
    grid-template-columns: 1fr 1fr;
    max-width: 50%;
}

/* Tool Card */
.hp-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.hp-card:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.hp-card:active { transform: scale(0.99); }

.hp-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hp-icon svg { width: 20px; height: 20px; }

.hp-icon.utility { background: var(--accent-light); }
.hp-icon.utility svg { stroke: var(--accent); }

.hp-icon.dl { background: rgba(96, 165, 250, 0.12); }
.hp-icon.dl svg { stroke: var(--download); }

.hp-icon.pnk { background: rgba(244, 114, 182, 0.12); }
.hp-icon.pnk svg { stroke: var(--prank); }

.hp-card h3 {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1px;
}

.hp-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* CTA */
.hp-cta {
    padding: 32px 0 48px;
}

.hp-cta-inner {
    padding: 20px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.hp-cta-inner p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.hp-cta-inner a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.hp-cta-inner a:hover { text-decoration: underline; }

/* ========================================
   Homepage — Mobile
   ======================================== */

@media (max-width: 768px) {
    .hp-hero { padding-top: calc(var(--nav-height) + 28px); padding-bottom: 32px; }

    .hp-h1 { font-size: 2.2rem; }
    .hp-sub { font-size: 0.95rem; margin-bottom: 24px; }
    .hp-hero-cta { margin-bottom: 28px; }
    .hp-hero-cta .btn { width: 100%; padding: 16px; }

    .hp-stats {
        gap: 16px;
        padding: 16px 20px;
        width: 100%;
        justify-content: center;
    }

    .hp-stat-num { font-size: 1.3rem; }
    .hp-stat-lbl { font-size: 0.68rem; }
    .hp-stat-sep { height: 24px; }

    .hp-tools { padding: 20px 0 8px; }

    .hp-cat { margin-top: 24px; margin-bottom: 10px; }

    .hp-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hp-grid-half {
        max-width: 100%;
        grid-template-columns: 1fr;
    }

    .hp-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .hp-icon { width: 38px; height: 38px; }
    .hp-icon svg { width: 18px; height: 18px; }

    .hp-card h3 { font-size: 0.88rem; }
    .hp-card p { font-size: 0.76rem; }

    .hp-cta { padding: 24px 0 36px; }
    .hp-cta-inner { padding: 16px 20px; }
}
