@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Neue Soviet";
  src: url("../fonts/Neue_soviet.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ns-accent: #ff6600;
  --ns-accent-strong: #ff7a1a;
  --ns-accent-soft: #ff9b57;
  --ns-bg-950: #0a0c0f;
  --ns-bg-900: #101319;
  --ns-bg-860: #161b22;
  --ns-bg-820: #1c232d;
  --ns-bg-780: #24303c;
  --ns-text: #f6f8fc;
  --ns-text-soft: #ccd4df;
  --ns-muted: #9ba7b6;
  --ns-border: rgba(255, 255, 255, 0.14);
  --ns-border-strong: rgba(255, 255, 255, 0.23);
  --ns-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --ns-shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.32);
  --ns-radius-xl: 28px;
  --ns-radius-lg: 20px;
  --ns-radius-md: 14px;
}

* {
  border-color: var(--ns-border);
}

html,
body {
  min-height: 100%;
}

body.ns-body {
  margin: 0;
  font-family: "Rubik", "Segoe UI", sans-serif;
  color: var(--ns-text);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 102, 0, 0.2) 0%, transparent 36%),
    radial-gradient(circle at 8% 94%, rgba(74, 88, 108, 0.28) 0%, transparent 30%),
    linear-gradient(145deg, #090b0d 0%, #12161d 45%, #0f1218 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.ns-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 100%);
}

.ns-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(94px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.ns-glow--one {
  top: -260px;
  right: -150px;
  background: radial-gradient(circle at center, rgba(255, 102, 0, 0.96), rgba(255, 102, 0, 0.2) 42%, transparent 70%);
}

.ns-glow--two {
  bottom: -280px;
  left: -170px;
  background: radial-gradient(circle at center, rgba(135, 150, 169, 0.72), rgba(135, 150, 169, 0.12) 42%, transparent 72%);
}

.ns-announcement,
.ns-header,
.ns-main,
.ns-footer {
  position: relative;
  z-index: 2;
}

.ns-stickers {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ns-sticker {
  position: absolute;
  width: clamp(90px, 10vw, 140px);
  height: auto;
  opacity: 0.12;
  filter: grayscale(0.45) saturate(0.55) brightness(0.88);
  transform: translate(var(--ns-sticker-shift-x, 0), var(--ns-sticker-shift-y, 0)) rotate(var(--ns-sticker-tilt, 0deg)) scale(var(--ns-sticker-scale, 1));
  transform-origin: center;
  mix-blend-mode: screen;
  will-change: transform;
}

.ns-announcement {
  background: linear-gradient(92deg, rgba(255, 102, 0, 0.22) 0%, rgba(255, 102, 0, 0.12) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffe0ce;
  font-size: 0.89rem;
  padding: 0.55rem 0;
}

.ns-announcement i {
  color: #ffc199;
}

.ns-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, rgba(13, 17, 22, 0.85) 0%, rgba(14, 18, 24, 0.7) 100%);
  overflow: hidden;
}

.ns-header--admin {
  background: linear-gradient(155deg, rgba(14, 16, 20, 0.9) 0%, rgba(14, 17, 23, 0.82) 100%);
}

.ns-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: screen;
}

.ns-navbar {
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.ns-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(255, 102, 0, 0.35));
}

.ns-brand {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.ns-nav-links .nav-link {
  color: rgba(236, 240, 245, 0.83);
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  font-weight: 500;
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.ns-nav-links .nav-link:hover,
.ns-nav-links .nav-link:focus,
.ns-nav-links .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.34);
}

.navbar-dark .navbar-toggler:focus {
  box-shadow: 0 0 0 0.22rem rgba(255, 102, 0, 0.22);
}

.ns-page-head {
  max-width: 980px;
  padding-top: 2.8rem;
  padding-bottom: 3.6rem;
  text-align: center;
}

.ns-page-head--admin {
  padding-top: 1.6rem;
  padding-bottom: 2rem;
}

.ns-page-title {
  font-family: "Rubik", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4.3vw, 3.4rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: #fefefe;
  margin-bottom: 1rem;
}

.ns-home .ns-page-title {
  font-family: "Neue Soviet", "Rubik", "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ns-page-subtitle {
  max-width: 780px;
  margin: 0 auto;
  color: var(--ns-text-soft);
  font-size: clamp(1rem, 1.9vw, 1.14rem);
}

.ns-main {
  width: 100%;
  max-width: 1140px;
  padding-top: 2rem;
  padding-bottom: 2.7rem;
  flex: 1 0 auto;
}

.ns-section {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--ns-radius-xl);
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.13), transparent 36%),
    radial-gradient(circle at 10% 92%, rgba(255, 102, 0, 0.15), transparent 44%),
    linear-gradient(140deg, rgba(30, 36, 45, 0.95), rgba(17, 21, 28, 0.92));
  box-shadow: var(--ns-shadow);
  padding: 1.8rem;
}

.ns-section--hero {
  padding: clamp(1.4rem, 3vw, 2.8rem);
}

.ns-section-title {
  font-family: "Rubik", "Segoe UI", sans-serif;
  font-weight: 700;
  color: #f8fbff;
  letter-spacing: -0.015em;
}

.ns-hero-list {
  display: grid;
  gap: 0.6rem;
}

.ns-hero-list-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.7rem 0.85rem;
  color: rgba(247, 249, 252, 0.88);
  display: flex;
  gap: 0.56rem;
  align-items: center;
}

.ns-hero-list-item i {
  color: var(--ns-accent-soft);
}

.ns-inline-link {
  color: #ffc59e;
  text-decoration: none;
  font-weight: 600;
}

.ns-inline-link:hover,
.ns-inline-link:focus {
  color: #ffd9be;
}

.ns-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 102, 0, 0.12), transparent 42%),
    linear-gradient(150deg, rgba(14, 17, 22, 0.92), rgba(12, 14, 19, 0.9));
  padding: 2.3rem 0 1.3rem;
  overflow: hidden;
}

.ns-footer-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(520px, 46vw);
  opacity: 0.2;
  pointer-events: none;
}

.ns-footer h2,
.ns-footer p,
.ns-footer li,
.ns-footer span {
  color: var(--ns-text-soft);
}

.ns-footer-links li + li {
  margin-top: 0.52rem;
}

.ns-footer-links a {
  color: #e8edf4;
  text-decoration: none;
}

.ns-footer-links a:hover,
.ns-footer-links a:focus {
  color: #fff;
}

.ns-footer-cta {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ns-radius-lg);
  background: rgba(255, 255, 255, 0.06);
  padding: 1.2rem;
}

.ns-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  padding-top: 1rem;
  color: var(--ns-muted);
  font-size: 0.9rem;
}

.ns-footer-login-btn {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(246, 248, 252, 0.62);
  padding: 0.32rem 0.78rem;
  font-size: 0.78rem;
}

.ns-footer-login-btn:hover,
.ns-footer-login-btn:focus,
.ns-footer-login-btn.active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Rubik", "Segoe UI", sans-serif;
  color: #f8fbff;
  letter-spacing: -0.012em;
}

p,
li,
label {
  color: var(--ns-text-soft);
}

a {
  color: #ffbf93;
}

a:hover,
a:focus {
  color: #ffd2b4;
}

strong,
b {
  color: #fff;
}

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

.text-bf {
  color: var(--ns-accent-soft) !important;
}

.card {
  border-radius: var(--ns-radius-lg);
  border: 1px solid var(--ns-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  box-shadow: var(--ns-shadow-soft);
  backdrop-filter: blur(12px);
  color: var(--ns-text);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 102, 0, 0.52);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.44);
}

.card p,
.card .card-text {
  color: var(--ns-text-soft);
}

.btn {
  border-radius: 999px;
  border-width: 1px;
  padding: 0.56rem 1.08rem;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus,
.btn:focus-visible {
  box-shadow: 0 0 0 0.24rem rgba(255, 102, 0, 0.22);
}

.btn-bf {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ff7f30 0%, #ff6600 58%, #e24f00 100%);
  box-shadow: 0 12px 26px rgba(255, 102, 0, 0.32);
}

.btn-bf:hover,
.btn-bf:focus {
  color: #fff;
  background: linear-gradient(135deg, #ff9658 0%, #ff7220 58%, #e75b08 100%);
}

.btn-outline-light,
.btn-outline-dark,
.btn-outline-primary,
.btn-outline-danger {
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.36);
  color: #f5f8fb;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--ns-text-soft);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-outline-primary {
  border-color: rgba(255, 102, 0, 0.58);
  color: #ffc79f;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border-color: rgba(255, 102, 0, 0.8);
  color: #fff;
  background: rgba(255, 102, 0, 0.26);
}

.btn-outline-danger {
  border-color: rgba(255, 93, 93, 0.58);
  color: #ffb1b1;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  border-color: rgba(255, 93, 93, 0.85);
  color: #fff;
  background: rgba(255, 93, 93, 0.25);
}

.btn-danger {
  border-color: rgba(255, 92, 92, 0.84);
  background: linear-gradient(130deg, #ff6666 0%, #d83c3c 100%);
}

.btn-danger:hover,
.btn-danger:focus {
  border-color: #ff8787;
  background: linear-gradient(130deg, #ff7676 0%, #e04949 100%);
}

.form-label {
  color: #d8e0ec;
  font-weight: 500;
}

.form-control,
.form-select {
  border-radius: var(--ns-radius-md);
  background: rgba(12, 15, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.19);
  color: #f6f8fc;
}

.form-control::placeholder {
  color: #8f9bab;
}

.form-control:focus,
.form-select:focus {
  background: rgba(14, 18, 24, 0.75);
  border-color: rgba(255, 102, 0, 0.74);
  color: #fff;
  box-shadow: 0 0 0 0.22rem rgba(255, 102, 0, 0.2);
}

.form-control:disabled,
.form-control[readonly] {
  background: rgba(255, 255, 255, 0.03);
  color: #a3adba;
}

.form-select option {
  background: #181d24;
  color: #f3f6fb;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.34);
}

.form-check-input:focus {
  border-color: rgba(255, 102, 0, 0.78);
  box-shadow: 0 0 0 0.18rem rgba(255, 102, 0, 0.2);
}

.form-check-input:checked {
  background-color: var(--ns-accent);
  border-color: var(--ns-accent);
}

input[type="date"],
input[type="datetime-local"] {
  color-scheme: dark;
}

.alert {
  border-radius: var(--ns-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f6f8fc;
  backdrop-filter: blur(10px);
  background: rgba(22, 27, 35, 0.88);
}

.alert .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
}

.alert-success {
  border-color: rgba(44, 173, 116, 0.54);
  background: rgba(32, 88, 63, 0.48);
}

.alert-info {
  border-color: rgba(66, 149, 255, 0.55);
  background: rgba(26, 68, 112, 0.48);
}

.alert-warning {
  border-color: rgba(255, 180, 76, 0.58);
  background: rgba(117, 79, 24, 0.5);
}

.alert-danger {
  border-color: rgba(255, 92, 92, 0.62);
  background: rgba(112, 29, 29, 0.52);
}

.alert-light {
  border-color: rgba(255, 255, 255, 0.23);
  background: rgba(25, 29, 36, 0.8);
  color: var(--ns-text-soft);
}

.nav-pills .nav-link {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ns-text-soft);
  background: rgba(255, 255, 255, 0.04);
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  border-color: rgba(255, 102, 0, 0.64);
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.27), rgba(255, 102, 0, 0.12));
}

.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--ns-radius-md);
  overflow: hidden;
}

.accordion-item + .accordion-item {
  margin-top: 0.7rem;
}

.accordion-button {
  color: #eef3f9;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #fff;
  background: linear-gradient(130deg, rgba(255, 102, 0, 0.25), rgba(255, 102, 0, 0.08));
}

.accordion-button:focus {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 0 0 0.16rem rgba(255, 102, 0, 0.22);
}

.accordion-button::after {
  filter: invert(1) brightness(1.4);
}

.accordion-body {
  background: rgba(8, 10, 14, 0.3);
}

.bg-light-subtle {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--ns-text-soft);
  --bs-table-border-color: rgba(255, 255, 255, 0.12);
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  background: transparent;
}

.table thead th {
  color: #f1f5fb;
  border-bottom-color: rgba(255, 255, 255, 0.24);
  font-weight: 600;
}

.table td,
.table th {
  color: var(--ns-text-soft);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.list-group {
  --bs-list-group-bg: transparent;
  --bs-list-group-color: var(--ns-text-soft);
  --bs-list-group-border-color: rgba(255, 255, 255, 0.13);
}

.list-group-item {
  background: transparent;
  color: var(--ns-text-soft);
}

.badge.text-bg-success {
  background-color: rgba(45, 173, 116, 0.88) !important;
}

.badge.text-bg-secondary {
  background-color: rgba(131, 145, 164, 0.88) !important;
}

.badge.text-bg-info {
  background-color: rgba(62, 152, 230, 0.86) !important;
}

audio {
  width: 100%;
  border-radius: 999px;
}

.ns-photo-card img,
img.img-fluid.rounded.shadow-sm {
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--ns-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ns-photo-card img:hover,
img.img-fluid.rounded.shadow-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.43);
}

.border {
  border-color: rgba(255, 255, 255, 0.17) !important;
}

code {
  color: #ffbf95;
}

::selection {
  background: rgba(255, 102, 0, 0.44);
  color: #fff;
}

/* Admin */
.ns-admin-body .ns-main {
  max-width: 1240px;
}

.ns-admin-nav {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 50%, rgba(255, 102, 0, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--ns-shadow-soft);
}

.ns-admin-nav-inner {
  padding: 0.8rem;
}

.ns-admin-nav-btn {
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.48rem 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ns-admin-stat .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ns-admin-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ns-admin-stat-top i {
  color: #ffab75;
}

.ns-admin-stat .h4 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 700;
}

.ns-finance-stat .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}

.ns-finance-stat-title {
  color: var(--ns-muted);
  font-size: 0.9rem;
}

.ns-finance-stat-value {
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
}

.ns-finance-list {
  max-height: 440px;
  overflow: auto;
  padding-right: 0.2rem;
}

.ns-finance-chart-wrap {
  min-height: 180px;
  position: relative;
}

.ns-wishlist-card {
  overflow: hidden;
}

.ns-wishlist-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.list-group-item-action.active {
  border-color: rgba(255, 102, 0, 0.64);
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.28), rgba(255, 102, 0, 0.12));
  color: #fff;
}

.list-group-item-action.active small,
.list-group-item-action.active strong {
  color: #fff !important;
}

.ns-admin-body .table-responsive,
.ns-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.02);
}

.ns-flats-matrix-wrap {
  padding: 0;
  overflow: auto;
}

.ns-flats-matrix {
  min-width: 920px;
}

.ns-flats-matrix th,
.ns-flats-matrix td {
  vertical-align: top;
  padding: 0.45rem 0.5rem;
  border-color: rgba(255, 255, 255, 0.1);
}

.ns-flats-date-col {
  min-width: 190px;
}

.ns-flats-sticky-col {
  min-width: 230px;
  position: sticky;
  left: 0;
  z-index: 4;
  background: rgba(16, 20, 27, 0.96) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.ns-flats-matrix thead .ns-flats-sticky-col {
  z-index: 6;
}

.ns-flats-cell {
  min-width: 190px;
}

.ns-assignee-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-height: 1.3rem;
}

.ns-assignee-chip {
  font-size: 0.68rem;
  font-weight: 500;
}

.ns-inline-editor {
  font-size: 0.74rem;
}

.ns-inline-editor > summary {
  color: var(--ns-muted);
  cursor: pointer;
  user-select: none;
}

.ns-inline-editor > summary:hover {
  color: #fff;
}

.ns-inline-editor-body {
  margin-top: 0.28rem;
}

.ns-user-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 180px;
  overflow: auto;
  padding-right: 0.2rem;
}

.ns-user-chip {
  position: relative;
  display: inline-flex;
}

.ns-user-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ns-user-chip span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ns-text-soft);
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.15;
  cursor: pointer;
}

.ns-user-chip input:checked + span {
  border-color: rgba(45, 173, 116, 0.9);
  background: rgba(45, 173, 116, 0.24);
  color: #dff8ea;
}

.ns-auth-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 102, 0, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
}

.ns-gallery-event-card {
  overflow: hidden;
}

.ns-gallery-event-card--active {
  border-color: rgba(255, 102, 0, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 102, 0, 0.4), var(--ns-shadow-soft);
}

.ns-gallery-event-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ns-gallery-event-cover--empty {
  background: rgba(255, 255, 255, 0.04);
}

.ns-gallery-photo-card {
  overflow: hidden;
  position: relative;
  min-height: 100%;
}

.ns-gallery-open {
  cursor: pointer;
}

.ns-gallery-open:focus-visible {
  outline: 2px solid rgba(255, 122, 26, 0.8);
  outline-offset: 3px;
  border-radius: 14px;
}

.ns-gallery-photo-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ns-gallery-open-icon {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 12, 16, 0.62);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ns-gallery-open:hover .ns-gallery-open-icon,
.ns-gallery-open:focus-visible .ns-gallery-open-icon {
  opacity: 1;
  transform: translateY(0);
}

.ns-gallery-album-note {
  max-width: 860px;
}

.ns-photo-modal {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 102, 0, 0.2), transparent 40%),
    linear-gradient(145deg, rgba(16, 20, 27, 0.95), rgba(10, 12, 17, 0.96));
}

.ns-photo-modal-viewer {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.28);
  min-height: min(70vh, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ns-photo-preview-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  cursor: pointer;
}

.ns-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ns-photo-nav--prev {
  left: 0.75rem;
}

.ns-photo-nav--next {
  right: 0.75rem;
}

.ns-admin-photo-cover {
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ns-admin-photo-cover--empty {
  background: rgba(255, 255, 255, 0.04);
}

.ns-admin-photo-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.ns-admin-photo-thumb {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ns-sortable-item {
  cursor: grab;
}

.ns-sortable-item--dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.pagination .page-link {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ns-text-soft);
}

.pagination .page-link:hover,
.pagination .page-link:focus {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.pagination .page-item.active .page-link {
  border-color: rgba(255, 102, 0, 0.7);
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.28), rgba(255, 102, 0, 0.1));
}

.pagination .page-item.disabled .page-link {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 991.98px) {
  .ns-sticker {
    opacity: 0.1;
    width: clamp(80px, 16vw, 118px);
  }

  .ns-navbar .navbar-collapse {
    margin-top: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 0.72rem;
    background: rgba(10, 14, 20, 0.86);
    backdrop-filter: blur(16px);
  }

  .ns-nav-links .nav-link {
    padding: 0.55rem 0.84rem;
  }

  .ns-page-head {
    padding-top: 2rem;
    padding-bottom: 2.4rem;
  }

  .ns-section {
    border-radius: 22px;
  }
}

@media (max-width: 767.98px) {
  .ns-sticker {
    width: clamp(68px, 22vw, 102px);
    opacity: 0.11;
  }

  .ns-glow {
    width: 410px;
    height: 410px;
    opacity: 0.3;
  }

  .ns-main {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .ns-page-subtitle {
    font-size: 0.97rem;
  }

  .ns-footer {
    padding-top: 1.8rem;
  }

  .ns-footer-bg {
    width: min(420px, 74vw);
  }

  .ns-photo-modal-viewer {
    min-height: 58vh;
  }

  .ns-photo-preview-image {
    max-height: 58vh;
  }

  .ns-photo-nav {
    width: 36px;
    height: 36px;
  }

  .ns-gallery-open-icon {
    opacity: 1;
    transform: translateY(0);
  }
}
