/* =========================================================
   MANJEET DIGITAL HUB - PRO UI
   Mobile-first • 3 cards on mobile • Existing HTML compatible
   ========================================================= */

*{box-sizing:border-box;margin:0;padding:0}
:root{
  --primary:#2563eb;--primary-dark:#1d4ed8;--primary-light:#eff6ff;
  --text:#111827;--muted:#64748b;--bg:#f5f8fd;--card:#fff;--border:#e4eaf2;
  --success:#22c55e;--radius:18px;
  --shadow:0 8px 24px rgba(15,23,42,.07);
}
html{scroll-behavior:smooth}
body{font-family:"Inter",Arial,sans-serif;background:linear-gradient(180deg,#fff 0,#f6f9fd 360px,#f5f8fd 100%);color:var(--text);line-height:1.5;overflow-x:hidden}
button,input{font-family:inherit} a{color:inherit;text-decoration:none}
.container{width:min(1180px,calc(100% - 24px));margin:auto}

/* HEADER */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,232,240,.9);box-shadow:0 5px 22px rgba(15,23,42,.045)}
.header-inner{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.logo{display:flex;align-items:center;gap:10px;min-width:0}
.logo-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#3b82f6,#2563eb 48%,#1e40af);color:#fff;font-size:12px;font-weight:900;letter-spacing:-.3px;border:1px solid rgba(255,255,255,.5);box-shadow:0 8px 20px rgba(37,99,235,.27),inset 0 1px 1px rgba(255,255,255,.4)}
.logo-text{display:flex;flex-direction:column;line-height:1.05}
.logo-text strong{font-size:16px;font-weight:850;letter-spacing:-.35px}.logo-text span{color:var(--muted);font-size:10px;margin-top:4px}
.nav{display:flex;align-items:center;gap:22px}.nav a{color:#475569;font-size:13px;font-weight:650}.nav a:hover{color:var(--primary)}
.header-cta{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;padding:10px 15px;border-radius:12px;font-size:12px;font-weight:750;white-space:nowrap;box-shadow:0 6px 16px rgba(37,99,235,.2)}.header-cta:hover{background:var(--primary-dark)}

/* HERO */
.hero{position:relative;overflow:hidden;background:radial-gradient(circle at 12% 18%,rgba(59,130,246,.17),transparent 30%),radial-gradient(circle at 88% 20%,rgba(99,102,241,.10),transparent 31%),linear-gradient(180deg,#fff,#f7faff);border-bottom:1px solid var(--border)}
.hero-inner{position:relative;z-index:2;text-align:center;padding:48px 0 40px}
.hero-badge{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border-radius:999px;background:rgba(239,246,255,.9);border:1px solid #cfe1ff;color:#1d4ed8;font-size:11px;font-weight:800;margin-bottom:14px;box-shadow:0 4px 14px rgba(37,99,235,.06)}
.status-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.13)}
.hero h1{font-size:clamp(29px,5vw,50px);line-height:1.05;font-weight:850;letter-spacing:-1.6px;margin-bottom:9px}
.hero p{color:var(--muted);font-size:14px;margin-bottom:22px}
.search-container{width:min(650px,100%);margin:auto;height:54px;display:flex;align-items:center;background:#fff;border:1px solid #dbe3ee;border-radius:17px;padding:0 15px;box-shadow:0 10px 30px rgba(15,23,42,.08)}
.search-icon{font-size:17px;margin-right:10px}.search-container input{flex:1;min-width:0;border:0;outline:0;font-size:13px;background:transparent;color:var(--text)}.search-container input::placeholder{color:#94a3b8}
.search-shortcut{padding:4px 8px;border:1px solid #e2e8f0;border-radius:7px;color:#94a3b8;font-size:9px;font-weight:650}
.hero-pills{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:17px}.hero-pills span{color:#64748b;font-size:10px;font-weight:550}
.hero-glow{position:absolute;width:190px;height:190px;border-radius:50%;filter:blur(75px);opacity:.25}.glow-one{top:10px;left:-80px;background:#60a5fa}.glow-two{right:-80px;bottom:-80px;background:#818cf8}

/* SECTION */
.tools-section{padding:38px 0 22px}.section-heading{margin-bottom:27px}.section-label{display:inline-block;color:var(--primary);font-size:10px;font-weight:850;letter-spacing:1.7px;margin-bottom:5px}.section-heading h2{font-size:25px;line-height:1.15;font-weight:850;letter-spacing:-.7px}.section-heading p{color:var(--muted);font-size:12px;margin-top:6px}
.tool-category{margin-bottom:40px}
.category-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.category-title{display:flex;align-items:center;gap:11px;min-width:0;position:relative}
.category-title:before{content:"";width:4px;height:34px;border-radius:999px;background:linear-gradient(180deg,#3b82f6,#7c3aed);box-shadow:0 3px 8px rgba(37,99,235,.18)}
.category-icon{width:39px;height:39px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#eff6ff,#e8f1ff);font-size:19px;box-shadow:inset 0 0 0 1px #e0ebff}
.category-title h3{font-size:18px;font-weight:850;line-height:1.15;letter-spacing:-.3px}.category-title p{color:var(--muted);font-size:10px;margin-top:3px}
.tool-count{flex-shrink:0;color:var(--primary);background:#eff6ff;border:1px solid #cfe1ff;padding:5px 9px;border-radius:999px;font-size:9px;font-weight:800}

/* CARDS */
.tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tool-card{position:relative;min-width:0;min-height:132px;padding:15px 7px 12px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;background:linear-gradient(180deg,#fff,#fefeff);border:1.5px solid #dce6f3;border-radius:18px;box-shadow:0 5px 16px rgba(15,23,42,.055);cursor:pointer;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.tool-card:before{content:"";position:absolute;left:18%;right:18%;top:-1px;height:2px;border-radius:999px;background:linear-gradient(90deg,transparent,#60a5fa,transparent);opacity:.7}
.tool-card:after{content:"";position:absolute;top:10px;right:10px;width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.08)}
.tool-card:hover{transform:translateY(-3px);border-color:#93c5fd;box-shadow:0 12px 26px rgba(37,99,235,.12)}.tool-card:active{transform:scale(.975)}
.tool-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#f8fbff,#e9f2ff);border:1px solid #e3edfb;color:var(--primary);font-size:25px;font-weight:700;margin-bottom:10px;box-shadow:0 6px 14px rgba(37,99,235,.09),inset 0 1px 0 #fff}
.tool-card h4{width:100%;color:#1e293b;font-size:11px;line-height:1.25;font-weight:800;overflow-wrap:anywhere}.tool-card p{width:100%;color:#8a9ab2;font-size:8.5px;line-height:1.25;margin-top:5px;overflow-wrap:anywhere}

/* category accent variations without HTML changes */
.tool-category:nth-of-type(2) .category-title:before{background:linear-gradient(180deg,#f59e0b,#f97316)}
.tool-category:nth-of-type(2) .tool-card{border-color:#f5d7a7}.tool-category:nth-of-type(2) .tool-card:before{background:linear-gradient(90deg,transparent,#f59e0b,transparent)}
.tool-category:nth-of-type(3) .category-title:before{background:linear-gradient(180deg,#10b981,#22c55e)}
.tool-category:nth-of-type(3) .tool-card{border-color:#bdebd7}.tool-category:nth-of-type(3) .tool-card:before{background:linear-gradient(90deg,transparent,#10b981,transparent)}
.tool-category:nth-of-type(4) .category-title:before{background:linear-gradient(180deg,#8b5cf6,#ec4899)}
.tool-category:nth-of-type(4) .tool-card{border-color:#ddd0fa}.tool-category:nth-of-type(4) .tool-card:before{background:linear-gradient(90deg,transparent,#8b5cf6,transparent)}

/* PORTALS */
.portal-section{margin-top:14px;margin-bottom:38px;padding:22px;background:rgba(255,255,255,.9);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow)}
.portal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.portal-card{min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding:14px 6px;background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid #e0e8f2;border-radius:14px;box-shadow:0 3px 10px rgba(15,23,42,.035);transition:.18s ease}.portal-card:hover{background:#eff6ff;border-color:#93c5fd;transform:translateY(-2px)}
.portal-card>span{font-size:22px;margin-bottom:7px}.portal-card strong{font-size:9.5px;line-height:1.2;overflow-wrap:anywhere}.portal-card small{color:var(--muted);font-size:7.5px;margin-top:4px}

/* OTHER */
.no-results{text-align:center;padding:45px 15px;background:#fff;border:1px solid var(--border);border-radius:17px;margin-bottom:30px}.no-results-icon{font-size:30px;margin-bottom:8px}.no-results h3{font-size:17px}.no-results p{color:var(--muted);font-size:11px;margin-top:4px}
.trust-section{padding:24px 0;background:#fff;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.trust-item{text-align:center;padding:8px}.trust-item strong{display:block;color:var(--primary);font-size:16px;font-weight:850}.trust-item span{display:block;color:var(--muted);font-size:9px;margin-top:2px}
.about-section{padding:38px 0}.about-box{background:#fff;border:1px solid var(--border);border-radius:20px;padding:27px;box-shadow:var(--shadow)}.about-box h2{font-size:22px;line-height:1.2;margin-bottom:10px}.about-box p{color:var(--muted);font-size:12px;line-height:1.7;margin-top:8px}

/* MODAL */
.modal{position:fixed;inset:0;z-index:5000;display:none;align-items:center;justify-content:center;padding:12px}.modal.active{display:flex}.modal-overlay{position:absolute;inset:0;background:rgba(15,23,42,.62);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.modal-box{position:relative;z-index:2;width:min(720px,100%);max-height:92vh;overflow-y:auto;background:#fff;border-radius:20px;box-shadow:0 25px 70px rgba(15,23,42,.25);animation:modalIn .2s ease}@keyframes modalIn{from{opacity:0;transform:translateY(15px) scale(.98)}to{opacity:1;transform:none}}
.modal-header{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 15px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--border);backdrop-filter:blur(10px)}.modal-title-area{display:flex;align-items:center;gap:9px;min-width:0}.modal-icon{width:37px;height:37px;display:grid;place-items:center;flex-shrink:0;background:#eff6ff;border-radius:11px;font-size:18px}.modal-header h2{font-size:16px;overflow-wrap:anywhere}.close-button{width:34px;height:34px;flex-shrink:0;border:1px solid var(--border);background:#fff;border-radius:10px;cursor:pointer;color:#475569;font-size:14px}.close-button:hover{background:#f8fafc}.tool-content{padding:17px}
.tool-content input,.tool-content textarea,.tool-content select{width:100%;border:1px solid #dbe2ea;border-radius:10px;padding:10px 11px;outline:0;font-size:13px;background:#fff}.tool-content input:focus,.tool-content textarea:focus,.tool-content select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.1)}.tool-content button{border:0;background:var(--primary);color:#fff;border-radius:10px;padding:10px 14px;font-size:12px;font-weight:750;cursor:pointer}.tool-content button:hover{background:var(--primary-dark)}

/* FOOTER */
.site-footer{background:#0f172a;color:#fff;padding:27px 0}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.footer-inner strong{font-size:14px}.footer-inner p{color:#94a3b8;font-size:9px;margin-top:4px}.footer-links{display:flex;gap:15px}.footer-links a{color:#cbd5e1;font-size:10px}.footer-links a:hover{color:#fff}.footer-copy{color:#64748b;font-size:9px}

@media(min-width:600px){.container{width:min(1180px,calc(100% - 36px))}.tools-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.tool-card{min-height:150px;padding:17px 10px}.tool-icon{width:54px;height:54px;font-size:28px}.tool-card h4{font-size:12px}.tool-card p{font-size:9px}.portal-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:900px){.header-inner{min-height:72px}.hero-inner{padding:65px 0 53px}.tools-section{padding-top:48px}.tools-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.tool-card{min-height:160px;padding:20px 12px}.tool-icon{width:58px;height:58px;font-size:30px}.tool-card h4{font-size:13px}.tool-card p{font-size:10px}.portal-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}

@media(max-width:480px){
 .container{width:calc(100% - 16px)}.header-inner{min-height:62px}.logo-icon{width:40px;height:40px;border-radius:12px}.logo-text strong{font-size:14px}.logo-text span{font-size:9px}.nav{display:none}.header-cta{padding:9px 11px;font-size:10px;border-radius:11px}
 .hero-inner{padding:34px 0 29px}.hero h1{font-size:29px}.hero p{font-size:12px}.search-container{height:49px;border-radius:15px}.search-shortcut{display:none}.hero-pills{gap:8px}.hero-pills span{font-size:8px}
 .tools-section{padding-top:28px}.section-heading h2{font-size:22px}.category-heading{align-items:center}.category-title{gap:8px}.category-title:before{width:4px;height:31px}.category-icon{width:35px;height:35px;font-size:17px}.category-title h3{font-size:15px}.category-title p{font-size:8px}.tool-count{font-size:8px;padding:4px 7px}
 .tools-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tool-card{min-height:126px;padding:13px 5px 10px;border-radius:16px}.tool-card:after{top:8px;right:8px;width:6px;height:6px}.tool-icon{width:44px;height:44px;border-radius:14px;font-size:23px;margin-bottom:9px}.tool-card h4{font-size:9.5px}.tool-card p{font-size:7.2px;margin-top:4px}
 .portal-section{padding:15px;border-radius:17px}.portal-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.portal-card{padding:11px 4px;border-radius:13px}.portal-card>span{font-size:19px}.portal-card strong{font-size:8px}.portal-card small{font-size:6.5px}
 .trust-grid{gap:3px}.trust-item strong{font-size:13px}.trust-item span{font-size:7px}.about-box{padding:19px}.about-box h2{font-size:19px}.about-box p{font-size:10px}.footer-inner{justify-content:center;text-align:center}.footer-links{width:100%;justify-content:center}.footer-copy{width:100%}
}
@media(max-width:360px){.container{width:calc(100% - 12px)}.tools-grid{gap:6px}.tool-card{min-height:116px;padding:11px 3px 9px}.tool-icon{width:40px;height:40px;font-size:20px}.tool-card h4{font-size:8.5px}.tool-card p{font-size:6.5px}.header-cta{display:none}}
.tool-card:focus-visible,.portal-card:focus-visible,.header-cta:focus-visible,.nav a:focus-visible{outline:3px solid rgba(37,99,235,.25);outline-offset:2px}
[hidden]{display:none!important}

/* ===== V3 RAISED 3D TOOL TABS ===== */
.tool-category{margin-bottom:34px}
.tools-grid{gap:10px}
.tool-card{
 min-height:116px;padding:12px 6px 11px;overflow:visible;
 background:linear-gradient(145deg,#fff 0%,#fbfdff 58%,#f2f7ff 100%);
 border:1px solid #d6e1ef;border-bottom:4px solid #c7d5e7;border-radius:17px;
 box-shadow:0 7px 0 rgba(148,163,184,.18),0 11px 20px rgba(15,23,42,.08),inset 0 1px 0 #fff;
 transform:translateY(0)
}
.tool-card::before{left:16%;right:16%;top:0;height:2px;opacity:.8}
.tool-card::after{top:8px;right:8px;width:6px;height:6px}
.tool-card:hover{
 transform:translateY(-3px);border-color:#b7cff0;border-bottom-color:#9fbbe3;
 box-shadow:0 9px 0 rgba(96,165,250,.14),0 15px 25px rgba(37,99,235,.13),inset 0 1px 0 #fff
}
.tool-card:active{
 transform:translateY(5px) scale(.985);border-bottom-width:1px;
 box-shadow:0 2px 4px rgba(15,23,42,.10),inset 0 2px 5px rgba(15,23,42,.04)
}
.tool-icon{
 width:47px;height:47px;margin-bottom:9px;border-radius:14px;
 background:linear-gradient(145deg,#fff 0%,#eef5ff 55%,#dfeeff 100%);
 border:1px solid #d4e5fb;border-bottom:3px solid #bfd5f2;
 box-shadow:0 5px 8px rgba(37,99,235,.12),inset 0 2px 2px rgba(255,255,255,.95);
 font-size:24px;text-shadow:0 2px 3px rgba(15,23,42,.12)
}
.tool-card h4{font-size:10.5px;line-height:1.22;font-weight:850;color:#172033;letter-spacing:-.1px}
.tool-card p{font-size:7.8px;line-height:1.2;color:#7c8ca5;margin-top:4px}
.tool-category:nth-of-type(2) .tool-card{border-bottom-color:#e6c27d}
.tool-category:nth-of-type(2) .tool-icon{border-bottom-color:#f0cf91;background:linear-gradient(145deg,#fff,#fff8e9,#ffefd0)}
.tool-category:nth-of-type(3) .tool-card{border-bottom-color:#a9d9c4}
.tool-category:nth-of-type(3) .tool-icon{border-bottom-color:#a9ddc7;background:linear-gradient(145deg,#fff,#effcf7,#dcf7ec)}
.tool-category:nth-of-type(4) .tool-card{border-bottom-color:#cbb9ed}
.tool-category:nth-of-type(4) .tool-icon{border-bottom-color:#cbb9ed;background:linear-gradient(145deg,#fff,#f7f1ff,#eee4ff)}
.portal-card{border-bottom:3px solid #cbd5e1;box-shadow:0 5px 0 rgba(148,163,184,.14),0 8px 15px rgba(15,23,42,.05)}
.portal-card:active{transform:translateY(4px);border-bottom-width:1px;box-shadow:0 2px 5px rgba(15,23,42,.08)}
@media(min-width:600px){
 .tool-card{min-height:130px;padding:14px 8px 12px}.tool-icon{width:52px;height:52px;font-size:27px}
 .tool-card h4{font-size:11.5px}.tool-card p{font-size:8.5px}
}
@media(min-width:900px){
 .tool-card{min-height:142px;padding:17px 10px 14px}.tool-icon{width:56px;height:56px;font-size:29px}
 .tool-card h4{font-size:12.5px}.tool-card p{font-size:9px}
}
@media(max-width:480px){
 .tool-category{margin-bottom:30px}.tools-grid{gap:8px}
 .tool-card{min-height:112px;padding:11px 4px 9px;border-radius:15px;border-bottom-width:4px;
 box-shadow:0 6px 0 rgba(148,163,184,.17),0 9px 14px rgba(15,23,42,.07),inset 0 1px 0 #fff}
 .tool-icon{width:43px;height:43px;border-radius:13px;font-size:22px;margin-bottom:8px}
 .tool-card h4{font-size:9.2px}.tool-card p{font-size:6.9px}
}
@media(max-width:360px){
 .tools-grid{gap:6px}.tool-card{min-height:105px;padding:9px 3px 8px}
 .tool-icon{width:39px;height:39px;font-size:20px}.tool-card h4{font-size:8.4px}.tool-card p{font-size:6.3px}
}
