/* ====== LIGHT MODE ====== */
:root {
  --primary: #db2777;
  --primary-dark: #be185d;
  --primary-light: #fce7f3;
  --secondary: #7c3aed;
  --gradient: linear-gradient(135deg, #db2777, #7c3aed);
  --gradient-soft: linear-gradient(135deg, #fce7f3, #ede9fe);

  --bg: #fdf4f9;
  --bg2: #f9f0f6;
  --card-bg: #ffffff;
  --card-bg2: #fdf4f9;
  --text: #1e1025;
  --text-light: #7c6080;
  --border: #e8d0e0;
  --border-strong: #d4a8c0;

  --danger: #e11d48;
  --success: #059669;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(219,39,119,0.08);
  --shadow-md: 0 8px 32px rgba(219,39,119,0.14);
  --nav-bg: #1a0a2e;
  --nav-text: rgba(255,255,255,0.7);
}

/* ====== DARK MODE (デフォルト) ====== */
[data-theme="dark"] {
  --bg: #0d0818;
  --bg2: #130d20;
  --card-bg: #1a1028;
  --card-bg2: #211535;
  --text: #f0e8f8;
  --text-light: #9980b0;
  --border: #2e1f45;
  --border-strong: #4a2d6a;
  --primary-light: #2d1040;
  --gradient-soft: linear-gradient(135deg, #2d1040, #1a1060);
  --shadow: 0 2px 16px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.6);
  --nav-bg: #0a0515;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ====== NAV ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(219,39,119,0.15);
  height: 56px;
  display: flex; align-items: center; padding: 0 20px;
  gap: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-logo {
  font-size: 20px; font-weight: 800;
  background: linear-gradient(90deg, #f9a8d4, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px; flex-shrink: 0;
}
.nav-links { display: flex; gap: 2px; align-items: center; flex: 1; overflow: hidden; }
.nav-links a {
  padding: 6px 12px; border-radius: 20px; color: var(--nav-text);
  font-weight: 500; font-size: 13px; white-space: nowrap;
  transition: all 0.2s;
}
.nav-links a:hover { background: rgba(219,39,119,0.15); color: #fff; text-decoration: none; }
.nav-links a.active { background: rgba(219,39,119,0.2); color: #f9a8d4; }
.nav-user { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.08); color: #fff; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(219,39,119,0.25); }


/* ====== LAYOUT ====== */
.container { max-width: 1100px; margin: 0 auto; padding: 76px 16px 40px; }
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.three-col { display: grid; grid-template-columns: 240px 1fr 280px; gap: 20px; }

@media (max-width: 900px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
  .sidebar-right, .sidebar-left { display: none; }
}

/* ====== CARD ====== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 16px;
  transition: background 0.3s, border-color 0.3s;
}
.card h2, .card h3 { color: var(--text); }

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 18px; border-radius: 24px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: var(--gradient);
  color: #fff; box-shadow: 0 2px 12px rgba(219,39,119,0.35);
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(219,39,119,0.5);
  transform: translateY(-1px); filter: brightness(1.08);
  text-decoration: none; color: #fff;
}
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn-gray { background: var(--card-bg2); color: var(--text-light); border: 1px solid var(--border); }
.btn-gray:hover { border-color: var(--primary); color: var(--primary); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; filter: none !important; }

/* ====== FORMS ====== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: var(--text-light); }
.form-control {
  width: 100%; padding: 10px 14px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(219,39,119,0.12);
}
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }

/* チェックボックスグループ */
.check-group { display: flex; flex-wrap: wrap; gap: 8px; }
.check-item {
  display: flex; align-items: center; gap: 6px;
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 5px 12px; cursor: pointer;
  font-size: 13px; transition: all 0.2s; user-select: none; color: var(--text);
}
.check-item input { display: none; }
.check-item.checked {
  background: var(--primary-light); color: var(--primary);
  border-color: var(--primary);
}

/* ====== ALERT ====== */
.alert {
  padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13px;
}
.alert-error { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.alert-success { background: #f0fdf4; color: #059669; border: 1px solid #a7f3d0; }
[data-theme="dark"] .alert-error { background: #2d0a14; color: #fb7185; border-color: #7f1d1d; }
[data-theme="dark"] .alert-success { background: #052e16; color: #4ade80; border-color: #14532d; }

/* ====== AVATAR ====== */
.avatar {
  border-radius: 50%; object-fit: cover; background: var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #888; flex-shrink: 0;
}
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.avatar-md { width: 56px; height: 56px; font-size: 20px; }
.avatar-lg {
  width: 110px; height: 110px; font-size: 40px;
  box-shadow: 0 4px 24px rgba(219,39,119,0.25);
  border: 3px solid var(--card-bg);
  outline: 2px solid var(--border-strong);
}

/* ====== MODAL ====== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,5,20,0.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal, .modal-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  max-width: 540px; width: 100%; max-height: 90vh;
  overflow-y: auto; padding: 24px; position: relative;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 18px; font-weight: 700; color: var(--text); }
.modal-close {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: var(--text-light); transition: color 0.2s;
  position: absolute; top: 16px; right: 16px; line-height: 1;
}
.modal-close:hover { color: var(--primary); }

/* ====== TAGS ====== */
.tag {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 600;
}

/* ====== PROFILE ====== */
.profile-hero {
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  margin: -24px -24px 0;
  height: 220px;
  background: var(--gradient);
  cursor: pointer;
}
.profile-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.45));
}
.profile-cover-edit {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.55); color: #fff;
  border: none; border-radius: 20px; padding: 5px 12px;
  font-size: 12px; cursor: pointer; backdrop-filter: blur(4px);
  display: flex; align-items: center; gap: 4px;
  transition: background 0.2s;
}
.profile-cover-edit:hover { background: rgba(0,0,0,0.75); }
.profile-avatar-wrap {
  position: relative; display: inline-block; flex-shrink: 0;
  margin-top: -70px;
}
.profile-avatar-wrap .avatar-lg {
  width: 140px; height: 140px; font-size: 48px;
  box-shadow: 0 6px 30px rgba(219,39,119,0.35);
  border: 4px solid var(--card-bg);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.profile-avatar-wrap .avatar-lg:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 36px rgba(219,39,119,0.5);
}
.profile-avatar-edit {
  position: absolute; bottom: 4px; right: 4px;
  background: var(--primary); color: #fff;
  border: 2px solid var(--card-bg);
  border-radius: 50%; width: 28px; height: 28px;
  font-size: 13px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.profile-avatar-edit:hover { transform: scale(1.1); }
.profile-header {
  display: flex; gap: 16px; align-items: flex-start;
  flex-wrap: wrap; padding: 12px 0 16px;
}
.profile-photos-col {
  display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0;
}
.sub-photos {
  display: flex; flex-wrap: wrap; gap: 5px; width: 120px; justify-content: center;
}
.sub-photo-item {
  width: 56px; height: 56px; border-radius: 8px; overflow: hidden;
  position: relative; cursor: pointer; flex-shrink: 0; border: 2px solid transparent;
}
.sub-photo-item.is-main { border-color: var(--primary); }
.sub-photo-item img { width: 100%; height: 100%; object-fit: cover; }
.sub-photo-del {
  position: absolute; top: 2px; right: 2px;
  background: rgba(220,38,38,0.9); color: #fff;
  border: none; border-radius: 50%; width: 18px; height: 18px;
  font-size: 12px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.sub-photo-set-main {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(219,39,119,0.88); color: #fff;
  border: none; font-size: 9px; padding: 3px 0; cursor: pointer;
  text-align: center; font-weight: 600; letter-spacing: 0.3px;
}
.sub-photo-item.is-main::after {
  content: '★';
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(219,39,119,0.88); color: #fff;
  font-size: 10px; text-align: center; padding: 2px 0;
}
.profile-info { flex: 1; min-width: 200px; }
.profile-name { font-size: 22px; font-weight: 800; margin-bottom: 2px; }
.profile-bio { font-size: 13px; color: var(--text-light); margin-bottom: 8px; line-height: 1.5; }
.profile-meta { color: var(--text-light); font-size: 13px; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.profile-meta span { display: inline-flex; align-items: center; gap: 3px; }
.profile-stats { display: flex; gap: 20px; margin-bottom: 14px; }
.stat { text-align: center; cursor: pointer; }
.stat-num { font-size: 18px; font-weight: 700; display: block; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-light); }

.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-field {
  background: var(--card-bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
}
.profile-field label { font-size: 11px; color: var(--text-light); font-weight: 600; display: block; margin-bottom: 2px; }
.profile-field p { font-size: 13px; word-break: break-word; color: var(--text); }

/* プロフィール写真グリッド */
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px;
}
.photo-grid-item {
  aspect-ratio: 1; overflow: hidden; border-radius: 8px; position: relative;
  cursor: pointer; background: var(--border);
}
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid-item .del-btn {
  position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.6);
  color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px;
  cursor: pointer; font-size: 12px; display: none;
}
.photo-grid-item:hover .del-btn { display: flex; align-items: center; justify-content: center; }
.photo-grid-item .set-main-btn {
  position: absolute; bottom: 4px; left: 4px; right: 4px; background: rgba(0,0,0,0.65);
  color: #fff; border: none; border-radius: 4px; padding: 3px 6px;
  cursor: pointer; font-size: 11px; font-weight: 600; display: none;
}
.photo-grid-item:hover .set-main-btn { display: block; }
.photo-grid-item .main-badge {
  position: absolute; bottom: 4px; left: 4px; background: var(--primary);
  color: #fff; border-radius: 4px; padding: 2px 6px; font-size: 11px; font-weight: 700;
}

/* インスタ風フィードグリッド */
.feed-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
}
@media (max-width: 640px) {
  .feed-grid { grid-template-columns: repeat(3, 1fr); }
}
.feed-item {
  aspect-ratio: 1; overflow: hidden; position: relative; cursor: pointer; background: var(--border);
  border-radius: 4px;
}
.feed-item img, .feed-item video { width: 100%; height: 100%; object-fit: cover; }
.feed-item-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  gap: 16px; color: #fff; font-size: 13px; font-weight: 700;
  opacity: 0; transition: opacity 0.2s;
}
.feed-item:hover .feed-item-overlay { opacity: 1; }
.feed-item-text {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; padding: 10px;
}
.feed-text-body {
  font-size: 12px; color: var(--primary); font-weight: 600; text-align: center;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; word-break: break-word; line-height: 1.5;
}
.video-badge {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,0.5); color: #fff; border-radius: 4px;
  padding: 2px 5px; font-size: 11px;
}

/* ====== BOARD ====== */
.board-post-card { border-left: 3px solid var(--primary); }
.board-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-group label { font-size: 12px; font-weight: 700; color: var(--text-light); display: block; margin-bottom: 4px; }

/* ====== USER CARD ====== */
.user-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px; transition: all 0.2s;
}
.user-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(219,39,119,0.12);
  transform: translateX(2px);
}
.user-card-info { flex: 1; }
.user-card-name { font-weight: 700; font-size: 14px; }
.user-card-meta { font-size: 12px; color: var(--text-light); }

/* ====== FOOTPRINT ====== */
.footprint-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.footprint-time { font-size: 11px; color: var(--text-light); margin-left: auto; white-space: nowrap; }

/* ====== TABS ====== */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  background: none; border: none; padding: 10px 20px; font-size: 14px;
  font-weight: 600; color: var(--text-light); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ====== LOAD MORE ====== */
.load-more { text-align: center; padding: 20px; }

/* ====== POST DETAIL ====== */
.post-media { width: 100%; border-radius: 10px; max-height: 500px; object-fit: contain; background: #000; }
.comment-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.comment-body { flex: 1; }
.comment-username { font-weight: 700; font-size: 13px; }
.comment-text { font-size: 14px; }
.comment-time { font-size: 11px; color: var(--text-light); }

/* ====== LIGHTBOX ====== */
#lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  z-index: 300; padding: 20px;
  user-select: none;
}
#lightbox.hidden { display: none; }
#lightbox img, #lightbox video {
  max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 8px;
  transition: opacity 0.15s;
}
#lightbox-close {
  position: absolute; top: 16px; right: 20px; color: #fff;
  font-size: 32px; background: none; border: none; cursor: pointer; z-index: 1;
}
#lightbox-prev, #lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); color: #fff; border: none;
  font-size: 40px; line-height: 1; width: 52px; height: 52px;
  border-radius: 50%; cursor: pointer; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; backdrop-filter: blur(4px);
}
#lightbox-prev { left: 16px; }
#lightbox-next { right: 16px; }
#lightbox-prev:hover, #lightbox-next:hover { background: rgba(255,255,255,0.3); }
#lightbox-prev.hidden, #lightbox-next.hidden { display: none; }
#lightbox-caption {
  position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.7); color: #fff; padding: 6px 16px;
  border-radius: 8px; font-size: 14px; max-width: 80%; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 13px; letter-spacing: 1px;
}

/* ====== HERO ====== */
.hero {
  background: var(--gradient);
  position: relative; overflow: hidden;
  color: #fff; text-align: center; padding: 70px 20px;
  border-radius: var(--radius); margin-bottom: 24px;
  box-shadow: 0 8px 40px rgba(219,39,119,0.3);
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 { font-size: 36px; font-weight: 900; margin-bottom: 12px; color: #fff; }
.hero p { font-size: 16px; margin-bottom: 28px; color: rgba(255,255,255,0.85); }

/* ====== AGE GATE ====== */
#age-gate {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #1a0a2e, #3b0764, #0f172a);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
}
#age-gate.hidden { display: none; }
.age-gate-box {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  padding: 48px; max-width: 420px; width: 100%; text-align: center;
}
.age-gate-title { font-size: 24px; font-weight: 900; margin-bottom: 12px; color: var(--primary); }
.age-gate-note { font-size: 13px; color: var(--text-light); margin-bottom: 28px; line-height: 1.7; }

/* ====== RESPONSIVE ====== */
@media (max-width: 860px) {
  #feed-section > div { grid-template-columns: 1fr !important; }
  #my-profile-card { position: static !important; }
}
@media (max-width: 600px) {
  .feed-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-fields { grid-template-columns: 1fr; }
  .nav-links a:not(.keep) { display: none; }
  .hero h1 { font-size: 22px; }
  .avatar-lg { width: 120px; height: 120px; font-size: 42px; }
  .profile-avatar-wrap { margin-top: -60px; }
}

/* ====== UTILITY ====== */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.flex { display: flex; }
.flex-gap { display: flex; gap: 10px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ====== FOOTER ====== */
.site-footer {
  background: var(--nav-bg); color: rgba(255,255,255,0.5);
  text-align: center; padding: 20px 16px;
  font-size: 12px; margin-top: 40px;
  border-top: 1px solid rgba(219,39,119,0.15);
}
.site-footer a { color: rgba(255,255,255,0.5); margin: 0 10px; }
.site-footer a:hover { color: #f9a8d4; text-decoration: none; }

/* ====== ONLINE DOT ====== */
.online-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; border: 2px solid var(--card-bg);
}
.online-dot.lg { width: 14px; height: 14px; bottom: 3px; right: 3px; }

/* ====== 既読 ====== */
.msg-read { font-size: 10px; color: var(--primary); text-align: right; margin-top: 2px; }

/* ====== 今すぐ会えるバッジ ====== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}
.available-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 20px;
  animation: pulse 2s infinite;
}

/* ====== GRADIENT TEXT ====== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====== CHAT ====== */
.msg-row.me .msg-bubble {
  background: var(--gradient);
}

/* ====== HAMBURGER ====== */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px;
  background: rgba(255,255,255,0.08); border: none;
  border-radius: 8px; cursor: pointer; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
}
