@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root{
  --orange:#ff7a00;
  --gold:#d4af37;
  --bg:#0f0f12;
  --card:#17171c;
  --text:#f5f5f7;
  --muted:#b9b9c2;
  --border: rgba(255,255,255,.08);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:"Cairo", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(255,122,0,.18), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(212,175,55,.14), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.container{
  width:min(980px, 92%);
  margin:0 auto;
  padding:86px 0 92px;
}

.header{
  position:fixed; top:0; left:0; right:0;
  height:64px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(15,15,18,.7);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index:1000;
}
.header img{height:38px; max-width: 180px; object-fit:contain}

.card{
  background: linear-gradient(180deg, rgba(23,23,28,.95), rgba(23,23,28,.82));
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.h1{
  font-size:22px;
  margin:0 0 12px;
  letter-spacing:.2px;
}
.muted{color:var(--muted); font-size:14px}

/* ✅ Fix: real CSS grid */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.col-6{grid-column: span 6;}
.col-12{grid-column: span 12;}
@media (max-width: 780px){
  .col-6{grid-column: span 12;}
}

.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}
.input:focus{
  border-color: rgba(255,122,0,.6);
  box-shadow: 0 0 0 3px rgba(255,122,0,.15);
}

.btn{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:0;
  cursor:pointer;
  font-weight:700;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  color:#121214;
}
.btn.secondary{
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  color: var(--text);
}
.btn:active{transform: translateY(1px)}

.row{display:flex; gap:12px; flex-wrap:wrap}
.row > *{flex:1; min-width: 150px}

.error{
  background: rgba(255,80,80,.12);
  border:1px solid rgba(255,80,80,.25);
  padding:10px 12px;
  border-radius:14px;
  color:#ffb1b1;
  font-size:14px;
  margin-bottom:10px;
}
.success{
  background: rgba(80,255,160,.10);
  border:1px solid rgba(80,255,160,.25);
  padding:10px 12px;
  border-radius:14px;
  color:#b7ffd8;
  font-size:14px;
  margin-bottom:10px;
}

/* Alerts (bootstrap-like minimal) */
.alert{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  font-size:14px;
  margin:10px 0;
}
.alert-danger{border-color: rgba(255,80,80,.25); background: rgba(255,80,80,.10); color:#ffb1b1}
.alert-warning{border-color: rgba(255,193,7,.25); background: rgba(255,193,7,.10); color:#ffe7a3}
.alert-success{border-color: rgba(80,255,160,.25); background: rgba(80,255,160,.10); color:#b7ffd8}

/* Bottom Nav */
.bottom-nav{
  position:fixed; left:0; right:0; bottom:0;
  height:70px;
  background: rgba(15,15,18,.82);
  border-top:1px solid var(--border);
  backdrop-filter: blur(10px);
  display:flex;
  justify-content:center;
  z-index:1000;
}
.bottom-nav .wrap{
  width:min(980px, 92%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.nav-item{
  flex:1;
  text-align:center;
  padding:10px 6px;
  border-radius:16px;
  color:var(--muted);
  font-size:13px;
  line-height:1.2;
}
.nav-item strong{display:block; color:var(--text); font-size:13px}
.nav-item.active{
  color:var(--text);
  background: linear-gradient(90deg, rgba(255,122,0,.18), rgba(212,175,55,.14));
  border:1px solid rgba(255,255,255,.08);
}
.badge{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  background: rgba(212,175,55,.16);
  border:1px solid rgba(212,175,55,.25);
  color: var(--gold);
}

hr{border:0; border-top:1px solid var(--border); margin:14px 0}
.small{font-size:12px}
.table{width:100%; border-collapse:collapse}
.table td,.table th{padding:10px 8px; border-bottom:1px solid var(--border); text-align:right; font-size:14px}
.table th{color:var(--muted); font-weight:600}

.video{
  width:100%;
  border-radius:16px;
  border:1px solid var(--border);
  overflow:hidden;
  background:#000;
}

/* Dashboard Notice */
.notice{
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  font-size:14px;
}
.notice.promo{border-color: rgba(255,122,0,.35); background: rgba(255,122,0,.08)}
.notice.warn{border-color: rgba(255,193,7,.28); background: rgba(255,193,7,.08)}
.notice.success{border-color: rgba(80,255,160,.25); background: rgba(80,255,160,.08)}
.notice.info{border-color: rgba(255,255,255,.14)}
.notice-link{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  font-weight:700;
}

/* Tips */
.tip-box{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background: rgba(255,255,255,.03);
}
.tip-text{font-size:16px; font-weight:700; line-height:1.8}
.tip-author{margin-top:8px; color:var(--muted); font-size:13px}

@keyframes tipIn{
  from{opacity:0; transform: translateY(8px)}
  to{opacity:1; transform: translateY(0)}
}
.tip-box.animate{animation: tipIn .55s ease-out both;}

/* Floating Support Buttons */
.floating-support{
  position:fixed;
  bottom:86px; /* فوق الـ Bottom Nav */
  left:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:1100;
}
.floating-btn{
  width:56px;
  height:56px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  font-size:12px;
  font-weight:700;
}
.floating-btn.wa{background: rgba(37,211,102,.16); border-color: rgba(37,211,102,.28); color:#5bffb1}
.floating-btn.tg{background: rgba(0,136,204,.16); border-color: rgba(0,136,204,.28); color:#8fd7ff}
.floating-btn span{display:none}
.floating-btn.wa::before{content:"\1F4AC"; font-size:22px} /* 💬 */
.floating-btn.tg::before{content:"\2708"; font-size:22px} /* ✈ */

/* Chat UI (Support tickets) */
.chat-box{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  background: rgba(255,255,255,.03);
  max-height: 520px;
  overflow-y: auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.msg{
  max-width: 88%;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  line-height:1.7;
  font-size:14px;
  word-break: break-word;
}
.msg.user{
  align-self:flex-end;
  background: rgba(255,122,0,.12);
  border-color: rgba(255,122,0,.28);
}
.msg.admin{
  align-self:flex-start;
}
.msg .meta{
  margin-top:6px;
  font-size:12px;
  color: var(--muted);
}

/* Better taps on mobile */
@media (max-width: 420px){
  .btn{padding:13px 14px}
  .floating-support{left:12px}
  .floating-btn{width:52px; height:52px}
}
