/* ─────────────────────────────────────────────
   PAGE TRANSITIONS — desktop only
   auth.js injects these dynamically and handles mobile detection.
   These rules are kept as a secondary source for pages that load
   style.css but serve as a no-op since auth.js overrides them.
───────────────────────────────────────────── */
@keyframes pm-page-out {
  to { opacity: 0; transform: translateY(-5px) scale(0.995); }
}
@keyframes pm-page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Mobile: disable all page transitions */
@media (max-width: 767px) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
  body { animation: none !important; }
  .pm-exit { animation: none !important; pointer-events: none !important; }
}

/* ─────────────────────────────────────────────
   FONTS
───────────────────────────────────────────── */
@font-face { font-family:'Blauer Nue'; src:url('font/Blauer-Nue-Heavy-iF6626350c62afa.otf') format('opentype'); font-weight:700; }
@font-face { font-family:'Blauer Nue'; src:url('font/Blauer-Nue-Medium-iF6626350c78103.otf') format('opentype'); font-weight:500; }
@font-face { font-family:'Blauer Nue'; src:url('font/Blauer-Nue-Light-iF6626350c6db36.otf') format('opentype'); font-weight:300; }
@font-face { font-family:'Montserrat'; src:url('font/Montserrat-ExtraBold.ttf') format('truetype'); font-weight:800; }
@font-face { font-family:'Montserrat'; src:url('font/Montserrat-Medium.ttf') format('truetype'); font-weight:500; }
@font-face { font-family:'Montserrat'; src:url('font/Montserrat-Regular.ttf') format('truetype'); font-weight:400; }

/* ─────────────────────────────────────────────
   RESET
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html, body { height:100%; }

/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  /* Teal palette — primary brand colors */
  --teal-1:      #082233;   /* deepest teal */
  --teal-2:      #0d3347;   /* dark teal (sidebar, dark cards) */
  --teal-3:      #113a58;   /* mid teal (primary brand) */
  --teal-4:      #1a5878;   /* accent teal */
  --teal-5:      #2272a0;   /* light teal */
  --teal-bg:     rgba(17,58,88,0.08); /* teal tint for hover/bg */

  /* Aliases used across the codebase */
  --navy:        #113a58;   /* = teal-3 */
  --navy-deep:   #0d3347;   /* = teal-2 */
  --navy-mid:    #1a5878;   /* = teal-4 */

  /* Dark teal accent */
  --teal-a:      #0c7a7a;   /* dark teal — secondary accent */
  --teal-a-dark: #096464;   /* hover/pressed state */
  --teal-a-bg:   rgba(12,122,122,0.10); /* tint for hover/bg/chips */

  /* Green accent */
  --green:       #5f9d30;
  --green-dark:  #4d8225;
  --green2:      #7cc63e;
  --green-bg:    rgba(95,157,48,0.12);

  /* Surfaces */
  --bg:          #eef1f5;
  --surface:     #ffffff;
  --surface-2:   #f4f7fa;

  /* Text */
  --text-1:      #0a1f2e;
  --text-2:      #3d5a70;
  --text-3:      #7a9aad;

  /* Borders */
  --border:      #d8e5ee;
  --border-2:    #b8cede;

  /* Teal-tinted shadows */
  --shadow-sm:   0 0 0 1px rgba(13,51,71,0.06), 0 2px 8px rgba(13,51,71,0.06);
  --shadow-md:   0 0 0 1px rgba(13,51,71,0.06), 0 4px 20px rgba(13,51,71,0.1);
  --shadow-lg:   0 0 0 1px rgba(13,51,71,0.06), 0 12px 40px rgba(13,51,71,0.14);

  /* Shape */
  --radius:      16px;
  --radius-sm:   10px;

  /* Motion */
  --t:           0.2s;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --spring:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─────────────────────────────────────────────
   PAGE LAYOUT
───────────────────────────────────────────── */
body {
  display: grid;
  grid-template-columns: 248px 1fr;
  height: 100vh;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-1);
  background: var(--bg);
  overflow: hidden;
}

/* ─────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────── */
.sidebar {
  background: #102834;
  display: flex;
  flex-direction: column;
  padding: 0 10px;
  position: relative;
  overflow: hidden;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.04), 2px 0 24px rgba(8,34,51,0.18);
}

/* Top teal-to-green accent strip */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-a), #4ecece, var(--green), transparent);
}

/* Inner highlight + landscape illustration at bottom of sidebar */
.sidebar::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, #102834 0%, transparent 28%),
    url('img/sidebar-landscape.jpg') bottom center / 100% auto no-repeat;
  pointer-events: none;
}

/* ── Brand ── */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 24px 12px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.brand .icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.brand > span {
  font-family: 'Blauer Nue', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

/* ── Nav label ── */
.nav-label {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  padding: 12px 14px 5px;
  display: block;
  position: relative;
  z-index: 1;
}

/* ── Nav buttons ── */
.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.sidebar button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  background: transparent;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
  text-align: left;
  width: 100%;
  position: relative;
  transition: color 0.22s ease, background 0.22s ease, transform 0.15s cubic-bezier(0.34,1.56,0.64,1);
}

.sidebar button:hover {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.05);
}
.sidebar button:hover .nav-icon {
  stroke: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.11);
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  transform: scale(1.1);
}

.sidebar button:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

/* Active left-bar indicator */
.sidebar button.active::before {
  content: '';
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #4ecece;
  box-shadow: 0 0 10px rgba(78,206,206,0.7);
}

.sidebar button.active {
  background: rgba(78,206,206,0.10);
  color: #fff;
}
.sidebar button.active .nav-icon {
  stroke: #4ecece;
  background: rgba(78,206,206,0.18);
  box-shadow: 0 2px 12px rgba(78,206,206,0.22);
  filter: drop-shadow(0 0 4px rgba(78,206,206,0.5));
}

/* ── SVG nav icons — self-contained tile ── */
.nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  stroke: rgba(255,255,255,0.42);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  /* tile styling */
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  box-sizing: content-box;
  transition: stroke 0.22s ease, background 0.22s ease, box-shadow 0.22s ease,
              transform 0.22s cubic-bezier(0.34,1.56,0.64,1), filter 0.22s ease;
}

/* ── Bottom nav ── */
.nav-bottom {
  padding: 8px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.nav-bottom hr { display: none; }

/* New Trip — compact green pill */
.nav-new-trip {
  background: linear-gradient(135deg, #5faf2e 0%, #4a8a24 100%) !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  box-shadow: 0 2px 8px rgba(74,140,36,0.35) !important;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
}
.nav-new-trip .nav-icon {
  width: 14px !important;
  height: 14px !important;
  padding: 5px !important;
  stroke: #fff !important;
  background: rgba(255,255,255,0.18) !important;
}
.nav-new-trip:hover {
  background: linear-gradient(135deg, #6cc234 0%, #53992a 100%) !important;
  box-shadow: 0 4px 14px rgba(74,140,36,0.48) !important;
  color: #fff !important;
}

/* Sign Out — slim frosted row */
.logout {
  background: rgba(255,255,255,0.14) !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.72rem !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
}
.logout .nav-icon {
  width: 14px !important;
  height: 14px !important;
  padding: 5px !important;
  stroke: rgba(255,255,255,0.80) !important;
  background: transparent !important;
}
.logout:hover {
  background: rgba(255,255,255,0.22) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.40) !important;
}

/* ─────────────────────────────────────────────
   MAIN
───────────────────────────────────────────── */
main {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body > main {
  padding: 28px 28px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

body > main::-webkit-scrollbar { width: 4px; }
body > main::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Blauer Nue', sans-serif; color: var(--text-1); }

h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
h3 { font-size: 0.88rem; font-weight: 700; letter-spacing: 0.01em; margin-bottom: 2px; }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
button.primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--teal-a);
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t) var(--ease),
              transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}

button.primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}

button.primary:hover {
  background: var(--teal-a-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(12,122,122,0.42);
}

button.primary:active { transform: none; box-shadow: none; }

/* ─────────────────────────────────────────────
   INPUTS
───────────────────────────────────────────── */
input {
  width: 100%;
  padding: 11px 15px;
  margin: 14px 0 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--surface);
  color: var(--text-1);
  transition: border-color var(--t), box-shadow var(--t);
}

input::placeholder { color: var(--text-3); }

input:focus {
  border-color: var(--teal-a);
  box-shadow: 0 0 0 3px rgba(12,122,122,0.12);
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

@keyframes bentoIn {
  from { opacity:0; transform:translateY(16px) scale(0.985); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

/* ─────────────────────────────────────────────
   TRIPS / GRID
───────────────────────────────────────────── */
.trips { flex:1; overflow-y:auto; padding-bottom:40px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ─────────────────────────────────────────────
   CARDS
───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  aspect-ratio: 16/9;
  background: #c0cfd8;
  overflow: hidden;
}

.card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s var(--ease);
}

.card:hover .card-img img { transform: scale(1.05); }

.card-body {
  padding: 13px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-body p {
  font-size: 0.7rem;
  color: var(--text-3);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

button.card-button { background: transparent; border: none; }

/* ─────────────────────────────────────────────
   AVATARS
───────────────────────────────────────────── */
.avatars { display: flex; }

.avatars span {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
}

.avatars span:not(:first-child) { margin-left: -7px; }

/* ─────────────────────────────────────────────
   ARROW BTN
───────────────────────────────────────────── */
.arrow {
  width: 28px; height: 28px;
  background: var(--teal-a);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}

.arrow:hover { background: var(--teal-a-dark); transform: scale(1.1); }

/* ─────────────────────────────────────────────
   NEW TRIP PAGE
───────────────────────────────────────────── */
.gridNewTrip { display:grid; grid-template-columns:1.5fr 1fr; height:100vh; font-family:'Montserrat',sans-serif; overflow-y:scroll; background:var(--bg); }
.newTripMenu { padding:36px 6%; display:flex; flex-direction:column; background:var(--surface); border-right:1px solid var(--border); }
.newTripMenu form { display:flex; flex-direction:column; flex:1; }
.mapArea { background:url(img/mapPlaceholder.png); background-size:100% 100%; }
.bottomMargin { margin-bottom:1.8em; }
.dateInput { width:80%; padding:11px 15px; margin-bottom:2em; border:1.5px solid var(--border); border-radius:var(--radius-sm); font-family:'Montserrat',sans-serif; font-size:0.875rem; color:var(--text-1); outline:none; background:var(--surface); transition:border-color var(--t); }
.dateInput:focus { border-color:var(--navy); box-shadow:0 0 0 3px rgba(17,58,88,0.07); }
.sideBySide { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
textarea { width:100%; padding:12px 15px; margin:14px 0 14px; font-family:'Montserrat',sans-serif; font-size:0.875rem; border:1.5px solid var(--border); border-radius:var(--radius-sm); outline:none; resize:none; color:var(--text-1); background:var(--surface); transition:border-color var(--t); height:90px; }
textarea::placeholder { color:var(--text-3); }
textarea:focus { border-color:var(--navy); box-shadow:0 0 0 3px rgba(17,58,88,0.07); }
.cancelSaveButtons { display:flex; justify-content:space-between; gap:12px; margin-top:auto; padding-top:20px; border-top:1px solid var(--border); }
.cancel { background:transparent; color:#c0392b; border:1.5px solid rgba(192,57,43,0.3); border-radius:var(--radius-sm); width:30%; padding:11px; font-family:'Montserrat',sans-serif; font-size:0.78rem; font-weight:700; cursor:pointer; transition:all var(--t) var(--ease); }
.cancel:hover { background:#c0392b; color:#fff; border-color:#c0392b; }
.save { background:var(--teal-a); color:#fff; border:none; border-radius:var(--radius-sm); width:30%; padding:11px; font-family:'Montserrat',sans-serif; font-size:0.78rem; font-weight:700; cursor:pointer; transition:all var(--t) var(--ease); margin-left:auto; }
.save:hover { background:var(--teal-a-dark); transform:translateY(-1px); }

/* ─────────────────────────────────────────────
   TRIP PREVIEW PAGE (split handled inline)
───────────────────────────────────────────── */
.gridTripPreview { display:grid; grid-template-rows:1fr 2fr; height:100vh; font-family:'Montserrat',sans-serif; overflow:hidden; background:var(--bg); }
.gridTripPreview hr { height:1px; border:none; background:var(--border); margin-bottom:.75em; }
.gridTripPreview article { padding:3.5%; align-self:start; overflow-y:scroll; background:var(--surface); }
.gridTripPreview ul { margin-top:1em; list-style:none; }
.gridTripPreview li { display:grid; grid-template-columns:auto 1fr; gap:14px; background:var(--bg); border:1px solid var(--border); border-radius:12px; margin-bottom:10px; padding:14px; transition:all var(--t) var(--ease); }
.gridTripPreview li:hover { border-color:var(--border-2); box-shadow:0 3px 12px rgba(17,58,88,0.06); }
.gridTripPreview li img { border-radius:8px; }
.tripPreviewBanner { background-size:cover; background-position:center; background-repeat:no-repeat; position:relative; }
.tripPreviewBanner::after { content:''; position:absolute; inset:0; background:linear-gradient(to top, rgba(11,25,41,0.75) 0%, transparent 55%); pointer-events:none; }
.tripPreviewHeader { grid-template-columns:9fr 1fr; align-self:start; display:grid; margin-bottom:3em; position:relative; z-index:1; }

/* ─────────────────────────────────────────────
   PROFILE PAGE (.desktop — kept for compat)
───────────────────────────────────────────── */
.desktop { background:var(--bg); width:100%; min-width:1440px; min-height:1024px; position:relative; }
.desktop .rectangle { position:absolute; top:0; left:0; width:1440px; height:243px; background:linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.desktop .profile-top { position:absolute; top:177px; left:416px; width:848px; height:167px; }
.desktop .div { position:absolute; top:0; left:0; width:840px; height:167px; background:var(--surface); border-radius:var(--radius); box-shadow:var(--shadow-md); }
.desktop .text-wrapper { position:absolute; top:64px; left:171px; font-family:'Blauer Nue',sans-serif; font-weight:700; color:var(--text-1); font-size:28px; letter-spacing:-0.02em; }
.desktop .text-wrapper-2 { position:absolute; top:104px; left:171px; font-family:'Montserrat',sans-serif; font-weight:500; color:var(--text-2); font-size:13px; white-space:nowrap; }
.desktop .rectangle-2 { position:absolute; top:20px; left:20px; width:127px; height:127px; background:var(--navy); border-radius:12px; }
.desktop .rectangle-3 { position:absolute; top:101px; left:635px; width:183px; height:46px; background:var(--green); border-radius:var(--radius-sm); }
.desktop .text-wrapper-3 { position:absolute; top:116px; left:662px; font-family:'Montserrat',sans-serif; font-weight:700; color:#fff; font-size:11px; letter-spacing:.1em; text-transform:uppercase; white-space:nowrap; }
.desktop .image { position:absolute; top:20px; left:20px; width:128px; height:128px; object-fit:cover; border-radius:12px; }
.desktop .personal-data,.desktop .subscription,.desktop .privacy,.desktop .security,.desktop .notifications,.desktop .help-center { position:absolute; display:flex; background:var(--surface); border-radius:var(--radius); box-shadow:var(--shadow-sm); border:1px solid var(--border); cursor:pointer; transition:box-shadow var(--t) var(--ease),transform var(--t) var(--ease); }
.desktop .personal-data:hover,.desktop .subscription:hover,.desktop .privacy:hover,.desktop .security:hover,.desktop .notifications:hover,.desktop .help-center:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.desktop .personal-data { top:398px; left:416px; width:378px; height:100px; }
.desktop .subscription { top:527px; left:416px; width:378px; height:100px; }
.desktop .privacy { top:660px; left:416px; width:378px; height:100px; }
.desktop .security { top:396px; left:878px; width:378px; height:100px; }
.desktop .notifications { top:525px; left:878px; width:378px; height:100px; }
.desktop .help-center { top:658px; left:878px; width:378px; height:100px; }
.desktop .group { margin-top:29px; width:216px; height:41px; margin-left:20px; position:relative; }
.desktop .group-2 { width:201px; margin-top:29px; height:41px; margin-left:20px; position:relative; }
.desktop .group-3 { width:145px; margin-top:29px; height:41px; margin-left:20px; position:relative; }
.desktop .group-4 { width:154px; margin-top:29px; height:41px; margin-left:20px; position:relative; }
.desktop .group-5 { width:203px; margin-top:29px; height:41px; margin-left:20px; position:relative; }
.desktop .group-6 { width:193px; margin-top:29px; height:41px; margin-left:20px; position:relative; }
.desktop .text-wrapper-4 { position:absolute; top:0; left:64px; font-family:'Blauer Nue',sans-serif; font-weight:700; color:var(--text-1); font-size:16px; white-space:nowrap; }
.desktop .text-wrapper-5 { position:absolute; top:24px; left:64px; font-family:'Montserrat',sans-serif; font-weight:500; color:var(--text-3); font-size:11px; }
.desktop .rectangle-4 { position:absolute; top:0; left:0; width:41px; height:41px; background:linear-gradient(135deg, var(--teal-a-dark), var(--teal-a)); border-radius:10px; }
.desktop .group-7 { position:absolute; top:833px; left:416px; width:842px; height:85px; }
.desktop .rectangle-5 { position:absolute; top:0; left:0; width:840px; height:85px; background:linear-gradient(135deg,#7a1a1a,#c0392b); border-radius:var(--radius); }
.desktop .text-wrapper-6 { position:absolute; top:calc(50% - 10px); left:calc(50% - 54px); font-family:'Montserrat',sans-serif; font-weight:700; color:#fff; font-size:11px; letter-spacing:.14em; text-transform:uppercase; white-space:nowrap; }

/* ─────────────────────────────────────────────
   NOTIFICATIONS PAGE
───────────────────────────────────────────── */
.desktop .p { position:absolute; top:104px; left:171px; font-family:'Montserrat',sans-serif; font-weight:500; color:var(--text-2); font-size:13px; white-space:nowrap; }
.desktop .notis { position:absolute; top:398px; left:416px; width:840px; height:570px; display:flex; flex-direction:column; background:var(--surface); border-radius:var(--radius); box-shadow:var(--shadow-sm); border:1px solid var(--border); }
.desktop .noti { margin-left:22px; width:800px; height:72px; position:relative; margin-top:12px; }
.desktop .rectangle-4 { position:absolute; top:0; left:0; width:796px; height:72px; background:linear-gradient(135deg, var(--navy-deep), var(--navy-mid)); border-radius:12px; }
.desktop .text-wrapper-4 { position:absolute; top:50%; left:20px; transform:translateY(-50%); font-family:'Montserrat',sans-serif; font-weight:500; color:#fff; font-size:14px; }
.desktop .text-wrapper-5 { position:absolute; top:calc(50% - 6px); left:700px; font-family:'Montserrat',sans-serif; font-weight:500; color:rgba(255,255,255,.45); font-size:11px; }
.desktop .rectangle-5 { position:absolute; top:0; left:0; width:796px; height:72px; background:rgba(0,0,0,.08); border-radius:12px; }
.desktop .div-wrapper { width:112px; margin-top:60px; margin-left:30px; display:flex; }
.desktop .text-wrapper-6 { font-family:'Blauer Nue',sans-serif; font-weight:700; color:var(--text-1); font-size:17px; white-space:nowrap; }
.desktop .text-wrapper-3 { font-family:'Blauer Nue',sans-serif; font-weight:700; color:var(--text-1); font-size:17px; white-space:nowrap; }
.desktop .noti-2 { margin-left:30px; width:800px; height:72px; position:relative; margin-top:10px; }
.desktop .rectangle-6 { position:absolute; top:0; left:0; width:796px; height:72px; background:var(--bg); border-radius:12px; border:1px solid var(--border); }
.desktop .group { width:65px; margin-top:21px; margin-left:30px; display:flex; }

/* ─────────────────────────────────────────────
   DISCOVER PAGE
───────────────────────────────────────────── */
.discoverProfiles { padding:3.5%; }
.scrollingProfiles { display:flex; gap:12px; overflow-x:auto; padding:6px 2px 14px; scrollbar-width:thin; scrollbar-color:var(--border) transparent; }
.scrollingProfiles::-webkit-scrollbar { height:4px; }
.scrollingProfiles::-webkit-scrollbar-thumb { background:var(--border); border-radius:99px; }
.profileSquare { min-width:140px; width:140px; height:140px; flex-shrink:0; display:block; border-radius:12px; overflow:hidden; transition:transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.profileSquare:hover { transform:scale(1.04); box-shadow:0 8px 24px rgba(0,0,0,0.15); }
.profileSquare img { width:100%; height:100%; object-fit:cover; display:block; }

/* ─────────────────────────────────────────────
   BOTTOM NAV (mobile only — hidden by default)
───────────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: var(--teal-2);
  border-top: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 -4px 24px rgba(8,34,51,0.22);
  z-index: 200;
  align-items: stretch;
  justify-content: space-around;
  padding: 0 4px;
}
.bottom-nav .bn-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 6px 4px 8px;
  transition: color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav .bn-btn svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav .bn-btn.active,
.bottom-nav .bn-btn:hover { color: #fff; }
.bottom-nav .bn-btn.active svg { stroke: var(--green); }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width:1100px) { .grid { grid-template-columns:repeat(2,1fr); } }

@media (max-width:768px) {
  body { grid-template-columns:60px 1fr; }
  .brand > span, .sidebar button > span, .nav-label { display:none; }
  .sidebar { padding:0 5px; }
  .sidebar button { justify-content:center; padding:8px 6px; gap:0; }
  .sidebar button .nav-icon { padding: 9px; }
  .brand { justify-content:center; padding:18px 0; }
  body > main { padding:18px 16px 0; }
  h1 { font-size:1.3rem; }
  .grid { grid-template-columns:1fr; gap:12px; }
  .card { display:flex; }
  .card-img { width:90px; aspect-ratio:auto; }
}

@media (max-width:640px) {
  body { grid-template-columns: 1fr; overflow-x: hidden; }
  .sidebar { display: none; }
  .bottom-nav { display: flex; }
  body > main { padding: 16px 14px 80px; overflow-y: auto; height: 100vh; }
  h1 { font-size: 1.2rem; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
}
