html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Adjusted for smaller header */
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f8fafc;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 60px;
    /* Reduced space for smaller fixed header */
}

/* CSS Variables for consistent theming */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
    background: var(--bg-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    /* Reduced from 16px */
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-icon {
    font-size: 28px;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

/* Tool Page Banner Back Button */
.tool-header {
    position: relative; /* Essential for absolute positioning of back button */
}

.tool-back-link {
    position: absolute;
    top: 25px;
    left: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.tool-back-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.tool-back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tool-back-link:hover i {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .tool-back-link {
        top: 15px;
        left: 15px;
        padding: 8px 14px;
        font-size: 13px;
    }
}

.nav-menu ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #667eea;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--text-secondary);
    font-size: 18px;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s;
}

/* ============================================
   HERO SECTION (PREMIUM REDESIGN)
   ============================================ */
.hero {
    position: relative;
    padding: 160px 0 120px;
    background: #0f172a;
    background: radial-gradient(circle at 0% 0%, rgba(102, 126, 234, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(118, 75, 162, 0.2) 0%, transparent 40%),
        #0f172a;
    overflow: hidden;
    color: white;
}

/* Animated Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: mesh-float 25s infinite alternate;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(102, 126, 234, 0.3);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(118, 75, 162, 0.2);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

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

    100% {
        transform: translate(100px, 100px) scale(1.2);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Content Styles */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 3.5rem;
    /* ~56px - More balanced than 68px */
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.15rem;
    /* ~18.5px */
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 580px;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-value {
    font-size: 1.75rem;
    /* ~28px */
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.85rem;
    /* ~13.5px */
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Search Bar Styles */
.search-container {
    margin-top: 40px;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.search-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4);
}

.search-box i {
    padding: 0 25px;
    color: #667eea;
    font-size: 22px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 500;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Visual Side (Right) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.visual-container {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-visual {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: blob-morph 12s infinite alternate ease-in-out;
}

@keyframes blob-morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(15deg);
    }
}

.rocket-icon {
    font-size: 100px;
    color: white;
    filter: drop-shadow(0 15px 30px rgba(102, 126, 234, 0.6));
    animation: rocket-shake 4s infinite ease-in-out;
}

@keyframes rocket-shake {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-25px) rotate(8deg) scale(1.05);
    }
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 28px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: card-float 6s infinite alternate ease-in-out;
    color: white;
}

.card-1 {
    top: 0;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30px;
    right: 5%;
    animation-delay: -2.5s;
}

.card-3 {
    top: 45%;
    right: -30px;
    animation-delay: -4.5s;
}

@keyframes card-float {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-30px) translateX(10px);
    }
}

/* Animations Classes */
.animate-slide-up {
    animation: slideUp 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    transform: translateY(50px);
}

.animate-fade-in {
    animation: fadeIn 1.5s forwards ease-out;
    opacity: 0;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Category Filters Premium Design */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 30px;
    /* Reduced bottom margin for tighter feel */
    flex-wrap: wrap;
    padding: 0 15px;
    max-width: 1000px;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    /* Slightly thicker for better stability */
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.category-btn i {
    font-size: 16px;
    transition: transform 0.3s;
}

.category-btn:hover {
    background: var(--bg-primary);
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.category-btn:hover i {
    transform: scale(1.2);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.category-btn.active i {
    color: white !important;
}

/* Dark Mode adjustment for buttons */
body.dark-mode .category-btn {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .category-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Tools Grid Stability & Animation */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px 25px;
    /* Row gap 30px, Column gap 25px */
    min-height: 450px;
    align-items: start;
}

.tool-card {
    animation: cardAppear 0.4s ease-out forwards;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Font Overrides & Layout */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-grid {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .header {
        padding: 10px 0;
    }

    .mobile-menu-btn {
        display: flex; /* Show hamburger on mobile/tablet */
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1002;
        padding: 5px;
    }

    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Hamburger to 'X' Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Nav Drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        padding: 40px;
    }

    .nav-menu.active {
        right: 0; /* Slide into view */
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .nav-menu a {
        font-size: 1.25rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 10px;
        margin-bottom: 25px;
    }

    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
        margin-top: 30px !important;
        text-align: center;
    }

    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stat-value {
        font-size: 1.25rem !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
        white-space: nowrap;
    }

    .search-box {
        padding: 5px;
        border-radius: 15px;
    }

    .search-box input {
        font-size: 15px;
        padding: 10px 0;
    }

    .search-box i {
        padding: 0 12px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .hero-stats {
        gap: 5px;
    }

    .stat-item {
        flex: 1;
    }
}

.category-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

body.dark-mode .category-btn {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-mode .category-btn.active {
    color: white;
}

@media (max-width: 768px) {
    .category-filters {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-icons {
    position: relative;
    height: 100%;
}

.float-icon {
    position: absolute;
    font-size: 40px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 50%;
    left: 0%;
    animation-delay: 0.5s;
}

.icon-3 {
    top: 70%;
    left: 30%;
    animation-delay: 1s;
}

.icon-4 {
    top: 20%;
    right: 10%;
    animation-delay: 0.3s;
}

.icon-5 {
    top: 60%;
    right: 0%;
    animation-delay: 0.8s;
}

.icon-6 {
    bottom: 10%;
    right: 20%;
    animation-delay: 1.2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
}

.card-preview i {
    font-size: 48px;
    margin-bottom: 12px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    color: #667eea;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================
   TOOLS SECTION - Premium Cards
   ============================================ */
.tools-section {
    padding: 80px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px 25px;
    min-height: 450px;
    align-items: start;
}

.tool-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    animation: cardAppear 0.5s ease-out forwards;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #667eea;
}

.tool-icon-wrapper {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

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

.tool-icon {
    font-size: 26px;
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.tool-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-hover-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-hover-effect {
    transform: scaleX(1);
}

/* Coming Soon */
.coming-soon {
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}

.coming-soon-tag {
    background: #f59e0b !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ============================================
   FEATURES SECTION - Cards always elevated
   ============================================ */
.features-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 24px 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    /* Always elevated */
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #667eea;
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 0;
}

.feature-card h3 {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 50px 0;
    background: var(--bg-secondary);
}

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

.stat-card {
    padding: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    text-align: center;
}

.cta-content h2 {
    font-size: 28px;
    color: white;
    margin-bottom: 12px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    font-size: 16px;
}

/* ============================================
   TOOL PAGE STYLES
   ============================================ */
.tool-page-container {
    padding: 60px 0;
    min-height: calc(100vh - 400px);
}

.tool-card-large {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tool-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    text-align: center;
    color: white;
}

.tool-header-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.tool-header h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.tool-header p {
    opacity: 0.95;
}

.tool-body {
    padding: 40px;
}

.tool-ui {
    max-width: 600px;
    margin: 0 auto;
}

/* Form Elements */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-secondary);
}

.file-upload-area:hover {
    border-color: #667eea;
    background: var(--bg-primary);
}

.file-upload-area input {
    display: none;
}

.file-upload-label {
    cursor: pointer;
    display: inline-block;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 16px;
}

.select-input,
.number-input {
    width: 100%;
    padding: 12px;
    margin: 16px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.button-input {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 16px;
}

.button-input:hover {
    background: #5a67d8;
}

.button-input:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.result-area {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    margin-top: 16px;
    border-radius: 8px;
}

.download-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #48bb78;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 16px;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #38a169;
}

.tool-info {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.tool-info h2 {
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.tool-info h3 {
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.tool-info ul {
    padding-left: 20px;
}

.tool-info li {
    margin: 8px 0;
    color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin: 20px 0;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateY(-2px);
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

.footer-bottom i {
    color: #ef4444;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ============================================
   DARK MODE STYLES - COMPLETE FIX
   ============================================ */

/* Body dark mode */
body.dark-mode {
    background: #0f172a;
    color: #f1f5f9;
}

/* Header dark mode */
body.dark-mode .header {
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

body.dark-mode .nav-menu a {
    color: #cbd5e1;
}

body.dark-mode .nav-menu a:hover,
body.dark-mode .nav-menu a.active {
    color: #667eea;
}

body.dark-mode .theme-toggle {
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-mode .theme-toggle:hover {
    background: #334155;
}

body.dark-mode .mobile-menu-btn span {
    background: #cbd5e1;
}

/* Tool Cards dark mode */
body.dark-mode .tool-card {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-mode .tool-card p {
    color: #94a3b8;
}

body.dark-mode .tool-card:hover {
    border-color: #667eea;
}

/* Feature Cards dark mode */
body.dark-mode .feature-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .feature-card p {
    color: #94a3b8;
}

body.dark-mode .feature-card:hover {
    border-color: #667eea;
}

/* Section backgrounds */
body.dark-mode .features-section {
    background: #0f172a;
}

body.dark-mode .stats-section {
    background: #1e293b;
}

body.dark-mode .stats-section .stat-label {
    color: #94a3b8;
}

body.dark-mode .section-subtitle {
    color: #94a3b8;
}

body.dark-mode .section-badge {
    background: linear-gradient(135deg, #667eea20, #764ba220);
    color: #a78bfa;
}

/* Tool page dark mode */
body.dark-mode .tool-card-large {
    background: #1e293b;
}

body.dark-mode .tool-info {
    border-top-color: #334155;
}

body.dark-mode .tool-info h2,
body.dark-mode .tool-info h3 {
    color: #f1f5f9;
}

body.dark-mode .tool-info li {
    color: #94a3b8;
}

/* Form elements dark mode */
body.dark-mode .file-upload-area {
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .file-upload-area:hover {
    background: #1e293b;
}

body.dark-mode .select-input,
body.dark-mode .number-input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-mode .select-input::placeholder,
body.dark-mode .number-input::placeholder {
    color: #64748b;
}

body.dark-mode .result-area {
    background: #0f172a;
}

/* Footer dark mode */
body.dark-mode .footer {
    background: #0a0f1a;
}

body.dark-mode .footer-links a {
    color: #94a3b8;
}

body.dark-mode .footer-links a:hover {
    color: #a78bfa;
}

body.dark-mode .social-links a {
    background: #1e293b;
}

body.dark-mode .social-links a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Word Counter dark mode */
body.dark-mode .stat-card-item {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .stat-card-item .stat-number {
    color: #a78bfa;
}

body.dark-mode .additional-info {
    background: #1e293b;
}

/* Case Converter dark mode */
body.dark-mode .case-buttons-grid .case-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Character Counter dark mode */
body.dark-mode .char-stat-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .char-stat-card .char-stat-number {
    color: #a78bfa;
}

body.dark-mode .char-breakdown {
    background: #1e293b;
}

/* Remove Extra Spaces dark mode */
body.dark-mode .options-panel {
    background: #1e293b;
}

body.dark-mode .option-checkbox:hover {
    background: #334155;
}

body.dark-mode .stat-clean {
    background: #1e293b;
}

/* Text Repeater dark mode */
body.dark-mode .repeat-settings {
    background: #1e293b;
}

body.dark-mode .repeat-stat {
    background: #334155;
}

/* Text Reverser dark mode */
body.dark-mode .reverse-options {
    background: #1e293b;
}

body.dark-mode .reverse-option {
    background: #334155;
    border-color: #475569;
}

body.dark-mode .reverse-stat {
    background: #334155;
}

/* URL Encoder dark mode */
body.dark-mode .url-mode-selector {
    background: #1e293b;
}

body.dark-mode .mode-btn {
    color: #94a3b8;
}

body.dark-mode .mode-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

body.dark-mode .char-item {
    background: #334155;
}

/* Password Generator dark mode */
body.dark-mode .options-group {
    background: #1e293b;
}

body.dark-mode .strength-indicator {
    background: #1e293b;
}

body.dark-mode .strength-bar {
    background: #334155;
}

body.dark-mode .password-tips {
    background: #1e293b;
}

body.dark-mode .preset-btn {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

body.dark-mode .preset-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

body.dark-mode .length-slider {
    background: #334155;
}

body.dark-mode .length-slider::-webkit-slider-thumb {
    background: #a78bfa;
}

/* Mobile menu dark mode */
body.dark-mode .nav-menu.active {
    background: #1e293b;
}

/* Coming soon card dark mode */
body.dark-mode .coming-soon-tag {
    background: #f59e0b !important;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        padding: 20px;
        border-radius: 0 0 20px 20px;
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }

    .nav-menu.active ul {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

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

    .tool-body {
        padding: 20px;
    }

    .tool-header h1 {
        font-size: 24px;
    }

    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

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

    .section-title {
        font-size: 26px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 200px;
        justify-content: center;
    }
}

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

    .hero h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .tool-card {
        padding: 16px;
    }

    .tool-icon-wrapper {
        width: 44px;
        height: 44px;
    }

    .tool-icon {
        font-size: 22px;
    }

    .tool-card h3 {
        font-size: 16px;
    }

    .feature-card {
        padding: 20px;
    }
}

/* Word Counter Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.stat-card-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 32px;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    margin-bottom: 4px;
}

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

/* Additional Info */
.additional-info {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
}

.additional-info h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
    text-align: right;
    max-width: 60%;
}

/* Dark mode adjustments */
body.dark-mode .stat-card-item {
    background: #1e293b;
}

body.dark-mode .additional-info {
    background: #1e293b;
}

@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        flex-direction: column;
        gap: 4px;
    }

    .info-value {
        text-align: left;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

/* Case Converter Buttons */
.case-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.case-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.case-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.case-btn i {
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

#resultText {
    background: var(--bg-secondary);
    font-family: monospace;
    font-size: 14px;
}

@media (max-width: 768px) {
    .case-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .case-buttons-grid {
        grid-template-columns: 1fr;
    }
}

/* Character Counter Stats Cards */
.char-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.char-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.char-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.char-stat-icon {
    font-size: 32px;
}

.char-stat-info {
    flex: 1;
}

.char-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    margin-bottom: 4px;
}

.char-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Character Breakdown */
.char-breakdown {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
}

.char-breakdown h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.breakdown-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Dark mode adjustments */
body.dark-mode .char-stat-card {
    background: #1e293b;
}

body.dark-mode .char-breakdown {
    background: #1e293b;
}

@media (max-width: 768px) {
    .char-stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .breakdown-grid {
        grid-template-columns: 1fr;
    }

    .breakdown-item {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .char-stats-cards {
        grid-template-columns: 1fr;
    }
}

/* Remove Extra Spaces Tool */
.options-panel {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
}

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

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.option-checkbox:hover {
    background: var(--bg-card);
}

.option-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.clean-stats {
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.stats-grid-clean {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.stat-clean {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.stat-label-clean {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-value-clean {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin-right: 4px;
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid-clean {
        grid-template-columns: 1fr;
    }
}

/* Text Repeater Tool */
.repeat-settings {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
}

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

.repeat-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-radius: 16px;
    padding: 20px;
}

.repeat-stat {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 12px;
}

.repeat-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.repeat-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-right: 4px;
}

@media (max-width: 768px) {
    .repeat-stats {
        flex-direction: column;
    }
}

/* Text Reverser Tool */
.reverse-options {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
}

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

.reverse-option {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.reverse-option:hover {
    border-color: #667eea;
    transform: translateX(4px);
}

.reverse-option input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
    margin-bottom: 5px;
}

.reverse-option span {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.reverse-option small {
    font-size: 11px;
    color: var(--text-muted);
}

.reverse-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-radius: 16px;
    padding: 20px;
}

.reverse-stat {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 12px;
}

.reverse-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.reverse-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-right: 4px;
}

@media (max-width: 768px) {
    .options-reverse-grid {
        grid-template-columns: 1fr;
    }

    .reverse-stats {
        flex-direction: column;
    }
}

/* URL Encoder Tool */
.url-mode-selector {
    display: flex;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: 12px;
}

.mode-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--text-primary);
}

.mode-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.char-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: 6px;
    font-family: monospace;
}

.url-info h3 {
    margin: 20px 0 12px 0;
    font-size: 16px;
}

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

.password-display input {
    flex: 1;
    font-size: 18px !important;
    font-family: monospace !important;
}

.copy-password-btn {
    padding: 12px 24px;
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.copy-password-btn:hover {
    background: #38a169;
}

.setting-item {
    margin-bottom: 24px;
}

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

.length-value {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    min-width: 40px;
    text-align: center;
}

.length-slider {
    flex: 1;
    height: 4px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.options-group {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
}

.options-group h3 {
    margin-bottom: 16px;
    font-size: 16px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
}

.option-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.strength-indicator {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
}

.strength-indicator h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.strength-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background 0.3s;
}

.strength-text {
    font-size: 14px;
    font-weight: 600;
}

.quick-presets {
    margin: 24px 0;
}

.quick-presets h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preset-btn {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.preset-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.password-tips {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    margin-top: 24px;
}

.password-tips h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.password-tips ul {
    padding-left: 20px;
}

.password-tips li {
    margin: 8px 0;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .char-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .password-display {
        flex-direction: column;
    }

    .preset-buttons {
        justify-content: center;
    }
}
/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #667eea;
    animation: toastIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .toast {
    background: rgba(30, 41, 59, 0.95);
    color: white;
}

.toast-success { border-left-color: #22c55e; }
.toast-error { border-left-color: #ef4444; }
.toast-warning { border-left-color: #f59e0b; }
.toast-info { border-left-color: #3b82f6; }

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: #22c55e; }
.toast-error .toast-icon { color: #ef4444; }
.toast-warning .toast-icon { color: #f59e0b; }
.toast-info .toast-icon { color: #3b82f6; }

.toast-content {
    flex-grow: 1;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #ef4444;
    transform: scale(1.1);
}

@keyframes toastIn {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .toast-container {
        top: auto;
        bottom: 24px;
        left: 16px;
        right: 16px;
        align-items: center;
    }
    .toast {
        min-width: 100%;
        width: 100%;
    }
}
