    :root {
      --rs-bg: #050607;
      --rs-bg-soft: #080a11;
      --rs-panel: rgba(14, 17, 27, 0.82);
      --rs-panel-strong: rgba(19, 23, 36, 0.94);
      --rs-card: rgba(255, 255, 255, 0.065);
      --rs-card-soft: rgba(255, 255, 255, 0.035);
      --rs-border: rgba(255, 255, 255, 0.12);
      --rs-border-strong: rgba(255, 255, 255, 0.22);
      --rs-text: #f8fff9;
      --rs-muted: #aeb7c9;
      --rs-muted-2: #758096;
      --rs-green: #91ff5f;
      --rs-green-2: #19f69b;
      --rs-purple: #c073ff;
      --rs-purple-2: #7d4dff;
      --rs-red: #ff517c;
      --rs-yellow: #ecff8f;
      --rs-radius: 28px;
      --rs-radius-sm: 18px;
      --rs-sidebar: 292px;
      --rs-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
      --rs-glow-green: 0 0 28px rgba(145, 255, 95, 0.28), 0 0 90px rgba(25, 246, 155, 0.12);
      --rs-glow-purple: 0 0 28px rgba(192, 115, 255, 0.30), 0 0 90px rgba(125, 77, 255, 0.14);
      --rs-transition: 220ms ease;
    }

    html.theme-light {
      --rs-bg: #eef3fb;
      --rs-bg-soft: #e5ebf7;
      --rs-panel: rgba(255, 255, 255, 0.86);
      --rs-panel-strong: rgba(255, 255, 255, 0.96);
      --rs-card: rgba(15, 31, 63, 0.06);
      --rs-card-soft: rgba(15, 31, 63, 0.035);
      --rs-border: rgba(24, 44, 82, 0.16);
      --rs-border-strong: rgba(24, 44, 82, 0.28);
      --rs-text: #111a2c;
      --rs-muted: #43516c;
      --rs-muted-2: #5a6781;
      --rs-shadow: 0 20px 70px rgba(24, 44, 82, 0.18);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      min-height: 100vh;
      overflow-x: hidden;
      color: var(--rs-text);
      background:
        radial-gradient(circle at 12% 16%, rgba(145, 255, 95, 0.16), transparent 28rem),
        radial-gradient(circle at 85% 6%, rgba(192, 115, 255, 0.22), transparent 34rem),
        radial-gradient(circle at 55% 90%, rgba(25, 246, 155, 0.08), transparent 32rem),
        linear-gradient(135deg, #040506 0%, #080912 46%, #050607 100%);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    html.theme-light body {
      background:
        radial-gradient(circle at 12% 16%, rgba(25, 246, 155, 0.16), transparent 28rem),
        radial-gradient(circle at 85% 6%, rgba(125, 77, 255, 0.18), transparent 34rem),
        linear-gradient(135deg, #f4f7ff 0%, #ecf2fb 46%, #e9eef9 100%);
      color-scheme: light;
    }

    body::selection {
      color: #071006;
      background: var(--rs-green);
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    .admin-bg-grid,
    .admin-scanline,
    .admin-orb {
      pointer-events: none;
      position: fixed;
    }

    .admin-bg-grid {
      inset: 0;
      z-index: -4;
      opacity: .42;
      background-image:
        linear-gradient(rgba(145, 255, 95, .075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 115, 255, .075) 1px, transparent 1px);
      background-size: 52px 52px;
      mask-image: radial-gradient(circle at center, black 0%, transparent 74%);
    }

    .admin-scanline {
      inset: 0;
      z-index: -3;
      opacity: .09;
      background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, .07) 0,
        rgba(255, 255, 255, .07) 1px,
        transparent 1px,
        transparent 8px
      );
    }

    .admin-orb {
      border-radius: 999px;
      filter: blur(90px);
      z-index: -5;
      opacity: .36;
    }

    .orb-green {
      width: 25rem;
      height: 25rem;
      left: -11rem;
      top: 8rem;
      background: var(--rs-green-2);
    }

    .orb-purple {
      width: 30rem;
      height: 30rem;
      right: -12rem;
      top: 2rem;
      background: var(--rs-purple-2);
    }

    .orb-center {
      width: 24rem;
      height: 24rem;
      left: 38%;
      bottom: -12rem;
      background: rgba(145, 255, 95, .38);
    }

    .glass-panel {
      border: 1px solid var(--rs-border);
      background:
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028)),
        var(--rs-panel);
      box-shadow: var(--rs-shadow);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
    }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  font-weight: 950;
  letter-spacing: -.045em;
}

    .brand-mark {
      display: grid;
      place-items: center;
      width: clamp(118px, 12vw, 154px);
      height: clamp(44px, 4.2vw, 56px);
      border: 0;
      border-radius: 0;
      color: inherit;
      background: transparent;
      box-shadow: none;
      font-size: 1rem;
    }

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin-inline: auto;
}

.brand-fallback {
  display: none;
  font-size: .84rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .01em;
  color: var(--rs-text);
  text-transform: uppercase;
  text-align: center;
  padding-inline: .1rem;
}

.brand-logo-wrap.logo-fallback-active .brand-logo-img {
  display: none;
}

.brand-logo-wrap.logo-fallback-active .brand-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

    .brand-text {
      display: grid;
      line-height: 1;
      font-size: 1.2rem;
    }

    .brand-text span {
      color: var(--rs-green);
      text-shadow: 0 0 20px rgba(145, 255, 95, .45);
    }

    .brand-text small {
      margin-top: .25rem;
      color: var(--rs-muted-2);
      font-size: .65rem;
      font-weight: 800;
      letter-spacing: .16em;
      text-transform: uppercase;
    }

    .admin-sidebar {
      position: fixed;
      top: 18px;
      bottom: 18px;
      left: 18px;
      z-index: 1040;
      width: var(--rs-sidebar);
      flex-direction: column;
      border-radius: 30px;
      overflow: hidden;
    }

.sidebar-inner {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.25rem;
}

.admin-sidebar .brand-lockup,
.admin-offcanvas .brand-lockup {
  width: 100%;
  justify-content: center;
}

.admin-topbar > .brand-lockup {
  justify-content: center;
}

    .sidebar-status {
      margin-top: 1.3rem;
      padding: 1rem;
      border: 1px solid rgba(145, 255, 95, .2);
      border-radius: 22px;
      background:
        radial-gradient(circle at 10% 0%, rgba(145, 255, 95, .22), transparent 14rem),
        rgba(145, 255, 95, .045);
    }

    .sidebar-status strong {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: .75rem;
      color: var(--rs-green);
      font-size: .78rem;
      letter-spacing: .13em;
      text-transform: uppercase;
    }

    .sidebar-status p {
      margin: .55rem 0 0;
      color: var(--rs-muted);
      font-size: .9rem;
    }

    .pulse-dot {
      display: inline-flex;
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: var(--rs-green);
      box-shadow: 0 0 0 0 rgba(145, 255, 95, .65);
      animation: pulseDot 1.8s infinite;
    }

    @keyframes pulseDot {
      0% { box-shadow: 0 0 0 0 rgba(145, 255, 95, .65); }
      70% { box-shadow: 0 0 0 10px rgba(145, 255, 95, 0); }
      100% { box-shadow: 0 0 0 0 rgba(145, 255, 95, 0); }
    }

    .admin-nav {
      display: grid;
      gap: .65rem;
      margin-top: calc(1.4rem + 20px);
    }

    .admin-nav a,
    .admin-nav button {
      position: relative;
      display: flex;
      align-items: center;
      gap: .8rem;
      min-height: 48px;
      padding: .75rem .9rem;
      overflow: hidden;
      border: 1px solid transparent;
      border-radius: 17px;
      color: var(--rs-muted);
      background: transparent;
      text-align: left;
      transition: transform var(--rs-transition), color var(--rs-transition), border-color var(--rs-transition), background var(--rs-transition);
    }

    .admin-nav a i,
    .admin-nav button i {
      display: grid;
      place-items: center;
      width: 30px;
      height: 30px;
      border-radius: 12px;
      color: var(--rs-green);
      background: rgba(145, 255, 95, .08);
    }

    .admin-nav a:hover,
    .admin-nav a.active,
    .admin-nav button:hover,
    .admin-nav button.active {
      transform: translateX(3px);
      border-color: rgba(145, 255, 95, .26);
      color: #fff;
      background: linear-gradient(135deg, rgba(145, 255, 95, .14), rgba(192, 115, 255, .09));
      box-shadow: 0 0 30px rgba(145, 255, 95, .10);
    }

    .admin-nav a.active::after,
    .admin-nav button.active::after {
      content: "";
      position: absolute;
      right: .85rem;
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--rs-green);
      box-shadow: 0 0 18px rgba(145, 255, 95, .82);
    }

    .sidebar-footer {
      margin-top: auto;
      padding: 1rem;
      border: 1px solid rgba(192, 115, 255, .18);
      border-radius: 22px;
      background:
        radial-gradient(circle at 100% 0%, rgba(192, 115, 255, .20), transparent 12rem),
        rgba(255, 255, 255, .035);
    }

    .sidebar-footer small {
      display: block;
      color: var(--rs-muted-2);
    }

    .sidebar-footer strong {
      display: block;
      margin-top: .2rem;
      color: var(--rs-purple);
      text-shadow: 0 0 18px rgba(192, 115, 255, .40);
    }

    .admin-main {
      min-height: 100vh;
      padding: 18px 18px 18px calc(var(--rs-sidebar) + 36px);
    }

    .admin-topbar {
      position: sticky;
      top: 18px;
      z-index: 1020;
      display: flex;
      align-items: center;
      gap: 1rem;
      min-height: 76px;
      padding: .75rem;
      border-radius: 28px;
    }

    .mobile-menu-btn,
    .icon-btn {
      display: inline-grid;
      place-items: center;
      flex: 0 0 auto;
      width: 46px;
      height: 46px;
      border: 1px solid var(--rs-border);
      border-radius: 16px;
      color: #fff;
      background: rgba(255, 255, 255, .055);
      transition: transform var(--rs-transition), border-color var(--rs-transition), background var(--rs-transition);
    }

    .mobile-menu-btn:hover,
    .icon-btn:hover {
      transform: translateY(-2px);
      border-color: rgba(145, 255, 95, .35);
      background: rgba(145, 255, 95, .09);
    }

    .notification-btn {
      position: relative;
      overflow: visible;
    }

    .notification-btn.has-notifications {
      border-color: rgba(145, 255, 95, .52);
      box-shadow: 0 0 0 1px rgba(145, 255, 95, .24), 0 0 24px rgba(145, 255, 95, .22);
    }

    .notification-badge {
      position: absolute;
      top: -7px;
      right: -7px;
      min-width: 21px;
      height: 21px;
      padding: 0 .35rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255, 255, 255, .45);
      border-radius: 999px;
      color: #041106;
      background: linear-gradient(135deg, var(--rs-green), var(--rs-green-2));
      font-size: .68rem;
      font-weight: 900;
      line-height: 1;
      box-shadow: 0 0 16px rgba(145, 255, 95, .32);
      pointer-events: none;
    }

    .top-search {
      position: relative;
      flex: 1 1 auto;
      min-width: 180px;
    }

    .top-search i {
      position: absolute;
      left: 1rem;
      top: 50%;
      color: var(--rs-green);
      transform: translateY(-50%);
    }

    .top-search input {
      width: 100%;
      min-height: 48px;
      padding: .8rem 1rem .8rem 2.7rem;
      border: 1px solid var(--rs-border);
      border-radius: 999px;
      color: #fff;
      outline: none;
      background: rgba(255, 255, 255, .05);
      transition: border-color var(--rs-transition), box-shadow var(--rs-transition), background var(--rs-transition);
    }

    .top-search input:focus {
      border-color: rgba(145, 255, 95, .55);
      background: rgba(145, 255, 95, .055);
      box-shadow: 0 0 0 .2rem rgba(145, 255, 95, .10), var(--rs-glow-green);
    }

    .top-search-results {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + .45rem);
      z-index: 1200;
      max-height: min(58vh, 420px);
      overflow: auto;
      padding: .55rem;
      border: 1px solid var(--rs-border);
      border-radius: 18px;
      background: rgba(10, 14, 22, .96);
      backdrop-filter: blur(16px);
      box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    }

    .top-search-result {
      width: 100%;
      display: block;
      margin: 0;
      padding: .62rem .68rem;
      border: 1px solid transparent;
      border-radius: 12px;
      color: var(--rs-text);
      background: transparent;
      text-align: left;
      transition: border-color var(--rs-transition), background var(--rs-transition);
    }

    .top-search-result + .top-search-result {
      margin-top: .4rem;
    }

    .top-search-result:hover,
    .top-search-result.is-active {
      border-color: rgba(145, 255, 95, .28);
      background: rgba(145, 255, 95, .10);
    }

    .top-search-result strong {
      display: block;
      font-size: .92rem;
    }

    .top-search-result small {
      display: block;
      margin-top: .15rem;
      color: var(--rs-muted-2);
      font-size: .78rem;
      line-height: 1.35;
    }

    .top-search-empty {
      padding: .65rem;
      border: 1px dashed var(--rs-border);
      border-radius: 12px;
      color: var(--rs-muted);
      font-size: .86rem;
      text-align: center;
    }

    .admin-profile {
      display: inline-flex;
      align-items: center;
      gap: .75rem;
      min-height: 50px;
      padding: .4rem .6rem .4rem .45rem;
      border: 1px solid var(--rs-border);
      border-radius: 999px;
      background: rgba(255, 255, 255, .055);
    }

    .admin-avatar {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border-radius: 999px;
      color: #13051f;
      background: linear-gradient(135deg, var(--rs-purple), var(--rs-green));
      box-shadow: 0 0 24px rgba(192, 115, 255, .28);
      font-weight: 950;
    }

    .admin-profile span {
      display: grid;
      line-height: 1.05;
      font-size: .9rem;
      font-weight: 850;
    }

    .admin-profile small {
      margin-top: .2rem;
      color: var(--rs-muted-2);
      font-size: .72rem;
      font-weight: 700;
    }

    .admin-content {
      padding: 18px 0 0;
    }

    .dashboard-hero {
      position: relative;
      overflow: hidden;
      padding: clamp(.95rem, 2vw, 1.25rem);
      border-radius: 26px;
      background:
        radial-gradient(circle at 90% 12%, rgba(192, 115, 255, .28), transparent 30rem),
        radial-gradient(circle at 5% 10%, rgba(145, 255, 95, .20), transparent 26rem),
        linear-gradient(135deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035));
    }

    .dashboard-hero::before {
      content: "";
      position: absolute;
      inset: -1px;
      border-radius: inherit;
      padding: 1px;
      background: linear-gradient(135deg, rgba(145, 255, 95, .62), rgba(192, 115, 255, .48), rgba(255, 255, 255, .08));
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask-composite: exclude;
      pointer-events: none;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: .55rem;
      padding: .5rem .85rem;
      border: 1px solid rgba(145, 255, 95, .28);
      border-radius: 999px;
      color: var(--rs-green);
      background: rgba(145, 255, 95, .07);
      font-size: .78rem;
      font-weight: 900;
      letter-spacing: .14em;
      text-transform: uppercase;
      box-shadow: 0 0 28px rgba(145, 255, 95, .10);
    }

    .hero-title {
      margin: .55rem 0 .38rem;
      font-size: clamp(1.45rem, 2.1vw, 2.35rem);
      font-weight: 950;
      letter-spacing: -.07em;
      line-height: 1.03;
    }

    .text-gradient {
      color: transparent;
      background: linear-gradient(90deg, var(--rs-green), var(--rs-purple) 62%, #fff);
      -webkit-background-clip: text;
      background-clip: text;
      filter: drop-shadow(0 0 24px rgba(145, 255, 95, .20));
    }

    .hero-copy {
      max-width: 560px;
      color: var(--rs-muted);
      font-size: clamp(.9rem, 1.05vw, .98rem);
      line-height: 1.45;
      margin-bottom: 0;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: .8rem;
      margin-top: 1.3rem;
    }

    .btn-neon,
    .btn-purple,
    .btn-ghost {
      min-height: 46px;
      border-radius: 999px;
      font-weight: 900;
      letter-spacing: -.01em;
    }

    .btn-neon {
      border: 0;
      color: #061006;
      background: linear-gradient(135deg, var(--rs-green), var(--rs-green-2));
      box-shadow: var(--rs-glow-green);
    }

    .btn-neon:hover {
      color: #061006;
      transform: translateY(-2px);
      filter: brightness(1.05);
    }

    .btn-purple {
      border: 1px solid rgba(192, 115, 255, .40);
      color: #fff;
      background: linear-gradient(135deg, rgba(192, 115, 255, .95), rgba(125, 77, 255, .78));
      box-shadow: var(--rs-glow-purple);
    }

    .btn-purple:hover {
      color: #fff;
      transform: translateY(-2px);
      filter: brightness(1.08);
    }

    .btn-ghost {
      border: 1px solid var(--rs-border);
      color: #fff;
      background: rgba(255, 255, 255, .055);
    }

    .btn-ghost:hover {
      border-color: rgba(145, 255, 95, .36);
      color: #fff;
      background: rgba(145, 255, 95, .08);
    }

    .hero-console {
      position: relative;
      min-height: 100%;
      padding: 1rem;
      border: 1px solid rgba(255, 255, 255, .12);
      border-radius: 28px;
      background: rgba(5, 6, 8, .54);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 80px rgba(0, 0, 0, .35);
    }

    .console-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: .75rem;
      margin-bottom: 1rem;
    }

    .console-live {
      display: inline-flex;
      align-items: center;
      gap: .45rem;
      padding: .35rem .7rem;
      border-radius: 999px;
      color: var(--rs-green);
      background: rgba(145, 255, 95, .08);
      font-size: .76rem;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .mini-wave {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: .22rem;
      height: 118px;
      padding: .75rem;
      overflow: hidden;
      border: 1px solid rgba(145, 255, 95, .14);
      border-radius: 24px;
      background:
        linear-gradient(90deg, rgba(145, 255, 95, .08), rgba(192, 115, 255, .08)),
        rgba(255, 255, 255, .035);
    }

    .mini-wave span {
      display: block;
      width: clamp(5px, .8vw, 10px);
      height: var(--h);
      min-height: 16px;
      border-radius: 999px;
      background: linear-gradient(180deg, var(--rs-green), var(--rs-purple));
      box-shadow: 0 0 20px rgba(145, 255, 95, .22);
      animation: wavePulse 1.6s ease-in-out infinite;
      animation-delay: calc(var(--i) * -90ms);
    }

    @keyframes wavePulse {
      0%, 100% { transform: scaleY(.72); opacity: .65; }
      50% { transform: scaleY(1.08); opacity: 1; }
    }

    .console-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: .75rem;
      margin-top: .75rem;
    }

    .console-tile {
      padding: .85rem;
      border: 1px solid var(--rs-border);
      border-radius: 20px;
      background: rgba(255, 255, 255, .046);
    }

    .console-tile small {
      display: block;
      color: var(--rs-muted-2);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .console-tile strong {
      display: block;
      margin-top: .3rem;
      font-size: 1.15rem;
    }

    .kpi-card,
    .content-card {
      position: relative;
      height: 100%;
      overflow: hidden;
      border-radius: var(--rs-radius);
    }

    .kpi-card {
      padding: 1.15rem;
      transition: transform var(--rs-transition), border-color var(--rs-transition), box-shadow var(--rs-transition);
    }

    .kpi-card:hover,
    .content-card:hover {
      transform: translateY(-3px);
      border-color: rgba(145, 255, 95, .24);
      box-shadow: 0 24px 70px rgba(0, 0, 0, .36), 0 0 42px rgba(145, 255, 95, .08);
    }

    .kpi-card::after {
      content: "";
      position: absolute;
      width: 130px;
      height: 130px;
      right: -46px;
      bottom: -56px;
      border-radius: 999px;
      background: rgba(145, 255, 95, .12);
      filter: blur(4px);
    }

    .kpi-card.purple::after {
      background: rgba(192, 115, 255, .15);
    }

    .kpi-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: .85rem;
    }

    .kpi-icon {
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      width: 48px;
      height: 48px;
      border-radius: 17px;
      color: #061006;
      background: linear-gradient(135deg, var(--rs-green), var(--rs-green-2));
      box-shadow: var(--rs-glow-green);
      font-size: 1.25rem;
    }

    .kpi-card.purple .kpi-icon {
      color: #fff;
      background: linear-gradient(135deg, var(--rs-purple), var(--rs-purple-2));
      box-shadow: var(--rs-glow-purple);
    }

    .kpi-card small {
      color: var(--rs-muted-2);
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .kpi-value {
      margin: .7rem 0 .25rem;
      font-size: clamp(1.7rem, 3vw, 2.35rem);
      font-weight: 950;
      letter-spacing: -.06em;
    }

    .kpi-meta {
      display: flex;
      align-items: center;
      gap: .45rem;
      color: var(--rs-muted);
      font-size: .9rem;
    }

    .trend-up {
      color: var(--rs-green);
    }

    .trend-purple {
      color: var(--rs-purple);
    }

    .section-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .section-title h2 {
      margin: 0;
      font-size: clamp(1.15rem, 2vw, 1.45rem);
      font-weight: 950;
      letter-spacing: -.045em;
    }

    .section-title p {
      margin: .25rem 0 0;
      color: var(--rs-muted-2);
      font-size: .93rem;
    }

    .content-card {
      padding: clamp(1rem, 2vw, 1.25rem);
    }

    .badge-soft {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      padding: .38rem .66rem;
      border: 1px solid rgba(145, 255, 95, .22);
      border-radius: 999px;
      color: var(--rs-green);
      background: rgba(145, 255, 95, .08);
      font-size: .78rem;
      font-weight: 850;
    }

    .badge-purple-soft {
      border-color: rgba(192, 115, 255, .25);
      color: var(--rs-purple);
      background: rgba(192, 115, 255, .09);
    }

    .table-wrap {
      overflow: auto;
      border: 1px solid var(--rs-border);
      border-radius: 22px;
      background: rgba(0, 0, 0, .15);
    }

    .admin-table {
      min-width: 760px;
      margin: 0;
      color: var(--rs-text);
      vertical-align: middle;
    }

    .admin-table thead th {
      padding: 1rem;
      border-bottom: 1px solid var(--rs-border);
      color: var(--rs-muted-2);
      background: rgba(255, 255, 255, .035);
      font-size: .76rem;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .admin-table tbody td {
      padding: 1rem;
      border-color: rgba(255, 255, 255, .075);
    }

    .client-mini {
      display: flex;
      align-items: center;
      gap: .75rem;
    }

    .client-mini .avatar {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border-radius: 14px;
      color: #061006;
      background: linear-gradient(135deg, var(--rs-green), var(--rs-purple));
      font-weight: 950;
    }

    .client-mini strong {
      display: block;
      font-size: .95rem;
    }

    .client-mini small {
      display: block;
      color: var(--rs-muted-2);
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: .38rem;
      padding: .38rem .65rem;
      border-radius: 999px;
      font-size: .78rem;
      font-weight: 850;
      white-space: nowrap;
    }

    .status-pill.green {
      color: var(--rs-green);
      background: rgba(145, 255, 95, .10);
    }

    .status-pill.purple {
      color: var(--rs-purple);
      background: rgba(192, 115, 255, .11);
    }

    .status-pill.yellow {
      color: var(--rs-yellow);
      background: rgba(236, 255, 143, .09);
    }

    .status-pill.red {
      color: var(--rs-red);
      background: rgba(255, 81, 124, .10);
    }

    .status-pill i {
      font-size: .65rem;
    }

    .queue-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: .85rem;
      padding: 1rem;
      border: 1px solid var(--rs-border);
      border-radius: 22px;
      background: rgba(255, 255, 255, .045);
    }

    .queue-card + .queue-card {
      margin-top: .75rem;
    }

    .queue-card strong {
      display: block;
      margin-bottom: .2rem;
      font-weight: 900;
    }

    .queue-card small {
      color: var(--rs-muted-2);
    }

    .meter-stack {
      display: grid;
      gap: .75rem;
    }

    .meter-row {
      padding: .9rem;
      border: 1px solid var(--rs-border);
      border-radius: 20px;
      background: rgba(255, 255, 255, .045);
    }

    .meter-label {
      display: flex;
      justify-content: space-between;
      gap: .75rem;
      margin-bottom: .55rem;
      color: var(--rs-muted);
      font-size: .9rem;
      font-weight: 800;
    }

    .meter-track {
      height: 9px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(255, 255, 255, .08);
    }

    .meter-track span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--rs-green), var(--rs-purple));
      box-shadow: 0 0 24px rgba(145, 255, 95, .24);
    }

    .project-board {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: .85rem;
    }

    .project-column {
      min-height: 280px;
      padding: .85rem;
      border: 1px solid var(--rs-border);
      border-radius: 24px;
      background: rgba(255, 255, 255, .035);
    }

    .project-column h3 {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 0 0 .75rem;
      color: var(--rs-muted);
      font-size: .78rem;
      font-weight: 950;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .mini-project {
      padding: .85rem;
      border: 1px solid rgba(255, 255, 255, .10);
      border-radius: 18px;
      background: rgba(0, 0, 0, .20);
    }

    .mini-project + .mini-project {
      margin-top: .7rem;
    }

    .mini-project strong {
      display: block;
      margin-bottom: .35rem;
      font-weight: 900;
    }

    .mini-project small {
      display: block;
      color: var(--rs-muted-2);
      line-height: 1.45;
    }

    .mini-project .progress {
      height: 7px;
      margin-top: .75rem;
      background: rgba(255, 255, 255, .08);
    }

    .mini-project .progress-bar {
      background: linear-gradient(90deg, var(--rs-green), var(--rs-purple));
    }

    .activity-list {
      display: grid;
      gap: .75rem;
    }

    .activity-item {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: .75rem;
      padding: .85rem;
      border: 1px solid var(--rs-border);
      border-radius: 20px;
      background: rgba(255, 255, 255, .045);
    }

    .activity-icon {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border-radius: 14px;
      color: #061006;
      background: linear-gradient(135deg, var(--rs-green), var(--rs-green-2));
    }

    .activity-icon.purple {
      color: #fff;
      background: linear-gradient(135deg, var(--rs-purple), var(--rs-purple-2));
    }

    .activity-item strong {
      display: block;
      margin-bottom: .15rem;
      font-size: .95rem;
    }

    .activity-item span {
      display: block;
      color: var(--rs-muted-2);
      font-size: .86rem;
      line-height: 1.45;
    }

    .future-box {
      position: relative;
      overflow: hidden;
      padding: clamp(1.2rem, 3vw, 1.6rem);
      border: 1px dashed rgba(145, 255, 95, .28);
      border-radius: 28px;
      background:
        radial-gradient(circle at 95% 0%, rgba(192, 115, 255, .16), transparent 22rem),
        rgba(145, 255, 95, .035);
    }

    .future-box h2 {
      margin: 0 0 .45rem;
      font-size: clamp(1.25rem, 2.3vw, 1.75rem);
      font-weight: 950;
      letter-spacing: -.05em;
    }

    .future-box p {
      max-width: 760px;
      margin: 0;
      color: var(--rs-muted);
      line-height: 1.7;
    }

    .admin-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1rem .2rem 0;
      color: var(--rs-muted-2);
      font-size: .9rem;
    }

    .offcanvas.admin-offcanvas {
      width: min(88vw, 340px);
      border-right: 1px solid var(--rs-border);
      background:
        radial-gradient(circle at 0% 0%, rgba(145, 255, 95, .16), transparent 22rem),
        radial-gradient(circle at 100% 15%, rgba(192, 115, 255, .16), transparent 22rem),
        #070911;
      color: var(--rs-text);
    }

    .offcanvas.settings-offcanvas {
      width: min(92vw, 380px);
      border-left: 1px solid var(--rs-border);
      background:
        radial-gradient(circle at 100% 0%, rgba(192, 115, 255, .18), transparent 22rem),
        radial-gradient(circle at 0% 30%, rgba(145, 255, 95, .14), transparent 22rem),
        #090d17;
      color: var(--rs-text);
    }

    .offcanvas.account-offcanvas {
      width: min(92vw, 430px);
      border-left: 1px solid var(--rs-border);
      background:
        radial-gradient(circle at 100% 0%, rgba(145, 255, 95, .16), transparent 22rem),
        radial-gradient(circle at 0% 20%, rgba(192, 115, 255, .16), transparent 22rem),
        #0a101a;
      color: var(--rs-text);
    }

    .offcanvas.manage-offcanvas {
      width: min(95vw, 680px);
      border-left: 1px solid var(--rs-border);
      background:
        radial-gradient(circle at 100% 0%, rgba(145, 255, 95, .10), transparent 30rem),
        radial-gradient(circle at 0% 15%, rgba(192, 115, 255, .14), transparent 28rem),
        #08101a;
      color: var(--rs-text);
    }

    .offcanvas.project-chat-offcanvas {
      width: min(96vw, 560px);
      border-left: 1px solid var(--rs-border);
      background:
        radial-gradient(circle at 100% 0%, rgba(145, 255, 95, .14), transparent 24rem),
        radial-gradient(circle at 0% 20%, rgba(192, 115, 255, .16), transparent 24rem),
        #09111c;
      color: var(--rs-text);
    }

    .offcanvas.workflow-offcanvas {
      width: min(96vw, 560px);
      border-left: 1px solid var(--rs-border);
      background:
        radial-gradient(circle at 100% 0%, rgba(52, 197, 255, .16), transparent 24rem),
        radial-gradient(circle at 0% 20%, rgba(145, 255, 95, .14), transparent 24rem),
        #09131f;
      color: var(--rs-text);
    }

    .settings-stack {
      display: grid;
      gap: .75rem;
    }

    .settings-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: .9rem;
      padding: .9rem;
      border: 1px solid var(--rs-border);
      border-radius: 16px;
      background: rgba(255, 255, 255, .04);
    }

    .settings-item strong {
      display: block;
      margin-bottom: .2rem;
      font-size: .95rem;
    }

    .settings-item small {
      color: var(--rs-muted-2);
      line-height: 1.35;
    }

    .settings-nav-list {
      display: grid;
      gap: .5rem;
    }

    .settings-nav-item {
      border: 1px solid rgba(255, 255, 255, .14);
      border-radius: 12px;
      background: rgba(255, 255, 255, .03);
      color: var(--rs-text);
      text-align: left;
      padding: .62rem .7rem;
      font-weight: 650;
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      transition: border-color var(--rs-transition), background var(--rs-transition), transform var(--rs-transition);
    }

    .settings-nav-item:hover,
    .settings-nav-item:focus-visible {
      border-color: rgba(145, 255, 95, .44);
      background: rgba(145, 255, 95, .1);
      transform: translateY(-1px);
    }

    .settings-nav-item.is-active {
      border-color: rgba(52, 197, 255, .52);
      background: rgba(52, 197, 255, .16);
    }

    .admin-settings-pane {
      min-height: 220px;
    }

    .settings-item .form-check-input {
      border-color: rgba(255, 255, 255, .25);
      background-color: rgba(255, 255, 255, .12);
    }

    .settings-item .form-check-input:checked {
      background-color: var(--rs-green);
      border-color: var(--rs-green);
    }

    .btn-close-white {
      filter: invert(1) grayscale(100%) brightness(200%);
    }

    .toast {
      border: 1px solid rgba(145, 255, 95, .25);
      border-radius: 18px;
      color: #fff;
      background: rgba(10, 13, 19, .92);
      box-shadow: var(--rs-glow-green);
      backdrop-filter: blur(18px);
    }

    .dropdown-menu {
      border: 1px solid var(--rs-border);
      border-radius: 18px;
      background: rgba(12, 15, 24, .96);
      backdrop-filter: blur(18px);
    }

    .quick-user-menu {
      min-width: 230px;
    }

    .dropdown-item {
      color: var(--rs-muted);
      border-radius: 12px;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
      color: #fff;
      background: rgba(145, 255, 95, .10);
    }

    @media (max-width: 1399.98px) {
      :root {
        --rs-sidebar: 268px;
      }

      .admin-main {
        padding-left: calc(var(--rs-sidebar) + 30px);
      }

      .project-board {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 1199.98px) {
      .admin-main {
        padding-left: 18px;
      }

      .admin-topbar {
        top: 12px;
      }
    }

    @media (max-width: 991.98px) {
      .admin-main {
        padding: 12px;
      }

      .admin-topbar {
        align-items: stretch;
        flex-wrap: wrap;
        min-height: auto;
        border-radius: 24px;
      }

      .top-search {
        flex-basis: 100%;
        order: 10;
      }

      .dashboard-hero {
        border-radius: 28px;
      }

      .hero-console {
        margin-top: .25rem;
      }

      .admin-profile span {
        display: none;
      }
    }

    @media (max-width: 767.98px) {
      .admin-main {
        padding: 10px;
      }

      .dashboard-hero,
      .content-card,
      .kpi-card {
        border-radius: 24px;
      }

      .hero-actions .btn {
        width: 100%;
      }

      .console-grid {
        grid-template-columns: 1fr;
      }

      .section-title {
        align-items: flex-start;
        flex-direction: column;
      }

      .queue-card {
        align-items: flex-start;
        flex-direction: column;
      }

      .admin-footer {
        align-items: flex-start;
        flex-direction: column;
      }
    }

    @media (max-width: 575.98px) {
      .admin-topbar {
        gap: .65rem;
        padding: .65rem;
      }

      .mobile-menu-btn,
      .icon-btn {
        width: 43px;
        height: 43px;
        border-radius: 15px;
      }

      .brand-mark {
        width: 108px;
        height: 38px;
      }

      .hero-title {
        font-size: clamp(2rem, 14vw, 3rem);
      }

      .mini-wave {
        height: 96px;
      }

      .kpi-card {
        padding: 1rem;
      }
    }

/* Integrated functional admin forms */
.admin-form-card .form-label,
.admin-form-card legend {
  color: var(--rs-muted);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-form-card .form-control,
.admin-form-card .form-select,
.admin-form-card textarea {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #f4fffa;
}

.admin-form-card .form-control::placeholder,
.admin-form-card textarea::placeholder {
  color: var(--rs-muted-2);
}

.admin-form-card .form-control:focus,
.admin-form-card .form-select:focus,
.admin-form-card textarea:focus {
  border-color: rgba(145, 255, 95, 0.48);
  box-shadow: 0 0 0 0.2rem rgba(145, 255, 95, 0.12), var(--rs-glow-green);
  background: rgba(145, 255, 95, 0.05);
  color: #fff;
}

.admin-form-card .mail-field-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-form-card .auto-help-head {
  margin-bottom: 0.35rem;
}

.admin-form-card .auto-help-head .form-label {
  margin-bottom: 0;
}

.admin-form-card .mail-help-icon {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(157, 255, 173, 0.45);
  background: rgba(157, 255, 173, 0.1);
  color: #ccffd7;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.admin-form-card .mail-help-icon:hover,
.admin-form-card .mail-help-icon:focus {
  background: rgba(157, 255, 173, 0.24);
  color: #ffffff;
  box-shadow: 0 0 0 0.15rem rgba(145, 255, 95, 0.18);
}

.admin-form-card .auto-help-icon {
  flex: 0 0 auto;
}

.admin-form-card .form-text {
  color: var(--rs-muted-2);
  font-size: 0.78rem;
}

.offcanvas .offcanvas-body .btn {
  min-height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.56rem 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform var(--rs-transition), box-shadow var(--rs-transition), border-color var(--rs-transition), background var(--rs-transition);
}

.offcanvas .offcanvas-body .btn:hover,
.offcanvas .offcanvas-body .btn:focus-visible {
  transform: translateY(-1px);
}

.offcanvas .offcanvas-body .btn-sm {
  min-height: 36px;
  padding: 0.38rem 0.82rem;
  font-size: 0.82rem;
}

.offcanvas .offcanvas-body .btn-outline-light,
.offcanvas .offcanvas-body .btn-outline-success,
.offcanvas .offcanvas-body .btn-outline-warning,
.offcanvas .offcanvas-body .btn-outline-danger,
.offcanvas .offcanvas-body .btn-outline-primary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.offcanvas .offcanvas-body .btn-outline-light:hover,
.offcanvas .offcanvas-body .btn-outline-success:hover,
.offcanvas .offcanvas-body .btn-outline-warning:hover,
.offcanvas .offcanvas-body .btn-outline-danger:hover,
.offcanvas .offcanvas-body .btn-outline-primary:hover {
  border-color: rgba(145, 255, 95, 0.46);
  background: rgba(145, 255, 95, 0.14);
  color: #f8fff9;
}

.offcanvas .offcanvas-body .admin-editor-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.62rem;
}

.offcanvas .offcanvas-body .admin-editor-actions .btn {
  width: 100%;
}

.offcanvas .offcanvas-body .d-flex.gap-2,
.offcanvas .offcanvas-body .d-flex.flex-wrap.gap-2,
.offcanvas .offcanvas-body .d-flex.flex-wrap.gap-3 {
  align-items: center;
}

.offcanvas .offcanvas-body .d-flex.gap-2 {
  flex-wrap: wrap;
}

.feature-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.feature-grid .form-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.58rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.feature-grid .form-check-input {
  margin: 0;
  border-color: rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.1);
}

.feature-grid .form-check-input:checked {
  background-color: var(--rs-green);
  border-color: var(--rs-green);
}

.feature-grid .form-check-label {
  color: #e6edf9;
  font-size: 0.9rem;
}

.admin-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-editor-header strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.2;
}

.admin-request-editor-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.admin-request-editor-section {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-request-editor-section-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.admin-request-editor-section-head i {
  color: var(--rs-green);
}

.admin-request-editor-section-head h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.mailbox-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(280px, 0.9fr) minmax(360px, 1.25fr);
  gap: 1rem;
  align-items: start;
}

.mailbox-sidebar,
.mailbox-list-panel,
.mailbox-detail-panel {
  min-width: 0;
}

.mailbox-folder-list {
  display: grid;
  gap: 0.5rem;
}

.mailbox-folder {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  padding: 0.65rem 0.8rem;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.mailbox-folder:hover,
.mailbox-folder.is-active {
  border-color: rgba(83, 236, 167, 0.42);
  background: rgba(83, 236, 167, 0.1);
  color: #fff;
}

.mailbox-list {
  display: grid;
  gap: 0.65rem;
  max-height: min(720px, 68vh);
  overflow: auto;
}

.mailbox-message-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.62);
  color: inherit;
  padding: 0.8rem;
  text-align: left;
}

.mailbox-message-card:hover,
.mailbox-message-card.is-active {
  border-color: rgba(173, 128, 255, 0.48);
  background: rgba(38, 30, 60, 0.72);
}

.mailbox-message-card.is-unread strong {
  color: #ffffff;
}

.mailbox-message-card .mailbox-message-head,
.mailbox-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.mailbox-message-card strong,
.mailbox-detail-subject {
  overflow-wrap: anywhere;
}

.mailbox-message-card small,
.mailbox-detail-meta {
  color: rgba(255, 255, 255, 0.62);
}

.mailbox-detail {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  min-height: 120px;
  padding: 1rem;
}

.mailbox-detail-body {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.mailbox-attachment-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mailbox-attachment-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.mailbox-compose,
.mailbox-account-form {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

@media (max-width: 1399px) {
  .mailbox-shell {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }

  .mailbox-detail-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .mailbox-shell {
    grid-template-columns: 1fr;
  }

  .mailbox-list {
    max-height: none;
  }
}

.admin-request-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.admin-request-field {
  min-width: 0;
}

.admin-request-field span,
.admin-request-meta-line {
  display: block;
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.78rem;
}

.admin-request-field strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.35;
}

.admin-request-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.admin-editor-form {
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-danger-zone {
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255, 117, 117, 0.35);
  border-radius: 14px;
  background: rgba(255, 65, 65, 0.06);
}

.admin-danger-zone summary {
  cursor: pointer;
  list-style: none;
  color: #ffb6b6;
  font-weight: 800;
}

.admin-danger-zone summary::-webkit-details-marker {
  display: none;
}

.admin-editor-footnote {
  line-height: 1.5;
}

.admin-list-zone {
  min-height: 160px;
  max-height: 360px;
  overflow: auto;
  padding: 0.8rem;
  border: 1px solid var(--rs-border);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--rs-muted);
}

.admin-list-zone .btn {
  border-radius: 999px;
}

.admin-editor-zone {
  max-height: none;
}

.admin-manager-toolbar {
  padding: 0.75rem;
  border: 1px solid var(--rs-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-search-compact .input-group-text {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--rs-muted-2);
}

.admin-search-compact .form-control {
  border-left: 0;
}

.admin-search-compact .form-control:focus {
  border-left: 0;
}

.admin-search-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--rs-muted-2);
}

.admin-filemanager-workspace {
  padding: 1.05rem;
  gap: 0.85rem;
}

.admin-filemanager-workspace:hover {
  transform: none;
  border-color: var(--rs-border);
  box-shadow: none;
}

.admin-filemanager-toolbar {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--rs-border);
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(145, 255, 95, 0.06), rgba(130, 108, 255, 0.06));
}

.admin-filemanager-toolbar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 0.55rem;
}

.admin-filemanager-search {
  grid-column: span 1;
}

.admin-filemanager-project-info {
  display: grid;
  gap: 0.35rem;
  min-height: 0;
  max-height: none;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--rs-muted);
}

.admin-filemanager-screen {
  min-height: 620px;
  padding: 0.8rem;
}

.coupon-create-cta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--rs-border);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(145, 255, 95, 0.06), rgba(196, 131, 255, 0.06));
}

.coupon-create-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(145, 255, 95, 0.55);
  color: #ecffe2;
  background: radial-gradient(circle at 30% 30%, rgba(145, 255, 95, 0.3), rgba(97, 194, 52, 0.18));
  box-shadow: 0 10px 28px rgba(145, 255, 95, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: inline-grid;
  place-items: center;
  transition: transform var(--rs-transition), box-shadow var(--rs-transition), border-color var(--rs-transition);
}

.coupon-create-fab i {
  font-size: 1.2rem;
}

.coupon-create-fab:hover,
.coupon-create-fab:focus-visible {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(145, 255, 95, 0.85);
  box-shadow: 0 14px 32px rgba(145, 255, 95, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.coupon-zone {
  position: relative;
  overflow: hidden;
}

.coupon-manager-note {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(145, 255, 95, 0.08), rgba(52, 197, 255, 0.08));
}

.coupon-list-wrap {
  position: relative;
}

.coupon-codes-column {
  position: relative;
}

.coupon-create-outer-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.75rem;
}

.coupon-codes-full .coupon-create-outer-row {
  margin: 0.35rem 0 1rem;
}

@media (min-width: 1400px) {
  .coupon-codes-column .coupon-create-outer-row {
    position: absolute;
    top: -28px;
    right: 0.35rem;
    margin: 0;
    z-index: 4;
  }

  .coupon-codes-full .coupon-create-outer-row {
    position: static;
    top: auto;
    right: auto;
    margin: 0.35rem 0 1rem;
    z-index: auto;
  }
}

.coupon-create-expand-btn {
  min-height: 50px;
  width: 50px;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(145, 255, 95, 0.6);
  color: #ecffe2;
  background: radial-gradient(circle at 30% 30%, rgba(145, 255, 95, 0.34), rgba(97, 194, 52, 0.22));
  box-shadow: 0 12px 28px rgba(145, 255, 95, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 0.95rem;
  overflow: hidden;
  white-space: nowrap;
  transition: width var(--rs-transition), transform var(--rs-transition), box-shadow var(--rs-transition), border-color var(--rs-transition);
}

.coupon-create-expand-btn i {
  font-size: 1.16rem;
  flex: 0 0 auto;
}

.coupon-create-expand-btn span {
  max-width: 0;
  opacity: 0;
  transform: translateX(6px);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: max-width var(--rs-transition), opacity var(--rs-transition), transform var(--rs-transition);
}

.coupon-create-expand-btn:hover,
.coupon-create-expand-btn:focus-visible {
  width: 232px;
  transform: translateY(-2px);
  border-color: rgba(145, 255, 95, 0.9);
  box-shadow: 0 18px 38px rgba(145, 255, 95, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.coupon-create-expand-btn:hover span,
.coupon-create-expand-btn:focus-visible span {
  max-width: 168px;
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 760px) {
  .coupon-create-outer-row {
    justify-content: stretch;
  }

  .coupon-create-expand-btn {
    width: 100%;
    justify-content: center;
  }

  .coupon-create-expand-btn span {
    max-width: 180px;
    opacity: 1;
    transform: translateX(0);
  }

  .coupon-create-expand-btn:hover,
  .coupon-create-expand-btn:focus-visible {
    width: 100%;
  }
}

.admin-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-mini-stats span {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(145, 255, 95, 0.2);
  border-radius: 999px;
  background: rgba(145, 255, 95, 0.08);
  color: #dfffe8;
  font-size: 0.82rem;
}

.admin-mini-stats strong {
  color: var(--rs-green);
}

.admin-client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-client-card {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(8, 13, 22, 0.72);
  cursor: pointer;
  transition: border-color var(--rs-transition), box-shadow var(--rs-transition), transform var(--rs-transition);
}

.admin-client-card:hover {
  transform: translateY(-1px);
  border-color: rgba(145, 255, 95, 0.32);
}

.admin-client-card.is-active {
  border-color: rgba(145, 255, 95, 0.55);
  box-shadow: 0 0 0 1px rgba(145, 255, 95, 0.24), 0 0 24px rgba(145, 255, 95, 0.15);
}

.admin-client-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-client-ident {
  display: grid;
  line-height: 1.15;
}

.admin-client-ident strong {
  font-size: 0.95rem;
}

.admin-client-ident small {
  color: var(--rs-muted-2);
}

.admin-client-main {
  margin-top: 0.6rem;
  font-size: 1.02rem;
  font-weight: 850;
}

.admin-client-meta {
  margin-top: 0.35rem;
  color: var(--rs-muted);
  font-size: 0.88rem;
}

.admin-coupon-list {
  display: grid;
  gap: 1rem;
  padding-bottom: 86px;
}

.admin-coupon-card {
  padding: 1.08rem;
  border-radius: 18px;
}

.admin-coupon-card .admin-client-head {
  align-items: flex-start;
}

.admin-coupon-card .admin-client-main {
  margin-top: 0.75rem;
}

.admin-coupon-card .admin-client-meta {
  margin-top: 0.45rem;
}

.admin-client-features {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-project-list {
  display: grid;
  gap: 0.65rem;
  max-height: clamp(360px, 56vh, 720px);
  padding-right: 0.2rem;
}

.admin-project-search-result .admin-client-meta {
  margin-top: 0.28rem;
}

.admin-project-editor-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-project-workspace {
  align-items: stretch;
}

.admin-project-manager-column,
.admin-project-editor-column {
  display: flex;
}

.admin-project-manager-card,
.admin-project-editor-card {
  width: 100%;
}

.admin-project-manager-card {
  min-height: 100%;
}

.admin-project-editor-card {
  min-height: 0;
}

#admin-project-editor {
  min-height: 420px;
}

.admin-project-primary-form {
  position: static;
}

.admin-project-side-grid {
  align-content: start;
}

.admin-project-manager-card #admin-project-list {
  max-height: clamp(320px, 44vh, 620px);
}

.admin-collapsible-header {
  align-items: center;
}

.admin-section-toggle {
  border-radius: 999px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-section-toggle-icon {
  transition: transform 180ms ease;
}

.admin-section-toggle[aria-expanded="false"] .admin-section-toggle-icon {
  transform: rotate(-90deg);
}

.admin-collapsible-body {
  overflow: hidden;
}

.project-priority-board {
  border-radius: calc(var(--rs-radius) + 8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle at 90% 8%, rgba(88, 204, 122, 0.24), transparent 26rem),
    radial-gradient(circle at 8% 95%, rgba(133, 92, 240, 0.22), transparent 20rem),
    linear-gradient(140deg, rgba(23, 58, 48, 0.74), rgba(28, 27, 56, 0.9));
}

.project-priority-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(56, 132, 106, 0.52), rgba(83, 66, 136, 0.48));
}

.project-priority-hero h2 {
  margin: 0.3rem 0 0.45rem;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.project-priority-hero p {
  margin: 0;
  max-width: 620px;
  color: var(--rs-muted);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.project-priority-create-btn {
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  white-space: nowrap;
  background: linear-gradient(140deg, #4ccf8d, #6a7cff);
  box-shadow: 0 10px 30px rgba(71, 198, 148, 0.34);
}

.project-priority-stats {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.project-priority-stat {
  padding: 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.045);
}

.project-priority-stat small {
  display: block;
  color: var(--rs-muted-2);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-priority-stat strong {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  line-height: 1;
}

.project-priority-stat span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  color: var(--rs-muted);
}

.project-priority-tasks {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.project-priority-tasks-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.project-priority-tasks-head h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
}

.project-priority-tasks-head p {
  margin: 0.2rem 0 0;
  color: var(--rs-muted);
}

.project-priority-list {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.65rem;
}

.project-priority-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.project-priority-item.is-critical {
  border-color: rgba(125, 104, 255, 0.52);
  background: linear-gradient(145deg, rgba(125, 104, 255, 0.2), rgba(90, 176, 255, 0.16));
  box-shadow: 0 12px 26px rgba(125, 104, 255, 0.24);
}

.project-priority-item.is-urgent {
  border-color: rgba(87, 184, 255, 0.42);
  background: linear-gradient(145deg, rgba(87, 184, 255, 0.14), rgba(122, 236, 188, 0.12));
}

.project-priority-item-rank {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-weight: 900;
  font-size: 1.55rem;
  color: #fff;
  background: linear-gradient(150deg, #50cc8e, #7d68ff);
}

.priority-dot-urgent {
  color: #7f6cff;
}

.priority-dot-active {
  color: #5fbeff;
}

.priority-dot-done {
  color: #60d8a6;
}

.project-priority-item-info strong {
  display: block;
  font-size: 1.03rem;
}

.project-priority-item-info small {
  display: block;
  margin-top: 0.2rem;
  color: var(--rs-muted);
}

.project-priority-item-action {
  border-radius: 999px;
  min-width: 118px;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.priority-badge-critical {
  color: #f3edff;
  border: 1px solid rgba(158, 123, 255, 0.8);
  background: linear-gradient(140deg, rgba(118, 89, 255, 0.35), rgba(155, 99, 255, 0.34));
}

.priority-badge-urgent {
  color: #e5f7ff;
  border: 1px solid rgba(93, 196, 255, 0.72);
  background: linear-gradient(140deg, rgba(66, 171, 255, 0.32), rgba(106, 221, 255, 0.28));
}

.priority-badge-active {
  color: #e7ffef;
  border: 1px solid rgba(111, 226, 176, 0.72);
  background: linear-gradient(140deg, rgba(97, 199, 146, 0.24), rgba(109, 235, 171, 0.2));
}

.admin-project-form {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-project-process {
  padding: 0.75rem;
  border: 1px solid rgba(145, 255, 95, 0.28);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(145, 255, 95, 0.08), rgba(52, 197, 255, 0.08));
}

.admin-project-process-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-project-process-head small {
  color: var(--rs-muted-2);
}

.admin-workflow-open-btn {
  border-color: rgba(52, 197, 255, 0.4);
  background: rgba(52, 197, 255, 0.08);
}

.admin-workflow-open-btn:hover,
.admin-workflow-open-btn:focus-visible {
  border-color: rgba(52, 197, 255, 0.7);
  background: rgba(52, 197, 255, 0.22);
}

.project-stage-rail {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-stage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--rs-muted-2);
  background: rgba(255, 255, 255, 0.04);
}

.project-stage-pill.is-done {
  border-color: rgba(145, 255, 95, 0.36);
  color: #eaffd8;
  background: rgba(145, 255, 95, 0.12);
}

.project-stage-pill.is-active {
  border-color: rgba(52, 197, 255, 0.52);
  color: #e6f8ff;
  background: rgba(52, 197, 255, 0.18);
}

.admin-project-block {
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.admin-chat-cta-block {
  position: relative;
  overflow: hidden;
  min-height: 128px;
}

.admin-chatbot-fab {
  position: absolute;
  right: 14px;
  bottom: 14px;
  height: 48px;
  border: 1px solid rgba(145, 255, 95, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(145, 255, 95, 0.26), rgba(52, 197, 255, 0.22));
  color: #f4fff7;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 48px;
  padding: 0 12px 0 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), 0 0 24px rgba(145, 255, 95, 0.2);
  transition: width 0.26s ease, border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
  z-index: 3;
}

.admin-chatbot-fab:hover,
.admin-chatbot-fab:focus-visible {
  width: 286px;
  transform: translateY(-1px);
  border-color: rgba(145, 255, 95, 0.7);
  background: linear-gradient(135deg, rgba(145, 255, 95, 0.34), rgba(52, 197, 255, 0.3));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.48), 0 0 26px rgba(145, 255, 95, 0.26);
}

.admin-chatbot-fab-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 25%, rgba(190, 255, 153, 0.28), rgba(0, 0, 0, 0.22));
  color: #ffffff;
  font-size: 1.1rem;
}

.admin-chatbot-fab-text {
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.admin-chatbot-fab:hover .admin-chatbot-fab-text,
.admin-chatbot-fab:focus-visible .admin-chatbot-fab-text {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 760px) {
  .admin-chatbot-fab {
    width: 48px;
    right: 10px;
    bottom: 10px;
  }

  .admin-chatbot-fab:hover,
  .admin-chatbot-fab:focus-visible {
    width: 48px;
  }

  .admin-chatbot-fab-text {
    display: none;
  }
}

.admin-project-block h3 {
  margin: 0 0 0.65rem;
  font-size: 0.96rem;
  font-weight: 850;
}

.workflow-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ftm-shell {
  display: grid;
  gap: 0.85rem;
}

.ftm-topbar {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(145, 255, 95, 0.14), rgba(130, 108, 255, 0.14));
}

.ftm-eyebrow {
  margin: 0 0 0.3rem;
  color: var(--rs-muted-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ftm-topbar h3 {
  margin: 0;
  font-size: 1.1rem;
}

.ftm-lead {
  margin: 0.4rem 0 0;
  color: var(--rs-muted);
  font-size: 0.86rem;
}

.ftm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ftm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.ftm-stat {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
}

.ftm-stat span {
  display: block;
  color: var(--rs-muted-2);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ftm-stat strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.6rem;
  line-height: 1;
}

.ftm-stat small {
  color: var(--rs-muted);
  font-size: 0.8rem;
}

.ftm-stat.pending {
  border-left: 3px solid #7ea3ff;
}

.ftm-stat.missing {
  border-left: 3px solid #9f86ff;
}

.ftm-stat.ready {
  border-left: 3px solid #76e8be;
}

.ftm-main-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(380px, 1.2fr);
  gap: 0.75rem;
}

.ftm-lower-grid {
  display: grid;
  grid-template-columns: minmax(380px, 1.2fr) minmax(340px, 1fr);
  gap: 0.75rem;
}

.ftm-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.ftm-card-head-line {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ftm-card-head h4 {
  margin: 0;
  font-size: 1rem;
}

.ftm-card-head p {
  margin: 0.25rem 0 0;
  color: var(--rs-muted);
  font-size: 0.83rem;
}

.ftm-task-list {
  display: grid;
  gap: 0.5rem;
}

.ftm-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.62rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.03);
}

.ftm-task-main,
.ftm-file-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ftm-task-main h4 {
  margin: 0;
  font-size: 0.92rem;
}

.ftm-task-main p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--rs-muted);
}

.ftm-task-side,
.ftm-file-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ftm-file-type,
.ftm-file-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.ftm-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--rs-muted);
  background: rgba(255, 255, 255, 0.08);
}

.ftm-badge.danger {
  color: #e6e3ff;
  border-color: rgba(159, 134, 255, 0.48);
  background: rgba(159, 134, 255, 0.2);
}

.ftm-badge.warn {
  color: #ddf0ff;
  border-color: rgba(126, 163, 255, 0.5);
  background: rgba(126, 163, 255, 0.2);
}

.ftm-badge.ok {
  color: #dfffee;
  border-color: rgba(118, 232, 190, 0.52);
  background: rgba(118, 232, 190, 0.2);
}

.ftm-badge.live {
  color: #e9ffef;
  border-color: rgba(145, 255, 95, 0.5);
  background: rgba(145, 255, 95, 0.2);
}

.ftm-badge.muted {
  color: var(--rs-muted);
}

.ftm-file-card strong {
  display: block;
  font-size: 0.92rem;
}

.ftm-task.urgent {
  border-left: 3px solid #9f86ff;
}

.ftm-task.warning {
  border-left: 3px solid #7ea3ff;
}

.ftm-task.success {
  border-left: 3px solid #76e8be;
}

@media (max-width: 980px) {
  .admin-filemanager-toolbar-grid,
  .ftm-topbar,
  .ftm-main-grid,
  .ftm-lower-grid,
  .ftm-stats {
    grid-template-columns: 1fr;
  }

  .ftm-topbar {
    flex-direction: column;
  }
}

.admin-project-file-list,
.admin-project-chat-thread {
  max-height: 270px;
  overflow: auto;
  display: grid;
  gap: 0.5rem;
}

.admin-project-log-list {
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 0.55rem;
}

.admin-project-log-item {
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.admin-project-file-list.is-timeline {
  gap: 0.4rem;
}

.admin-file-menu {
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-upload-drop {
  display: grid;
  gap: 0.2rem;
  place-items: center;
  text-align: center;
  padding: 0.82rem 0.8rem;
  border: 1px dashed rgba(145, 255, 95, 0.42);
  border-radius: 12px;
  background: rgba(145, 255, 95, 0.08);
  cursor: pointer;
  transition: border-color var(--rs-transition), background var(--rs-transition), transform var(--rs-transition), box-shadow var(--rs-transition);
}

.admin-upload-drop i {
  font-size: 1.06rem;
  color: var(--rs-green);
}

.admin-upload-drop strong {
  font-size: 0.89rem;
}

.admin-upload-drop small {
  color: var(--rs-muted-2);
  font-size: 0.78rem;
}

.admin-upload-drop:hover,
.admin-upload-drop:focus-visible,
.admin-upload-drop.is-dragover {
  transform: translateY(-1px);
  border-color: rgba(145, 255, 95, 0.78);
  background: rgba(145, 255, 95, 0.14);
  box-shadow: 0 0 0 1px rgba(145, 255, 95, 0.24), 0 0 20px rgba(145, 255, 95, 0.15);
}

.admin-upload-drop.has-file {
  border-style: solid;
  border-color: rgba(192, 115, 255, 0.56);
  background: rgba(192, 115, 255, 0.12);
}

.admin-file-date-divider {
  position: relative;
  margin: 0.2rem 0;
  text-align: center;
}

.admin-file-date-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.admin-file-date-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 14, 22, 0.95);
  color: var(--rs-muted-2);
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-project-file-chat-item {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-height: 54px;
}

.admin-project-file-chat-item.is-short {
  min-height: 46px;
}

.admin-project-file-chat-item.is-medium {
  min-height: 62px;
}

.admin-project-file-chat-item.is-long {
  min-height: 84px;
}

.admin-project-file-chat-item.from-client {
  border-color: rgba(145, 255, 95, 0.32);
  background: rgba(145, 255, 95, 0.08);
}

.admin-project-file-chat-item.from-engineer {
  border-color: rgba(192, 115, 255, 0.34);
  background: rgba(192, 115, 255, 0.1);
}

.admin-project-file-chat-item.from-admin {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.admin-project-file-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.admin-project-file-chat-head strong {
  font-size: 0.9rem;
}

.admin-project-file-chat-head small {
  color: var(--rs-muted-2);
}

.project-chat-offcanvas .admin-project-chat-thread {
  max-height: calc(100vh - 270px);
}

.project-chat-offcanvas .offcanvas-body.admin-project-chat-layout {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 0;
}

.admin-project-chat-select-wrap {
  display: grid;
  gap: 0.35rem;
}

.project-chat-offcanvas .admin-project-chat-thread {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: none;
}

.admin-project-chat-compose {
  display: grid;
  gap: 0.55rem;
}

#admin-messenger-thread {
  min-height: clamp(300px, 46vh, 560px);
  max-height: clamp(320px, 58vh, 700px);
}

#admin-messenger-form {
  display: grid;
  gap: 0.6rem;
}

.admin-messenger-workspace {
  align-items: stretch;
}

.admin-messenger-sidebar-column {
  display: flex;
}

.admin-messenger-sidebar-card {
  width: 100%;
}

.admin-messenger-sidebar-card {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 126px);
}

.admin-messenger-quick-list {
  display: grid;
  gap: 0.55rem;
  max-height: calc(100vh - 390px);
}

.admin-messenger-quick-card {
  width: 100%;
  text-align: left;
  appearance: none;
}

.admin-messenger-quick-card:focus-visible {
  outline: 2px solid rgba(145, 255, 95, 0.55);
  outline-offset: 1px;
}

@media (max-width: 1199.98px) {
  .admin-messenger-sidebar-card {
    position: static;
    max-height: none;
  }

  .admin-messenger-quick-list {
    max-height: clamp(260px, 34vh, 420px);
  }
}

.admin-project-file-item,
.admin-project-chat-item {
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-cloud-filemanager-shell {
  display: grid;
  gap: 0.85rem;
}

.admin-cloud-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-cloud-toolbar h3 {
  margin: 0;
  font-size: 1.08rem;
}

.admin-cloud-toolbar-actions,
.admin-cloud-file-actions,
.admin-cloud-pager > div {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-cloud-filterbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(8, minmax(120px, 1fr));
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-cloud-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.admin-cloud-tree,
.admin-cloud-list {
  min-height: 420px;
  max-height: min(72vh, 760px);
  overflow: auto;
}

.admin-cloud-tree {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(7, 11, 18, 0.55);
}

.admin-cloud-tree-client {
  display: grid;
  gap: 0.25rem;
}

.admin-cloud-tree-projects {
  display: grid;
  gap: 0.2rem;
  padding-left: 0.7rem;
}

.admin-cloud-tree-row {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.48rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--rs-text);
  background: transparent;
  text-align: left;
}

.admin-cloud-tree-row span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-cloud-tree-row small {
  color: var(--rs-muted-2);
  white-space: nowrap;
}

.admin-cloud-tree-row:hover,
.admin-cloud-tree-row.is-active {
  border-color: rgba(145, 255, 95, 0.28);
  background: rgba(145, 255, 95, 0.08);
}

.admin-cloud-tree-row.is-project {
  font-size: 0.88rem;
}

.admin-cloud-list {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.admin-cloud-file-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 0.75rem;
  padding: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-cloud-file-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-cloud-file-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--rs-green);
  background: rgba(145, 255, 95, 0.1);
}

.admin-cloud-file-title {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.admin-cloud-file-title strong,
.admin-cloud-file-title small,
.admin-cloud-file-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-cloud-file-title small,
.admin-cloud-file-title span {
  color: var(--rs-muted-2);
  font-size: 0.78rem;
}

.admin-cloud-file-meta-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) minmax(110px, 0.7fr) minmax(110px, 0.7fr) minmax(180px, 1.2fr) auto;
  gap: 0.45rem;
}

.admin-cloud-loading,
.admin-cloud-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  text-align: center;
  color: var(--rs-muted-2);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-cloud-empty i {
  font-size: 1.8rem;
}

.admin-cloud-pager {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.45rem 0.55rem;
  color: var(--rs-muted-2);
}

@media (max-width: 1399.98px) {
  .admin-cloud-filterbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .admin-cloud-toolbar,
  .admin-cloud-layout,
  .admin-cloud-file-card {
    grid-template-columns: 1fr;
  }

  .admin-cloud-toolbar {
    display: grid;
  }

  .admin-cloud-tree,
  .admin-cloud-list {
    min-height: 0;
    max-height: none;
  }

  .admin-cloud-file-actions {
    justify-content: flex-start;
  }

  .admin-cloud-file-meta-form,
  .admin-cloud-filterbar {
    grid-template-columns: 1fr;
  }
}

.admin-project-chat-item {
  width: 100%;
  max-width: 100%;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-height: 54px;
}

.admin-project-chat-item.is-short {
  min-height: 46px;
  padding: 0.52rem 0.62rem;
}

.admin-project-chat-item.is-medium {
  min-height: 62px;
}

.admin-project-chat-item.is-long {
  min-height: 84px;
}

.admin-project-chat-item.support {
  border-color: rgba(192, 115, 255, 0.35);
  background: rgba(192, 115, 255, 0.1);
}

.admin-project-chat-item.client {
  border-color: rgba(145, 255, 95, 0.3);
  background: rgba(145, 255, 95, 0.08);
}

.admin-project-chat-item.is-targeted {
  border-color: rgba(145, 255, 95, 0.9);
  box-shadow: 0 0 0 2px rgba(145, 255, 95, 0.18), 0 14px 34px rgba(145, 255, 95, 0.12);
}

.audio-preview-box {
  border: 1px solid var(--rs-border);
  border-radius: 12px;
  padding: .65rem;
  background: rgba(255, 255, 255, .045);
}

.audio-preview-box audio {
  display: block;
  width: 100%;
}

.transfer-link-list {
  display: grid;
  gap: 8px;
}

.transfer-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--rs-border);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, .045);
}

.admin-project-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  color: var(--rs-muted-2);
}

.admin-project-meta {
  color: var(--rs-muted);
  font-size: 0.84rem;
}

.admin-project-read-status {
  margin-top: 0.38rem;
  color: var(--rs-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.feature-tag {
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(192, 115, 255, 0.35);
  border-radius: 999px;
  color: #ebddff;
  background: rgba(192, 115, 255, 0.12);
  font-size: 0.75rem;
}

.feature-tag-muted {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--rs-muted-2);
  background: rgba(255, 255, 255, 0.05);
}

.admin-sound-row.is-active {
  border-color: rgba(145, 255, 95, 0.42) !important;
  background: rgba(145, 255, 95, 0.08);
  border-radius: 12px;
}

.admin-sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.7rem;
}

.admin-sound-card {
  min-height: 170px;
}

.admin-platform-row {
  margin: 0.55rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(145, 255, 95, 0.26);
  background: rgba(145, 255, 95, 0.08);
  color: #e6ffe9;
  font-size: 0.72rem;
  font-weight: 600;
}

.platform-pill i {
  font-size: 0.72rem;
}

.platform-pill-muted {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--rs-muted);
}

.notification-list {
  display: grid;
  gap: 0.55rem;
}

.notification-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: var(--rs-text);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition: border-color var(--rs-transition), background var(--rs-transition), transform var(--rs-transition);
}

.notification-item:hover {
  transform: translateY(-1px);
  border-color: rgba(145, 255, 95, 0.32);
  background: rgba(145, 255, 95, 0.07);
}

.notification-item.is-unread {
  border-color: rgba(145, 255, 95, 0.42);
  background:
    linear-gradient(135deg, rgba(145, 255, 95, 0.11), rgba(192, 115, 255, 0.07)),
    rgba(255, 255, 255, 0.03);
}

.notification-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #061006;
  background: linear-gradient(135deg, var(--rs-green), var(--rs-green-2));
  box-shadow: 0 0 16px rgba(145, 255, 95, 0.22);
}

.notification-body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.notification-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.notification-head strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.notification-time {
  white-space: nowrap;
  color: var(--rs-muted-2);
  font-size: 0.74rem;
}

.notification-message {
  color: var(--rs-muted);
  font-size: 0.84rem;
  line-height: 1.38;
}

.notification-meta .status-pill {
  font-size: 0.68rem;
  padding: 0.26rem 0.48rem;
}

.admin-form-card .alert {
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(3, 11, 22, 0.85);
  color: #ecf5ff;
}

.admin-project-mailstate-box {
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-project-required-files-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.admin-project-required-files-grid .form-check {
  margin: 0;
  padding: 0.45rem 0.6rem 0.45rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 760px) {
  .admin-project-required-files-grid {
    grid-template-columns: 1fr;
  }
}

.admin-confirm-modal .modal-content {
  border-radius: 18px;
  border: 1px solid rgba(145, 255, 95, 0.25);
  background:
    radial-gradient(circle at 0% 0%, rgba(145, 255, 95, 0.1), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(192, 115, 255, 0.12), transparent 38%),
    rgba(8, 14, 26, 0.96);
  color: var(--rs-text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
}

.admin-confirm-modal .modal-header,
.admin-confirm-modal .modal-footer {
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-confirm-modal .modal-title {
  font-weight: 900;
}

.raps-app-modal .modal-content,
.raps-transfer-modal .modal-content,
.raps-upload-modal .modal-content {
  border-radius: 18px;
  border: 1px solid rgba(145, 255, 95, 0.25);
  background:
    radial-gradient(circle at 0% 0%, rgba(145, 255, 95, 0.1), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(192, 115, 255, 0.12), transparent 38%),
    rgba(8, 14, 26, 0.97);
  color: var(--rs-text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
}

.raps-app-modal .modal-header,
.raps-app-modal .modal-footer,
.raps-transfer-modal .modal-header,
.raps-transfer-modal .modal-footer,
.raps-upload-modal .modal-header,
.raps-upload-modal .modal-footer {
  border-color: rgba(255, 255, 255, 0.12);
}

.raps-app-modal-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--rs-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.raps-app-modal-message,
.raps-transfer-subtitle,
.raps-transfer-section-head small,
.raps-transfer-link-meta,
.raps-transfer-empty span {
  color: var(--rs-muted);
}

.raps-upload-subtitle {
  color: var(--rs-muted);
}

.raps-upload-status-card,
.raps-upload-file-box {
  border: 1px solid var(--rs-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.raps-upload-status-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
}

.raps-upload-status-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(145, 255, 95, 0.12);
  color: #91ff5f;
}

.raps-upload-status-icon.is-error {
  background: rgba(255, 128, 128, 0.12);
  color: #ffc2c2;
}

.raps-upload-status-copy {
  display: grid;
  gap: 4px;
}

.raps-upload-status-copy span {
  color: var(--rs-muted);
  font-size: 0.9rem;
}

.raps-upload-file-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--rs-muted);
}

.raps-upload-debug-box,
.raps-upload-report-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--rs-border);
  border-radius: 12px;
  background: rgba(5, 9, 17, 0.52);
}

.raps-upload-debug-head,
.raps-upload-report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.raps-upload-debug-head span,
.raps-upload-report-actions span {
  color: var(--rs-muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.raps-upload-debug-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.raps-upload-debug-grid div {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.raps-upload-debug-grid dt {
  color: var(--rs-muted);
  font-size: 0.72rem;
}

.raps-upload-debug-grid dd {
  margin: 2px 0 0;
  color: var(--rs-text);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.raps-upload-debug-box pre {
  max-height: 140px;
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--rs-text);
  white-space: pre-wrap;
  overflow: auto;
}

.raps-upload-report-box .form-label {
  color: var(--rs-muted);
  font-size: 0.82rem;
}

.raps-upload-report-box .form-select,
.raps-upload-report-box .form-control {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(15, 23, 42, 0.82);
  color: var(--rs-text);
}

.raps-upload-report-actions {
  margin-top: 10px;
}

@media (max-width: 575.98px) {
  .raps-upload-debug-grid {
    grid-template-columns: 1fr;
  }

  .raps-upload-debug-head,
  .raps-upload-report-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.raps-transfer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
}

.raps-transfer-grid > *,
.raps-transfer-create,
.raps-transfer-list-panel {
  min-width: 0;
}

.raps-transfer-create,
.raps-transfer-list-panel,
.raps-transfer-link-card,
.raps-transfer-empty,
.raps-transfer-result {
  border: 1px solid var(--rs-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.raps-transfer-create,
.raps-transfer-list-panel {
  padding: 14px;
}

.raps-transfer-section-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.raps-transfer-section-head > div {
  min-width: 0;
}

.raps-transfer-section-head h3,
.raps-transfer-section-head small,
.raps-transfer-link-card strong,
.raps-transfer-link-meta,
.raps-transfer-result {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.raps-transfer-section-head i {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(145, 255, 95, 0.12);
  color: #91ff5f;
}

.raps-transfer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.raps-transfer-dialog-list {
  display: grid;
  gap: 8px;
}

.raps-transfer-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

.raps-transfer-link-card > div {
  min-width: 0;
  flex: 1 1 auto;
}

.raps-transfer-link-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  margin: 6px 0;
}

.raps-transfer-link-url .form-control {
  min-width: 0;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.raps-transfer-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 140px;
  padding: 18px;
  text-align: center;
}

.raps-transfer-empty i {
  color: #91ff5f;
  font-size: 1.6rem;
}

.raps-transfer-result {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.raps-transfer-result.is-success {
  border-color: rgba(145, 255, 95, 0.3);
  color: #c9ffb3;
}

.raps-transfer-result.is-error {
  border-color: rgba(255, 128, 128, 0.38);
  color: #ffc2c2;
}

.audio-preview-box.is-loading {
  color: var(--rs-muted);
}

.audio-preview-box.is-error {
  border-color: rgba(255, 128, 128, 0.34);
  background: rgba(255, 128, 128, 0.08);
}

.audio-preview-loading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.audio-preview-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #ffc2c2;
  font-size: 0.9rem;
  line-height: 1.35;
}

.audio-preview-error i {
  color: #ffce73;
  margin-top: 0.08rem;
}

.audio-preview-fallback {
  margin-top: 8px;
  border: 1px solid rgba(255, 193, 7, 0.28);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 193, 7, 0.08);
  color: #ffe6a0;
  font-size: 0.86rem;
}

.transfer-link-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--rs-border);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--rs-muted);
  font-size: 0.86rem;
}

.raps-transfer-modal .form-control,
.raps-app-modal .form-control {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(4, 8, 16, 0.78);
  color: var(--rs-text);
}

.raps-transfer-modal .form-control:focus,
.raps-app-modal .form-control:focus {
  border-color: rgba(145, 255, 95, 0.72);
  box-shadow: 0 0 0 0.2rem rgba(145, 255, 95, 0.14);
}

@media (max-width: 767.98px) {
  .admin-client-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .admin-request-field-grid {
    grid-template-columns: 1fr;
  }

  .admin-editor-actions .btn {
    width: 100%;
  }

  .raps-transfer-grid {
    grid-template-columns: 1fr;
  }

  .raps-transfer-actions .btn,
  .raps-transfer-modal .modal-footer .btn,
  .transfer-link-compact .btn {
    width: 100%;
  }

  .transfer-link-compact {
    align-items: stretch;
    flex-direction: column;
  }

  .raps-transfer-link-card,
  .raps-transfer-link-url {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .raps-transfer-link-card {
    flex-direction: column;
  }
}

/* White mode corrections for readable typography and balanced layer colors */
html.theme-light body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.theme-light .glass-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5)),
    var(--rs-panel);
}

html.theme-light .admin-nav a:hover,
html.theme-light .admin-nav a.active,
html.theme-light .admin-nav button:hover,
html.theme-light .admin-nav button.active {
  color: var(--rs-text);
}

html.theme-light .mobile-menu-btn,
html.theme-light .icon-btn,
html.theme-light .btn-ghost,
html.theme-light .admin-profile {
  color: var(--rs-text);
  background: rgba(24, 44, 82, 0.06);
}

html.theme-light .top-search input {
  color: var(--rs-text);
  background: rgba(255, 255, 255, 0.9);
}

html.theme-light .top-search input::placeholder {
  color: var(--rs-muted-2);
}

html.theme-light .top-search-results {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(24, 44, 82, 0.2);
}

html.theme-light .top-search-result:hover,
html.theme-light .top-search-result.is-active {
  background: rgba(145, 255, 95, 0.12);
}

html.theme-light .btn-purple,
html.theme-light .btn-purple:hover {
  color: #fff;
}

html.theme-light .hero-console,
html.theme-light .table-wrap,
html.theme-light .mini-project,
html.theme-light .admin-list-zone,
html.theme-light .admin-project-block,
html.theme-light .admin-project-form,
html.theme-light .admin-client-card,
html.theme-light .admin-file-menu,
html.theme-light .admin-project-file-item,
html.theme-light .admin-project-chat-item,
html.theme-light .admin-project-file-chat-item,
html.theme-light .admin-project-log-item,
html.theme-light .admin-form-card .alert {
  background: rgba(255, 255, 255, 0.72);
}

html.theme-light .hero-console,
html.theme-light .table-wrap {
  box-shadow: 0 18px 44px rgba(24, 44, 82, 0.16);
}

html.theme-light .admin-table thead th,
html.theme-light .project-column,
html.theme-light .activity-item,
html.theme-light .queue-card,
html.theme-light .meter-row,
html.theme-light .settings-item {
  background: rgba(255, 255, 255, 0.62);
}

html.theme-light .offcanvas.admin-offcanvas,
html.theme-light .offcanvas.settings-offcanvas,
html.theme-light .offcanvas.account-offcanvas,
html.theme-light .offcanvas.manage-offcanvas,
html.theme-light .offcanvas.project-chat-offcanvas,
html.theme-light .offcanvas.workflow-offcanvas,
html.theme-light .dropdown-menu {
  background:
    radial-gradient(circle at 100% 0%, rgba(125, 77, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 0% 25%, rgba(25, 246, 155, 0.1), transparent 24rem),
    rgba(255, 255, 255, 0.95);
}

html.theme-light .dropdown-item {
  color: var(--rs-text);
}

html.theme-light .dropdown-item:hover,
html.theme-light .dropdown-item:focus {
  color: var(--rs-text);
  background: rgba(145, 255, 95, 0.16);
}

html.theme-light .admin-confirm-modal .modal-content {
  background:
    radial-gradient(circle at 100% 0%, rgba(125, 77, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 0% 25%, rgba(25, 246, 155, 0.1), transparent 24rem),
    rgba(255, 255, 255, 0.97);
  color: var(--rs-text);
}

html.theme-light .status-pill.green {
  color: #1a6b32;
  background: rgba(111, 224, 120, 0.22);
}

html.theme-light .status-pill.purple {
  color: #5a3aa7;
  background: rgba(161, 124, 255, 0.2);
}

html.theme-light .status-pill.yellow {
  color: #6d6312;
  background: rgba(236, 255, 143, 0.42);
}

html.theme-light .status-pill.red {
  color: #9f2548;
  background: rgba(255, 81, 124, 0.2);
}

html.theme-light .admin-form-card .form-control,
html.theme-light .admin-form-card .form-select,
html.theme-light .admin-form-card textarea {
  border: 1px solid rgba(24, 44, 82, 0.2);
  background: rgba(255, 255, 255, 0.94);
  color: var(--rs-text);
}

html.theme-light .admin-form-card .form-control:focus,
html.theme-light .admin-form-card .form-select:focus,
html.theme-light .admin-form-card textarea:focus {
  background: #fff;
  color: var(--rs-text);
}

html.theme-light .feature-grid .form-check,
html.theme-light .admin-editor-form,
html.theme-light .admin-manager-toolbar,
html.theme-light .admin-project-file-chat-item.from-admin,
html.theme-light .feature-tag-muted,
html.theme-light .platform-pill-muted,
html.theme-light .notification-item {
  background: rgba(255, 255, 255, 0.66);
}

html.theme-light .admin-upload-drop {
  border-color: rgba(24, 44, 82, 0.24);
  background: rgba(255, 255, 255, 0.86);
}

html.theme-light .admin-upload-drop:hover,
html.theme-light .admin-upload-drop:focus-visible,
html.theme-light .admin-upload-drop.is-dragover {
  border-color: rgba(25, 246, 155, 0.48);
  background: rgba(145, 255, 95, 0.14);
}

html.theme-light .admin-upload-drop.has-file {
  border-color: rgba(125, 77, 255, 0.48);
  background: rgba(192, 115, 255, 0.14);
}

html.theme-light .feature-grid .form-check-label,
html.theme-light .platform-pill,
html.theme-light .feature-tag {
  color: var(--rs-text);
}

html.theme-light .notification-item:hover {
  background: rgba(145, 255, 95, 0.12);
}

html.theme-light .toast {
  color: var(--rs-text);
  background: rgba(255, 255, 255, 0.96);
}

html.theme-light .btn-outline-light {
  color: var(--rs-text);
  border-color: rgba(24, 44, 82, 0.32);
  background: rgba(255, 255, 255, 0.72);
}

html.theme-light .btn-outline-light:hover,
html.theme-light .btn-outline-light:focus {
  color: var(--rs-text);
  border-color: rgba(25, 246, 155, 0.46);
  background: rgba(145, 255, 95, 0.12);
}

html.theme-light .offcanvas .offcanvas-body .btn-outline-light,
html.theme-light .offcanvas .offcanvas-body .btn-outline-success,
html.theme-light .offcanvas .offcanvas-body .btn-outline-warning,
html.theme-light .offcanvas .offcanvas-body .btn-outline-danger,
html.theme-light .offcanvas .offcanvas-body .btn-outline-primary {
  color: var(--rs-text);
  border-color: rgba(24, 44, 82, 0.28);
  background: rgba(255, 255, 255, 0.78);
}

html.theme-light .offcanvas .offcanvas-body .btn-outline-light:hover,
html.theme-light .offcanvas .offcanvas-body .btn-outline-success:hover,
html.theme-light .offcanvas .offcanvas-body .btn-outline-warning:hover,
html.theme-light .offcanvas .offcanvas-body .btn-outline-danger:hover,
html.theme-light .offcanvas .offcanvas-body .btn-outline-primary:hover {
  color: var(--rs-text);
  border-color: rgba(35, 129, 76, 0.45);
  background: rgba(90, 193, 105, 0.18);
}

html.theme-light .settings-nav-item {
  color: var(--rs-text);
  border-color: rgba(24, 44, 82, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

html.theme-light .settings-nav-item:hover,
html.theme-light .settings-nav-item:focus-visible {
  border-color: rgba(25, 246, 155, 0.46);
  background: rgba(145, 255, 95, 0.12);
}

html.theme-light .settings-nav-item.is-active {
  border-color: rgba(67, 149, 227, 0.5);
  background: rgba(67, 149, 227, 0.18);
}

html.theme-light .coupon-manager-note {
  border-color: rgba(24, 44, 82, 0.2);
  background: linear-gradient(145deg, rgba(90, 193, 105, 0.14), rgba(67, 149, 227, 0.14));
}

html.theme-light .coupon-create-expand-btn {
  color: #18342f;
  border-color: rgba(35, 129, 76, 0.5);
  background: radial-gradient(circle at 30% 30%, rgba(90, 193, 105, 0.34), rgba(67, 149, 227, 0.24));
}

html.theme-light .link-light {
  color: #2f5db4 !important;
}

html.theme-light .btn-close-white {
  filter: none;
}

/* White mode polish: typography contrast + cleaner layer hierarchy */
html.theme-light .admin-bg-grid {
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(24, 44, 82, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 44, 82, 0.08) 1px, transparent 1px);
}

html.theme-light .admin-scanline {
  opacity: 0.03;
}

html.theme-light .admin-orb {
  opacity: 0.2;
}

html.theme-light .admin-form-card,
html.theme-light .content-card {
  color: #13213a;
}

html.theme-light .project-priority-item {
  border-color: rgba(28, 52, 94, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

html.theme-light .project-priority-item.is-critical {
  border-color: rgba(99, 88, 198, 0.42);
  background: linear-gradient(145deg, rgba(151, 126, 234, 0.2), rgba(106, 180, 238, 0.18));
}

html.theme-light .project-priority-item.is-urgent {
  border-color: rgba(62, 158, 232, 0.36);
  background: linear-gradient(145deg, rgba(131, 204, 255, 0.2), rgba(148, 225, 199, 0.18));
}

html.theme-light .admin-form-card .form-label,
html.theme-light .admin-form-card legend,
html.theme-light .admin-project-meta,
html.theme-light .admin-client-meta,
html.theme-light .kpi-meta,
html.theme-light .notification-message {
  color: #4b5e7e;
}

html.theme-light .admin-client-ident small,
html.theme-light .top-search-result small,
html.theme-light .admin-project-process-head small,
html.theme-light .admin-form-card .form-text {
  color: #5f7190;
}

html.theme-light .admin-list-zone,
html.theme-light .admin-project-block,
html.theme-light .admin-project-form,
html.theme-light .admin-client-card,
html.theme-light .admin-file-menu,
html.theme-light .admin-project-file-item,
html.theme-light .admin-project-chat-item,
html.theme-light .admin-project-file-chat-item,
html.theme-light .admin-project-log-item,
html.theme-light .admin-form-card .alert {
  border-color: rgba(28, 52, 94, 0.2);
  background: rgba(255, 255, 255, 0.86);
  color: #13213a;
}

html.theme-light .admin-project-file-chat-item.from-client {
  border-color: rgba(44, 140, 68, 0.3);
  background: rgba(90, 193, 105, 0.14);
}

html.theme-light .admin-project-file-chat-item.from-engineer,
html.theme-light .admin-project-chat-item.support {
  border-color: rgba(98, 72, 186, 0.32);
  background: rgba(144, 118, 227, 0.16);
}

html.theme-light .admin-project-file-chat-item.from-admin {
  border-color: rgba(28, 52, 94, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

html.theme-light .admin-project-process {
  border-color: rgba(35, 129, 76, 0.28);
  background: linear-gradient(140deg, rgba(90, 193, 105, 0.14), rgba(67, 149, 227, 0.12));
}

html.theme-light .project-stage-pill {
  border-color: rgba(28, 52, 94, 0.18);
  color: #4f6281;
  background: rgba(255, 255, 255, 0.78);
}

html.theme-light .project-stage-pill.is-done {
  border-color: rgba(35, 129, 76, 0.32);
  color: #1d5d37;
  background: rgba(90, 193, 105, 0.16);
}

html.theme-light .project-stage-pill.is-active {
  border-color: rgba(53, 118, 206, 0.36);
  color: #1b4f8f;
  background: rgba(90, 162, 241, 0.18);
}

html.theme-light .admin-mini-stats span {
  border-color: rgba(35, 129, 76, 0.28);
  background: rgba(90, 193, 105, 0.12);
  color: #1f5133;
}

html.theme-light .admin-mini-stats strong {
  color: #20643e;
}

html.theme-light .feature-grid .form-check {
  border-color: rgba(28, 52, 94, 0.18);
  background: rgba(255, 255, 255, 0.84);
}

html.theme-light .feature-grid .form-check-label {
  color: #1b2d4b;
}

html.theme-light .top-search-result {
  color: #13213a;
}

html.theme-light .top-search-result:hover,
html.theme-light .top-search-result.is-active {
  border-color: rgba(35, 129, 76, 0.28);
  background: rgba(90, 193, 105, 0.16);
}

html.theme-light .mobile-menu-btn,
html.theme-light .icon-btn,
html.theme-light .btn-ghost,
html.theme-light .admin-profile {
  border-color: rgba(28, 52, 94, 0.2);
  color: #1b2d4b;
  background: rgba(255, 255, 255, 0.82);
}

html.theme-light .mobile-menu-btn:hover,
html.theme-light .icon-btn:hover,
html.theme-light .btn-ghost:hover {
  border-color: rgba(35, 129, 76, 0.34);
  background: rgba(90, 193, 105, 0.13);
}

html.theme-light .admin-chatbot-fab {
  border-color: rgba(35, 129, 76, 0.4);
  color: #123824;
  background: linear-gradient(135deg, rgba(90, 193, 105, 0.35), rgba(90, 162, 241, 0.28));
  box-shadow: 0 10px 22px rgba(24, 44, 82, 0.16), 0 0 16px rgba(90, 193, 105, 0.2);
}

html.theme-light .admin-chatbot-fab:hover,
html.theme-light .admin-chatbot-fab:focus-visible {
  border-color: rgba(35, 129, 76, 0.58);
  background: linear-gradient(135deg, rgba(90, 193, 105, 0.42), rgba(90, 162, 241, 0.34));
}

html.theme-light .admin-chatbot-fab-icon {
  color: #113521;
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.82), rgba(90, 193, 105, 0.24));
}

html.theme-light .admin-form-card .alert {
  border-color: rgba(28, 52, 94, 0.24);
  color: #13213a;
}

html.theme-light .admin-form-card .alert.alert-danger {
  border-color: rgba(173, 45, 74, 0.34);
  background: rgba(255, 233, 239, 0.92);
  color: #81263b;
}

html.theme-light .admin-form-card .alert.alert-success {
  border-color: rgba(35, 129, 76, 0.34);
  background: rgba(232, 255, 239, 0.92);
  color: #1e5a36;
}

html.theme-light .admin-form-card .form-control,
html.theme-light .admin-form-card .form-select,
html.theme-light .admin-form-card textarea {
  border-color: rgba(28, 52, 94, 0.24);
  background: rgba(255, 255, 255, 0.98);
  color: #13213a;
}

html.theme-light .admin-form-card .form-control::placeholder,
html.theme-light .admin-form-card textarea::placeholder {
  color: #697d9d;
}

html.theme-light .admin-form-card .form-control:focus,
html.theme-light .admin-form-card .form-select:focus,
html.theme-light .admin-form-card textarea:focus {
  border-color: rgba(35, 129, 76, 0.46);
  box-shadow: 0 0 0 0.18rem rgba(90, 193, 105, 0.2);
  background: #ffffff;
  color: #13213a;
}

html.theme-light .admin-nav a i,
html.theme-light .admin-nav button i {
  color: #1e5a36;
  background: rgba(90, 193, 105, 0.16);
}

html.theme-light .admin-nav a:hover,
html.theme-light .admin-nav a.active,
html.theme-light .admin-nav button:hover,
html.theme-light .admin-nav button.active {
  border-color: rgba(35, 129, 76, 0.28);
  background: linear-gradient(135deg, rgba(90, 193, 105, 0.15), rgba(90, 162, 241, 0.14));
}

html.theme-light .text-gradient {
  background: linear-gradient(90deg, #1d5d37, #355cba 62%, #7f4dc9);
  -webkit-background-clip: text;
  background-clip: text;
  filter: none;
}

@media (max-width: 1199.98px) {
  .project-priority-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .project-priority-create-btn {
    align-self: flex-end;
  }

  .project-priority-stats {
    grid-template-columns: 1fr;
  }

  .project-priority-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-priority-item-action {
    width: 100%;
  }
}
