 /* --- CSS VARIABLES & RESET --- */
        :root {
            /* Brand Colors: Teal/Slate Theme */
            --primary: #0d9488; /* Teal 600 */
            --primary-hover: #0f766e;
            --primary-light: #ccfbf1;
            --secondary: #0f172a; /* Slate 900 */
            --accent: #f59e0b; /* Amber */
            
            /* Text & Backgrounds */
            --bg-body: #f8fafc;
            --bg-card: #ffffff;
            --text-main: #334155;
            --text-muted: #64748b;
            --border: #e2e8f0;

            /* UI Elements */
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
            --radius-md: 8px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --container-width: 1280px;
        }

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

        body {
            font-family: 'Plus Jakarta Sans', sans-serif !important;
            background-color: var(--bg-body);
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-user-select: none; /* Safari */
            -ms-user-select: none; /* IE 10 and IE 11 */
            -moz-user-select: none; /* Firefox */
            user-select: none; /* Standard syntax */
            
        }
        /* Allow selection only inside input forms (So users can still type in calculators) */
        input, textarea, select {
            -webkit-user-select: text !important;
            -moz-user-select: text !important;
            -ms-user-select: text !important;
            user-select: text !important;
        }

        a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
        ul { list-style: none; }
        img { max-width: 100%; display: block; }

        /* --- UTILITIES --- */
        .container {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 24px;
        }
        
        .flex { display: flex; align-items: center; }
        .flex-between { justify-content: space-between; }
        .flex-center { justify-content: center; }
        .grid { display: grid; gap: 32px; }
        .text-center { text-align: center; }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 24px;
            font-weight: 600;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background-color: var(--primary);
            color: white;
            box-shadow: 0 4px 14px 0 rgba(13, 148, 136, 0.39);
        }

        .btn-primary:hover {
            background-color: var(--primary-hover);
            transform: translateY(-2px);
        }

        .btn-outline {
            border: 2px solid var(--border);
            background: transparent;
            color: var(--secondary);
        }

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

        /* --- HEADER --- */
        header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 16px 0;
        }

        .brand-logo {
            font-weight: 800;
            font-size: 1.4rem;
            color: var(--secondary);
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .brand-logo span { color: var(--primary); }
        .nav-menu { display: flex; gap: 32px; align-items: center; }
        
        .nav-item { position: relative; }
        .nav-link {
            font-weight: 500;
            color: var(--text-main);
            font-size: 0.95rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 8px 0;
        }
        .nav-link:hover { color: var(--primary); }

        /* Dropdown */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 220px;
            padding: 8px;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border);
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .nav-item:hover .dropdown-menu {
            opacity: 1; visibility: visible; transform: translateY(0);
        }
        .dropdown-menu li a {
            display: block; padding: 10px 16px; color: var(--text-main);
            font-size: 0.9rem; border-radius: 6px; font-weight: 500;
        }
        .dropdown-menu li a:hover { background-color: var(--primary-light); color: var(--primary); }

        .mobile-toggle { display: none; font-size: 1.5rem; color: var(--secondary); cursor: pointer; }
        
        /* --- HERO --- */
        .hero { padding: 100px 0 80px; background: radial-gradient(circle at 50% 0%, #f0fdfa 0%, #fff 40%); }
        .hero-content { max-width: 800px; margin: 0 auto; text-align: center; }
        .hero h1 { font-size: 3.5rem; font-weight: 800; color: var(--secondary); margin-bottom: 24px; letter-spacing: -1px; line-height: 1.1; }
        .hero h1 span { color: var(--primary); background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }

        .search-box-wrapper { position: relative; max-width: 700px; margin: 0 auto; }
        .search-box { width: 100%; padding: 20px 24px 20px 64px; font-size: 1.1rem; border: 2px solid var(--border); border-radius: var(--radius-xl); background: white; box-shadow: var(--shadow-lg); outline: none; transition: all 0.3s ease; color: var(--secondary); }
        .search-box:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15); }
        .search-icon { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.4rem; }

        /* Pills */
        .categories { margin-top: 40px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
        .cat-pill {
            display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: white;
            border: 1px solid var(--border); border-radius: 50px; font-weight: 600; color: var(--text-muted);
            cursor: pointer; transition: all 0.2s; font-size: 0.9rem;
        }
        .cat-pill:hover, .cat-pill.active, .category-card.active {
            border-color: var(--primary); color: var(--primary); background: var(--primary-light); transform: translateY(-2px);
        }

        /* --- STATS --- */
        .stats-bar { background: var(--secondary); padding: 40px 0; color: white; margin-top: -1px; }
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
        .stat-item h3 { font-size: 2.5rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
        .stat-item p { font-size: 1rem; opacity: 0.8; font-weight: 500; }

       /* --- CATEGORY GRID (NEW) --- */
            .cat-grid-section { padding: 60px 0; background: white; border-bottom: 1px solid var(--border); }
            .cat-grid-container {
                display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
            }
            
            /* Updated to support anchor wrapper */
            .category-card {
                background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius-md);
                padding: 24px; display: flex; align-items: center; gap: 20px;
                transition: all 0.3s ease;
                
                /* Anchor specific styles */
                text-decoration: none; /* Removes underline */
                color: inherit; /* Inherits text color from parent */
                position: relative; /* For layering if needed */
            }
            .category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
            .category-card.active { border-color: var(--primary); background: #fff; box-shadow: var(--shadow-md); }
            
            .cat-icon-box {
                width: 56px; height: 56px; background: white; border-radius: 50%;
                display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
                color: var(--primary); box-shadow: var(--shadow-sm); flex-shrink: 0;
            }
            .category-card:hover .cat-icon-box, .category-card.active .cat-icon-box { background: var(--primary); color: white; }
            
            .cat-info h4 { font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
            .cat-info span { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
            
            /* Style for the button-like span inside the anchor */
            .cat-info .btns {
                display: inline-block; margin-top: 8px; font-size: 0.85rem; color: var(--primary); font-weight: 600;
            }

        /* --- TOOLS GRID --- */
        .tools-section { padding: 80px 0; }
        .section-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 48px; }
        .section-title h2 { font-size: 2.25rem; color: var(--secondary); margin-bottom: 12px; }
        .section-title p { color: var(--text-muted); font-size: 1.1rem; }
        
        .tools-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
        .tool-card {
            background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
            padding: 32px; transition: all 0.3s ease; position: relative; overflow: hidden;
            display: flex; flex-direction: column; align-items: flex-start;
        }
        .tool-card::before {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
            background: var(--primary); opacity: 0; transition: opacity 0.3s;
        }
        .tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
        .tool-card:hover::before { opacity: 1; }

        .card-icon {
            width: 56px; height: 56px; background: var(--primary-light); color: var(--primary);
            border-radius: 12px; display: flex; align-items: center; justify-content: center;
            font-size: 1.5rem; margin-bottom: 24px;
        }
        .tool-card h3 { font-size: 1.35rem; color: var(--secondary); margin-bottom: 12px; font-weight: 700; }
        .tool-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.6; flex-grow: 1; }
        .card-link { color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }
        .card-link i { transition: transform 0.2s; }
        .tool-card:hover .card-link i { transform: translateX(4px); }

        /* --- PROMO --- */
        .promo {
            background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
            border-radius: var(--radius-xl); padding: 60px; color: white;
            display: flex; align-items: center; justify-content: space-between; margin: 80px 0; position: relative; overflow: hidden;
        }
        .promo-content { position: relative; z-index: 2; max-width: 600px; }
        .promo-content h2 { font-size: 2.5rem; margin-bottom: 16px; }
        .promo-content p { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 32px; }
        .promo-img { width: 400px; height: 250px; background: rgba(255,255,255,0.05); border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
        .promo::after { content: ''; position: absolute; width: 300px; height: 300px; background: var(--primary); filter: blur(80px); opacity: 0.2; top: -100px; right: -100px; border-radius: 50%; }

        /* --- FOOTER --- */
        footer { background: white; border-top: 1px solid var(--border); padding: 60px 0 24px; }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
        .footer-brand h4 { font-size: 1.5rem; font-weight: 800; color: var(--secondary); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
        .footer-brand p { color: var(--text-muted); max-width: 300px; margin-bottom: 24px; }
        .social-icons { display: flex; gap: 16px; }
        .social-icons a { width: 36px; height: 36px; background: #f1f5f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--secondary); }
        .social-icons a:hover { background: var(--primary); color: white; }
        .footer-col h5 { font-size: 1.1rem; color: var(--secondary); margin-bottom: 24px; font-weight: 700; }
        .footer-col ul li { margin-bottom: 12px; }
        .footer-col ul li a { color: var(--text-muted); font-size: 0.95rem; }
        .footer-col ul li a:hover { color: var(--primary); text-decoration: underline; }
        .footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; }
        
        

        /* --- RESPONSIVE --- */
        @media (max-width: 1024px) {
            .hero h1 { font-size: 2.8rem; } .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .promo { flex-direction: column; text-align: center; gap: 40px; } .promo-img { width: 100%; }
            .nav-menu { display: none; } .mobile-toggle { display: block; }
            .nav-menu.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: white; padding: 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
            .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 20px; margin-top: 10px; display: none; }
            .nav-item:hover .dropdown-menu { display: block; }
        }

        @media (max-width: 768px) {
            .hero h1 { font-size: 2.2rem; } .section-header { flex-direction: column; align-items: flex-start; gap: 16px; } .footer-grid { grid-template-columns: 1fr; }
            .cat-grid-container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
            /*.category-card { padding: 16px; gap: 12px; }*/
            
             .category-card {
                padding: 12px !important;
                gap: 5px !important;
                  }
            
            .cat-icon-box { width: 40px; height: 40px; font-size: 1.2rem; }
            
            .cat-info h4 {
            	font-size: 0.8rem !important;
            	font-weight: 700;
            	color: var(--secondary);
            	margin-bottom: 4px;
                         }
            
            .cat-info span {
            	font-size: 0.7rem !important;
            	color: var(--text-muted);
            	font-weight: 500;
                         }
            
            .category-card {
            	cursor: pointer;
            	font-size: 12px !important;
                     }
                     
                     h1 {
            	font-size: 1.6rem !important;
            	font-weight: 800;
            	color: var(--secondary);
            	margin-bottom: 8px;
                           }
                           .converter-container { 	max-width: 400px; 	margin: 40px auto; 	display: grid; 	gap: 40px; 	align-items: start; 	padding: 0 6px; 	flex: 1; }
            .heading{width: 340px;}
            .calculator-card { 	background: white; 	padding: 32px; 	border-radius: var(--radius-lg); 	box-shadow: var(--shadow); 	border: 1px solid var(--border);  }
            .results-column { 	display: flex;  	flex-direction: column; 	gap: 30px; 	width: 345px; }
             .list-wrapper { grid-template-columns: 1fr; }
        .hero h1 { font-size: 2.2rem; }
        .stats-grid { grid-template-columns: 1fr 1fr; }
        }
        
        
        @media (min-width: 361px) and (max-width: 600px) { 
             .list-wrapper { grid-template-columns: 1fr; }
        .hero h1 { font-size: 2.2rem; }
        .stats-grid { grid-template-columns: 1fr 1fr; }
            
            .calculator-card{width: 100% !important;}
        }
        
         @media (min-width: 602px) and (max-width: 800px) { 
              .list-wrapper { grid-template-columns: 1fr; }
        .hero h1 { font-size: 2.2rem; }
        .stats-grid { grid-template-columns: 1fr 1fr; }
            
            .calculator-card{width: 100% !important;}
        }

   @media (max-width: 900px) {
            .containers { grid-template-columns: 1fr; }
            .results-card { position: static; order: -1; margin-bottom: 30px; }
            .calculator-card{width:100% !important;}
        }
       @media (max-width: 480px) {
            .amount { font-size: 2.2rem; }
            h1 { font-size: 1.75rem; }
            .calculator-card{width:100% !important;}
        }
        
        
        @media (min-width: 360px) and (max-width: 480px) {
            .amount { font-size: 2.2rem; }
            h1 { font-size: 1.75rem; }
            .calculator-card{width:100% !important;}
        }

        
        .hidden { display: none !important; }