:root{
  --apz-bg:#06142a;
  --apz-bg-soft:#0b1c36;
  --apz-bg-card:#ffffff;
  --apz-border:#dce3ef;
  --apz-text:#0f172a;
  --apz-muted:#667085;
  --apz-white:#ffffff;
  --apz-gold:#d6b45a;
  --apz-gold-strong:#c7a342;
  --apz-shadow:0 22px 60px rgba(10,20,40,.12);
  --apz-radius:26px;
}

.apz-shell,
.apz-shell-login{
  max-width:1180px;
  margin:36px auto;
  padding:0 18px;
}

.apz-shell-login{max-width:1240px}

.apz-hero-card,
.apz-panel-card{
  background:linear-gradient(180deg, rgba(6,20,42,.98) 0%, rgba(8,25,52,.98) 100%);
  color:var(--apz-white);
  border-radius:32px;
  box-shadow:0 30px 70px rgba(6,20,42,.22);
  overflow:hidden;
  position:relative;
}

.apz-hero-card::before,
.apz-panel-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top right, rgba(214,180,90,.18), transparent 35%);
  pointer-events:none;
}

.apz-hero-card{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:22px;
  padding:34px;
  align-items:stretch;
}

.apz-hero-copy{
  padding:22px;
  align-self:center;
}

.apz-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#d9c99b;
  margin-bottom:14px;
  font-weight:800;
}

.apz-hero-copy h2,
.apz-card-header h2,
.apz-portal-head h2{
  margin:0 0 12px;
  line-height:1.04;
  font-size:clamp(30px,4.2vw,48px);
  color:var(--apz-white);
}

.apz-hero-copy p,
.apz-card-header p,
.apz-portal-head p{
  margin:0;
  color:rgba(255,255,255,.78);
  font-size:16px;
  line-height:1.7;
  max-width:700px;
}

.apz-mini-points{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.apz-mini-points span,
.apz-status-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#eef4ff;
  font-weight:700;
  backdrop-filter:blur(8px);
}

.apz-login-card,
.apz-panel-card-soft,
.apz-profile-sidebar,
.apz-profile-main{
  background:var(--apz-bg-card);
  color:var(--apz-text);
  border-radius:28px;
  border:1px solid rgba(220,227,239,.9);
  box-shadow:var(--apz-shadow);
}

.apz-login-card{
  padding:28px;
  align-self:center;
  position:relative;
  z-index:1;
}

.apz-card-header{margin-bottom:22px}
.apz-card-header.compact{margin-bottom:16px}
.apz-card-header.compact h2,
.apz-login-card .apz-card-header h3{
  color:var(--apz-text);
  margin:0 0 8px;
}

.apz-login-card .apz-card-header h3{
  font-size:30px;
  line-height:1.08;
}

.apz-login-card .apz-card-header p,
.apz-panel-card-soft .apz-card-header p,
.apz-profile-main .apz-card-header p{
  color:var(--apz-muted);
}

.apz-alert{
  padding:15px 16px;
  border-radius:16px;
  margin:0 0 18px;
  font-weight:700;
  font-size:14px;
}

.apz-success{background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}
.apz-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}

.apz-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.apz-form-grid-single{grid-template-columns:1fr}
.apz-field{display:flex;flex-direction:column;gap:8px}
.apz-field-full{grid-column:1/-1}
.apz-field label{
  font-size:14px;
  font-weight:800;
  color:var(--apz-text);
}

.apz-field input,
.apz-field select{
  width:100%;
  min-height:56px;
  border-radius:16px;
  border:1px solid var(--apz-border);
  padding:14px 16px;
  font-size:16px;
  color:var(--apz-text);
  background:#fff;
  box-sizing:border-box;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.apz-field input:focus,
.apz-field select:focus{
  border-color:#a6b6d1;
  box-shadow:0 0 0 4px rgba(15,23,42,.06);
}

.apz-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

.apz-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 18px;
  text-decoration:none;
  border-radius:16px;
  font-weight:800;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.apz-btn:hover{transform:translateY(-1px);opacity:.98}
.apz-btn-block{width:100%}
.apz-btn-primary{
  background:linear-gradient(135deg,var(--apz-gold) 0%, #e2c26e 100%);
  color:#151515;
  box-shadow:0 14px 28px rgba(214,180,90,.24);
}
.apz-btn-secondary{background:#fff;border-color:var(--apz-border);color:var(--apz-text)}
.apz-btn-danger{background:#fff;border-color:#f3c3c3;color:#b42318}

.apz-portal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:34px;
  margin-bottom:22px;
}

.apz-dashboard-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
}

.apz-tile{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:180px;
  padding:24px;
  border-radius:26px;
  background:#fff;
  border:1px solid var(--apz-border);
  text-decoration:none;
  color:var(--apz-text);
  box-shadow:var(--apz-shadow);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.apz-tile:hover{
  transform:translateY(-2px);
  border-color:#c7d4ea;
  box-shadow:0 28px 60px rgba(10,20,40,.16);
}

.apz-tile-accent{
  background:linear-gradient(180deg,#fff 0%, #fffaf0 100%);
  border-color:#ead7a5;
}

.apz-tile-icon{
  width:46px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:#0d1d39;
  color:#fff;
  font-size:20px;
  font-weight:900;
}

.apz-tile strong{font-size:20px;line-height:1.2}
.apz-tile span:last-child{color:var(--apz-muted);line-height:1.6}

.apz-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:22px;
}

.apz-tab{
  min-height:44px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid var(--apz-border);
  text-decoration:none;
  color:var(--apz-text);
  background:#fff;
  font-weight:800;
}

.apz-tab.is-active{
  background:#0d1d39;
  color:#fff;
  border-color:#0d1d39;
}

.apz-user-list{display:grid;gap:12px}
.apz-user-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:18px 20px;
  border-radius:22px;
  border:1px solid var(--apz-border);
  background:#fff;
}

.apz-inline-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.apz-inline-actions form{margin:0}
.apz-muted{color:var(--apz-muted);margin-top:4px;line-height:1.5}

.apz-profile-layout{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:20px;
}

.apz-profile-sidebar,
.apz-profile-main,
.apz-panel-card-soft{
  padding:28px;
}

.apz-profile-sidebar{text-align:center}
.apz-back-btn{margin-bottom:18px}
.apz-avatar-wrap{
  width:148px;
  height:148px;
  border-radius:50%;
  overflow:hidden;
  border:4px solid #efe1b8;
  margin:18px auto;
  box-shadow:0 18px 32px rgba(14,25,42,.12);
}

.apz-avatar-wrap img{width:100%;height:100%;object-fit:cover}
.apz-profile-sidebar h3{margin:0 0 8px;font-size:28px;line-height:1.14;color:var(--apz-text)}
.apz-profile-sidebar p{margin:0 0 8px;color:var(--apz-muted)}

.menu-item-apz-cta a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--apz-gold) 0%, #e2c26e 100%);
  color:#121212 !important;
  font-weight:800;
  box-shadow:0 12px 22px rgba(214,180,90,.18);
}

.menu-item-apz-cta{margin-left:10px}

@media (max-width: 980px){
  .apz-hero-card{grid-template-columns:1fr;padding:20px}
  .apz-hero-copy{padding:12px}
  .apz-portal-head{flex-direction:column;padding:24px}
  .apz-profile-layout{grid-template-columns:1fr}
}

@media (max-width: 760px){
  .apz-shell,.apz-shell-login{margin:24px auto;padding:0 14px}
  .apz-form-grid{grid-template-columns:1fr}
  .apz-user-row{flex-direction:column;align-items:flex-start}
  .apz-profile-sidebar,.apz-profile-main,.apz-panel-card-soft,.apz-login-card{padding:22px}
  .apz-hero-copy h2,.apz-card-header h2,.apz-portal-head h2{font-size:34px}
}
