:root{
  --bg: #07090c;
  --panel: rgba(15, 18, 24, 0.60);
  --panel2: rgba(10, 12, 16, 0.55);
  --stroke: rgba(255, 255, 255, 0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --gold: #f3c65f;
  --gold2:#ffdb8a;
  --amber:#ff9b3d;
  --danger:#ff4d4d;
  --ok:#39d98a;
  --shadow: 0 20px 80px rgba(0,0,0,0.65);
  --shadow2: 0 10px 30px rgba(0,0,0,0.55);
  --radius: 22px;
}

*{ box-sizing: border-box; margin:0; padding:0; }
html, body { height: 100%; }
body{
  font-family: "Rajdhani", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* BACKGROUND */
.bg{
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 700px at 70% 30%, rgba(243,198,95,0.12), transparent 60%),
    radial-gradient(900px 600px at 20% 70%, rgba(255,155,61,0.08), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.78)),
    var(--bg);
  filter: saturate(1.05) contrast(1.02) brightness(0.75);
  transform: scale(1.02);
}
.bg::after{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(1000px 600px at 50% 20%, transparent 20%, rgba(0,0,0,0.55) 70%),
    radial-gradient(1200px 900px at 50% 100%, rgba(0,0,0,0.65), rgba(0,0,0,0.92));
  mix-blend-mode: multiply;
}
.grain{
  position: fixed; inset: 0; pointer-events:none; opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Particles */
.embers{ position: fixed; inset: 0; pointer-events:none; overflow:hidden; }
.ember{
  position:absolute; width: 2px; height: 2px;
  background: rgba(255, 203, 109, 0.95); border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 155, 61, 0.55);
  animation: floatUp linear infinite; opacity: 0.0;
}
@keyframes floatUp{
  0%{ transform: translateY(20px); opacity: 0; }
  10%{ opacity: 0.85; }
  80%{ opacity: 0.65; }
  100%{ transform: translateY(-120vh); opacity: 0; }
}
@keyframes pulse{ 0%,100%{ filter: drop-shadow(0 0 10px rgba(243,198,95,0.55)); } 50%{ filter: drop-shadow(0 0 20px rgba(243,198,95,0.85)); } }
@keyframes sheen{
  0%{ transform: translateX(-70%) skewX(-20deg); opacity: 0.0; }
  25%{ opacity: 0.25; }
  50%{ transform: translateX(120%) skewX(-20deg); opacity: 0.0; }
  100%{ opacity: 0.0; }
}

/* Layout */
.wrap{
  position: relative; min-height: 100%;
  display: grid; place-items: center; padding: 48px 28px;
}
.shell{
  width: min(1120px, 100%);
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 22px; align-items: stretch;
}
.shell.single{ grid-template-columns: 1fr; max-width: 480px; }
.shell.wide{ grid-template-columns: 1fr; max-width: 1200px; }

.panel{
  background: var(--panel); border: 1px solid var(--stroke);
  border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow: hidden; position: relative;
}
.panel.glow::before{
  content:""; position:absolute; inset:-2px;
  background: radial-gradient(700px 220px at 30% 15%, rgba(243,198,95,0.35), transparent 55%),
              radial-gradient(600px 260px at 90% 70%, rgba(255,155,61,0.20), transparent 60%);
  filter: blur(18px); opacity: 0.9; pointer-events:none;
}

/* Hero panel */
.hero{
  padding: 26px; display:flex; flex-direction: column;
  justify-content: space-between; min-height: 560px;
}
.brand{ position: relative; display:flex; align-items:center; gap: 12px; z-index: 1; }
.mark{
  width: 44px; height: 44px; min-width: 44px; max-width: 44px;
  display:grid; place-items:center; overflow: visible; flex-shrink: 0;
  background: none; border: none; box-shadow: none;
}
.mark img{
  width: 44px; height: 44px; max-width: 44px; max-height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(243,198,95,0.55)) drop-shadow(0 0 20px rgba(243,198,95,0.25));
}
.brand h1{ font-size: 22px; letter-spacing: 0.10em; text-transform: uppercase; font-weight: 700; }
.brand p{ margin-top: 2px; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }

.heroMid{ z-index: 1; padding: 10px 0 0; }
.kicker{
  display:inline-flex; align-items:center; gap: 10px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(243,198,95,0.22); background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.78); font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px rgba(243,198,95,0.65); }
.headline{
  margin: 14px 0 10px; font-size: 46px; line-height: 0.98;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  text-shadow: 0 14px 60px rgba(0,0,0,0.7);
}
.sub{ max-width: 52ch; color: rgba(255,255,255,0.74); font-size: 18px; line-height: 1.35; letter-spacing: 0.02em; }

/* Mini card */
.miniCard{
  margin-top: 22px; width: min(520px, 100%); border-radius: 18px;
  border: 1px solid rgba(243,198,95,0.22);
  background: radial-gradient(260px 120px at 70% 30%, rgba(243,198,95,0.18), transparent 60%),
    linear-gradient(135deg, rgba(0,0,0,0.55), rgba(15,15,18,0.75));
  box-shadow: var(--shadow2); padding: 18px; position: relative;
  overflow:hidden; transform: rotate(-3deg);
}
.miniCard::after{
  content:""; position:absolute; inset:-1px;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.12) 35%, transparent 60%);
  transform: translateX(-60%); animation: sheen 4.6s ease-in-out infinite; pointer-events:none;
}
.miniTop{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 14px; }
.chip{
  width: 46px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(243,198,95,0.95), rgba(165,110,10,0.85));
  box-shadow: 0 10px 26px rgba(243,198,95,0.20);
}
.visa{ font-weight: 700; letter-spacing: 0.14em; opacity: 0.88; }
.miniNums{ display:flex; justify-content: space-between; font-size: 20px; letter-spacing: 0.18em; opacity: 0.92; margin-bottom: 10px; }
.miniFoot{ display:flex; justify-content:space-between; align-items:flex-end; color: rgba(255,255,255,0.78); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.vip{ color: rgba(243,198,95,0.95); font-weight: 700; }

.heroBottom{ z-index: 1; display:flex; gap: 10px; flex-wrap: wrap; align-items:center; color: rgba(255,255,255,0.70); font-size: 14px; letter-spacing: 0.04em; margin-top: 28px; }
.pill{ padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.25); }
.pill strong{ color: rgba(255,255,255,0.9); font-weight: 600; }

/* Login/Form panel */
.login{
  padding: 26px; display:flex; flex-direction: column;
  gap: 14px; min-height: 560px; justify-content: center;
}
.loginHeader{ margin-bottom: 8px; }
.loginHeader h2{ font-size: 28px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.loginHeader p{ margin: 6px 0 0; color: rgba(255,255,255,0.72); font-size: 16px; line-height: 1.3; }

.field{ display:flex; flex-direction: column; gap: 8px; margin-top: 8px; }
label{ color: rgba(255,255,255,0.78); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.input{
  display:flex; align-items:center; gap: 10px;
  padding: 12px 14px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.input:focus-within{
  border-color: rgba(243,198,95,0.40);
  box-shadow: 0 0 0 4px rgba(243,198,95,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-1px);
}
input, select, textarea{
  width:100%; border:0; outline:0; background: transparent;
  color: rgba(255,255,255,0.92); font-size: 18px;
  letter-spacing: 0.02em; font-family: inherit;
}
input::placeholder, textarea::placeholder{ color: rgba(255,255,255,0.40); }
select option{ background: #0f1218; color: #fff; }

.row{ display:flex; align-items:center; justify-content: space-between; gap: 12px; margin-top: 8px; color: rgba(255,255,255,0.72); font-size: 14px; }
.check{ display:flex; align-items:center; gap: 10px; user-select:none; }
.check input{ width: 16px; height: 16px; }
a{ color: rgba(243,198,95,0.92); text-decoration: none; }
a:hover{ text-decoration: underline; }

.btn{
  margin-top: 10px; width: 100%; border: 0; cursor: pointer;
  padding: 14px 16px; border-radius: 16px; font-family: inherit;
  font-size: 18px; letter-spacing: 0.10em; text-transform: uppercase; font-weight: 700;
  color: rgba(10,10,12,0.96);
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  box-shadow: 0 18px 50px rgba(243,198,95,0.22), 0 8px 20px rgba(0,0,0,0.45);
  transition: transform 140ms ease, filter 140ms ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity: 0.5; cursor: not-allowed; }

.btn-danger{
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  box-shadow: 0 18px 50px rgba(255,77,77,0.15), 0 8px 20px rgba(0,0,0,0.45);
}

.btn-sm{
  padding: 10px 16px; font-size: 14px; width: auto; margin-top: 0;
}

.divider{
  display:flex; align-items:center; gap: 12px; margin: 12px 0 4px;
  color: rgba(255,255,255,0.55); font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.divider::before, .divider::after{ content:""; height:1px; flex:1; background: rgba(255,255,255,0.10); }

.alt{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btnGhost{
  width:100%; padding: 12px 14px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.24);
  color: rgba(255,255,255,0.86); font-family: inherit; font-size: 16px;
  letter-spacing: 0.08em; text-transform: uppercase; cursor:pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  text-decoration: none; text-align: center; display: inline-flex; align-items: center; justify-content: center;
}
.btnGhost:hover{
  transform: translateY(-1px); border-color: rgba(243,198,95,0.28);
  background: rgba(0,0,0,0.32); text-decoration: none;
}

.note{ margin-top: 10px; color: rgba(255,255,255,0.60); font-size: 14px; line-height: 1.3; }

.error-box{
  margin-top: 6px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid rgba(255,77,77,0.35); background: rgba(255,77,77,0.08);
  color: rgba(255,210,210,0.92); letter-spacing: 0.02em;
}
.success-box{
  margin-top: 6px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid rgba(57,217,138,0.35); background: rgba(57,217,138,0.08);
  color: rgba(210,255,230,0.92); letter-spacing: 0.02em;
}

.ico{ width: 18px; height: 18px; opacity: 0.85; flex: 0 0 auto; }

/* Responsive */
@media (max-width: 980px){
  .shell{ grid-template-columns: 1fr; }
  .hero{ min-height: auto; }
  .login{ min-height: auto; }
  .headline{ font-size: 40px; }
}

/* ===== DASHBOARD STYLES ===== */
.topbar{
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: var(--panel); border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
}
.topbar .brand{ gap: 10px; }
.topbar .brand h1{ font-size: 18px; }
.topbar-right{ display: flex; align-items: center; gap: 16px; }
.topbar-right span{ color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
.topbar-right a{ font-size: 14px; }

.container{
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 32px 28px;
}

.page-title{
  font-size: 32px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 24px;
  text-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Gift card grid */
.card-grid{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.gift-card{
  background: var(--panel); border: 1px solid var(--stroke);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.gift-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.gift-card img{
  width: 100%; height: 200px; object-fit: cover;
  border-bottom: 1px solid var(--stroke);
}
.gift-card .card-body{ padding: 18px; }
.gift-card .card-title{
  font-size: 20px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 6px;
}
.gift-card .card-desc{
  color: var(--muted); font-size: 14px; line-height: 1.4; margin-bottom: 12px;
}
.gift-card .card-footer{
  display: flex; align-items: center; justify-content: space-between;
}
.gift-card .price{
  font-size: 24px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.04em;
}
.gift-card .stock{
  font-size: 13px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase;
}
.gift-card .stock.out{ color: var(--danger); }
.gift-card .card-category{
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(243,198,95,0.12); color: var(--gold);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 10px;
}
.no-image{
  width: 100%; height: 200px; display: grid; place-items: center;
  background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--stroke);
  color: var(--muted); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Admin table */
.admin-table{
  width: 100%; border-collapse: collapse; margin-top: 16px;
}
.admin-table th, .admin-table td{
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--stroke);
}
.admin-table th{
  color: var(--gold); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600;
}
.admin-table td{ font-size: 15px; }
.admin-table tr:hover td{ background: rgba(243,198,95,0.03); }
.admin-table img{ width: 60px; height: 40px; object-fit: cover; border-radius: 8px; }

.badge{
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
}
.badge-ok{ background: rgba(57,217,138,0.15); color: var(--ok); }
.badge-off{ background: rgba(255,77,77,0.15); color: var(--danger); }

.actions a{
  display: inline-block; margin-right: 8px; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* Admin form panel */
.form-panel{
  background: var(--panel); border: 1px solid var(--stroke);
  border-radius: var(--radius); padding: 28px; margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.form-panel h3{
  font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 18px; color: var(--gold);
}
.form-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-grid .full{ grid-column: 1 / -1; }
@media (max-width: 600px){ .form-grid{ grid-template-columns: 1fr; } }

.empty-state{
  text-align: center; padding: 60px 20px;
  color: var(--muted); font-size: 18px; letter-spacing: 0.04em;
}

/* Tabs */
.tabs{
  display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap;
}
.tab{
  padding: 10px 20px; border-radius: 999px; font-family: inherit;
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; border: 1px solid var(--stroke); background: rgba(0,0,0,0.2);
  color: var(--muted); transition: all 160ms ease; text-decoration: none;
}
.tab:hover{ border-color: rgba(243,198,95,0.25); color: var(--text); text-decoration: none; }
.tab.active{
  background: rgba(243,198,95,0.12); border-color: rgba(243,198,95,0.35);
  color: var(--gold); font-weight: 600;
}

/* Gift card without image */
.gift-card .card-body:first-child{
  padding-top: 22px;
}

/* Buy button inside card */
.gift-card .btn-sm{
  width: 100%; text-align: center; display: flex;
  align-items: center; justify-content: center;
}

/* Orders table code cell */
.admin-table code{
  word-break: break-all;
}
