:root{
  --bg:#0a0612;
  --panel:#120a1f;
  --panel-2:#1a1230;
  --card:#1a1030;
  --card-border:#2a1a4a;
  --pink:#ff2da8;
  --pink-2:#ff36c6;
  --purple:#9d3df0;
  --green:#16d39a;
  --green-2:#10b88a;
  --yellow:#f5b300;
  --text:#fff;
  --text-soft:#cfc1e0;
  --text-mute:#8a7da3;
  --danger:#ff5b5b;
  --field-bg:#1a0e2c;
  --field-border:#2a1a4a;
  --modal-bg:#160a28;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
html,body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',sans-serif;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
}
body{
  background:
    radial-gradient(circle at 20% 10%, rgba(157,61,240,.18) 0%, transparent 35%),
    radial-gradient(circle at 80% 90%, rgba(255,45,168,.18) 0%, transparent 35%),
    var(--bg);
  background-attachment:fixed;
}
a{color:inherit;text-decoration:none;cursor:pointer}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,select,textarea{font-family:inherit;outline:none}
.hidden{display:none !important}
.pink{color:var(--pink)}
.green{color:var(--green)}
.yellow{color:var(--yellow)}
.text-mute{color:var(--text-mute)}

/* App Layout */
.app{max-width:480px;margin:0 auto;padding:0 0 100px}
.app.admin-app { max-width: 100%; }
.topbar{
  position:sticky;top:0;z-index:100;
  background:linear-gradient(180deg,#13082a 0%,#0e0620 100%);
  border-bottom:1px solid #1f1238;
  padding:14px 16px;display:flex;align-items:center;justify-content:space-between;
}
.brand{display:flex;align-items:center;gap:10px}
.brand-icon{
  width:34px;height:34px;border-radius:8px;
  background:linear-gradient(135deg,var(--pink),var(--purple));
  display:flex;align-items:center;justify-content:center;font-size:16px;
  box-shadow: 0 8px 22px rgba(255,45,168,.5);
}
.brand-name{font-weight:800;font-size:15px;letter-spacing:1.2px;
  background: linear-gradient(90deg,#fff,#ffb7e2);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;}

.main-wrap{padding:14px}

/* ============================================ */
/*  BOTTOM NAVIGATION BAR                       */
/* ============================================ */
.bottom-nav{
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:480px;
  z-index:200;
  padding:8px 12px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(10,5,18,0.95) 20%);
}
.bottom-nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-around;
  background: rgba(18,10,35,0.95);
  border:1px solid rgba(42,26,74,0.7);
  border-radius:22px;
  padding:10px 6px;
  backdrop-filter:blur(20px);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}
.nav-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  text-decoration:none;
  color:var(--text-mute);
  font-size:9px;
  font-weight:600;
  letter-spacing:0.5px;
  transition:color 0.2s ease;
  position:relative;
}
.nav-item.active{
  color:#fff;
}
.nav-item.active::after{
  content:'';
  position:absolute;
  bottom:-4px;
  left:50%;
  transform:translateX(-50%);
  width:4px;
  height:4px;
  border-radius:50%;
  background:#4a9eff;
}
.nav-icon-wrap{
  width:42px;
  height:42px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  transition:all 0.25s ease;
}
.nav-icon-wrap.active{
  background:linear-gradient(135deg, rgba(42,26,74,0.9), rgba(30,18,60,0.95));
  border:1px solid rgba(80,50,140,0.5);
  box-shadow:0 4px 15px rgba(80,50,140,0.3);
  color:#fff;
}

/* Hero */
.hero{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0f051c;
  border: 1px solid rgba(255, 45, 168, 0.2);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(157,61,240, 0.1);
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,45,168,0.2) 0%, rgba(138,43,226,0.05) 40%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.hero-content{
  position: relative;
  z-index: 2;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge{
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(255,45,168,.4);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}
.hero h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 5px;
  background: linear-gradient(to right, #fff, #fbd5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: #a09eb0;
  font-size: 12px;
  max-width: 300px;
  margin: 0 auto 12px auto;
  line-height: 1.4;
}

/* Sections */
.section-title{
  text-align:center;font-size:22px;font-weight:800;
  margin-bottom:18px;letter-spacing:.5px;
  background:linear-gradient(90deg,#fff 0%,#f0d8ff 50%,#fff 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}

/* Products */
.products-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.product-card{
  background:#150a26;border:1px solid #2a1a4a;border-radius:12px;
  overflow:hidden;display:flex;flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease;
}
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 32px rgba(255,45,168,.22), 0 0 0 1px rgba(255,45,168,.18);
  border-color:rgba(255,45,168,.35);
}
.pc-img{
  width:100%;aspect-ratio:16/9;
  background:linear-gradient(135deg,#1a0a30,#0e0620);
  display:flex;align-items:center;justify-content:center;
  position:relative;overflow:hidden;
}
.pc-img img{width:100%;height:100%;object-fit:cover}
.pc-body{padding:8px 10px}
.pc-title{font-size:13px;font-weight:700}
.pc-price{
  font-size:14px;font-weight:700;color:var(--green);
  display:flex;align-items:center;gap:5px; margin-top:8px;
}
.pc-foot{padding:0 10px 10px;display:flex;flex-direction:column;gap:8px}
.pc-buy{
  background:linear-gradient(90deg,var(--pink),var(--pink-2));
  color:#fff;font-weight:700;padding:9px;border-radius:7px;font-size:13px;
  display:flex;align-items:center;justify-content:center;gap:6px;
  box-shadow:0 3px 12px rgba(255,45,168,.3);
  transition:all .18s ease;
}
.pc-buy:hover{filter:brightness(1.12);transform:translateY(-1px);box-shadow:0 6px 18px rgba(255,45,168,.45)}

/* Inputs */
.field{
  display:flex;align-items:center;gap:10px;
  background:#1a1030;border:1px solid #2a1a4a;border-radius:8px;
  padding:11px 12px;margin-bottom:10px;
  transition:border-color .18s ease;
}
.field:focus-within{border-color:var(--pink);box-shadow:0 0 0 2px rgba(255,45,168,.12)}
.field input{flex:1;background:none;border:none;color:#fff;font-size:13px}
.btn-primary{
  width:100%;padding:12px;border-radius:8px;
  background:linear-gradient(90deg,var(--pink),var(--purple));
  color:#fff;font-weight:700;font-size:14px;margin-top:6px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 16px rgba(255,45,168,.32);
  transition:all .18s ease;
  text-decoration:none;
  gap:8px;
}
.btn-primary:hover{filter:brightness(1.1);transform:translateY(-1px)}

/* Modals */
.modal{
  position:fixed;inset:0;background:rgba(0,0,0,.82);
  display:flex;align-items:center;justify-content:center;
  z-index:500;padding:14px;
  backdrop-filter:blur(8px);
}
.modal-card{
  background:#0f0620;border:1px solid #2a1a4a;border-radius:16px;
  width:100%;max-width:420px;padding:18px;
  box-shadow:0 30px 70px rgba(0,0,0,.7);
}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.modal-head h3{font-size:16px;font-weight:700}

/* ============================================ */
/*  PROFILE PAGE STYLES                         */
/* ============================================ */
.profile-section{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:14px;
  padding:20px;
  margin-bottom:16px;
}
.profile-section header h2{
  font-size:18px;
  font-weight:700;
  color:#fff;
  margin-bottom:4px;
}
.profile-section header p{
  font-size:13px;
  color:var(--text-mute);
  margin-bottom:0;
}
.profile-section form{
  margin-top:16px;
}
.profile-section .form-group{
  margin-bottom:14px;
}
.profile-section .form-group label,
.profile-section label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--text-soft);
  margin-bottom:6px;
}
.profile-section .form-group input,
.profile-section input[type="text"],
.profile-section input[type="email"],
.profile-section input[type="password"]{
  width:100%;
  background:var(--field-bg);
  border:1px solid var(--field-border);
  border-radius:8px;
  padding:11px 14px;
  color:#fff;
  font-size:13px;
  transition:border-color .18s ease;
}
.profile-section input:focus{
  border-color:var(--pink);
  box-shadow:0 0 0 2px rgba(255,45,168,.12);
}
.profile-section .btn-save{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:linear-gradient(90deg,var(--pink),var(--purple));
  color:#fff;
  font-weight:700;
  font-size:13px;
  padding:10px 24px;
  border-radius:8px;
  border:none;
  cursor:pointer;
  box-shadow:0 3px 12px rgba(255,45,168,.3);
  transition:all .18s ease;
  margin-top:4px;
}
.profile-section .btn-save:hover{
  filter:brightness(1.1);
  transform:translateY(-1px);
}
.profile-section .btn-danger{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:linear-gradient(90deg,#ff3b3b,#cc2d2d);
  color:#fff;
  font-weight:700;
  font-size:13px;
  padding:10px 24px;
  border-radius:8px;
  border:none;
  cursor:pointer;
  box-shadow:0 3px 12px rgba(255,59,59,.3);
  transition:all .18s ease;
  margin-top:8px;
}
.profile-section .btn-danger:hover{
  filter:brightness(1.1);
  transform:translateY(-1px);
}

/* Utility classes for Breeze compatibility */
.text-lg{font-size:18px}
.text-xl{font-size:20px}
.text-2xl{font-size:24px}
.text-3xl{font-size:30px}
.text-sm{font-size:13px}
.text-xs{font-size:11px}
.font-bold{font-weight:700}
.font-semibold{font-weight:600}
.font-medium{font-weight:500}
.mb-2{margin-bottom:8px}
.mb-4{margin-bottom:16px}
.mb-6{margin-bottom:24px}
.mt-2{margin-top:8px}
.mt-4{margin-top:16px}
.mt-6{margin-top:24px}
.space-y-6 > * + *{margin-top:24px}

/* ============================================ */
/*  BTN GHOST                                   */
/* ============================================ */
.btn-ghost{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#fff;
  font-size:13px;
  font-weight:600;
  padding:6px 10px;
  border-radius:6px;
  transition:background .15s ease;
  text-decoration:none;
}
.btn-ghost:hover{
  background:rgba(255,255,255,0.06);
}

/* Responsive */
@media (max-width: 600px) { 
  .hidden-mobile { display: none !important; } 
}

/* ============================================ */
/*  NIXTIO ADMIN DASHBOARD STYLES               */
/* ============================================ */
.nx-dashboard {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}
.nx-main-col, .nx-side-col {
    min-width: 0; /* Prevents flex/grid blowouts */
}

/* Section Titles */
.nx-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.nx-section-title h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.nx-time-filters {
    display: flex;
    gap: 15px;
    color: #6b6b80;
    font-size: 13px;
    font-weight: 600;
}
.nx-time-filters span {
    cursor: pointer;
    transition: color 0.2s;
}
.nx-time-filters span:hover {
    color: #fff;
}
.nx-time-filters span.active {
    color: #fff;
}

/* Chart */
.nx-chart-wrap {
    height: 280px;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin-bottom: 20px;
}

/* Purchases Grid */
.nx-purchases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.nx-purchase-card {
    background: #161224;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.nx-purchase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.nx-pc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.nx-pc-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nx-pc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9d3df0;
}
.nx-pc-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.nx-pc-info span {
    font-size: 11px;
    color: #6b6b80;
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.nx-pc-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.nx-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8a8a9e;
}

.nx-pc-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    width: 70%;
}
.nx-pc-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.nx-pc-dots .d-purple { background: #9d3df0; }
.nx-pc-dots .d-yellow { background: #f5b300; }

.nx-pc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b6b80;
}
.nx-pc-footer .price {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

/* Side Column Lists */
.nx-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nx-list-item {
    background: #161224;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}
.nx-list-item:hover {
    background: #1d182e;
}
.nx-li-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2a2240;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.nx-li-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.nx-li-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.nx-li-info span {
    font-size: 12px;
    color: #6b6b80;
}
.nx-li-badge {
    background: rgba(245, 179, 0, 0.15);
    color: #f5b300;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
}

/* Gradient Card */
.nx-gradient-card {
    background: linear-gradient(135deg, #f5b300 0%, #ff8c00 100%);
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    color: #0c0d14;
    position: relative;
    overflow: hidden;
}
.nx-gc-avatars {
    display: flex;
    margin-bottom: 20px;
    font-size: 24px;
}
.nx-gradient-card h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -1px;
}
.nx-gradient-card p {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .nx-dashboard {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .nx-dashboard { gap: 20px; }
    .nx-purchases-grid { grid-template-columns: 1fr; }
    .nx-chart-wrap { height: 220px; }
}
