@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&family=Orbitron:wght@500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&family=Noto+Serif+SC:wght@500;700;900&display=swap');

:root {
  --bg: #050611;
  --bg-deep: #080a18;
  --panel: rgba(9, 11, 24, 0.78);
  --panel-strong: rgba(5, 7, 16, 0.92);
  --panel-soft: rgba(18, 21, 42, 0.68);
  --line: rgba(143, 146, 255, 0.14);
  --line-strong: rgba(155, 140, 255, 0.32);
  --text: #f3f4ff;
  --text-soft: #b4b5d1;
  --text-dim: #777b9f;
  --primary: #7381ff;
  --primary-strong: #a177ff;
  --cyan: #67e8f9;
  --success-bg: rgba(103, 232, 249, 0.1);
  --success-text: #8cf6ff;
  --danger-bg: rgba(248, 113, 113, 0.1);
  --danger-border: rgba(248, 113, 113, 0.22);
  --danger-text: #fecaca;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  --glow: 0 0 42px rgba(115, 129, 255, 0.28);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-body: 'Manrope', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Orbitron', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-card-title: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 900px 520px at 50% -12%, rgba(138, 123, 255, 0.24), transparent 62%),
    radial-gradient(ellipse 520px 420px at 7% 18%, rgba(94, 102, 255, 0.16), transparent 64%),
    radial-gradient(ellipse 520px 420px at 93% 12%, rgba(161, 119, 255, 0.14), transparent 66%),
    radial-gradient(ellipse 760px 360px at 50% 105%, rgba(103, 232, 249, 0.07), transparent 70%),
    linear-gradient(180deg, #05050d 0%, #070815 42%, #050611 100%);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 160, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 160, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(155, 160, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 160, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(139, 124, 255, 0.14), transparent 46%);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px, 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.96), rgba(0,0,0,0.62) 52%, rgba(0,0,0,0.88));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.035) 18%, transparent 34%, rgba(115,129,255,0.035) 54%, transparent 74%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
  background-size: 100% 100%, 220px 220px;
  mix-blend-mode: screen;
}

.bg-glow {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(72px);
  opacity: 0.68;
}

.bg-glow-1 {
  width: 460px;
  height: 460px;
  top: -190px;
  left: 12%;
  background: radial-gradient(circle, rgba(138, 123, 255, 0.42), rgba(115, 129, 255, 0.12) 52%, transparent 72%);
}

.bg-glow-2 {
  width: 520px;
  height: 520px;
  top: -190px;
  right: 8%;
  background: radial-gradient(circle, rgba(161, 119, 255, 0.38), rgba(115, 129, 255, 0.12) 50%, transparent 72%);
}

.bg-glow-3 {
  width: 760px;
  height: 260px;
  left: 50%;
  top: 560px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(115, 129, 255, 0.22), rgba(103, 232, 249, 0.05) 48%, transparent 74%);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 86px;
}

.hidden {
  display: none !important;
}

.auth-card,
.hero,
.group-section,
.admin-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(115, 129, 255, 0.18), transparent 34%),
    radial-gradient(circle at 92% 100%, rgba(161, 119, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(15, 17, 34, 0.86), rgba(5, 7, 16, 0.9));
  border: 1px solid rgba(160, 154, 255, 0.16);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.auth-card::before,
.hero::before,
.group-section::before,
.admin-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 146, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 146, 255, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.82), transparent 82%);
}

.auth-card::after,
.hero::after,
.group-section::after,
.admin-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.035),
    inset 0 -90px 120px rgba(115,129,255,0.045);
}

.auth-shell {
  min-height: calc(100vh - 142px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  padding: 40px;
  border-radius: 30px;
}

.hero {
  margin-bottom: 38px;
  padding: 32px 34px 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 720px 280px at 50% -20%, rgba(138, 123, 255, 0.22), transparent 68%),
    radial-gradient(ellipse 340px 220px at 100% 0%, rgba(103, 232, 249, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(15, 17, 34, 0.88), rgba(5, 7, 16, 0.91));
}

.hero-topbar,
.portal-notice,
.toolbar,
.group-header,
.cards-grid,
.admin-header,
.admin-grid,
.auth-form,
.auth-title,
.auth-subtitle,
.hero-badge {
  position: relative;
  z-index: 1;
}

.hero-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(143, 146, 255, 0.28);
  border-radius: 999px;
  background: rgba(115, 129, 255, 0.12);
  color: #dfe2ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.45px;
  box-shadow: 0 0 28px rgba(115,129,255,0.12);
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.auth-title,
.hero-title,
.group-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 900;
  letter-spacing: -1.7px;
}

.auth-title,
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
}

.auth-title {
  margin-top: 22px;
  font-size: 38px;
  line-height: 1.1;
}

.hero-title {
  margin-top: 18px;
  max-width: 860px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.95px;
  text-wrap: balance;
  text-shadow: 0 0 34px rgba(115,129,255,0.14);
}

.auth-subtitle,
.hero-subtitle,
.group-subtitle {
  color: var(--text-soft);
  line-height: 1.72;
}

.auth-subtitle {
  margin: 14px 0 26px;
  font-size: 15px;
}

.hero-subtitle {
  margin: 18px 0 0;
  max-width: 720px;
  font-size: 17px;
}

.user-panel {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-chip,
.search-wrap,
.meta-card,
.admin-card,
.admin-note {
  background: rgba(14, 17, 34, 0.72);
  border: 1px solid rgba(143, 146, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 12px 30px rgba(0,0,0,0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.user-chip {
  min-width: 154px;
  padding: 12px 14px;
  border-radius: 16px;
}

.user-label,
.meta-label,
.search-label,
.auth-label {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.user-label {
  display: block;
  margin-bottom: 5px;
}

.user-chip strong {
  color: var(--text);
  font-size: 14px;
}

.role-line {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 12px;
}

.logout-btn,
.clear-btn,
.small-btn,
.toggle-password-btn {
  border: 1px solid rgba(143, 146, 255, 0.18);
  border-radius: 13px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.logout-btn {
  height: 42px;
  padding: 0 16px;
  font-size: 13px;
}

.logout-btn:hover,
.clear-btn:hover,
.small-btn:hover,
.toggle-password-btn:hover {
  transform: translateY(-1px);
  background: rgba(115,129,255,0.16);
  border-color: rgba(143, 146, 255, 0.42);
  box-shadow: 0 0 28px rgba(115,129,255,0.16);
}

.portal-notice {
  margin-top: 24px;
  padding: 13px 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(115,129,255,0.12), rgba(103,232,249,0.055));
  border: 1px solid rgba(143,146,255,0.18);
  color: #d6d9ff;
  font-size: 13px;
  line-height: 1.7;
}

.toolbar {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 18px;
}

.search-wrap {
  padding: 20px;
  border-radius: 22px;
}

.search-label {
  display: inline-block;
  margin-bottom: 12px;
}

.search-box,
.password-wrap {
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 17px;
  background: rgba(3, 5, 13, 0.66);
  border: 1px solid rgba(143,146,255,0.16);
}

.search-box:focus-within,
.auth-input:focus {
  border-color: rgba(115,129,255,0.58);
  box-shadow:
    0 0 0 4px rgba(115,129,255,0.11),
    0 0 32px rgba(115,129,255,0.10);
}

.search-box input,
.auth-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
}

.search-box input::placeholder,
.auth-input::placeholder {
  color: #676c91;
}

.clear-btn {
  height: 38px;
  padding: 0 15px;
  font-size: 13px;
}

.meta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.meta-card {
  min-height: 124px;
  padding: 20px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.meta-card strong {
  color: #fff;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1.8px;
  text-shadow: 0 0 26px rgba(115,129,255,0.18);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-input {
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(143,146,255,0.14);
  background: rgba(3,5,13,0.60);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.password-wrap .auth-input {
  padding-right: 88px;
}

.toggle-password-btn {
  position: absolute;
  top: 8px;
  right: 9px;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.auth-submit,
.enter-btn {
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 0 28px rgba(115,129,255,0.28),
    0 12px 34px rgba(0,0,0,0.32);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.auth-submit {
  margin-top: 8px;
  height: 50px;
  font-size: 15px;
}

.auth-submit:hover,
.enter-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.12);
  box-shadow:
    0 0 42px rgba(115,129,255,0.38),
    0 18px 44px rgba(0,0,0,0.34);
}

.auth-error,
.message {
  margin-top: 8px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  font-size: 14px;
}

.message {
  margin: 8px 0 24px;
}

.message.success {
  background: rgba(34,197,94,0.10);
  border-color: rgba(34,197,94,0.20);
  color: #bbf7d0;
}

.message.error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.groups {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.group-section {
  padding: 28px;
  border-radius: 32px;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.group-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.group-title {
  font-size: 32px;
  line-height: 1.05;
}

.group-subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
}

.group-count {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(115,129,255,0.12);
  border: 1px solid rgba(143,146,255,0.18);
  color: #dde0ff;
  font-size: 12px;
  font-weight: 800;
}

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

.app-card {
  position: relative;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 13%, rgba(115,129,255,0.18), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(103,232,249,0.10), transparent 30%),
    radial-gradient(ellipse at 50% 112%, rgba(115,129,255,0.36), rgba(161,119,255,0.18) 34%, transparent 62%),
    linear-gradient(180deg, rgba(22,25,52,0.90), rgba(5,7,16,0.95));
  border: 1px solid rgba(155,140,255,0.32);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(115,129,255,0.08),
    0 18px 50px rgba(0,0,0,0.34),
    0 0 34px rgba(115,129,255,0.14);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143,146,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,146,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
}

.app-card::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -82px;
  height: 172px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(115,129,255,0.62) 0%,
    rgba(161,119,255,0.36) 34%,
    rgba(103,232,249,0.12) 52%,
    transparent 76%
  );
  filter: blur(20px);
  opacity: 0.96;
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: rgba(177,153,255,0.58);
  box-shadow:
    0 0 0 1px rgba(177,153,255,0.22),
    0 24px 70px rgba(0,0,0,0.46),
    0 0 58px rgba(115,129,255,0.28),
    0 0 88px rgba(161,119,255,0.12);
}

.card-top,
.card-body,
.card-actions,
.tags {
  position: relative;
  z-index: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(115,129,255,0.16);
  border: 1px solid rgba(143,146,255,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 24px rgba(115,129,255,0.16);
}

.card-status {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-status.active {
  background: var(--success-bg);
  color: var(--success-text);
}

.card-status.beta {
  background: rgba(250,204,21,0.12);
  color: #fde68a;
}

.card-status.inactive {
  background: rgba(248,113,113,0.12);
  color: #fca5a5;
}

.card-title {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-card-title);
  font-size: 24px;
  line-height: 1.28;
  letter-spacing: -0.35px;
  font-weight: 900;
}

.card-desc {
  margin: 0;
  min-height: 78px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.tag {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(115,129,255,0.12);
  border: 1px solid rgba(157,140,255,0.20);
  color: #d8dcff;
  font-size: 12px;
  font-weight: 700;
}

.card-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.enter-btn {
  position: relative;
  min-width: 128px;
  height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  font-size: 13px;
}

.enter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.30) 32%, transparent 48%),
    radial-gradient(ellipse at 50% 120%, rgba(255,255,255,0.35), transparent 56%);
  opacity: 0.42;
}

.enter-btn.disabled {
  pointer-events: none;
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  box-shadow: none;
  border: 1px solid rgba(143,146,255,0.12);
}

.enter-btn.disabled::before {
  display: none;
}

.empty-state,
.admin-note {
  padding: 28px;
  border-radius: 20px;
  color: var(--text-soft);
  text-align: center;
}

.admin-panel {
  margin-top: 30px;
  padding: 28px;
  border-radius: 32px;
}

.admin-header {
  margin-bottom: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
}

.admin-card {
  padding: 22px;
  border-radius: 22px;
}

.admin-card-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(3,5,13,0.52);
  border: 1px solid rgba(143,146,255,0.12);
}

.user-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-name {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.user-role {
  color: var(--text-dim);
  font-size: 12px;
}

.user-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.small-btn {
  height: 34px;
  padding: 0 13px;
  font-size: 12px;
}

.small-btn.danger {
  background: rgba(248,113,113,0.10);
  color: #fecaca;
  border-color: rgba(248,113,113,0.18);
}

.small-btn.danger:hover {
  background: rgba(248,113,113,0.18);
  box-shadow: 0 0 22px rgba(248,113,113,0.12);
}

.small-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card {
  animation: fadeInUp 0.65s cubic-bezier(0.22,0.61,0.36,1) both;
}

.hero {
  animation: fadeInUp 0.62s cubic-bezier(0.22,0.61,0.36,1) both;
}

.group-section {
  animation: fadeInUp 0.58s 0.12s cubic-bezier(0.22,0.61,0.36,1) both;
}

.admin-panel {
  animation: fadeInUp 0.58s 0.16s cubic-bezier(0.22,0.61,0.36,1) both;
}

@media (max-width: 1100px) {
  .toolbar {
    grid-template-columns: 1fr;
  }

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

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

  .hero-title {
    font-size: 42px;
  }
}

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

@media (max-width: 720px) {
  .container {
    padding: 24px 14px 56px;
  }

  .hero,
  .auth-card,
  .group-section,
  .admin-panel {
    border-radius: 24px;
    padding: 22px;
  }

  .hero-title {
    font-size: 30px;
    line-height: 1.12;
  }

  .auth-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .user-panel {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .user-chip,
  .logout-btn {
    width: 100%;
  }

  .meta-cards {
    grid-template-columns: 1fr 1fr;
  }

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

  .group-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .group-title {
    font-size: 26px;
  }

  .search-box {
    flex-direction: column;
    align-items: stretch;
  }

  .clear-btn {
    width: 100%;
  }

  .app-card {
    min-height: auto;
  }
}

