:root{
  --bg:#0b0b10;
  --card:#12121b;
  --card2:#161625;
  --txt:#e9e9f3;
  --muted:#a8a8c2;
  --border:rgba(255,255,255,.08);
  --accent:#ff2a2a;
  --accent2:#b000ff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue";
  background: radial-gradient(1000px 600px at 20% 10%, rgba(176,0,255,.18), transparent 55%),
              radial-gradient(900px 600px at 80% 0%, rgba(255,42,42,.14), transparent 50%),
              var(--bg);
  color:var(--txt);
}

.wrap{max-width:980px; margin:0 auto; padding:22px;}
.header{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius:18px;
  backdrop-filter: blur(6px);
}
.brand{display:flex; gap:12px; align-items:center;}
.logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  font-weight:900;
}
.title{font-size:18px; font-weight:800; letter-spacing:.2px;}
.subtitle{font-size:13px; color:var(--muted); margin-top:2px}
.adminLink{
  color:var(--txt); text-decoration:none;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background: rgba(255,255,255,.03);
}
.adminLink:hover{transform: translateY(-1px);}

.section{margin-top:18px;}
.sectionTitle{
  margin:14px 2px 10px;
  font-size:14px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.14em;
}
.grid{display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:12px;}
.card{
  display:flex; gap:12px; align-items:center;
  padding:14px 14px;
  border-radius:18px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  text-decoration:none;
  color:var(--txt);
  transition: transform .12s ease, background .12s ease;
}
.card:hover{transform: translateY(-2px); background: rgba(255,255,255,.05);}
.cardIcon{
  width:44px; height:44px;
  border-radius:14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  font-size:20px;
}
.cardText{min-width:0; flex:1;}
.cardTitle{font-weight:800}
.cardUrl{font-size:12px; color:var(--muted); margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cardGo{font-weight:800; opacity:.9;}

.footer{
  margin-top:22px;
  padding:14px 2px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

/* Admin */
.panel{
  margin-top:16px;
  border:1px solid var(--border);
  border-radius:18px;
  background: rgba(255,255,255,.03);
  padding:16px;
}
.row{display:flex; gap:10px; flex-wrap:wrap;}
input, select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  color:var(--txt);
  outline:none;
}
label{font-size:12px; color:var(--muted);}
.btn{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color:var(--txt);
  cursor:pointer;
  text-decoration:none;
  font-weight:800;
}
.btn:hover{transform: translateY(-1px);}
.table{width:100%; border-collapse:collapse; margin-top:10px;}
.table th, .table td{padding:10px 8px; border-bottom:1px solid var(--border); font-size:13px;}
.badge{padding:4px 8px; border-radius:999px; font-size:12px; border:1px solid var(--border);}
.badge.on{background: rgba(0,255,140,.08);}
.badge.off{background: rgba(255,0,0,.08);}
.small{font-size:12px; color:var(--muted);}
.iconImg{
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
.logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  overflow:hidden;
}

.logoImg{
  width:100%;
  height:100%;
  object-fit:cover; /* si tu logo es cuadrado, queda perfecto */
  display:block;
}