/* =========================================
   Compound Interest Calculator Tool - PREMIUM UI
   Version: 1.0 | AI-Style Neon Theme
   Mobile-First | AdSense Optimized
   ========================================= */

:root,
[data-theme="dark"] {
    --primary-blue: #1b98e0;
    --secondary-green: #32de84;
    --accent-purple: #9b59b6;
    --bg-primary: #0a0a14;
    --bg-secondary: #121220;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(18, 18, 32, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0c0;
    --border-color: #3a476a;
    --glass-bg: rgba(18, 18, 32, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #1b98e0, #9b59b6);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --primary-blue: #0066cc;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

p,
.seo-text,
.feature-desc,
.brand-desc {
    text-align: justify;
    text-justify: inter-word;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.cosmic-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(27, 152, 224, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 50%, rgba(155, 89, 182, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: -3;
}

/* Header */
.ultra-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

[data-theme="light"] .ultra-header {
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-brand img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.h-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.u-nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.u-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.u-link:hover {
    color: var(--primary-blue);
}

.u-theme-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.u-theme-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}


.header-spacer {
    height: 75px;
}

/* Tool Layout */
.tool-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 30px 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
}

.sidebar h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar h3 i {
    color: var(--primary-blue);
}

.tool-list {
    list-style: none;
}

.tool-list li {
    margin-bottom: 8px;
}

.tool-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.tool-list a:hover,
.tool-list a.active {
    background: linear-gradient(90deg, rgba(27, 152, 224, 0.15), transparent);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateX(5px);
}

.tool-list a i {
    width: 20px;
    text-align: center;
}

/* Tool Card */
.tool-content {
    min-width: 0;
}

.tool-card {
    background: linear-gradient(165deg, rgba(18, 22, 38, 0.98) 0%, rgba(12, 15, 28, 0.99) 100%);
    border: 1px solid rgba(27, 152, 224, 0.25);
    border-radius: 32px;
    padding: 40px 35px;
    margin-bottom: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(27, 152, 224, 0.08);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1b98e0 0%, #00d4ff 25%, #9b59b6 50%, #e91e63 75%, #1b98e0 100%);
    background-size: 200% 100%;
    animation: neonBorderFlow 4s linear infinite;
}

@keyframes neonBorderFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

[data-theme="light"] .tool-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.99) 100%);
    border-color: rgba(0, 102, 204, 0.15);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tool-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Calculator Input Groups */
.calc-input-group {
    margin-bottom: 20px;
}

.calc-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.calc-label i {
    color: var(--primary-blue);
}

.calc-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.calc-input-wrapper:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(27, 152, 224, 0.15);
}

.calc-input-wrapper .input-prefix,
.calc-input-wrapper .input-suffix {
    padding: 16px;
    background: rgba(27, 152, 224, 0.08);
    color: var(--primary-blue);
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    white-space: nowrap;
}

.calc-input {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

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

select.calc-input {
    cursor: pointer;
    appearance: auto;
}

/* Result Display — Premium Glow */
.result-display {
    text-align: center;
    padding: 45px 40px;
    background: linear-gradient(145deg, rgba(27, 152, 224, 0.08) 0%, rgba(155, 89, 182, 0.06) 50%, rgba(27, 152, 224, 0.04) 100%);
    border: 1px solid rgba(27, 152, 224, 0.25);
    border-radius: 24px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    animation: resultSlideIn 0.5s ease-out;
    box-shadow: 0 10px 40px rgba(27, 152, 224, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.result-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1b98e0, #9b59b6, #1b98e0, transparent);
    opacity: 0.8;
}

.result-display::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(27, 152, 224, 0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: resultGlow 4s ease-in-out infinite;
}

@keyframes resultSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes resultGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

[data-theme="light"] .result-display {
    background: linear-gradient(145deg, rgba(0, 102, 204, 0.06) 0%, rgba(155, 89, 182, 0.04) 50%, rgba(0, 102, 204, 0.02) 100%);
    border-color: rgba(0, 102, 204, 0.2);
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.06);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.result-value {
    font-size: 3.2rem;
    font-weight: 800;
    font-family: 'Fira Code', monospace;
    background: linear-gradient(135deg, #1b98e0 0%, #00d4ff 40%, #9b59b6 70%, #e91e63 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    animation: gradientShift 3s ease infinite;
    filter: drop-shadow(0 2px 10px rgba(27, 152, 224, 0.3));
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Result Breakdown — Neon Cards */
.result-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.breakdown-item {
    padding: 22px 20px;
    background: linear-gradient(145deg, var(--bg-tertiary) 0%, rgba(27, 152, 224, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: breakdownFadeIn 0.5s ease-out backwards;
}

.breakdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #1b98e0, #9b59b6);
    border-radius: 4px 0 0 4px;
    opacity: 0.7;
    transition: opacity 0.3s, width 0.3s;
}

.breakdown-item:nth-child(2)::before {
    background: linear-gradient(to bottom, #32de84, #1b98e0);
}

.breakdown-item:nth-child(3)::before {
    background: linear-gradient(to bottom, #9b59b6, #e91e63);
}

.breakdown-item:hover {
    border-color: rgba(27, 152, 224, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(27, 152, 224, 0.12);
}

.breakdown-item:hover::before {
    width: 5px;
    opacity: 1;
}

@keyframes breakdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

.breakdown-item:nth-child(1) {
    animation-delay: 0.1s;
}

.breakdown-item:nth-child(2) {
    animation-delay: 0.2s;
}

.breakdown-item:nth-child(3) {
    animation-delay: 0.3s;
}

.breakdown-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.breakdown-value {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    color: var(--primary-blue);
    text-shadow: 0 0 20px rgba(27, 152, 224, 0.15);
}

/* Chart Container */
.chart-container {
    background: linear-gradient(145deg, rgba(27, 152, 224, 0.05) 0%, rgba(155, 89, 182, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 25px;
    margin: 25px 0;
    animation: chartReveal 0.6s ease-out;
}

@keyframes chartReveal {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chart-container canvas {
    max-height: 350px;
}

/* Buttons */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    box-shadow: 0 10px 30px rgba(27, 152, 224, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 15px 40px rgba(27, 152, 224, 0.6);
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-share {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    color: #fff;
}

.btn-share:hover {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.stat-box {
    background: linear-gradient(145deg, rgba(27, 152, 224, 0.1) 0%, rgba(27, 152, 224, 0.02) 100%);
    border: 1px solid rgba(27, 152, 224, 0.18);
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: statPopIn 0.4s ease-out backwards;
}

.stat-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, #1b98e0, #9b59b6);
    opacity: 0.5;
    transition: width 0.3s, opacity 0.3s;
}

.stat-box:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-box:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-box:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-box:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-box:nth-child(2)::after {
    background: linear-gradient(90deg, #32de84, #1b98e0);
}

.stat-box:nth-child(3)::after {
    background: linear-gradient(90deg, #9b59b6, #e91e63);
}

.stat-box:nth-child(4)::after {
    background: linear-gradient(90deg, #f39c12, #e74c3c);
}

.stat-box:hover {
    border-color: rgba(27, 152, 224, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(27, 152, 224, 0.12);
}

.stat-box:hover::after {
    width: 70%;
    opacity: 1;
}

@keyframes statPopIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Fira Code', monospace;
    margin-top: 8px;
    text-shadow: 0 0 15px rgba(27, 152, 224, 0.15);
}

/* Tips */
.tips-section {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.tips-section h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-section h3 i {
    color: var(--secondary-green);
}

.tips-grid {
    display: grid;
    gap: 12px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(50, 222, 132, 0.05);
    border: 1px solid rgba(50, 222, 132, 0.2);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tip-item i {
    color: var(--secondary-green);
}

/* Bookmark */
.bookmark-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.bookmark-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Ad Slots */
.ad-below-tool {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(27, 152, 224, 0.03);
    border: 1px dashed rgba(27, 152, 224, 0.2);
    border-radius: 16px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-footer-section {
    max-width: 728px;
    margin: 50px auto 30px;
    padding: 20px;
    background: rgba(27, 152, 224, 0.03);
    border: 1px dashed rgba(27, 152, 224, 0.2);
    border-radius: 16px;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder-minimal {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Similar Tools */
.similar-tools {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.similar-tools h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.similar-tools h3 i {
    color: var(--primary-blue);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.similar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s;
    text-align: center;
}

.similar-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    color: var(--primary-blue);
}

.similar-card i {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.similar-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* SEO Content */
.seo-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.seo-content h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.seo-content h2:first-of-type {
    margin-top: 0;
}

.seo-content h2 i {
    color: var(--primary-blue);
}

.seo-content p {
    margin-bottom: 20px;
}

.seo-content ul,
.seo-content ol {
    margin: 20px 0;
    padding-left: 20px;
}

.seo-content li {
    margin-bottom: 15px;
}

.seo-content strong {
    color: var(--primary-blue);
}

.seo-content a {
    color: var(--primary-blue);
    text-decoration: none;
}

.seo-content a:hover {
    text-decoration: underline;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.features-grid li {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.features-grid li:hover {
    border-color: var(--primary-blue);
}

.faq-section {
    margin-top: 30px;
}

.faq-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.faq-item:hover {
    border-color: var(--primary-blue);
}

.faq-item h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.faq-item p {
    margin: 0;
    color: var(--text-secondary);
}

.cta-box {
    background: var(--gradient-primary);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h3,
.cta-box p {
    color: #fff;
}

.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Ultra Footer */
.ultra-footer {
    background: linear-gradient(to top, #050510, #0a0a18);
    position: relative;
    overflow: hidden;
    padding: 80px 0 30px;
    margin-top: 60px;
    border-top: 1px solid rgba(27, 152, 224, 0.2);
}

.footer-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(27, 152, 224, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
}

.footer-glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(27, 152, 224, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 20px;
}

.brand-logo-glow img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(27, 152, 224, 0.5);
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(27, 152, 224, 0.1);
    border: 1px solid rgba(27, 152, 224, 0.3);
    border-radius: 50px;
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 500;
}

.col-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(27, 152, 224, 0.3);
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list li {
    margin-bottom: 14px;
}

.link-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.link-list a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.connect-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.connect-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.card-yt {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.card-yt:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: translateY(-3px);
}

.card-yt .card-icon {
    color: #ff0000;
    font-size: 1.5rem;
}

.card-mail {
    background: rgba(27, 152, 224, 0.1);
    border: 1px solid rgba(27, 152, 224, 0.3);
}

.card-mail:hover {
    background: rgba(27, 152, 224, 0.2);
    transform: translateY(-3px);
}

.card-mail .card-icon {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.s-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.s-btn.fb {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
    border: 1px solid rgba(24, 119, 242, 0.3);
}

.s-btn.insta {
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c;
    border: 1px solid rgba(225, 48, 108, 0.3);
}

.s-btn.x {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.s-btn.tg {
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc;
    border: 1px solid rgba(0, 136, 204, 0.3);
}

.s-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.footer-copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 5px 0;
}

.made-with .pulse {
    color: #e74c3c;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

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

    15% {
        transform: scale(1.1);
    }

    30% {
        transform: scale(1);
    }
}

/* Chatbot */
#chatbot-toggle {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 5px 20px rgba(27, 152, 224, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(27, 152, 224, 0.6);
}

#chatbot-container {
    position: fixed;
    bottom: 160px;
    right: 25px;
    width: 350px;
    max-height: 450px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#chatbot-container.visible {
    display: flex;
}

.chatbot-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.5;
}

.chat-message.bot {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    background: var(--primary-blue);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-input-form {
    display: flex;
    padding: 12px;
    border-top: 1px solid var(--border-color);
    gap: 8px;
}

.chatbot-input-form input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.chatbot-input-form input:focus {
    border-color: var(--primary-blue);
}

.chatbot-input-form button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chatbot-input-form button:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: 2;
    }

    .u-nav-list {
        display: none;
    }

    .footer-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .tool-card {
        padding: 25px 20px;
        border-radius: 24px;
    }

    .tool-title {
        font-size: 1.8rem;
    }

    .result-value {
        font-size: 2rem;
    }

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

    .seo-content {
        padding: 25px;
    }

    .seo-content h2 {
        font-size: 1.4rem;
    }

    #chatbot-toggle {
        bottom: 140px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    #chatbot-container {
        bottom: 200px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        height: 50vh;
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .footer-wrapper {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .ad-footer-section {
        display: none;
    }
}

@media (max-width: 480px) {
    #chatbot-toggle {
        bottom: 130px;
        right: 12px;
        width: 42px;
        height: 42px;
    }

    #chatbot-container {
        bottom: 185px;
        right: 8px;
        left: 8px;
        height: 45vh;
        max-height: 320px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes float {

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

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Fix alignment issues: Center tool header descriptions and upload area texts */
.tool-header p,
.upload-area p,
.upload-content p {
    text-align: center !important;
}


/* Responsive Chatbot Placement Fix: Reposition chatbot button to the header on mobile devices */
@media (max-width: 768px) {
    /*
     * Equal-spacing layout for 3 header icons: [Moon] [Robot] [Hamburger]
     * Each button is 42px wide. Gap between each = 12px.
     * Hamburger: right: 15px (header padding) -> left edge at 57px from screen right
     * Chatbot  : right: 69px -> left edge at 111px from screen right
     * Theme    : right edge at 123px -> header-right margin-right = 123 - 15(padding) = 108px
     */
    .mobile-menu-toggle {
        order: 100 !important;
        flex-shrink: 0 !important;
    }
    
    .header-right {
        gap: 0 !important;
        margin-right: 108px !important;
    }
    
    #chatbot-toggle {
        position: fixed !important;
        top: 15px !important;
        bottom: auto !important;
        right: 69px !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 1.1rem !important;
        z-index: 10000 !important;
        background: var(--bg-tertiary, #1a1a2e) !important;
        border: 1px solid var(--border-color, #3a476a) !important;
        color: var(--text-primary, #ffffff) !important;
        box-shadow: none !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    #chatbot-toggle:hover {
        background: var(--primary-blue, #1b98e0) !important;
        border-color: var(--primary-blue, #1b98e0) !important;
        color: #fff !important;
    }
    
    #chatbot-container {
        position: fixed !important;
        top: 75px !important;
        bottom: auto !important;
        right: 15px !important;
        left: 15px !important;
        width: auto !important;
        max-width: none !important;
        height: 60vh !important;
        max-height: 400px !important;
        z-index: 10000 !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
    }
}

@media (max-width: 480px) {
    /*
     * Equal-spacing on small phones. Each button 38px wide. Gap = 10px.
     * Hamburger: right: 12px -> left edge at 50px
     * Chatbot  : right: 60px -> left edge at 98px
     * Theme    : right edge at 108px -> header-right margin-right = 108 - 12 = 96px
     */
    .header-right {
        margin-right: 96px !important;
    }

    #chatbot-toggle {
        top: 13px !important;
        right: 60px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }
    
    #chatbot-container {
        top: 68px !important;
        right: 10px !important;
        left: 10px !important;
        height: 55vh !important;
    }
}
