:root{
  --hx-bg:
    radial-gradient(circle at top left, rgba(198,255,70,.10), transparent 28%),
    radial-gradient(circle at top right, rgba(255,122,89,.10), transparent 24%),
    radial-gradient(circle at 50% 20%, rgba(146,110,255,.10), transparent 26%),
    linear-gradient(180deg, #0b1020 0%, #0e1326 44%, #11182d 100%);

  --hx-surface: rgba(255,255,255,.06);
  --hx-surface-2: rgba(255,255,255,.10);
  --hx-card: rgba(255,255,255,.82);
  --hx-card-strong: rgba(255,255,255,.92);
  --hx-border: rgba(255,255,255,.14);
  --hx-border-soft: rgba(255,255,255,.08);

  --hx-text: #f5f7ff;
  --hx-text-dark: #0e1324;
  --hx-muted: rgba(245,247,255,.72);
  --hx-muted-dark: rgba(14,19,36,.64);

  --hx-lime: #c6ff46;
  --hx-coral: #ff7a59;
  --hx-violet: #926eff;
  --hx-cyan: #7de7ff;

  --hx-success: #18c37e;
  --hx-shadow-lg: 0 30px 80px rgba(0,0,0,.34);
  --hx-shadow-md: 0 18px 40px rgba(0,0,0,.22);
  --hx-shadow-sm: 0 10px 24px rgba(0,0,0,.16);

  --hx-radius-xl: 28px;
  --hx-radius-lg: 22px;
  --hx-radius-md: 18px;
  --hx-radius-sm: 14px;
}

html{
  scroll-behavior: smooth;
}

body.hx-body{
  background: var(--hx-bg);
  color: var(--hx-text);
  min-height: 100vh;
  letter-spacing: -.01em;
}

body.hx-body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025), rgba(255,255,255,.025)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 72px,
      rgba(255,255,255,.025) 73px
    );
  mask-image: linear-gradient(180deg, rgba(0,0,0,.35), transparent 92%);
  opacity: .18;
}

.container{
  position: relative;
}

.hx-topbar{
  background: rgba(8,12,24,.55) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
}

.hx-brand{
  font-weight: 900;
  font-size: 1.42rem;
  color: #fff !important;
  letter-spacing: -.03em;
}

.hx-brand-sub{
  color: rgba(255,255,255,.56);
  font-weight: 700;
  margin-left: 8px;
}

.navbar .nav-link{
  color: rgba(255,255,255,.78) !important;
  font-weight: 600;
}

.navbar .nav-link:hover{
  color: #fff !important;
}

.navbar .btn-primary,
.btn.btn-primary{
  background: linear-gradient(135deg, var(--hx-lime) 0%, #e7ff9a 100%);
  border: 0;
  color: #10151f;
  font-weight: 800;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(198,255,70,.22);
}

.navbar .btn-primary:hover,
.btn.btn-primary:hover{
  color: #10151f;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(198,255,70,.26);
}

.btn{
  transition: all .22s ease;
}

.btn.btn-success{
  background: linear-gradient(135deg, var(--hx-coral) 0%, #ffb38f 100%);
  border: 0;
  color: #191919;
  font-weight: 800;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(255,122,89,.20);
}

.btn.btn-success:hover{
  color: #191919;
  transform: translateY(-1px);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-light{
  border-radius: 14px;
  font-weight: 700;
}

.btn-outline-primary{
  border-color: rgba(146,110,255,.42);
  color: #5940b0;
  background: rgba(146,110,255,.08);
}

.btn-outline-primary:hover{
  background: rgba(146,110,255,.14);
  border-color: rgba(146,110,255,.55);
  color: #422b96;
}

.btn-outline-secondary{
  border-color: rgba(125,231,255,.45);
  color: #0f5771;
  background: rgba(125,231,255,.11);
}

.btn-outline-secondary:hover{
  background: rgba(125,231,255,.16);
  border-color: rgba(125,231,255,.62);
  color: #0c4a61;
}

.hx-search .form-control{
  width: min(520px, 100%);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hx-search .form-control::placeholder{
  color: rgba(255,255,255,.42);
}

.hx-card{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--hx-radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.82));
  box-shadow: var(--hx-shadow-lg);
  color: var(--hx-text-dark);
  overflow: hidden;
}

.hx-card .text-muted,
.hx-card .small.text-muted{
  color: var(--hx-muted-dark) !important;
}

.hx-alert{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--hx-shadow-md);
}

.hx-hero{
  padding: 18px 4px 10px;
}

.hx-hero h1{
  color: #f8fbff;
  font-size: clamp(2.4rem, 5.4vw, 4.65rem);
  line-height: .95;
  letter-spacing: -.05em;
  font-weight: 950;
  max-width: 12ch;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hx-hero .lead{
  color: rgba(245,247,255,.78) !important;
  max-width: 58ch;
  font-size: clamp(1rem, 1.8vw, 1.32rem);
  line-height: 1.55;
}

.hx-badge{
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.hx-mini-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.hx-mini-card{
  position: relative;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  backdrop-filter: blur(16px);
  color: #fff;
  padding: 18px 16px;
  min-height: 126px;
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
}

.hx-mini-card::before{
  content:"";
  position: absolute;
  inset: auto auto 0 0;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(198,255,70,.22), transparent 68%);
  pointer-events: none;
}

.hx-mini-title{
  font-weight: 900;
  font-size: 1.08rem;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.hx-mini-text{
  color: rgba(245,247,255,.72);
  font-size: .96rem;
  line-height: 1.45;
}

.hx-avatar{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #10151f;
  background: linear-gradient(135deg, var(--hx-lime), #fff0a8);
  box-shadow: 0 12px 28px rgba(198,255,70,.20);
}

.hx-avatar-sm{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #10151f;
  background: linear-gradient(135deg, var(--hx-cyan), #d8fbff);
  box-shadow: 0 10px 22px rgba(125,231,255,.20);
}

.hx-media{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hx-media img{
  width: 180px;
  max-width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--hx-shadow-sm);
}

.hx-modal{
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,247,252,.94));
  box-shadow: var(--hx-shadow-lg);
}

.modal-content{
  border: 0;
}

.modal-header,
.modal-footer{
  border-color: rgba(14,19,36,.08);
}

.form-control,
.form-select{
  border-radius: 16px;
  border: 1px solid rgba(14,19,36,.10);
  min-height: 50px;
  background: rgba(248,250,255,.92);
  color: #0e1324;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus{
  border-color: rgba(146,110,255,.52);
  box-shadow: 0 0 0 4px rgba(146,110,255,.10);
  background: #fff;
}

textarea.form-control{
  min-height: 120px;
}

.hx-grid-status{
  margin-top: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  backdrop-filter: blur(18px);
  box-shadow: var(--hx-shadow-lg);
  padding: 16px;
}

.hx-grid-cards{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hx-stat{
  position: relative;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.84));
  color: var(--hx-text-dark);
  box-shadow: var(--hx-shadow-md);
  padding: 18px 16px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hx-stat::before{
  content:"";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(198,255,70,.28), transparent 64%);
  pointer-events: none;
}

.hx-stat:nth-child(2)::before{
  background: radial-gradient(circle, rgba(255,122,89,.23), transparent 64%);
}

.hx-stat:nth-child(3)::before{
  background: radial-gradient(circle, rgba(146,110,255,.23), transparent 64%);
}

.hx-stat:nth-child(4)::before{
  background: radial-gradient(circle, rgba(125,231,255,.26), transparent 64%);
}

.hx-stat-title{
  font-weight: 900;
  font-size: .82rem;
  color: var(--hx-muted-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  position: relative;
}

.hx-stat-value{
  margin-top: 8px;
  font-weight: 950;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.05em;
  color: var(--hx-text-dark);
  position: relative;
  line-height: 1;
}

.hx-login-uri{
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.84));
  color: var(--hx-text-dark);
  box-shadow: var(--hx-shadow-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.hx-login-uri::before{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(198,255,70,.18), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(255,122,89,.14), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(146,110,255,.12), transparent 28%);
  pointer-events: none;
}

.hx-login-uri-title{
  font-weight: 900;
  font-size: .82rem;
  color: var(--hx-muted-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  position: relative;
}

.hx-login-uri-value{
  margin-top: 10px;
  font-weight: 950;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--hx-text-dark);
  word-break: break-word;
  position: relative;
}

.badge.text-bg-success{
  background: rgba(24,195,126,.14) !important;
  color: #0d7a4f !important;
  border: 1px solid rgba(24,195,126,.22);
}

.badge.text-bg-secondary{
  background: rgba(14,19,36,.08) !important;
  color: #4a556f !important;
  border: 1px solid rgba(14,19,36,.10);
}

.dropdown-menu{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--hx-shadow-md);
  overflow: hidden;
}

footer{
  color: rgba(245,247,255,.62);
}

footer .text-muted,
footer a.text-muted{
  color: rgba(245,247,255,.62) !important;
}

footer a.text-muted:hover{
  color: #fff !important;
}

.hx-profile-link{
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.hx-profile-link:hover{
  text-decoration: none;
  opacity: .82;
}

/* FIX MODAL BOOTSTRAP */
.modal{
  z-index: 2000;
}

.modal-backdrop{
  z-index: 1990;
}

.modal-dialog{
  position: relative;
  z-index: 2001;
  pointer-events: auto;
}

.modal-content{
  position: relative;
  z-index: 2002;
  pointer-events: auto;
}

.modal-header,
.modal-body,
.modal-footer{
  position: relative;
  z-index: 2003;
}

.modal-body,
.modal-body *{
  pointer-events: auto;
}

.modal input,
.modal select,
.modal textarea,
.modal button,
.modal label{
  pointer-events: auto;
}

@media (max-width: 1199px){
  .hx-hero h1{
    max-width: 13ch;
  }
}

@media (max-width: 991.98px){
  main.container{
    padding-top: 18px !important;
  }

  .hx-mini-grid{
    grid-template-columns: 1fr;
  }

  .hx-grid-cards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navbar-collapse{
    margin-top: 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
  }

  .navbar .btn,
  .navbar .nav-link{
    width: 100%;
  }
}

@media (max-width: 767.98px){
  .hx-topbar .container{
    padding-left: 14px;
    padding-right: 14px;
  }

  main.container{
    padding-left: 14px;
    padding-right: 14px;
  }

  .hx-hero{
    padding-top: 6px;
  }

  .hx-hero h1{
    font-size: clamp(2.15rem, 10vw, 3.2rem);
    max-width: none;
    line-height: .98;
    margin-bottom: 16px;
  }

  .hx-hero .lead{
    font-size: 1rem;
    line-height: 1.5;
  }

  .hx-card{
    border-radius: 24px;
  }

  .hx-grid-status{
    border-radius: 24px;
    padding: 12px;
  }

  .hx-grid-cards{
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hx-stat{
    border-radius: 20px;
    min-height: 104px;
    padding: 14px;
  }

  .hx-stat-title{
    font-size: .74rem;
  }

  .hx-stat-value{
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .hx-login-uri{
    border-radius: 20px;
    padding: 14px;
  }

  .hx-login-uri-value{
    font-size: 1.14rem;
    line-height: 1.25;
  }

  .modal-dialog{
    margin: 12px;
  }

  .modal-content{
    border-radius: 22px;
  }

  .btn{
    min-height: 48px;
  }
}

@media (max-width: 520px){
  .hx-grid-cards{
    grid-template-columns: 1fr;
  }

  .hx-login-uri .d-flex{
    align-items: flex-start !important;
  }

  .hx-login-uri .btn{
    width: 100%;
  }

  .hx-badge{
    width: 100%;
    text-align: center;
  }

  .hx-mini-card{
    min-height: auto;
  }

  .form-control,
  .form-select{
    min-height: 48px;
  }
}
/* =========================================================
   FIX CONTRASTO: card/bootstrap su sfondi chiari
   ========================================================= */

.card,
.card .card-body,
.card .card-header,
.card .card-footer,
.modal-content,
.dropdown-menu,
.table,
.table thead,
.table tbody,
.table tr,
.table th,
.table td,
.list-group,
.list-group-item,
.pagination .page-link,
.page-item .page-link{
  color: var(--hx-text-dark);
}

.card .text-muted,
.card .small.text-muted,
.modal-content .text-muted,
.dropdown-menu .text-muted,
.table .text-muted,
.list-group-item .text-muted{
  color: var(--hx-muted-dark) !important;
}

.card a:not(.btn):not(.nav-link),
.modal-content a:not(.btn):not(.nav-link),
.dropdown-menu a:not(.btn):not(.dropdown-item){
  color: #3f46c8;
}

.card a:not(.btn):not(.nav-link):hover,
.modal-content a:not(.btn):not(.nav-link):hover,
.dropdown-menu a:not(.btn):not(.dropdown-item):hover{
  color: #2d3199;
}

/* titoli e testi dentro le card del profilo/community */
.card .fw-bold,
.card .fw-semibold,
.card strong,
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6{
  color: var(--hx-text-dark);
}

/* tabelle admin leggibili */
.table{
  --bs-table-color: var(--hx-text-dark);
  --bs-table-striped-color: var(--hx-text-dark);
  --bs-table-hover-color: var(--hx-text-dark);
}

.table-light,
.table-light th,
.table-light td{
  color: var(--hx-text-dark) !important;
}

/* dropdown leggibile */
.dropdown-menu .dropdown-item{
  color: var(--hx-text-dark);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus{
  color: var(--hx-text-dark);
  background: rgba(146,110,255,.10);
}

.dropdown-menu .dropdown-header{
  color: var(--hx-muted-dark);
}

/* card profilo/amici/post */
.hx-post-card,
.hx-post-card .card-body,
.hx-friend,
.hx-friend-name,
.hx-friend-left,
.hx-cover-actions + *{
  color: var(--hx-text-dark);
}

/* chip/stato amici più leggibili */
.hx-chip{
  color: var(--hx-text-dark);
}

.hx-chip.on{
  color: #0d7a4f;
}

.hx-chip.off{
  color: #6b7280;
}

/* nav pills profilo */
.nav-pills .nav-link{
  color: rgba(245,247,255,.82);
  border-radius: 14px;
}

.nav-pills .nav-link:hover{
  color: #fff;
  background: rgba(255,255,255,.08);
}

.nav-pills .nav-link.active{
  color: #ffffff;
}

/* pagination leggibile */
.page-link{
  background: rgba(255,255,255,.88);
  border-color: rgba(14,19,36,.08);
}

.page-item.active .page-link{
  color: #10151f;
  background: linear-gradient(135deg, var(--hx-lime) 0%, #e7ff9a 100%);
  border-color: transparent;
}

/* form piccoli nelle tabelle/admin */
.form-control.form-control-sm,
.form-select.form-select-sm{
  color: var(--hx-text-dark);
}
/* =========================
   GRID STATUS PAGE
   ========================= */
.gs-page{
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 0 34px;
}

.gs-hero{
  display:grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .95fr);
  gap: 24px;
  margin-bottom: 22px;
}

.gs-hero-copy,
.gs-hero-panel,
.gs-card{
  position:relative;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
}

.gs-hero-copy{
  background:
    radial-gradient(circle at top left, rgba(184,255,76,.16), transparent 34%),
    radial-gradient(circle at right center, rgba(96,120,255,.18), transparent 36%),
    linear-gradient(135deg, rgba(9,16,34,.96), rgba(20,29,56,.94));
  border-radius: 34px;
  padding: 34px;
}

.gs-kicker{
  font-size: .84rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
  color: #c5ff6f;
  margin-bottom: 10px;
}

.gs-hero-copy h1,
.gs-card-head h2{
  margin: 0;
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.04em;
  color: #fff;
}

.gs-hero-copy h1{
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  margin-bottom: 16px;
}

.gs-hero-copy p{
  max-width: 70ch;
  color: rgba(240,244,255,.78);
  font-size: 1.04rem;
  line-height: 1.72;
  margin: 0 0 18px;
}

.gs-hero-badges,
.gs-panel-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.gs-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .92rem;
  font-weight: 700;
}

.gs-badge.is-online,
.gs-inline-state.is-online{
  background: rgba(164,255,68,.16);
  color: #d8ff9f;
  border-color: rgba(164,255,68,.25);
}

.gs-badge.is-offline,
.gs-inline-state.is-offline{
  background: rgba(255,109,109,.14);
  color: #ffc0c0;
  border-color: rgba(255,109,109,.22);
}

.gs-badge.is-hg{
  background: rgba(112,167,255,.14);
  color: #d2e5ff;
  border-color: rgba(112,167,255,.2);
}

.gs-badge.is-uri{
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-hero-panel{
  background: linear-gradient(180deg, rgba(248,250,255,.98), rgba(232,238,252,.96));
  border-radius: 30px;
  padding: 26px;
  color: #10151f;
}

.gs-panel-title{
  color: #4d5d7d;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 16px;
}

.gs-panel-status-row{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom: 18px;
}

.gs-panel-status-row strong{
  display:block;
  font-size: 1.9rem;
  line-height: 1;
  color: #0f1726;
}

.gs-panel-sub{
  margin-top: 6px;
  color: #6c7a93;
  font-size: .94rem;
}

.gs-dot{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(0,0,0,.05);
}
.gs-dot.is-online{ background:#a4ff44; }
.gs-dot.is-offline{ background:#ff7272; }

.gs-panel-mini-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
  margin-bottom: 18px;
}

.gs-mini-card{
  border-radius: 22px;
  padding: 14px 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(16,21,31,.06);
}

.gs-mini-card span,
.gs-status-table th{
  display:block;
  color: #61708c;
  font-size: .88rem;
  letter-spacing: .02em;
}

.gs-mini-card strong{
  display:block;
  font-size: 1.4rem;
  line-height: 1.15;
  color: #0f1726;
  margin-top: 6px;
}

.gs-detail-grid{
  display:grid;
  grid-template-columns: minmax(0,1.45fr) minmax(300px,.75fr);
  gap: 22px;
}

.gs-detail-grid.single{
  margin-top: 10px;
}

.gs-card{
  background: linear-gradient(180deg, rgba(248,250,255,.98), rgba(234,239,251,.96));
  border-radius: 32px;
  padding: 26px;
}

.gs-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom: 18px;
}

.gs-card-head h2{
  color:#10151f;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.gs-card-head.compact{ align-items:flex-start; }

.gs-link{
  color: #1d2d4d;
  text-decoration:none;
  font-weight: 700;
}

.gs-link:hover{ color:#0d1117; }

.gs-status-table-wrap{
  border-radius: 24px;
  overflow:hidden;
  border:1px solid rgba(12,22,42,.08);
  background: rgba(255,255,255,.62);
}

.gs-status-table{
  width:100%;
  border-collapse: collapse;
}

.gs-status-table th,
.gs-status-table td{
  padding: 18px 20px;
  border-bottom:1px solid rgba(12,22,42,.08);
}

.gs-status-table tr:last-child th,
.gs-status-table tr:last-child td{
  border-bottom:0;
}

.gs-status-table th{
  width:50%;
  font-weight:700;
}

.gs-status-table td{
  color:#10151f;
  font-size: 1.08rem;
  font-weight: 800;
}

.gs-inline-state{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 800;
}

.gs-side-text{
  color: #54627c;
  line-height: 1.72;
  margin: 0;
}

.gs-side-footer{
  margin-top: 18px;
  display:grid;
  gap: 12px;
}

.gs-dark-outline{
  color:#10151f !important;
  border-color: rgba(16,21,31,.18) !important;
}

@media (max-width: 1199.98px){
  .gs-hero,
  .gs-detail-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 767.98px){
  .gs-page{ padding-top: 8px; }
  .gs-hero-copy,
  .gs-hero-panel,
  .gs-card{ border-radius: 24px; }
  .gs-hero-copy,
  .gs-hero-panel,
  .gs-card{ padding: 20px; }
  .gs-panel-mini-grid{ grid-template-columns: 1fr; }
  .gs-card-head{ align-items:flex-start; flex-direction:column; }
  .gs-status-table th,
  .gs-status-table td{ padding: 14px; }
  .gs-status-table th{ width: 46%; }
}

/* =========================
   GRID EVENTS MODULE
   ========================= */
.ev-page,.ev-detail-page,.ev-admin-page{max-width:1240px;margin:0 auto;padding:14px 0 38px;}
.ev-hero,.ev-admin-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:20px;padding:30px;border-radius:32px;background:radial-gradient(circle at top left,rgba(196,255,76,.18),transparent 30%),linear-gradient(135deg,rgba(12,18,38,.96),rgba(28,22,54,.94));border:1px solid rgba(255,255,255,.08);box-shadow:0 24px 70px rgba(0,0,0,.28);}
.ev-hero.compact{align-items:center;}
.ev-kicker{font-size:.82rem;letter-spacing:.16em;text-transform:uppercase;font-weight:950;color:#c6ff58;margin-bottom:8px;}
.ev-hero h1,.ev-admin-hero h1{margin:0;color:#fff;font-size:clamp(2.2rem,5vw,4.4rem);line-height:.96;font-weight:950;letter-spacing:-.055em;}
.ev-hero p,.ev-admin-hero p{margin:12px 0 0;color:rgba(241,245,255,.78);max-width:720px;line-height:1.65;}
.ev-hero-cta,.ev-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;text-decoration:none;border-radius:999px;font-weight:950;min-height:42px;padding:10px 18px;white-space:nowrap;}
.ev-hero-cta,.ev-btn-primary{background:linear-gradient(135deg,#bd55ee,#f9e6b5);color:#111722!important;box-shadow:0 12px 30px rgba(189,85,238,.22);}
.ev-hero-cta.ghost,.ev-btn-ghost{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);color:#fff!important;}
.ev-btn-soft{background:rgba(196,255,76,.16);border:1px solid rgba(196,255,76,.24);color:#eaffb4!important;}
.ev-btn-done{background:#bfff46;color:#111722!important;}
.ev-btn-muted{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#d6d9e6!important;}
.ev-btn-muted-active{background:rgba(255,140,120,.18);border:1px solid rgba(255,140,120,.24);color:#ffd0c8!important;}
.ev-btn-danger{background:#e82e48;color:#fff!important;}
.ev-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.ev-card{overflow:hidden;border-radius:30px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(233,239,252,.96));border:1px solid rgba(255,255,255,.08);box-shadow:0 20px 55px rgba(0,0,0,.22);color:#101624;}
.ev-card-media{display:block;height:250px;background:#121827;overflow:hidden;text-decoration:none;}
.ev-card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease;}
.ev-card:hover .ev-card-media img{transform:scale(1.035);}
.ev-card-media-empty{display:grid;place-items:center;background:radial-gradient(circle at center,rgba(196,255,76,.35),transparent 38%),linear-gradient(135deg,#171d36,#51307a);color:#fff;font-size:2rem;font-weight:950;}
.ev-card-body{padding:20px;}
.ev-card-kicker{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;font-weight:950;color:#6d4be5;margin-bottom:8px;}
.ev-card h3{margin:0;font-size:1.55rem;line-height:1.08;font-weight:950;letter-spacing:-.03em;}
.ev-card h3 a{color:#111722;text-decoration:none;}
.ev-card-meta{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;color:#596782;font-size:.9rem;font-weight:750;}
.ev-card-meta span{background:rgba(16,22,36,.06);border:1px solid rgba(16,22,36,.06);border-radius:999px;padding:6px 10px;}
.ev-card p{color:#42506b;line-height:1.6;min-height:48px;}
.ev-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px;}
.ev-card-actions form{margin:0;}
.ev-card-foot{margin-top:13px;color:#67728a;font-weight:800;}
.ev-empty{border-radius:28px;padding:30px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);color:#dfe5f6;text-align:center;font-weight:800;}
.ev-form-card,.ev-panel{border-radius:32px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(233,239,252,.96));box-shadow:0 20px 60px rgba(0,0,0,.22);padding:26px;color:#101624;}
.ev-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.ev-field{display:grid;gap:7px;}
.ev-field.span-2{grid-column:span 2;}
.ev-field label{font-weight:950;color:#172033;}
.ev-field input,.ev-field select,.ev-field textarea,.ev-admin-actions input{border:1px solid rgba(15,23,42,.12);background:rgba(246,248,253,.96);border-radius:16px;padding:12px 14px;color:#101624;outline:none;}
.ev-field small{color:#66728a;}
.ev-coords div{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.ev-form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;color:#66728a;font-weight:750;}
.ev-detail-hero{position:relative;min-height:520px;border-radius:36px;overflow:hidden;background:linear-gradient(135deg,#101827,#2b1c4a);box-shadow:0 30px 80px rgba(0,0,0,.35);margin-bottom:22px;}
.ev-detail-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.ev-detail-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,8,18,.92),rgba(5,8,18,.48),rgba(5,8,18,.18));}
.ev-detail-content{position:relative;z-index:2;max-width:850px;padding:58px 38px;color:#fff;}
.ev-detail-content h1{font-size:clamp(2.5rem,6vw,5.4rem);font-weight:950;line-height:.92;letter-spacing:-.06em;margin:0 0 18px;}
.ev-detail-meta,.ev-detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
.ev-detail-meta span{border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);padding:8px 12px;font-weight:850;}
.ev-detail-actions form{margin:0;}
.ev-detail-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;}
.ev-panel h2{font-size:1.5rem;font-weight:950;letter-spacing:-.03em;}
.ev-panel p{line-height:1.72;color:#36445e;}
.ev-part-count{font-size:2.2rem;font-weight:950;color:#121827;margin:6px 0 12px;}
.ev-muted{color:#66728a;}
.ev-participants{display:grid;gap:8px;}
.ev-person{display:flex;align-items:center;gap:10px;text-decoration:none;color:#121827;background:rgba(12,20,38,.05);border:1px solid rgba(12,20,38,.06);border-radius:16px;padding:10px;}
.ev-person span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#bd55ee,#c6ff46);font-weight:950;color:#111722;}
.ev-admin-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;}
.ev-admin-tabs a{padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);color:#d9dff2;text-decoration:none;font-weight:900;}
.ev-admin-tabs a.active{background:#c6ff46;color:#111722;}
.ev-admin-list{display:grid;gap:14px;}
.ev-admin-item{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;border-radius:28px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(237,242,252,.98));padding:16px;color:#101624;box-shadow:0 15px 45px rgba(0,0,0,.2);}
.ev-admin-thumb{border-radius:20px;overflow:hidden;background:linear-gradient(135deg,#171d36,#51307a);height:150px;display:grid;place-items:center;color:#fff;font-weight:950;}
.ev-admin-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.ev-admin-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}
.ev-admin-top h2{margin:0;font-size:1.4rem;font-weight:950;}
.ev-admin-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px;color:#5c6880;font-weight:750;font-size:.9rem;}
.ev-status-pill{border-radius:999px;padding:7px 12px;font-weight:950;text-transform:uppercase;font-size:.75rem;background:#e8edf8;color:#25304a;}
.ev-status-pill.pending{background:#fff0bf;color:#6d4800}.ev-status-pill.approved{background:#d9ffc0;color:#235400}.ev-status-pill.rejected{background:#ffe0e0;color:#8d1f2b}.ev-status-pill.cancelled{background:#e3e6ee;color:#586174}
.ev-admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:center;}
.ev-admin-actions input{min-width:260px;flex:1 1 260px;}
@media(max-width:991.98px){.ev-grid,.ev-detail-grid{grid-template-columns:1fr}.ev-hero,.ev-admin-hero{align-items:flex-start;flex-direction:column}.ev-admin-item{grid-template-columns:1fr}.ev-admin-thumb{height:210px}}
@media(max-width:575.98px){.ev-form-grid{grid-template-columns:1fr}.ev-field.span-2{grid-column:auto}.ev-card-media{height:210px}.ev-detail-content{padding:32px 20px}.ev-detail-hero{min-height:460px}.ev-hero,.ev-admin-hero,.ev-form-card,.ev-panel{border-radius:24px;padding:20px}}
