/* LogicHub UI v2 - RTL */
:root{
  --bg:#0a0a0a;
  --bg2:#0f172a;
  --card:rgba(255,255,255,.06);
  --stroke:rgba(0,180,219,.22);
  --stroke2:rgba(0,180,219,.45);
  --txt:#fff;
  --muted:#a3a3a3;
  --brand1:#00b4db;
  --brand2:#0083b0;
  --ok:#22c55e;
  --danger:#ef4444;
  --warn:#f59e0b;
  --shadow:0 20px 60px rgba(0,180,219,.22);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(0,180,219,.10), transparent 60%),
              radial-gradient(900px 600px at 80% 30%, rgba(0,131,176,.12), transparent 65%),
              linear-gradient(135deg, var(--bg), var(--bg2));
  color:var(--txt);
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
.container{width:min(1200px, 92%); margin:0 auto}

.topbar{
  position:sticky; top:0; z-index:99;
  background: rgba(10,10,10,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--stroke);
}
.topbar .inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  flex-direction: row-reverse;
}
.brand{
  font-size:24px; font-weight:800;
  background: linear-gradient(45deg, var(--brand1), var(--brand2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.nav{
  display:flex; gap:18px; list-style:none; flex-direction:row-reverse;
}
.nav a{
  color:#e5e5e5;
  padding:10px 12px;
  border-radius:12px;
  transition:.2s ease;
  border:1px solid transparent;
}
.nav a:hover{
  border-color:var(--stroke);
  background:rgba(255,255,255,.03);
}

.hero{
  padding:70px 0 40px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:26px;
  align-items:center;
  direction: rtl;
}
.hero h1{
  font-size:52px;
  line-height:1.1;
  background: linear-gradient(45deg, var(--brand1), var(--brand2), var(--brand1));
  background-size:200% auto;
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  animation: grad 3s ease infinite;
}
@keyframes grad{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.hero p{margin-top:14px; color:var(--muted); font-size:18px; line-height:1.8}
.hero .actions{display:flex; gap:12px; margin-top:20px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px;
  border-radius:14px;
  font-weight:700;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  transition:.2s ease;
}
.btn.primary{
  border:none;
  background: linear-gradient(45deg, var(--brand1), var(--brand2));
  box-shadow: 0 10px 30px rgba(0,180,219,.25);
}
.btn:hover{transform: translateY(-2px)}
.badge{
  display:inline-flex; gap:8px; align-items:center;
  padding:10px 12px; border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--stroke);
  color:#e5e5e5;
}
.hero-card{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius:22px;
  padding:18px;
  box-shadow: var(--shadow);
}
.hero-card .row{display:flex; justify-content:space-between; align-items:center; margin-bottom:10px}
.hero-card .row span{color:var(--muted)}
.hero-card ul{list-style:none; margin-top:10px}
.hero-card li{padding:10px 0; border-bottom:1px solid rgba(255,255,255,.06); color:#d4d4d4}
.hero-card li:last-child{border-bottom:none}

.section{padding:55px 0}
.section-title{
  text-align:center; font-size:34px; margin-bottom:22px;
  background: linear-gradient(45deg, var(--brand1), var(--brand2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.card{
  position:relative;
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius:22px;
  overflow:hidden;
  transition:.25s ease;
  display:flex;
  flex-direction:column;
  min-height: 420px;
}
.card:hover{
  transform: translateY(-6px);
  border-color: var(--stroke2);
  box-shadow: var(--shadow);
}
.card .cover{
  height:190px;
  background: linear-gradient(135deg, rgba(0,180,219,.18), rgba(0,131,176,.18));
  display:flex; align-items:center; justify-content:center;
  font-size:64px;
  border-bottom:1px solid var(--stroke);
}
.card .cover img{
  width:100%; height:100%;
  object-fit:cover;
}
.card .body{padding:18px; display:flex; flex-direction:column; gap:10px; flex:1}
.card .title{font-size:20px; font-weight:800; color:#9ae6ff}
.card .desc{color:#cbd5e1; font-size:14px; line-height:1.8}
.features{list-style:none; display:flex; flex-direction:column; gap:8px; margin-top:6px; flex:1}
.features li{
  color:#e5e5e5; font-size:14px;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.features li:last-child{border-bottom:none}
.features li::before{content:"✓"; color:var(--brand1); margin-left:10px; font-weight:900}

.card .footer{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 18px;
  border-top:1px solid rgba(0,180,219,.12);
}
.price{font-size:22px; font-weight:900; color:#7dd3fc}
.price small{display:block; font-size:12px; color:var(--muted); font-weight:600}
.buy{
  padding:10px 14px;
  border-radius:14px;
  background: linear-gradient(45deg, var(--brand1), var(--brand2));
  border:none;
  color:white;
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
}
.buy:hover{transform: scale(1.03); box-shadow: 0 10px 28px rgba(0,180,219,.25)}

.note{
  background: rgba(255,255,255,.04);
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:16px;
  color:#d1d5db;
  line-height:1.8;
}

.footer{
  padding:28px 0;
  border-top:1px solid var(--stroke);
  background: rgba(10,10,10,.6);
  text-align:center;
  color: #9ca3af;
}

/* Admin UI */
.admin-wrap{padding:40px 0}
.panel{
  background: rgba(255,255,255,.05);
  border:1px solid var(--stroke);
  border-radius:22px;
  padding:18px;
}
.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius:18px;
}
.table th,.table td{
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-size:14px;
}
.table th{color:#9ae6ff; text-align:right}
.table td{color:#e5e7eb}
.pill{
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  display:inline-block;
}
.pill.on{background: rgba(34,197,94,.15); border:1px solid rgba(34,197,94,.35); color:#bbf7d0}
.pill.off{background: rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.35); color:#fecaca}

.input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--stroke);
  color:white;
  outline:none;
}
textarea{min-height:120px; resize:vertical}
.row2{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.actions-right{display:flex; gap:10px; justify-content:flex-start; flex-wrap:wrap}
.link{
  color:#7dd3fc;
  text-decoration: underline;
}
.alert{
  border-radius:16px;
  padding:12px 14px;
  margin-bottom:12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color:#e5e7eb;
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .nav{display:none}
  .row2{grid-template-columns:1fr}
}