/* ================================================================
   ProjectUnifyX — Complete Unified Design System
   All pages import only this single file.
   Created by Ved Mangukiya · 100% Free & Open Source
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
    /* Backgrounds */
    --bg-primary:   #FBFBFA;
    --bg-secondary: #F4F3EE;
    --bg-card:      rgba(255, 255, 255, 0.88);
    --bg-glass:     rgba(255, 255, 255, 0.78);
    --bg-hover:     #F0EDE5;

    /* Gold / Ivory Accent */
    --accent-gold:       #C5A059;
    --accent-gold-hover: #B38E46;
    --accent-gold-light: rgba(197, 160, 89, 0.12);

    /* Cyan Accent */
    --accent-cyan:       #0EA5E9;
    --accent-cyan-light: rgba(14, 165, 233, 0.10);

    /* Text */
    --text-main:    #111827;
    --text-muted:   #6B7280;
    --text-subtle:  #9CA3AF;
    --text-inverse: #FFFFFF;

    /* Borders */
    --border-subtle: rgba(215, 210, 198, 0.55);
    --border-hover:  rgba(197, 160, 89, 0.45);
    --border-focus:  rgba(197, 160, 89, 0.65);

    /* Shadows */
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.04);
    --shadow-md:  0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg:  0 20px 48px rgba(0,0,0,0.08), 0 0 20px rgba(197,160,89,0.07);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.05);

    /* Radii */
    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast:   all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
    --bg-primary:   #0B0C10;
    --bg-secondary: #111420;
    --bg-card:      rgba(16, 20, 32, 0.90);
    --bg-glass:     rgba(12, 15, 24, 0.82);
    --bg-hover:     #171b28;

    --text-main:   #F3F4F6;
    --text-muted:  #9CA3AF;
    --text-subtle: #6B7280;

    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-hover:  rgba(197, 160, 89, 0.50);

    --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
    --shadow-lg: 0 20px 48px rgba(0,0,0,0.55);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.30);
}

/* ================================================================
   2. GLOBAL RESET & BASE
   ================================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-main);
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 15% 10%, rgba(197,160,89,0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 85%, rgba(14,165,233,0.04) 0%, transparent 45%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ================================================================
   3. LAYOUT CONTAINERS
   ================================================================ */
.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* Tool-page content wrapper */
.app-page {
    flex: 1;
    padding: 3rem 0 5rem;
    animation: fadeSlideUp 0.35s cubic-bezier(0.16,1,0.3,1) both;
}

.app-container {
    width: 100%;
    max-width: 940px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}
.app-container.wide {
    max-width: 1180px;
}
/* When both .container and .app-container appear on same div, use app-container limits */
.container.app-container {
    max-width: 940px;
}
.container.app-container.wide {
    max-width: 1180px;
}

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

/* ================================================================
   4. SITE HEADER & NAVIGATION
   ================================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
    flex-shrink: 0;
}
.brand-logo img {
    height: 36px;
    width: 36px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* Brand Badge Pill */
.brand-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    background: var(--accent-gold-light);
    color: var(--accent-gold);
    border: 1px solid rgba(197,160,89,0.30);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}
.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.93rem;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

/* Nav Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.theme-toggle-btn:hover {
    border-color: var(--accent-gold);
    background: var(--bg-hover);
}

/* ================================================================
   5. BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-smooth);
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #111827 0%, #1e2d42 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(17,24,39,0.18);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(17,24,39,0.28);
}
[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #A37E3A 100%);
    color: #000;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border-color: var(--border-subtle);
}
.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-copy {
    background: var(--accent-gold-light);
    color: var(--accent-gold);
    border: 1px solid rgba(197,160,89,0.30);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-copy:hover {
    background: var(--accent-gold);
    color: #000;
}

.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

/* ================================================================
   6. GLASSMORPHIC CARDS
   ================================================================ */
.app-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2rem;
    margin-bottom: 1.75rem;
    transition: var(--transition-smooth);
}

.app-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 9px;
}
.app-card-title svg {
    flex-shrink: 0;
}

/* ================================================================
   7. TOOL PAGE HEADER ELEMENTS
   ================================================================ */
.tool-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.back-link:hover { color: var(--accent-gold); }

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 13px;
    border-radius: var(--radius-full);
    background: var(--accent-gold-light);
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(197,160,89,0.28);
}

.tool-title-wrapper {
    margin-bottom: 2rem;
}
.tool-main-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}
.tool-subtitle {
    font-size: 1.02rem;
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.5;
}

/* ================================================================
   8. FORM CONTROLS
   ================================================================ */
.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.form-label {
    display: block;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.45rem;
}
.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 15px;
    font-size: 0.96rem;
    font-family: inherit;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    color: var(--text-main);
    outline: none;
    transition: var(--transition-fast);
    line-height: 1.4;
}
.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-gold-light);
}
.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ================================================================
   9. RESULT BOXES
   ================================================================ */
.result-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    margin-top: 0.75rem;
}
.result-box.highlight {
    background: var(--accent-gold-light) !important;
    border-color: rgba(197,160,89,0.40) !important;
}
.result-label {
    font-size: 0.79rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.result-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    word-break: break-word;
    line-height: 1.2;
}

/* ================================================================
   10. RESPONSIVE GRID HELPERS
   ================================================================ */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ================================================================
   11. TABLE COMPONENT
   ================================================================ */
.custom-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-top: 0.75rem;
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}
.custom-table th,
.custom-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
}
.custom-table th {
    background: var(--bg-secondary);
    font-weight: 700;
    font-size: 0.80rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}
.custom-table tr:last-child td { border-bottom: none; }
.custom-table tbody tr:hover { background: var(--bg-hover); }

/* ================================================================
   12. TOOL CATALOG CARDS (index.html / catalog.html)
   ================================================================ */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.tool-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
    opacity: 0;
    transition: var(--transition-fast);
}
.tool-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}
.tool-card:hover::before { opacity: 1; }

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.tool-card:hover .icon-box {
    background: var(--accent-gold-light);
    border-color: rgba(197,160,89,0.40);
}
.card-badge {
    font-size: 0.70rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.card-title {
    font-size: 1.13rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--text-main);
    line-height: 1.3;
}
.card-desc {
    font-size: 0.90rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.card-footer-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text-main);
}
.action-arrow {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.tool-card:hover .action-arrow {
    background: var(--text-main);
    color: var(--bg-primary);
    transform: translateX(4px);
}

/* ================================================================
   13. HERO SECTION (index / catalog)
   ================================================================ */
.hero-section {
    padding: 4.5rem 0 3rem;
    text-align: center;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: var(--accent-gold-light);
    border: 1px solid rgba(197,160,89,0.28);
    color: var(--accent-gold);
    font-size: 0.83rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
}
.hero-title {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.1rem;
    color: var(--text-main);
}
.hero-title span {
    background: linear-gradient(135deg, #111827, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="dark"] .hero-title span {
    background: linear-gradient(135deg, #ffffff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    max-width: 660px;
    margin-inline: auto;
    margin-bottom: 2.25rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ================================================================
   14. SEARCH BAR
   ================================================================ */
.search-container {
    max-width: 620px;
    margin-inline: auto;
    margin-bottom: 2rem;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon-inside {
    position: absolute;
    left: 18px;
    color: var(--text-subtle);
    pointer-events: none;
    display: flex;
    align-items: center;
}
.search-input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    font-size: 1rem;
    font-family: inherit;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    color: var(--text-main);
    box-shadow: var(--shadow-md);
    outline: none;
    transition: var(--transition-smooth);
}
.search-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--accent-gold-light), var(--shadow-lg);
}

/* ================================================================
   15. CATEGORY TAB FILTERS
   ================================================================ */
.category-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2.75rem;
}
.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.tab-btn:hover {
    background: var(--bg-hover);
    color: var(--text-main);
    border-color: var(--border-hover);
}
.tab-btn.active {
    background: var(--text-main);
    color: var(--bg-primary);
    border-color: var(--text-main);
    font-weight: 600;
}
[data-theme="dark"] .tab-btn.active {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

/* ================================================================
   16. TOOLS GRID SECTION
   ================================================================ */
.tools-section {
    padding-bottom: 4rem;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ================================================================
   17. ABOUT / CREATOR SECTION
   ================================================================ */
.about-section {
    padding: 4rem 0 5rem;
}
.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: center;
}
.creator-avatar-wrapper {
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}
.creator-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 3px solid var(--accent-gold);
    box-shadow: 0 12px 32px rgba(197,160,89,0.22);
    transition: var(--transition-smooth);
}
.creator-avatar-wrapper:hover .creator-avatar {
    transform: scale(1.03);
    box-shadow: 0 20px 48px rgba(197,160,89,0.32);
}
.creator-info h2 {
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}
.creator-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 1.1rem;
}
.creator-bio {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}
.creator-stats-list {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}
.creator-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-main);
}

/* ================================================================
   18. STATS BANNER
   ================================================================ */
.stats-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2.75rem 2rem;
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.stat-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.2rem;
}

/* ================================================================
   19. SITE FOOTER
   ================================================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 0 2rem;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.85rem;
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.55;
}
.footer-col-title {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.1rem;
    color: var(--text-main);
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--accent-gold); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.86rem;
    color: var(--text-subtle);
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ================================================================
   20. OPEN SOURCE BADGE
   ================================================================ */
.open-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.10);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.28);
    font-size: 0.80rem;
    font-weight: 600;
}

/* ================================================================
   21. FILE DROP ZONES (PDF / Image tools)
   ================================================================ */
.file-drop-zone {
    border: 2px dashed var(--accent-gold);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2.75rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 1.5rem;
}
.file-drop-zone:hover {
    background: var(--accent-gold-light);
}
.file-drop-zone h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}
.file-drop-zone p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ================================================================
   22. RESPONSIVE BREAKPOINTS
   ================================================================ */
/* ================================================================
   22. RESPONSIVE BREAKPOINTS & MOBILE ZERO-SCROLL FIXES
   ================================================================ */

html, body {
    overflow-x: hidden !important;
    max-width: 100%;
}

.mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}
.mobile-nav-toggle:hover {
    border-color: var(--accent-gold);
    background: var(--bg-hover);
}

.category-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
}

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

@media (max-width: 900px) {
    .hero-title { font-size: 2.35rem; }
    .about-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.75rem;
    }
    .creator-avatar-wrapper {
        width: 180px;
        height: 180px;
        margin-inline: auto;
    }
    .creator-stats-list { justify-content: center; }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-subtle);
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .nav-links.is-open {
        display: flex;
        animation: fadeSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
        margin-bottom: 1rem;
    }
    .category-tabs::-webkit-scrollbar {
        display: none;
    }
    .tab-btn {
        flex-shrink: 0;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .hero-title { font-size: 1.95rem; }
    .hero-subtitle { font-size: 1rem; }
    .tool-main-title { font-size: 1.65rem; }
    .tools-grid { grid-template-columns: 1fr; }
    .form-grid-2,
    .form-grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .stats-banner { grid-template-columns: repeat(2, 1fr); }
    .section-header { flex-direction: column; align-items: flex-start; }
    .about-card { padding: 2rem 1.5rem; }
    .btn { min-height: 44px; }
    .result-value, .result-box, .card-title {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .container, .app-container { padding-inline: 0.9rem; }
    .app-card { padding: 1.35rem 1.1rem; }
    .result-value { font-size: 1.5rem; }
    .stat-num { font-size: 1.85rem; }
    .stats-banner { grid-template-columns: 1fr; }
}

/* ================================================================
   23. ULTRA-SMOOTH ANIMATIONS & INTERACTIVE STORAGE UI
   ================================================================ */

/* Global Theme Transition */
html, body, .site-header, .app-card, .tool-card, .btn, .form-control, .result-box {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Ambient Background Motion Orbs */
body::after {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.07) 0%, rgba(14, 165, 233, 0.03) 50%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: floatParticle 24s ease-in-out infinite alternate;
}

@keyframes floatParticle {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8%, 12%) scale(1.1); }
    100% { transform: translate(-5%, 8%) scale(0.95); }
}

/* Card Levitation & Smooth Hover Glow */
.tool-card, .app-card {
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-7px) scale(1.015);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1), 0 0 24px rgba(197, 160, 89, 0.18);
    border-color: var(--accent-gold);
}

.app-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Button Spring Click Response */
.btn {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active {
    transform: scale(0.95);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.35);
}

/* Result Bounce Pop Animation */
@keyframes resultPop {
    0% { transform: scale(0.92); opacity: 0.5; }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); opacity: 1; }
}

.result-box.pop-animate {
    animation: resultPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.result-value.pop-animate {
    animation: resultPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Toast Floating Notification System */
.unifyx-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.unifyx-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--accent-gold);
    color: var(--text-main);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 0 15px rgba(197, 160, 89, 0.2);
    font-weight: 600;
    font-size: 0.92rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both, toastFadeOut 0.35s ease forwards 2.65s;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastFadeOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

.unifyx-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* Favorite Star Button */
.fav-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-glass);
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fav-btn:hover {
    transform: scale(1.15);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.fav-btn.active {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.15);
    border-color: #F59E0B;
    animation: favStarPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes favStarPop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.3) rotate(15deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* LocalStorage Reset Button in Tool Header Bar */
.storage-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.storage-reset-btn:hover {
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

