/* =========================
AIDEX CLEAN FINAL CSS
========================= */

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

body{
  font-family:'Poppins',sans-serif;
  background:#020617;
  color:#e2e8f0;
  line-height:1.6;
  padding-top:70px;
}

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

/* ================= HEADER ================= */

.main-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:70px;
  z-index:9999;

  background:rgba(2,6,23,0.95);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.05);
}

.header-container{
  max-width:1200px;
  margin:auto;
  height:100%;
  padding:0 20px;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* LOGO */
.logo{
  font-size:20px;
  font-weight:700;
  color:#38bdf8;
}

/* NAV */
.nav-links{
  display:flex;
  gap:25px;
}

.nav-item{
  color:#cbd5f5;
  font-size:14px;
  transition:0.2s;
}

.nav-item:hover{
  color:#38bdf8;
}

.nav-item.highlight{
  color:#f59e0b;
}

/* BUTTONS */
.header-actions{
  display:flex;
  gap:10px;
}

.btn{
  padding:8px 14px;
  border-radius:8px;
  font-size:13px;
}

.btn.primary{
  background:#38bdf8;
  color:#020617;
}

.btn.ghost{
  border:1px solid rgba(255,255,255,0.2);
}

/* MOBILE */
.menu-toggle{
  display:none;
  font-size:22px;
  cursor:pointer;
}

.mobile-menu{
  display:none;
  flex-direction:column;
  background:#020617;
  padding:15px;
}

.mobile-menu a{
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,0.05);
}

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

@media(max-width:768px){
  .nav-links,
  .header-actions{
    display:none;
  }

  .menu-toggle{
    display:block;
  }
}

/* ================= HERO ================= */

.hero{
  text-align:center;
  padding:100px 20px 60px;
}

.hero h1{
  font-size:40px;
  margin-bottom:10px;
}

.hero p{
  color:#94a3b8;
  margin-bottom:20px;
}

.search-box{
  padding:10px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.1);
  background:#020617;
  color:#fff;
}

/* ================= GRID ================= */

.container{
  max-width:1200px;
  margin:auto;
  padding:20px;
}

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

/* ================= TOOL CARD ================= */

.tool-card{
  background:#0f172a;
  border-radius:12px;
  padding:16px;
  border:1px solid rgba(255,255,255,0.05);
  transition:0.2s;
}

.tool-card:hover{
  transform:translateY(-4px);
  border-color:#38bdf8;
}

.tool-card img{
  width:40px;
  height:40px;
  object-fit:contain;
}

.tool-card h3{
  margin-top:10px;
}

.tool-card p{
  font-size:13px;
  color:#94a3b8;
  margin:10px 0;
}

.tool-actions{
  display:flex;
  gap:10px;
}

/* BUTTONS INSIDE CARDS */
.details-btn,
.visit-btn{
  padding:6px 10px;
  font-size:12px;
  border-radius:6px;
}

.details-btn{
  border:1px solid rgba(255,255,255,0.2);
}

.visit-btn{
  background:#38bdf8;
  color:#020617;
}

/* ================= SECTION ================= */

.section{
  margin-top:40px;
}

.section h2{
  margin-bottom:20px;
}

/* ================= FOOTER ================= */

.footer{
  text-align:center;
  padding:20px;
  color:#94a3b8;
  border-top:1px solid rgba(255,255,255,0.05);
}

/* =========================
🔥 TOOL PAGE PREMIUM
========================= */

.tool-page{
  max-width:900px;
  margin:auto;
  padding:40px 20px;
}

/* HERO */
.tool-hero{
  text-align:center;
  margin-bottom:40px;
}

.tool-logo-large{
  width:90px;
  height:90px;
  object-fit:contain;
  margin-bottom:15px;
}

.tool-hero h1{
  font-size:28px;
  margin-bottom:6px;
}

.tool-category{
  color:#94a3b8;
  font-size:14px;
  margin-bottom:10px;
}

.tool-description{
  max-width:600px;
  margin:auto;
  color:#94a3b8;
  font-size:14px;
}

/* CTA */
.tool-cta{
  margin-top:20px;
  display:flex;
  gap:10px;
  justify-content:center;
}

.back-btn{
  border:1px solid rgba(255,255,255,0.2);
  padding:8px 14px;
  border-radius:8px;
  font-size:13px;
}

/* DETAILS */
.tool-details{
  display:grid;
  gap:20px;
}

.tool-box{
  background:#0f172a;
  padding:20px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.05);
}

.tool-box h3{
  margin-bottom:10px;
}

.tool-box p,
.tool-box li{
  font-size:13px;
  color:#94a3b8;
}

/* =========================
🔥 TRENDING PREMIUM UI
========================= */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}

/* CARD */
.tool-card{
  background:#0f172a;
  border:1px solid rgba(255,255,255,0.05);
  border-radius:16px;
  padding:16px;

  display:flex;
  flex-direction:column;
  justify-content:space-between;

  transition:0.25s;
}

.tool-card:hover{
  transform:translateY(-6px);
  border-color:#38bdf8;
  box-shadow:0 20px 40px rgba(0,0,0,0.4);
}

/* TOP */
.tool-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.tool-logo{
  width:42px;
  height:42px;
  border-radius:8px;
  object-fit:contain;
}

/* RANK BADGE */
.rank{
  background:#f59e0b;
  color:#020617;
  font-size:12px;
  padding:4px 8px;
  border-radius:6px;
  font-weight:600;
}

/* CONTENT */
.tool-content h3{
  font-size:16px;
  margin-bottom:4px;
}

.tool-category{
  font-size:12px;
  color:#94a3b8;
  margin-bottom:6px;
}

.tool-content p{
  font-size:13px;
  color:#94a3b8;
}

/* CLICK COUNT */
.click-count{
  margin-top:6px;
  font-size:12px;
  color:#f59e0b;
}

/* FOOTER */
.tool-footer{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.details-btn,
.visit-btn{
  flex:1;
  text-align:center;
  padding:8px;
  border-radius:8px;
  font-size:12px;
}

.details-btn{
  border:1px solid rgba(255,255,255,0.2);
}

.details-btn:hover{
  background:#1e293b;
}

.visit-btn{
  background:#38bdf8;
  color:#020617;
}

.visit-btn:hover{
  background:#0ea5e9;
}

/* =========================
🔥 SPACING SYSTEM
========================= */

.section{
  padding:60px 20px;
}

.container{
  max-width:1100px;
}

h2{
  font-size:24px;
  margin-bottom:20px;
}

/* =========================
🔥 PREMIUM HERO
========================= */

.hero{
  min-height:85vh;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:40px 20px;

  background:radial-gradient(circle at top, rgba(56,189,248,0.15), transparent 60%);
}

.hero-box{
  max-width:700px;
}

.hero h1{
  font-size:48px;
  font-weight:700;
  line-height:1.2;
  margin-bottom:15px;
}

.hero h1 span{
  color:#38bdf8;
}

.hero p{
  color:#94a3b8;
  margin-bottom:25px;
  font-size:16px;
}

/* SEARCH BAR */
.search-bar{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.search-bar input{
  width:300px;
  padding:12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.1);
  background:#020617;
  color:#fff;
}

.search-bar button{
  padding:12px 18px;
  border-radius:10px;
  border:none;
  background:#38bdf8;
  color:#020617;
  cursor:pointer;
  font-weight:500;
}

.search-bar button:hover{
  background:#0ea5e9;
}

/* =========================
🔥 TOOLS PAGE PREMIUM
========================= */

/* HERO */
.tools-hero{
  text-align:center;
  margin-bottom:30px;
}

.tools-hero h1{
  font-size:32px;
}

.tools-hero p{
  color:#94a3b8;
}

/* SEARCH */
.search-bar{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-bottom:20px;
}

.search-bar input{
  width:300px;
  padding:12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.1);
  background:#020617;
  color:#fff;
}

.search-bar button{
  padding:12px 16px;
  border-radius:10px;
  border:none;
  background:#38bdf8;
  cursor:pointer;
}

/* CATEGORY */
.category-filter{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-bottom:30px;
}

.category-btn{
  padding:6px 12px;
  border-radius:20px;
  background:#020617;
  border:1px solid rgba(255,255,255,0.1);
  font-size:13px;
}

.category-btn:hover{
  border-color:#38bdf8;
}

/* CARD */
.tool-card{
  background:#0f172a;
  border:1px solid rgba(255,255,255,0.05);
  border-radius:16px;
  padding:16px;
  transition:0.25s;
  position:relative;
}

.tool-card:hover{
  transform:translateY(-5px);
  border-color:#38bdf8;
  box-shadow:0 15px 35px rgba(0,0,0,0.4);
}

/* TOP */
.tool-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.tool-logo{
  width:42px;
  height:42px;
  object-fit:contain;
}

/* STAR BUTTON */
.favorite-btn{
  background:rgba(255,255,255,0.05);
  border:none;
  border-radius:8px;
  padding:6px;
  cursor:pointer;
}

.favorite-btn:hover{
  background:#1e293b;
}

/* TEXT */
.tool-content h3{
  font-size:16px;
}

.tool-category{
  font-size:12px;
  color:#94a3b8;
}

.tool-description{
  font-size:13px;
  color:#94a3b8;
  margin-top:6px;
}

/* FOOTER */
.tool-footer{
  display:flex;
  gap:10px;
  margin-top:12px;
}

.details-btn,
.visit-btn{
  flex:1;
  text-align:center;
  padding:8px;
  border-radius:8px;
  font-size:12px;
}

.details-btn{
  border:1px solid rgba(255,255,255,0.2);
}

.visit-btn{
  background:#38bdf8;
  color:#020617;
}

/* =========================
🔥 AUTH + SUBMIT UI
========================= */

.auth-wrapper{
  min-height:80vh;
  display:flex;
  justify-content:center;
  align-items:center;
}

.auth-card{
  width:100%;
  max-width:400px;
  background:#0f172a;
  padding:25px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.05);
}

.auth-card h2{
  margin-bottom:5px;
}

.auth-subtitle{
  color:#94a3b8;
  margin-bottom:15px;
}

.auth-error{
  color:#ef4444;
  text-align:center;
  margin-bottom:10px;
}

.auth-form input,
.submit-form input,
.submit-form textarea{
  width:100%;
  padding:10px;
  margin-bottom:12px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.1);
  background:#020617;
  color:#fff;
}

.auth-btn,
.submit-form button{
  width:100%;
  padding:10px;
  border-radius:8px;
  border:none;
  background:#38bdf8;
  color:#020617;
  cursor:pointer;
}

.auth-btn:hover,
.submit-form button:hover{
  background:#0ea5e9;
}

.auth-switch{
  text-align:center;
  margin-top:10px;
  font-size:14px;
}

.auth-switch a{
  color:#38bdf8;
}

/* =========================
🔥 WORKSPACE UI
========================= */

.workspace-header{
  text-align:center;
  margin-bottom:30px;
}

.workspace-header h1{
  font-size:30px;
}

.workspace-header p{
  color:#94a3b8;
}

/* GRID */
.workspace-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
}

/* CARD */
.workspace-card{
  background:#0f172a;
  border:1px solid rgba(255,255,255,0.05);
  border-radius:16px;
  padding:16px;

  display:flex;
  flex-direction:column;
  justify-content:space-between;

  transition:0.25s;
}

.workspace-card:hover{
  transform:translateY(-5px);
  border-color:#38bdf8;
  box-shadow:0 15px 35px rgba(0,0,0,0.4);
}

/* LOGO */
.workspace-top{
  display:flex;
  justify-content:center;
  margin-bottom:10px;
}

.workspace-logo{
  width:50px;
  height:50px;
  object-fit:contain;
}

/* TEXT */
.workspace-content h3{
  text-align:center;
  font-size:15px;
}

/* BUTTONS */
.workspace-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}

.launch-btn{
  flex:1;
  background:#38bdf8;
  color:#020617;
  border:none;
  padding:8px;
  border-radius:8px;
  cursor:pointer;
}

.launch-btn:hover{
  background:#0ea5e9;
}

.remove-btn{
  flex:1;
  background:#1e293b;
  border:none;
  color:#fff;
  border-radius:8px;
  padding:8px;
  cursor:pointer;
}

.remove-btn:hover{
  background:#ef4444;
}

/* EMPTY STATE */
.empty-workspace{
  text-align:center;
  padding:40px;
}

.browse-tools-btn{
  display:inline-block;
  margin-top:10px;
  background:#38bdf8;
  padding:10px 16px;
  border-radius:8px;
  color:#020617;
}
/* PREMIUM HERO */
.premium-hero {
  background: linear-gradient(135deg, #0f172a, #1e293b, #312e81);
}

/* STATS */
.stats-section {
  padding: 50px 20px;
  background: #020617;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-card {
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  width: 120px;
  text-align: center;
}

.stat-card h3 {
  color: #8b5cf6;
}

/* TEAM */
.team-section {
  padding: 60px 20px;
  background: #0f172a;
  text-align: center;
  color: white;
}

.team-grid {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.premium-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 15px;
  max-width: 260px;
  transition: 0.3s;
}

.premium-card:hover {
  transform: translateY(-8px);
}

.avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
}

.role {
  color: #a78bfa;
  margin-bottom: 10px;
}

/* CTA */
.cta-section {
  padding: 60px 20px;
  text-align: center;
  background: #020617;
  color: white;
}

/* SECTION TITLE */
.section-title {
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: 600;
  color: #ffffff;
}

/* CATEGORY GRID */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

/* CATEGORY CARD */
.category-card {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* HOVER EFFECT */
.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #38bdf8;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

/* ICON */
.category-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

/* NAME */
.category-name {
  font-size: 16px;
  font-weight: 500;
}

/* OPTIONAL GLOW EFFECT */
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56,189,248,0.15), transparent);
  opacity: 0;
  transition: 0.3s;
}

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