/* =========================================
           CSS Reset & Design Tokens
           ========================================= */
        :root {
            --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            --bg-body: #070a12;
            --bg-surface: #0e1424;
            --bg-card: #121a2d;
            --bg-card-hover: #18233c;
            --border-subtle: rgba(255, 255, 255, 0.08);
            --border-highlight: rgba(74, 222, 128, 0.35);
            --border-hover: rgba(255, 255, 255, 0.18);
            
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            
            --accent-green: #10b981;
            --accent-green-light: #34d399;
            --accent-green-glow: rgba(16, 185, 129, 0.2);
            --accent-blue: #3b82f6;
            --accent-purple: #8b5cf6;
            --accent-amber: #f59e0b;
            --accent-cyan: #06b6d4;

            --badge-free-bg: rgba(16, 185, 129, 0.15);
            --badge-free-text: #34d399;
            --badge-freemium-bg: rgba(59, 130, 246, 0.15);
            --badge-freemium-text: #60a5fa;
            --badge-trial-bg: rgba(139, 92, 246, 0.15);
            --badge-trial-text: #c084fc;
            --badge-paid-bg: rgba(245, 158, 11, 0.15);
            --badge-paid-text: #fbbf24;

            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 16px;
            --radius-full: 9999px;

            --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
            --transition-smooth: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-family);
            background-color: var(--bg-body);
            color: var(--text-primary);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
            width: 100%;
        }

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

        button {
            font-family: inherit;
            cursor: pointer;
        }

        /* =========================================
           Navbar & Mobile Header
           ========================================= */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 4%;
            background-color: rgba(7, 10, 18, 0.9);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--border-subtle);
            position: sticky;
            top: 0;
            z-index: 1000;
            width: 100%;
        }

        .logo-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            text-decoration: none;
            flex-shrink: 0;
        }

        .logo-icon-img {
            height: 36px;
            width: auto;
            object-fit: contain;
            transition: transform 0.25s ease;
        }

        .logo-wrap:hover .logo-icon-img {
            transform: scale(1.06) rotate(-2deg);
        }

        .logo-brand-img {
            height: 26px;
            width: auto;
            object-fit: contain;
        }

        .live-badge {
            background: rgba(16, 185, 129, 0.15);
            border: 1px solid rgba(16, 185, 129, 0.3);
            color: var(--accent-green-light);
            font-size: 11px;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: var(--radius-full);
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .live-dot {
            width: 6px;
            height: 6px;
            background: var(--accent-green-light);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--accent-green-light);
        }

        .nav-center {
            display: flex;
            align-items: center;
            gap: 6px;
            list-style: none;
        }

        .nav-center a {
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            transition: var(--transition-smooth);
            cursor: pointer;
        }

        .nav-center a:hover {
            color: var(--text-primary);
            background: rgba(255, 255, 255, 0.05);
        }

        .nav-center a.active {
            color: var(--accent-green-light);
            background: rgba(16, 185, 129, 0.12);
        }

        .nav-pill-hot {
            background: linear-gradient(135deg, #f59e0b, #ef4444);
            color: #fff;
            font-size: 10px;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 4px;
            text-transform: uppercase;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .btn-vault-saved {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-subtle);
            color: var(--text-primary);
            padding: 8px 14px;
            border-radius: var(--radius-full);
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: var(--transition-smooth);
            cursor: pointer;
        }

        .btn-vault-saved:hover {
            border-color: var(--accent-amber);
            background: rgba(245, 158, 11, 0.1);
            color: #fbbf24;
        }

        .vault-counter {
            background: #f59e0b;
            color: #000;
            font-size: 11px;
            font-weight: 800;
            padding: 1px 6px;
            border-radius: var(--radius-full);
        }

        .btn-submit-tool {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #ffffff;
            border: none;
            padding: 8px 16px;
            border-radius: var(--radius-full);
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
            transition: var(--transition-smooth);
            cursor: pointer;
        }

        .btn-submit-tool:hover {
            opacity: 0.92;
            transform: translateY(-1px);
        }

        /* 3-Bar Hamburger Toggle Button (Mobile) */
        .nav-hamburger-btn {
            display: none;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            padding: 8px 10px;
            cursor: pointer;
            flex-direction: column;
            gap: 4px;
            justify-content: center;
            align-items: center;
            transition: var(--transition-smooth);
        }

        .nav-hamburger-btn span {
            display: block;
            width: 20px;
            height: 2px;
            background-color: #ffffff;
            border-radius: 2px;
            transition: all 0.25s ease;
        }

        .nav-hamburger-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: var(--accent-green);
        }

        /* =========================================
           Mobile Drawer Navigation Overlay
           ========================================= */
        .mobile-drawer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 2500;
            display: none;
            justify-content: flex-end;
        }

        .mobile-drawer-overlay.active {
            display: flex;
        }

        .mobile-drawer-content {
            width: 310px;
            max-width: 85%;
            height: 100%;
            background: var(--bg-surface);
            border-left: 1px solid var(--border-subtle);
            padding: 24px 20px;
            display: flex;
            flex-direction: column;
            box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
            animation: drawerSlide 0.22s ease-out;
        }

        @keyframes drawerSlide {
            from { transform: translateX(100%); }
            to { transform: translateX(0); }
        }

        .mobile-drawer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 14px;
            border-bottom: 1px solid var(--border-subtle);
        }

        .mobile-drawer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }

        .mobile-nav-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
            border-radius: var(--radius-md);
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid transparent;
            transition: var(--transition-smooth);
        }

        .mobile-nav-link:hover, .mobile-nav-link.active {
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(16, 185, 129, 0.3);
            color: var(--accent-green-light);
        }

        .mobile-drawer-footer {
            margin-top: auto;
            padding-top: 16px;
            border-top: 1px solid var(--border-subtle);
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        /* =========================================
           Page Views Management (Router)
           ========================================= */
        .page-view {
            display: none;
            min-height: 80vh;
            width: 100%;
        }

        .page-view.active {
            display: block;
            animation: viewFadeIn 0.2s ease-out;
        }

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

        /* =========================================
           Hero Section (Directory Page)
           ========================================= */
        .hero {
            position: relative;
            padding: 44px 20px 28px;
            text-align: center;
            background: radial-gradient(circle at 50% 0%, rgba(20, 35, 65, 0.5) 0%, rgba(7, 10, 18, 1) 75%);
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -150px;
            left: 50%;
            transform: translateX(-50%);
            width: 700px;
            height: 350px;
            background: radial-gradient(ellipse, rgba(16, 185, 129, 0.12), transparent 70%);
            pointer-events: none;
        }

        .hero-announcement {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(19, 27, 46, 0.7);
            border: 1px solid rgba(16, 185, 129, 0.25);
            padding: 6px 16px;
            border-radius: var(--radius-full);
            font-size: 13px;
            font-weight: 600;
            color: var(--accent-green-light);
            margin-bottom: 20px;
            backdrop-filter: blur(8px);
        }

        .hero-title {
            font-size: clamp(30px, 4.5vw, 52px);
            font-weight: 800;
            line-height: 1.15;
            letter-spacing: -0.02em;
            margin-bottom: 14px;
            color: #ffffff;
        }

        .hero-title .gradient-text {
            background: linear-gradient(135deg, #4ade80 0%, #38bdf8 50%, #818cf8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-subtitle {
            font-size: clamp(14px, 1.8vw, 16px);
            color: var(--text-secondary);
            max-width: 740px;
            margin: 0 auto 24px;
            line-height: 1.6;
        }

        .hero-stats-row {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 30px;
        }

        .stat-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(18, 26, 45, 0.6);
            border: 1px solid var(--border-subtle);
            padding: 7px 16px;
            border-radius: var(--radius-full);
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            backdrop-filter: blur(10px);
        }

        .stat-badge svg {
            color: var(--accent-green);
        }

        /* Search Bar */
        .search-container {
            max-width: 820px;
            margin: 0 auto;
            position: relative;
            z-index: 5;
            width: 100%;
        }

        .search-box {
            display: flex;
            align-items: center;
            background: var(--bg-surface);
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: var(--radius-lg);
            padding: 6px 8px 6px 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            transition: var(--transition-smooth);
        }

        .search-box:focus-within {
            border-color: var(--accent-green);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.2);
        }

        .search-icon-wrap {
            color: var(--text-muted);
            display: flex;
            align-items: center;
            margin-right: 10px;
            flex-shrink: 0;
        }

        .search-input-field {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: #ffffff;
            font-size: 15px;
            font-family: inherit;
            min-width: 0;
        }

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

        .search-kbd {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-muted);
            font-size: 11px;
            font-weight: 700;
            padding: 3px 7px;
            border-radius: 4px;
            margin-right: 10px;
        }

        .btn-clear-input {
            background: transparent;
            border: none;
            color: var(--text-muted);
            padding: 6px;
            display: none;
            cursor: pointer;
            border-radius: 50%;
            margin-right: 6px;
        }

        .search-submit-btn {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #ffffff;
            border: none;
            padding: 10px 20px;
            border-radius: var(--radius-md);
            font-size: 14px;
            font-weight: 600;
            flex-shrink: 0;
        }

        .quick-chips-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 14px;
            flex-wrap: wrap;
        }

        .quick-chip {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border-subtle);
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 600;
            padding: 4px 12px;
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .quick-chip:hover {
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(16, 185, 129, 0.3);
            color: var(--accent-green-light);
        }

        /* =========================================
           Trending / Top Picks Shelf
           ========================================= */
        .trending-shelf {
            padding: 24px 4% 10px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .shelf-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 8px;
        }

        .shelf-title-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .shelf-title {
            font-size: 20px;
            font-weight: 700;
            color: #ffffff;
        }

        .shelf-tag {
            background: rgba(245, 158, 11, 0.15);
            color: #fbbf24;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: var(--radius-full);
            text-transform: uppercase;
        }

        .trending-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
        }

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

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

        /* =========================================
           Main Directory Section (Sidebar + Grid)
           ========================================= */
        .directory-section {
            padding: 24px 4% 60px;
            max-width: 1550px;
            margin: 0 auto;
        }

        .dir-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 12px 16px;
            margin-bottom: 20px;
            gap: 14px;
            flex-wrap: wrap;
        }

        .pricing-filters-wrap {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .pricing-filter-btn {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border-subtle);
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .pricing-filter-btn:hover {
            color: var(--text-primary);
            border-color: var(--border-hover);
        }

        .pricing-filter-btn.active {
            background: var(--accent-green);
            color: #070a12;
            border-color: var(--accent-green);
            font-weight: 700;
        }

        .dir-controls-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .sort-select {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            color: var(--text-primary);
            padding: 6px 10px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            outline: none;
        }

        .active-count-label {
            font-size: 12px;
            color: var(--text-muted);
            white-space: nowrap;
        }

        .mobile-category-row {
            display: none;
            margin-bottom: 16px;
        }

        @media (max-width: 850px) {
            .mobile-category-row { display: block; }
        }

        .mobile-cat-select {
            width: 100%;
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            color: var(--text-primary);
            padding: 10px 12px;
            border-radius: var(--radius-md);
            font-size: 14px;
            font-weight: 600;
            outline: none;
        }

        .dir-layout {
            display: flex;
            gap: 28px;
            align-items: flex-start;
        }

        .dir-sidebar {
            width: 260px;
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 16px 12px;
            position: sticky;
            top: 80px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
            flex-shrink: 0;
        }

        @media (max-width: 850px) {
            .dir-sidebar { display: none; }
        }

        .dir-sidebar::-webkit-scrollbar {
            width: 4px;
        }

        .dir-sidebar::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.12);
            border-radius: 4px;
        }

        .sidebar-search-box {
            margin-bottom: 10px;
            position: relative;
        }

        .sidebar-search-input {
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            padding: 7px 8px 7px 28px;
            font-size: 12px;
            color: var(--text-primary);
            outline: none;
        }

        .sidebar-search-icon {
            position: absolute;
            left: 8px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            pointer-events: none;
        }

        .category-nav-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .cat-nav-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 7px 10px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .cat-nav-item:hover {
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-primary);
        }

        .cat-nav-item.active {
            background: var(--accent-green);
            color: #070a12;
            font-weight: 700;
        }

        .cat-count-badge {
            background: rgba(255, 255, 255, 0.08);
            font-size: 11px;
            padding: 1px 6px;
            border-radius: var(--radius-full);
            color: inherit;
        }

        .cat-nav-item.active .cat-count-badge {
            background: rgba(0, 0, 0, 0.2);
            color: #000;
        }

        .dir-content {
            flex: 1;
            min-width: 0;
            width: 100%;
        }

        .category-group-section {
            margin-bottom: 34px;
        }

        .group-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 14px;
            padding-bottom: 6px;
            border-bottom: 1px solid var(--border-subtle);
        }

        .group-title {
            font-size: 17px;
            font-weight: 700;
            color: #ffffff;
        }

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

        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 14px;
        }

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

        /* =========================================
           Tool Card Component
           ========================================= */
        .tool-card {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 14px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: var(--transition-smooth);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .tool-card:hover {
            transform: translateY(-2px);
            border-color: var(--border-hover);
            background: var(--bg-card-hover);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
        }

        .card-top-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 8px;
        }

        .tool-avatar {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: var(--bg-surface);
            border: 1px solid rgba(255, 255, 255, 0.06);
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
        }

        .tool-avatar img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 4px;
        }

        .tool-info {
            flex: 1;
            min-width: 0;
        }

        .tool-title-row {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .tool-name-text {
            font-size: 14px;
            font-weight: 700;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .verified-icon {
            color: #38bdf8;
            flex-shrink: 0;
        }

        .card-pill-row {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-top: 3px;
            flex-wrap: wrap;
        }

        .pill-badge {
            font-size: 10px;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: var(--radius-full);
            text-transform: uppercase;
        }

        .pill-category {
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-secondary);
        }

        .pill-free {
            background: var(--badge-free-bg);
            color: var(--badge-free-text);
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .pill-freemium {
            background: var(--badge-freemium-bg);
            color: var(--badge-freemium-text);
            border: 1px solid rgba(59, 130, 246, 0.2);
        }

        .pill-trial {
            background: var(--badge-trial-bg);
            color: var(--badge-trial-text);
            border: 1px solid rgba(139, 92, 246, 0.2);
        }

        .pill-paid {
            background: var(--badge-paid-bg);
            color: var(--badge-paid-text);
            border: 1px solid rgba(245, 158, 11, 0.2);
        }

        .btn-bookmark-card {
            background: transparent;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 4px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-bookmark-card:hover {
            color: #fbbf24;
            transform: scale(1.15);
        }

        .btn-bookmark-card.bookmarked {
            color: #fbbf24;
        }

        .tool-desc-text {
            font-size: 12.5px;
            color: #94a3b8;
            line-height: 1.45;
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            min-height: 36px;
        }

        .card-actions-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: auto;
        }

        .btn-visit-tool {
            flex: 1;
            background: linear-gradient(135deg, #10b981, #059669);
            color: #ffffff;
            border: none;
            padding: 6px 10px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            text-decoration: none;
        }

        .btn-visit-tool:hover {
            opacity: 0.92;
        }

        .btn-details-tool {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-subtle);
            color: var(--text-secondary);
            padding: 6px 10px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
        }

        .btn-details-tool:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.09);
        }

        /* =========================================
           VIRAL PROMPT LIBRARY PAGE VIEW (/prompts)
           ========================================= */
        .prompts-page-container {
            max-width: 1350px;
            margin: 0 auto;
            padding: 34px 4% 60px;
        }

        .page-header-box {
            text-align: center;
            margin-bottom: 28px;
        }

        .page-badge-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid rgba(245, 158, 11, 0.3);
            color: #fbbf24;
            font-size: 12px;
            font-weight: 700;
            padding: 4px 12px;
            border-radius: var(--radius-full);
            margin-bottom: 12px;
            text-transform: uppercase;
        }

        .page-main-title {
            font-size: clamp(26px, 4vw, 42px);
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 10px;
        }

        .page-main-desc {
            font-size: clamp(14px, 1.8vw, 16px);
            color: var(--text-secondary);
            max-width: 680px;
            margin: 0 auto;
        }

        .prompts-filter-bar {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 26px;
        }

        .prompt-tag-btn {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            color: var(--text-secondary);
            padding: 8px 14px;
            border-radius: var(--radius-full);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .prompt-tag-btn:hover {
            color: var(--text-primary);
            border-color: var(--border-hover);
        }

        .prompt-tag-btn.active {
            background: var(--accent-green);
            color: #070a12;
            border-color: var(--accent-green);
            font-weight: 700;
        }

        .prompts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
            gap: 20px;
        }

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

        .prompt-card {
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-shadow: var(--shadow-subtle);
            transition: var(--transition-smooth);
        }

        .prompt-card:hover {
            border-color: var(--border-hover);
            transform: translateY(-2px);
        }

        .prompt-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 10px;
        }

        .prompt-title-text {
            font-size: 16px;
            font-weight: 700;
            color: #ffffff;
        }

        .prompt-meta-row {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        .prompt-model-badge {
            background: rgba(59, 130, 246, 0.15);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.25);
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: var(--radius-full);
        }

        .prompt-viral-badge {
            background: rgba(245, 158, 11, 0.15);
            color: #fbbf24;
            border: 1px solid rgba(245, 158, 11, 0.25);
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: var(--radius-full);
        }

        .prompt-summary-text {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 14px;
            line-height: 1.45;
        }

        .prompt-code-box {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 12px;
            font-family: monospace;
            font-size: 12px;
            color: #e2e8f0;
            line-height: 1.5;
            white-space: pre-wrap;
            max-height: 180px;
            overflow-y: auto;
            margin-bottom: 14px;
        }

        .prompt-tip-box {
            background: rgba(16, 185, 129, 0.06);
            border-left: 3px solid var(--accent-green);
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 11.5px;
            color: #a7f3d0;
            margin-bottom: 14px;
        }

        .prompt-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
            padding-top: 8px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .btn-copy-prompt {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #ffffff;
            border: none;
            padding: 7px 16px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .btn-copy-prompt:hover {
            opacity: 0.92;
        }

        /* =========================================
           FREE TOOLS PAGE VIEW (/free-tools)
           ========================================= */
        .free-tools-page-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 34px 4% 60px;
        }

        .tools-subnav {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-bottom: 24px;
            flex-wrap: wrap;
        }

        .subnav-btn {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            color: var(--text-secondary);
            padding: 10px 18px;
            border-radius: var(--radius-md);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition-smooth);
        }

        .subnav-btn:hover {
            color: var(--text-primary);
            border-color: var(--border-hover);
        }

        .subnav-btn.active {
            background: rgba(16, 185, 129, 0.15);
            border-color: var(--accent-green);
            color: #ffffff;
        }

        .tool-panel-card {
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 24px;
            box-shadow: var(--shadow-subtle);
            display: none;
        }

        .tool-panel-card.active {
            display: block;
            animation: viewFadeIn 0.2s ease-out;
        }

        /* Prompt Enhancer Form */
        .prompt-enhancer-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

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

        .tool-textarea {
            width: 100%;
            height: 130px;
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            color: var(--text-primary);
            padding: 12px;
            font-size: 14px;
            font-family: inherit;
            resize: none;
            outline: none;
        }

        .tool-textarea:focus {
            border-color: var(--accent-green);
        }

        .tool-controls-row {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

        .tool-select {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            color: var(--text-primary);
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            outline: none;
        }

        .tool-btn-action {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #ffffff;
            border: none;
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .output-box-wrap {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 14px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 170px;
        }

        .output-content {
            font-size: 13px;
            color: #cbd5e1;
            white-space: pre-wrap;
            line-height: 1.5;
            max-height: 160px;
            overflow-y: auto;
        }

        .output-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
            padding-top: 8px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .btn-copy-output {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--border-subtle);
            color: var(--text-primary);
            padding: 5px 12px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
        }

        .btn-copy-output:hover {
            border-color: var(--accent-green);
            color: var(--accent-green-light);
        }

        /* Token Calc */
        .token-calc-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 20px;
        }

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

        .calc-metrics-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 12px;
        }

        .metric-card {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            padding: 10px;
            text-align: center;
        }

        .metric-val {
            font-size: 18px;
            font-weight: 700;
            color: var(--accent-green-light);
        }

        .metric-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            font-weight: 600;
        }

        .cost-estimates-list {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 14px;
        }

        .cost-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 13px;
        }

        .cost-item:last-child {
            border-bottom: none;
        }

        .cost-amount {
            color: #38bdf8;
            font-weight: 700;
            font-family: monospace;
        }

        /* Tool Matcher */
        .matcher-form {
            display: grid;
            grid-template-columns: repeat(3, 1fr) auto;
            gap: 12px;
            align-items: end;
        }

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

        .matcher-results {
            margin-top: 20px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
        }

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

        .match-card {
            background: var(--bg-card);
            border: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: var(--radius-md);
            padding: 14px;
        }

        /* Aspect Ratio */
        .aspect-presets-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            margin-bottom: 16px;
        }

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

        .aspect-card {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            padding: 10px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .aspect-card:hover, .aspect-card.active {
            border-color: var(--accent-green);
            background: rgba(16, 185, 129, 0.1);
        }

        /* =========================================
           COMPARE PAGE VIEW (/compare)
           ========================================= */
        .compare-page-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 34px 4% 60px;
        }

        .compare-table-wrap {
            overflow-x: auto;
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-subtle);
            margin-top: 20px;
        }

        .compare-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            font-size: 13px;
        }

        .compare-table th {
            background: rgba(255, 255, 255, 0.03);
            color: var(--text-muted);
            font-weight: 700;
            padding: 14px 18px;
            border-bottom: 1px solid var(--border-subtle);
            text-transform: uppercase;
            font-size: 11px;
            letter-spacing: 0.5px;
        }

        .compare-table td {
            padding: 14px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            color: var(--text-primary);
        }

        .compare-model-cell {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
        }

        .compare-avatar {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            background: var(--bg-card);
            padding: 3px;
        }

        .compare-avatar img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        /* =========================================
           VAULT PAGE VIEW (/vault)
           ========================================= */
        .vault-page-container {
            max-width: 1300px;
            margin: 0 auto;
            padding: 34px 4% 60px;
        }

        .vault-actions-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 12px 18px;
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
        }

        /* =========================================
           SUBMIT PAGE VIEW (/submit)
           ========================================= */
        .submit-page-container {
            max-width: 720px;
            margin: 0 auto;
            padding: 34px 4% 60px;
        }

        .submit-card-box {
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 28px;
            box-shadow: var(--shadow-subtle);
        }

        .submit-form-group {
            margin-bottom: 14px;
        }

        .submit-form-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }

        .submit-input, .submit-select, .submit-textarea {
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            padding: 10px 12px;
            font-size: 14px;
            font-family: inherit;
            outline: none;
        }

        .submit-input:focus, .submit-select:focus, .submit-textarea:focus {
            border-color: var(--accent-green);
        }

        /* =========================================
           Tool Details Modal
           ========================================= */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            z-index: 3000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-card {
            background: var(--bg-surface);
            border: 1px solid var(--border-hover);
            border-radius: var(--radius-lg);
            max-width: 620px;
            width: 100%;
            padding: 26px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-close-btn {
            position: absolute;
            top: 18px;
            right: 18px;
            background: rgba(255, 255, 255, 0.06);
            border: none;
            color: var(--text-muted);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .modal-close-btn:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.12);
        }

        .modal-header-row {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
        }

        .modal-avatar {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            background: var(--bg-card);
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-subtle);
        }

        .modal-avatar img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .modal-desc-full {
            font-size: 14px;
            color: #cbd5e1;
            line-height: 1.6;
            margin-bottom: 20px;
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 14px;
        }

        .modal-actions-row {
            display: flex;
            gap: 10px;
            margin-bottom: 22px;
            flex-wrap: wrap;
        }

        .similar-tools-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        @media (max-width: 500px) {
            .similar-tools-grid { grid-template-columns: 1fr; }
        }

        /* Toast Notifications */
        .toast-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 4000;
            display: flex;
            flex-direction: column;
            gap: 8px;
            pointer-events: none;
        }

        .toast-msg {
            background: rgba(14, 20, 36, 0.95);
            border: 1px solid var(--accent-green);
            color: #ffffff;
            padding: 12px 20px;
            border-radius: var(--radius-md);
            font-size: 13px;
            font-weight: 600;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            gap: 10px;
            animation: toastIn 0.25s ease-out forwards;
        }

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

        /* Footer */
        footer {
            background-color: #05070d;
            border-top: 1px solid var(--border-subtle);
            padding: 38px 4% 20px;
            color: var(--text-muted);
            font-size: 13px;
        }

        .footer-inner {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 20px;
        }

        .footer-brand {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .footer-links {
            display: flex;
            gap: 20px;
            list-style: none;
            flex-wrap: wrap;
        }

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

        .footer-bottom {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 18px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 12px;
            flex-wrap: wrap;
            gap: 10px;
        }

        /* Responsive Mobile Adjustments */
        @media (max-width: 900px) {
            .nav-center {
                display: none;
            }
            .nav-hamburger-btn {
                display: flex;
            }
            .btn-vault-saved span:not(.vault-counter) {
                display: none;
            }
            .btn-submit-tool {
                display: none;
            }
        }


/* =========================================
   AI TOOL CHEATSHEETS & SECRET CODES STYLES
   ========================================= */
.cheatsheet-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 34px 4% 60px;
    width: 100%;
}

.cheatsheet-tools-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tool-filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.tool-filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.tool-filter-btn.active {
    background: var(--accent-green);
    color: #070a12;
    border-color: var(--accent-green);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.tool-count-pill {
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.tool-filter-btn.active .tool-count-pill {
    background: rgba(0, 0, 0, 0.25);
    color: #000;
}

.cheatsheet-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin-bottom: 20px;
    gap: 14px;
    flex-wrap: wrap;
}

.cheatsheet-search-wrap {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.cheatsheet-search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 9px 12px 9px 34px;
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}

.cheatsheet-search-input:focus {
    border-color: var(--accent-green);
}

.cheatsheet-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.cheatsheet-groups-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.group-filter-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.group-filter-pill:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.group-filter-pill.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green-light);
}

.cheatsheet-table-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
}

.cheatsheet-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.cheatsheet-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.cheatsheet-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    vertical-align: middle;
}

.cheatsheet-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.code-badge {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-green-light);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.code-badge:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: var(--accent-green);
    transform: scale(1.02);
}

.tool-tag-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.tool-tag-chatgpt { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tool-tag-claude { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.tool-tag-grok { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.tool-tag-gemini { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.tool-tag-midjourney { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.tool-tag-perplexity { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.tool-tag-copilot { background: rgba(99, 102, 241, 0.15); color: #818cf8; }

.prompt-example-snippet {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    max-width: 520px;
}

.prompt-example-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.btn-copy-code-sm {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.btn-copy-code-sm:hover {
    background: var(--accent-green-glow);
    border-color: var(--accent-green);
    color: var(--accent-green-light);
}

/* Mobile & Tablet Responsive Cheatsheets */
@media (max-width: 820px) {
    .cheatsheet-table thead {
        display: none;
    }

    .cheatsheet-table,
    .cheatsheet-table tbody,
    .cheatsheet-table tr,
    .cheatsheet-table td {
        display: block;
        width: 100%;
    }

    .cheatsheet-table tr {
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        margin-bottom: 12px;
        padding: 14px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .cheatsheet-table td {
        padding: 6px 0;
        border-bottom: none;
    }

    .cheatsheet-table td:first-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 6px;
    }

    .prompt-example-snippet {
        max-width: 100%;
        margin-top: 6px;
    }
}


/* Hide Tool column when viewing a specific AI tool */
.hide-tool-col th.th-tool,
.hide-tool-col td.td-tool,
.hide-tool-col .card-tool-badge {
    display: none !important;
}

/* Enhanced Mobile & Tablet Cheatsheet Responsiveness */
@media (max-width: 820px) {
    .cheatsheet-tools-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin-bottom: 14px;
        width: 100%;
        scrollbar-width: none;
    }
    .cheatsheet-tools-bar::-webkit-scrollbar {
        display: none;
    }
    .tool-filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 7px 14px;
        font-size: 12.5px;
    }

    .cheatsheet-groups-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        width: 100%;
        scrollbar-width: none;
    }
    .cheatsheet-groups-bar::-webkit-scrollbar {
        display: none;
    }
    .group-filter-pill {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .cheatsheet-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }

    .cheatsheet-search-wrap {
        min-width: 100%;
    }

    /* Card styling on mobile */
    .prompt-example-snippet {
        max-width: 100%;
        margin-top: 8px;
        white-space: normal;
        word-break: break-word;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .prompt-example-text {
        white-space: normal;
        word-break: break-word;
        line-height: 1.45;
    }

    .btn-copy-code-sm {
        align-self: flex-end;
        padding: 5px 12px;
        font-size: 12px;
    }
}


/* Advertisement Banner Container */
.ad-banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 22px auto 26px auto;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    text-align: center;
    min-height: 90px;
    -webkit-overflow-scrolling: touch;
}

.ad-banner-container iframe {
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .ad-banner-container {
        margin: 16px auto 20px auto;
        transform: scale(0.92);
        transform-origin: center top;
    }
}

@media (max-width: 480px) {
    .ad-banner-container {
        transform: scale(0.85);
        margin: 12px auto 16px auto;
    }
}
