/* ========================================
   ToolVortex - Premium CSS Design
   ======================================== */

:root {
    --primary: #6C63FF;
    --primary-light: #8B83FF;
    --primary-dark: #5A52E0;
    --secondary: #FF6B6B;
    --accent: #00D2FF;
    --accent-green: #00E676;
    --bg-dark: #0A0A1A;
    --bg-card: #12122A;
    --bg-card-hover: #1A1A3E;
    --bg-surface: #161632;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0C0;
    --text-muted: #6B6B8D;
    --border: rgba(108, 99, 255, 0.15);
    --border-hover: rgba(108, 99, 255, 0.4);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 48px rgba(108, 99, 255, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== Background Animation ========== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary), transparent);
    top: 50%;
    right: -15%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.bg-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent), transparent);
    bottom: -10%;
    left: 30%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -80px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 60px) scale(0.9);
    }

    75% {
        transform: translate(80px, 30px) scale(1.05);
    }
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.brand-logo {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: contain;
    border-radius: 8px;
    animation: logoPulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(108, 99, 255, 0.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== Professional Language Switcher ========== */
.lang-dropdown {
    position: relative;
    z-index: 1001;
    margin-left: auto;
    /* Push to right on desktop */
}

@media (max-width: 768px) {
    .lang-dropdown {
        margin-left: initial;
        margin-right: 10px;
    }
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lang-dropdown-btn:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(18, 18, 42, 0.9);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lang-dropdown.active .lang-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.lang-option:hover {
    background: rgba(108, 99, 255, 0.15);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--primary-light);
    background: rgba(108, 99, 255, 0.1);
}

.flag-icon {
    font-size: 1.2rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========== Favorites Button ========== */
.tool-card {
    position: relative;
}

.fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(18, 18, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.fav-btn:hover {
    transform: scale(1.1);
    background: rgba(108, 99, 255, 0.2);
}

.fav-btn.active {
    color: #FFD700;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

/* ========== Hero ========== */
.hero {
    padding: 140px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-light);
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(108, 99, 255, 0.5);
}

.btn-ghost {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-light);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: var(--border-hover);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: var(--radius-xs);
    background: rgba(108, 99, 255, 0.12);
    color: var(--primary-light);
    border: 1px solid var(--border);
}

.btn-sm:hover {
    background: rgba(108, 99, 255, 0.25);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-copy {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.btn-icon,
.btn-icon-sm {
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: var(--transition);
    font-size: 1rem;
}

.btn-icon {
    padding: 10px 14px;
}

.btn-icon-sm {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.btn-icon:hover,
.btn-icon-sm:hover {
    background: rgba(108, 99, 255, 0.25);
}

/* ========== Ad Banners ========== */
.ad-container {
    margin: 24px auto;
}

.ad-banner {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(18, 18, 42, 0.5);
    border: 1px solid var(--border);
}

.ad-banner-horizontal {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.ad-placeholder small {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ========== Section Headers ========== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ========== Tools Section ========== */
.tools-section {
    padding: 60px 0;
}

.tool-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.category-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
    border-color: var(--border-hover);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* ========== Tool Card (Premium Standard) ========== */
.tool-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 240px;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tool-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(108, 99, 255, 0.2);
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-card-header {
    width: 100%;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tool-card:hover .tool-icon {
    transform: scale(1.15) rotate(10deg);
}

.tool-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
}

.tool-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* Hide legacy accordion/in-grid bodies */
.tool-card .tool-body {
    display: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Tool Inputs ========== */
.tool-textarea,
.tool-input,
.textarea-field,
.input-field {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font);
    font-size: 0.9rem;
    resize: vertical;
    transition: var(--transition);
    margin-bottom: 12px;
}

.tool-textarea:focus,
.tool-input:focus,
.textarea-field:focus,
.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.tool-textarea::placeholder,
.tool-input::placeholder,
.textarea-field::placeholder,
.input-field::placeholder {
    color: var(--text-muted);
}

.code-textarea {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.tool-input-sm {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.85rem;
    transition: var(--transition);
}

.tool-input-sm:focus {
    outline: none;
    border-color: var(--primary);
}

.tool-select {
    padding: 8px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.tool-select:focus {
    outline: none;
    border-color: var(--primary);
}

.tool-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-surface);
    outline: none;
    margin: 8px 0;
}

.tool-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.4);
}

.tool-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.4);
}

/* ========== Tool Specific Styles ========== */
.tool-ui .btn,
.tool-ui button.btn {
    background: linear-gradient(135deg, #6C63FF, #a855f7);
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tool-ui .btn:hover,
.tool-ui button.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.mini-stat {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 14px 10px;
    text-align: center;
}

.mini-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
}

.mini-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Password */
.password-display {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.password-input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--accent-green);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.password-strength {
    height: 6px;
    border-radius: 3px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.option-group {
    margin-bottom: 12px;
}

.option-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

/* Color Picker */
.color-picker-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.color-input {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: none;
    padding: 0;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input::-webkit-color-swatch {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
}

.color-preview {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.color-values {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.color-value-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-value-item label {
    width: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.subsection-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.palette-swatch {
    aspect-ratio: 1;
    border-radius: var(--radius-xs);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.palette-swatch:hover {
    border-color: white;
    transform: scale(1.1);
}

.palette-swatch::after {
    content: attr(data-color);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
}

.palette-swatch:hover::after {
    opacity: 1;
}

/* JSON Status */
.json-status {
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: none;
}

.json-status.valid {
    display: block;
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.json-status.invalid {
    display: block;
    background: rgba(255, 107, 107, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* Hash */
.hash-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.hash-result-item label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.hash-value-row {
    display: flex;
    gap: 8px;
}

.hash-output {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

/* Meta Form */
.meta-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

/* Lorem Options */
.lorem-options {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-end;
}

/* Diff */
.diff-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.diff-result {
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 12px;
}

.diff-add {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent-green);
}

.diff-remove {
    background: rgba(255, 107, 107, 0.15);
    color: var(--secondary);
}

/* QR */
.qr-options {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.qr-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.qr-result canvas,
.qr-result img {
    border-radius: var(--radius-xs);
    border: 4px solid white;
}

/* ========== Features ========== */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========== FAQ ========== */
.faq-section {
    padding: 80px 0;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.faq-question:hover {
    background: rgba(108, 99, 255, 0.05);
}

.faq-arrow {
    font-size: 0.75rem;
    transition: var(--transition);
    color: var(--text-muted);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* ========== CTA ========== */
.cta-section {
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 60px 40px;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ========== Footer ========== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 26, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 600;
}

.toast.show {
    bottom: 30px;
}

/* ========== Ad Placements & Revenue Optimization ========== */
.ad-card {
    background: rgba(108, 99, 255, 0.03);
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.ad-card:hover {
    background: rgba(108, 99, 255, 0.05);
    border-color: var(--primary);
}

.in-tool-ad {
    margin: 15px 0;
    padding: 10px;
    background: rgba(108, 99, 255, 0.02);
    border: 1px dashed var(--border);
    border-radius: var(--radius-xs);
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ad-mini {
    min-height: 60px;
    margin: 10px 0;
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
}

.ad-placeholder span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ad-placeholder small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========== New Tool Specific Styles ========== */
.markdown-preview {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.markdown-preview code {
    background: rgba(108, 99, 255, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

.iban-result {
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

/* ========== Speed Test & Stats ========== */
.speed-result {
    margin-top: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

/* ========== Blog Styles ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.blog-img {
    height: 180px;
    width: 100%;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.blog-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* ========== Palette & Extra Tool Styles ========== */
.palette-grid {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.palette-swatch {
    flex: 1;
    min-width: 60px;
    height: 80px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.palette-swatch:hover {
    transform: scale(1.08);
    border-color: #fff;
}

.palette-swatch span {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.code-result {
    margin-top: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.tool-select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ========== Coffee CTA ========== */
.btn-coffee {
    background: linear-gradient(135deg, #ff9100, #ff5722);
    color: #fff !important;
    border: none;
    font-size: 1.1rem;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    text-decoration: none;
    transition: var(--transition);
}

.btn-coffee:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.5);
}

.coffee-mini {
    background: linear-gradient(135deg, rgba(255, 145, 0, 0.1), rgba(255, 87, 34, 0.1)) !important;
    border: 1px dashed rgba(255, 145, 0, 0.4) !important;
    text-align: center;
    padding: 8px !important;
}

.coffee-mini a {
    color: #ff9100;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.coffee-mini a:hover {
    color: #ff5722;
}

.sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    pointer-events: auto;
    transition: all 0.4s ease;
}

.close-ad {
    position: absolute;
    top: -24px;
    right: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2001;
}

.close-ad:hover {
    color: var(--primary);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .lang-switcher {
        margin-right: 15px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav.active {
        display: flex;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .diff-inputs {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .lorem-options {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .color-picker-area {
        flex-direction: column;
    }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========== Selection ========== */
::selection {
    background: rgba(108, 99, 255, 0.3);
    color: white;
}

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    max-width: 400px;
    padding: 40px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.auth-form input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 15px;
}

.btn-google {
    background: #fff;
    color: #000 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
}

.user-info p {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.profile-dashboard {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

.item-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.item-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-active {
    color: #00ff88 !important;
    background: rgba(0, 255, 136, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ========== Search & Theme Switcher ========== */
.theme-switcher-wrapper {
    position: relative;
    margin-left: 10px;
}

.theme-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    min-width: 160px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.theme-menu.active {
    display: flex;
}

.theme-option {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    text-align: left;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tools-search-wrapper {
    max-width: 600px;
    margin: 40px auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tools-search-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.tools-search-wrapper input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 18px;
    font-style: normal;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.recent-tools-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.recent-tag {
    padding: 6px 14px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.recent-tag:hover {
    background: var(--primary);
    color: #fff;
}

/* Theme Variants */
[data-theme="midnight"] {
    --bg-dark: #0a0a0f;
    --primary: #8a2be2;
    --primary-dark: #4b0082;
    --bg-animation: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
}

[data-theme="oled"] {
    --bg-dark: #000000;
    --primary: #007bff;
    --primary-dark: #004085;
    --bg-animation: #000;
}

[data-theme="soft"] {
    --bg-dark: #f0f2f5;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #65676b;
    --border-color: #dddfe2;
    --header-bg: rgba(255, 255, 255, 0.8);
}

/* ========== Bulk Preview Grid ========== */
.img-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
}

.preview-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.profile-history {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.history-item:last-child {
    border-bottom: none !important;
}

/* ========== Tab UI Improvements ========== */
.tool-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-btn {
    padding: 10px 20px;
    border-radius: 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    transform: translateY(-2px);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.modern-footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: flex-start;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.f-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.f-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

@media (max-width: 900px) {
    .modern-footer .footer-grid {
        grid-template-columns: 1fr;
    }

    .modern-footer .footer-links-group {
        flex-direction: column;
        gap: 30px;
    }
}

/* ========== Modal System ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

.tool-ui {
    margin-top: 20px;
}

.result-box {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

/* ========== Bug Reporting System Styles ========== */
.btn-bug-report {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 107, 107, 0.1);
    border: none;
    color: var(--secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 5;
}

.btn-bug-report:hover {
    background: var(--secondary);
    color: white;
    transform: rotate(15deg) scale(1.1);
}

.btn-bug-report-modal {
    margin: 10px 0 20px 0;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-bug-report-modal:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.modal-content h2 {
    color: var(--primary-light);
    font-weight: 800;
}