/* ---- Local Google Fonts (WOFF2 primary — ~23KB vs 325KB TTF) ---- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Inter-400.woff2') format('woff2'),
        url('../fonts/Inter-400.ttf') format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Inter-600.woff2') format('woff2'),
        url('../fonts/Inter-600.ttf') format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Inter-700.woff2') format('woff2'),
        url('../fonts/Inter-700.ttf') format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---- CSS Reset & Performance Settings ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ---- Theme Variables ---- */
[data-theme="dark"] {
    color-scheme: dark;
    --bg-primary: #07071a;
    --bg-secondary: #0d0d2b;
    --bg-tertiary: #14143a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-card-solid: #161640;
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-input-focus: rgba(255, 255, 255, 0.1);
    --bg-nav: rgba(7, 7, 26, 1);

    --text-primary: #eaeaf5;
    --text-secondary: #8888aa;
    --text-tertiary: #5a5a7a;
    --text-inverse: #07071a;

    --accent-primary: #7c5cfc;
    --accent-secondary: #00d4e8;
    --accent-success: #22c55e;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;

    --gradient-accent: var(--accent-primary);
    --gradient-hero: var(--bg-primary);
    --gradient-card: var(--bg-card);
    --gradient-warm: var(--accent-danger);
    --gradient-cool: var(--accent-primary);
    --gradient-success: var(--accent-success);

    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(124, 92, 252, 0.3);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(124, 92, 252, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);

    --glass-blur: 12px;
    --glass-bg: rgba(255, 255, 255, 0.03);

    --scrollbar-track: #0d0d2b;
    --scrollbar-thumb: #2a2a5a;

    --modal-overlay-bg: rgba(0, 0, 0, 0.75);
}

[data-theme="light"] {
    color-scheme: light;
    --bg-primary: #f0f2f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8eaf4;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-card-solid: #ffffff;
    --bg-input: rgba(0, 0, 0, 0.04);
    --bg-input-focus: rgba(0, 0, 0, 0.06);
    --bg-nav: rgba(255, 255, 255, 1);

    --text-primary: #1a1a3e;
    --text-secondary: #6b7294;
    --text-tertiary: #9ca3be;
    --text-inverse: #ffffff;

    --accent-primary: #6c47ff;
    --accent-secondary: #00b4d8;
    --accent-success: #16a34a;
    --accent-warning: #d97706;
    --accent-danger: #dc2626;

    --gradient-accent: var(--accent-primary);
    --gradient-hero: var(--bg-primary);
    --gradient-card: var(--bg-card);
    --gradient-warm: var(--accent-danger);
    --gradient-cool: var(--accent-primary);
    --gradient-success: var(--accent-success);

    --border-color: rgba(0, 0, 0, 0.07);
    --border-color-hover: rgba(0, 0, 0, 0.12);
    --border-accent: rgba(108, 71, 255, 0.25);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(108, 71, 255, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);

    --glass-blur: 8px;
    --glass-bg: rgba(0, 0, 0, 0.04);

    --scrollbar-track: #e8eaf4;
    --scrollbar-thumb: #c0c4d8;

    --modal-overlay-bg: rgba(15, 15, 40, 0.5);
}

/* ---- Language Toggle ---- */
[data-lang="id"] .lang-en {
    display: none !important;
}

[data-lang="en"] .lang-id {
    display: none !important;
}

/* ---- Body ---- */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 0.5rem 0rem 0.5rem;
}

.container-sm {
    max-width: 800px;
}

.container-lg {
    max-width: 1400px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    height: 64px;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    /*! gap: 0.6rem; */
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.nav-brand .brand-icon-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.nav-brand .brand-text-desktop,
.nav-brand .brand-text-mobile {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand .brand-text-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .nav-brand .brand-text-desktop {
        display: none !important;
    }

    .nav-brand .brand-text-mobile {
        display: inline-block !important;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-links a.active {
    color: var(--accent-primary);
}

.nav-divider {
    width: 1px;
    height: 18px;
    background: var(--border-color);
    margin: 0 0.5rem;
}

/* ---- Navigation Dropdown (Desktop Only) ---- */
.desktop-only {
    display: block;
}

.mobile-only-categories {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only-categories {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
    }
}

.nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-wrapper:hover .nav-dropdown-trigger {
    color: var(--text-primary);
    background: var(--bg-card);
}

.dropdown-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.nav-dropdown-wrapper:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-card {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    width: 480px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1010;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.nav-dropdown-wrapper:hover .nav-dropdown-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.nav-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    color: var(--text-primary);
    border: 1px solid transparent;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.dropdown-item.active {
    background: var(--bg-card);
    border-color: var(--border-accent);
}

.cat-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.cat-info {
    display: flex;
    flex-direction: column;
}

.cat-info span {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.nav-lang-btn {
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
}

.nav-lang-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* ---- Navbar Search Box (10015.io Style) ---- */
.nav-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 360px;
    margin: 0 1.5rem;
}

.nav-search-box {
    position: relative;
    width: 100%;
}

.nav-search-box i,
.nav-search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.nav-search-box input {
    width: 100%;
    height: 38px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 0.5rem 2.25rem 0.5rem 2.5rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.nav-search-box input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-input-focus);
    box-shadow: 0 0 12px rgba(124, 92, 252, 0.2);
}

.search-clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.search-clear-btn:hover {
    color: var(--accent-danger);
    background: rgba(255, 255, 255, 0.1);
}

/* Floating Results Dropdown */
.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1010;
    max-height: 320px;
    overflow-y: auto;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    animation: slideIn 0.2s ease;
}

.nav-search-results {
    padding: 0.5rem;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-search-results li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.nav-search-results li a i {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.nav-search-results li a:hover {
    background: var(--bg-card-hover);
    color: var(--accent-primary);
}

.nav-search-results li a:hover i {
    color: var(--accent-primary);
}

.nav-search-dropdown .no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}



.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Theme & Language Toggle */
.toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.toggle-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-1px);
}

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

.toggle-btn.collapsed {
    opacity: 0.55;
}

.lang-toggle {
    font-size: 0.75rem;
    font-weight: 700;
    width: auto;
    padding: 0 0.7rem;
    letter-spacing: 0.02em;
}

/* Mobile Menu Toggle */
.mobile-menu-btn,
.mobile-search-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

/* ---- Mobile Nav ---- */
@media (max-width: 768px) {

    .mobile-search-toggle {
        display: flex;
    }

    .btn-sidebar-visibility {
        display: none;
    }

    .nav-search-wrapper {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0.75rem 1rem;
        background: var(--bg-nav);
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
        z-index: 999;

        /* Hide by default on mobile */
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-search-wrapper.show-mobile {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-search-box input {
        width: 100% !important;
        height: 40px !important;
        padding: 0.5rem 2.25rem 0.5rem 2.5rem !important;
        background: var(--bg-input) !important;
        border: 1px solid var(--border-color) !important;
        cursor: text !important;
        font-size: 0.85rem !important;
        border-radius: 10px !important;
    }

    .nav-search-box i,
    .nav-search-box svg {
        left: 1.2rem !important;
    }

    .nav-search-wrapper .nav-search-dropdown {
        left: 1rem;
        right: 1rem;
    }

    .search-clear-btn {
        display: flex;
    }

    .nav-divider {
        width: 100%;
        height: 1px;
        background: var(--border-color);
        margin: 0.5rem 0;
    }

    .nav-lang-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: left;
        justify-content: flex-start;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-nav);
        backdrop-filter: blur(var(--glass-blur));
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 0.75rem 1rem;
    }

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 30%, rgba(124, 92, 252, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(0, 212, 232, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    background: var(--accent-success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
    background: none;
    -webkit-text-fill-color: var(--accent-primary);
    background-clip: unset;
    color: var(--accent-primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Hero Search */
.hero-search {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-search input {
    width: 100%;
    padding: 0.95rem 1.2rem 0.95rem 3rem;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-search input::placeholder {
    color: var(--text-tertiary);
}

.hero-search input:focus {
    background: var(--bg-input-focus);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1);
}

.hero-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

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

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-header a {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s ease;
}

.section-header a:hover {
    gap: 0.6rem;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.category-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.2rem;
}

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

.category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.category-card .count {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ============================================
   TOOL CARDS GRID
   ============================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.tool-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
    padding-right: 5.2rem;
    /* Jarak aman agar teks judul tidak bertumpuk dengan badge api & tombol bintang */
}

.tool-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.05) rotate(-3deg);
}

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

.tool-card-header .tool-info {
    flex: 1;
}

.tool-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card .tool-category-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: var(--bg-input);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 1.2rem;
    min-height: 3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card .tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    transition: gap 0.2s ease;
}

.tool-card:hover .tool-link {
    gap: 0.7rem;
}

.tool-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 92, 252, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 92, 252, 0.4);
}

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

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

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-danger {
    background: var(--accent-danger);
    color: white;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
}

.footer-brand .brand-icon {
    width: 28px;
    height: 28px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-children>*:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children>*:nth-child(3) {
    transition-delay: 0.15s;
}

.stagger-children>*:nth-child(4) {
    transition-delay: 0.2s;
}

.stagger-children>*:nth-child(5) {
    transition-delay: 0.25s;
}

.stagger-children>*:nth-child(6) {
    transition-delay: 0.3s;
}

.stagger-children>*:nth-child(7) {
    transition-delay: 0.35s;
}

.stagger-children>*:nth-child(8) {
    transition-delay: 0.4s;
}

.stagger-children>*:nth-child(9) {
    transition-delay: 0.45s;
}

.stagger-children>*:nth-child(10) {
    transition-delay: 0.5s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .hero {
        padding: 6rem 0 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section {
        padding: 1.5rem 0;
    }

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

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

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

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

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

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.hidden {
    display: none !important;
}

/* ============================================
   FEATURED / HIGHLIGHT TOOLS
   ============================================ */
.featured-section {
    position: relative;
    padding-bottom: 1.5rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.featured-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-glow);
    background: var(--gradient-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card .tool-card-header {
    padding-right: 75px;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
}

.featured-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    box-shadow: 0 12px 30px rgba(124, 92, 252, 0.25);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 3rem;
    /* Diberi jarak agar tidak bertumpuk dengan tombol bintang favorit */
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    color: white;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

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

    .featured-card p {
        display: none !important;
    }

    .featured-card {
        padding: 1rem 0.85rem;
    }

    .featured-card .featured-badge {
        display: none !important;
    }

    .featured-card .tool-card-header {
        padding-right: 0;
        gap: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .featured-card .tool-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px;
    }

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

    .featured-card h3 {
        font-size: 0.8rem;
        min-height: auto;
    }

    .featured-card .tool-category-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.35rem;
    }

    .featured-card .tool-link {
        font-size: 0.75rem;
        margin-top: auto;
    }
}

/* ============================================
   GLOBAL CUSTOM ALERT / CONFIRM MODALS
   ============================================ */
.global-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 18, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.global-dialog-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.global-dialog-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-30px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.global-dialog-overlay.open .global-dialog-card {
    transform: translateY(0);
}

.global-dialog-body {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.global-dialog-footer {
    display: flex;
    border-top: 1px solid var(--border-color);
    height: 56px;
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .global-dialog-footer {
    background: rgba(0, 0, 0, 0.01);
}

.modal-footer-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modal-footer-btn:hover {
    background: var(--bg-input);
}

.modal-footer-btn:active {
    background: var(--bg-input-focus);
}

#modal-btn-cancel {
    border-right: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Custom Alert/Confirm Card Styling */
.alert-card {
    max-width: 340px;
}

.alert-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.alert-icon-wrapper.info {
    background: rgba(124, 92, 252, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(124, 92, 252, 0.25);
}

.alert-icon-wrapper.warning {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-icon-wrapper i {
    width: 32px;
    height: 32px;
}

#global-alert-message-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   PERFORMANCE SCROLL & HARDWARE ACCELERATION
   ============================================ */
.is-scrolling,
.is-scrolling * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.navbar,
.nav-dropdown-card,
.nav-search-dropdown,
.user-dropdown-menu,
.global-dialog-overlay {
    will-change: transform, backdrop-filter;
}


/* ============================================
   GLOBAL SIDEBAR & DRAWER NAVIGATION (PWA)
   ============================================ */
/* Sidebar Styling */
.tool-sidebar {
    background: var(--glass-bg);
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    height: calc(100vh - 64px);
    position: sticky;
    top: 64px;
    display: flex;
    flex-direction: column;
    z-index: 99;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s ease;
    width: 280px;
}

/* Sidebar Footer Toggle styling */
.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: var(--glass-bg);
    transition: justify-content 0.3s ease;
}

.tool-sidebar.minimized .sidebar-footer {
    justify-content: center;
}

.sidebar-footer button {
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-footer button:hover {
    background: var(--bg-card-hover);
    color: var(--accent-primary);
}

.sidebar-footer button svg {
    width: 18px;
    height: 18px;
}

/* Minimized Nav Links & Category Headers */
.tool-sidebar.minimized .sidebar-category-title {
    justify-content: center;
    padding: 0.5rem 0;
}

.tool-sidebar.minimized .sidebar-category-title span {
    display: none;
}

.tool-sidebar.minimized .sidebar-tools-list {
    align-items: center;
}

.tool-sidebar.minimized .sidebar-tool-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

.tool-sidebar.minimized .sidebar-tool-item a {
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
}

.tool-sidebar.minimized .sidebar-tool-item a span {
    display: none;
}

.tool-sidebar.minimized .sidebar-tool-item a .tool-icon {
    width: 20px;
    height: 20px;
    margin: 0;
}

.tool-sidebar.minimized .sidebar-tool-item.active {
    border-left: none;
    border-radius: 10px;
    background: transparent;
}

.tool-sidebar.minimized .sidebar-tool-item.active a {
    background: rgba(124, 92, 252, 0.15);
    border: 1px solid rgba(124, 92, 252, 0.4);
    color: var(--accent-secondary);
    padding-left: 0;
}

.sidebar-search-box {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.sidebar-search-box i {
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 16px;
    height: 16px;
}

.sidebar-search-box input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.sidebar-search-box input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-input-focus);
    box-shadow: 0 0 10px rgba(124, 92, 252, 0.15);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-category-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.sidebar-category-group.hidden {
    display: none !important;
}

.sidebar-category-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cat-color, var(--text-secondary));
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    opacity: 0.85;
}

.sidebar-category-title .cat-icon {
    width: 14px;
    height: 14px;
}

.sidebar-tools-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
}

.sidebar-tool-item {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-tool-item.hidden {
    display: none !important;
}

.sidebar-tool-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-tool-item a .tool-icon {
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.sidebar-tool-item:hover {
    background: var(--bg-card-hover);
}

.sidebar-tool-item:hover a {
    color: var(--text-primary);
}

.sidebar-tool-item:hover a .tool-icon {
    color: var(--accent-primary);
}

.sidebar-tool-item.active {
    background: rgba(124, 92, 252, 0.1);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 8px 8px 0;
}

.sidebar-tool-item.active a {
    color: #9793ff;
    font-weight: 700;
    padding-left: calc(0.75rem - 3px);
}

.sidebar-tool-item.active a .tool-icon {
    color: var(--accent-secondary);
}

.sidebar-overlay {
    display: none;
}

/* Mobile Responsive Drawer Sidebar */
@media (max-width: 992px) {
    .tool-sidebar {
        position: fixed;
        top: 64px;
        left: 0;
        bottom: 0;
        width: 280px;
        height: calc(100vh - 64px);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        background: var(--bg-secondary);
        border-right: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }

    .tool-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--modal-overlay-bg, rgba(0, 0, 0, 0.55));
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-locked {
        overflow: hidden;
    }
}

/* Root level sidebar (non-tool pages footer sidebar) rules */
body>.tool-sidebar {
    display: none;
}

@media (max-width: 992px) {
    body>.tool-sidebar {
        display: flex;
        position: fixed;
        top: 64px;
        left: 0;
        bottom: 0;
        width: 280px;
        height: calc(100vh - 64px);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        background: var(--bg-secondary);
        border-right: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }

    body>.tool-sidebar.open {
        transform: translateX(0);
    }
}


/* ============================================
   MOBILE NATIVE-APP GRID LAYOUT (Optional Screen-Size <= 768px)
   ============================================ */
@media (max-width: 768px) {

    /* Minimize Hero section for mobile screen space efficiency */
    .hero {
        padding: 4.5rem 0 1rem !important;
    }

    .hero h1 {
        font-size: 1.40rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.4rem !important;
    }

    .hero p {
        display: none !important;
    }

    .section {
        padding: 0.75rem 0 !important;
    }

    .section-header {
        margin-bottom: 0.75rem !important;
    }

    .section-header h2 {
        font-size: 1.15rem !important;
    }

    /* Transform tools grid to 4-column app-like grid */
    .tools-grid,
    .featured-grid,
    #my-favorites-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.25rem 0.5rem !important;
        padding: 0 0.25rem !important;
    }

    /* Transform tool card to minimal app icon style */
    .tool-card {
        padding: 0.5rem 0.25rem !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        align-items: center !important;
        text-align: center !important;
        border-radius: 0 !important;
        overflow: visible !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Hide background pseudo elements on hover */
    .tool-card::before {
        display: none !important;
    }

    /* Reset card header layout */
    .tool-card-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding-right: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
    }

    /* Squircle tool icon styling */
    .tool-card .tool-icon {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        border-radius: 18px !important;
        /* iOS squircle look */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        transition: transform 0.2s ease !important;
    }

    .tool-card:hover .tool-icon {
        transform: scale(1.05) !important;
    }

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

    /* Hide info category badge */
    .tool-card .tool-category-badge {
        display: none !important;
    }

    /* Card Title styling */
    .tool-card h3 {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
        color: var(--text-primary) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        min-height: 2.6em !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Hide card description, link, and featured badges */
    .tool-card p,
    .tool-card .tool-link,
    .tool-card .featured-badge {
        display: none !important;
    }

    /* Adjust favorite button layout on mobile */
    .tool-card .fav-btn {
        top: 0px !important;
        right: 4px !important;
        width: 24px !important;
        height: 24px !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: var(--shadow-sm) !important;
    }

    .tool-card .fav-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
}