/* ============================================================
   Personal dashboard — glass bento home
   ============================================================ */
:root {
  --font-display: "Segoe UI Variable Display", "Manrope", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Segoe UI", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}
body {
  font-family: var(--font-body);
}
h1, h2, h3, .section-title, .hero-title, .login-title, .profile-name, .bento-hero h1 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -.04em !important;
}
.hero { display: none !important; }

.bento-dashboard {
  position: relative;
  width: min(calc(100% - 24px), 1180px);
  margin: 12px auto 0;
  padding: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 17, 13, .2), rgba(3, 15, 12, .82)),
    url("./campus-main.jpg") center 34% / cover no-repeat;
  border: 1px solid rgba(224, 237, 226, .14);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
  isolation: isolate;
}
.bento-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 10%, rgba(74, 196, 155, .18), transparent 22rem),
    radial-gradient(circle at 82% 5%, rgba(215, 184, 120, .12), transparent 20rem);
  pointer-events: none;
}
.bento-grid {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.72fr) minmax(0, .94fr);
  gap: 9px;
}
.bento-card {
  position: relative;
  overflow: hidden;
  background: rgba(4, 24, 18, .56);
  border: 1px solid rgba(224, 237, 226, .16);
  border-radius: 19px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 16px 36px rgba(0,0,0,.18);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
}
.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 36%);
}
.bento-profile {
  display: flex;
  flex-direction: column;
  min-height: 274px;
  padding: 19px 16px 15px;
}
.bento-profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(215, 184, 120, .78);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: .19em;
}
.bento-profile-top i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fe0b5;
  box-shadow: 0 0 0 4px rgba(143, 224, 181, .12);
}
.bento-avatar {
  width: 68px;
  height: 68px;
  margin-top: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #061b15;
  background: linear-gradient(145deg, #f2ecdf, #d7b878);
  border: 2px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(0,0,0,.24);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
}
.bento-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.bento-name {
  margin: 12px 0 0;
  color: #f5edde;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.1;
}
.bento-account {
  margin: 4px 0 0;
  color: rgba(185, 205, 189, .65);
  font-size: 8px;
  letter-spacing: .08em;
}
.bento-bio {
  margin: 13px 0 0;
  color: rgba(212, 225, 212, .7);
  font-size: 8px;
  line-height: 1.8;
}
.bento-profile-links {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 15px;
}
.bento-profile-links a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  color: #f0e7d6;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(224, 237, 226, .15);
  border-radius: 10px;
  font-size: 7.5px;
  font-weight: 600;
  text-decoration: none;
}
.bento-profile-links a:first-child {
  color: #061b15;
  background: linear-gradient(135deg, #f2ecdf, #d7b878);
  border-color: transparent;
}
.bento-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 274px;
  padding: 25px 26px;
  background:
    radial-gradient(circle at 86% 20%, rgba(96, 201, 160, .16), transparent 16rem),
    rgba(4, 24, 18, .48);
}
.bento-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: rgba(215, 184, 120, .76);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.5;
  text-transform: uppercase;
}
.bento-kicker::before {
  content: "";
  width: 15px;
  height: 1px;
  background: #d7b878;
}
.bento-hero h1 {
  margin: 13px 0 0;
  color: #f6efe1;
  font-size: clamp(30px, 5.4vw, 51px);
  line-height: 1.04;
  letter-spacing: -.055em !important;
}
.bento-hero h1 span {
  background: linear-gradient(110deg, #f3ead9 4%, #d7b878 46%, #8fd7b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bento-hero p {
  max-width: 29em;
  margin: 12px 0 0;
  color: rgba(214, 226, 214, .72);
  font-size: 9px;
  line-height: 1.9;
}
.bento-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.bento-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 13px;
  color: #f1e8d8;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(224, 237, 226, .2);
  border-radius: 10px;
  font-size: 8px;
  font-weight: 600;
  text-decoration: none;
}
.bento-actions a:first-child {
  color: #061b15;
  background: linear-gradient(135deg, #f2ecdf, #d7b878);
  border-color: transparent;
}
.bento-side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 9px;
}
.bento-stats {
  padding: 15px 14px;
}
.bento-stats h2,
.bento-tags h2 {
  margin: 0;
  color: rgba(215, 184, 120, .76);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.bento-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(224, 237, 226, .1);
}
.bento-stat-row:last-child { border-bottom: 0; }
.bento-stat-row strong {
  color: #f4ecdc;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}
.bento-stat-row span {
  color: rgba(190, 207, 192, .6);
  font-size: 7px;
  letter-spacing: .06em;
}
.bento-tags {
  padding: 13px 14px;
}
.bento-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.bento-tag-list span {
  padding: 4px 7px;
  color: rgba(221, 232, 218, .72);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(224, 237, 226, .1);
  border-radius: 6px;
  font-size: 6.5px;
}
.bento-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 9px;
}
.bento-feature {
  position: relative;
  display: flex;
  min-height: 132px;
  padding: 17px;
  color: #f2ecdf;
  text-decoration: none;
  background: rgba(4, 24, 18, .52);
  border: 1px solid rgba(224, 237, 226, .15);
  border-radius: 18px;
  overflow: hidden;
}
.bento-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 22, 17, .86), rgba(4, 22, 17, .18)), var(--img) center / cover no-repeat;
  opacity: .86;
  transition: transform .6s ease, opacity .6s ease;
}
.bento-feature:hover::before { transform: scale(1.035); opacity: 1; }
.bento-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  max-width: 70%;
}
.bento-feature-copy small {
  color: rgba(215, 184, 120, .8);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .16em;
}
.bento-feature-copy strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.bento-feature-copy span {
  color: rgba(214, 226, 214, .7);
  font-size: 7.5px;
  line-height: 1.6;
}
.bento-feature-arrow {
  margin-left: auto;
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #061b15;
  background: #f2ecdf;
  border-radius: 50%;
  font-size: 14px;
}
.bento-feature.photo { --img: url("./campus-art.jpg"); }
.bento-feature.game { --img: url("./campus-track.jpg"); }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
  .bento-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bento-hero { min-height: 250px; }
  .bento-profile { min-height: 250px; }
}
@media (max-width: 640px) {
  .bento-dashboard { width: calc(100% - 16px); padding: 7px; border-radius: 22px; }
  .bento-grid { grid-template-columns: 1fr; gap: 7px; }
  .bento-profile { min-height: 0; padding: 15px 14px 13px; }
  .bento-avatar { width: 57px; height: 57px; margin-top: 12px; font-size: 21px; }
  .bento-name { margin-top: 9px; font-size: 25px; }
  .bento-bio { display: none; }
  .bento-profile-links { padding-top: 12px; }
  .bento-hero { min-height: 0; padding: 21px 17px 18px; }
  .bento-hero h1 { margin-top: 10px; font-size: clamp(29px, 9vw, 39px); }
  .bento-hero p { margin-top: 10px; font-size: 8px; line-height: 1.8; }
  .bento-actions { margin-top: 14px; }
  .bento-side { grid-template-columns: 1fr; gap: 7px; }
  .bento-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 12px; }
  .bento-stats h2 { grid-column: 1 / -1; margin-bottom: 7px; }
  .bento-stat-row { display: block; padding: 0 6px; border-bottom: 0; border-right: 1px solid rgba(224,237,226,.1); text-align: center; }
  .bento-stat-row:last-child { border-right: 0; }
  .bento-stat-row strong { display: block; font-size: 17px; }
  .bento-stat-row span { display: block; margin-top: 3px; font-size: 6px; }
  .bento-tags { display: none; }
  .bento-bottom { gap: 7px; }
  .bento-feature { min-height: 112px; padding: 13px; border-radius: 15px; }
  .bento-feature-copy strong { font-size: 14px; }
  .bento-feature-copy span { font-size: 6.5px; }
}
