/* ==========================================================================
   J&D Services — Site Styles
   --------------------------------------------------------------------------
   Purpose: Clean, readable, and easy-to-edit CSS for the whole site.
   Structure:
     01. Design Tokens (colors, spacing, radii, shadows)
     02. Base / Reset
     03. Layout & Utilities
     04. Components
         4.1 Navbar
         4.2 Buttons
         4.3 Hero
         4.4 Cards
         4.5 Footer
         4.6 Forms
         4.7 Modals
         4.8 Profile (Members)
         4.9 Banner
     05. Responsive (breakpoints at 900px and 640px)
   ========================================================================== */

/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Core palette */
  --bg: #0b1623;
  --surface: #0f1a28;
  --card: #111d2b;
  --text: #edf2f7;
  --muted: #6b7b8e;

  /* Brand accents */
  --primary: #0a008e;
  --primary-600: #080074;
  --ring: rgba(45, 212, 191, .35);

  /* Status */
  --danger: #ef4444;

  /* Layout / shape */
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;

  /* Spacing scale (tweak to taste) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;

  /* Elevation */
  --shadow-1: 0 6px 14px rgba(0,0,0,.24);
  --shadow-2: 0 10px 24px rgba(0,0,0,.25);
  --border-subtle: 1px solid rgba(255,255,255,.08);
  --border-ui: 1px solid rgba(255,255,255,.14);
}

/* ==========================================================================
   02. BASE / RESET
   ========================================================================== */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 10%, #122334 0%, #0b1623 40%, #09121c 100%) fixed;
}

/* Headings & text tweaks */
h1, h2, h3, h4 { margin: 0 0 var(--space-3); line-height: 1.15; }
p { margin: 0 0 var(--space-4); color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Accessibility focus */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Helpers */
.hidden { display: none !important; }

/* ==========================================================================
   03. LAYOUT & UTILITIES
   ========================================================================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-5); }

.grid { display: grid; gap: var(--space-5); }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Spacers (optional utility classes) */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }

/* ==========================================================================
   04. COMPONENTS
   ========================================================================== */

/* 4.1 NAVBAR -------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(12, 21, 33, .7);
  border-bottom: var(--border-subtle);
}
.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
  font-weight: 700;
  letter-spacing: .3px;
}
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  box-shadow: 0 0 0 6px rgba(45,212,191,.1);
  color: #001219; font-weight: 900;
}

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav ul.links { display: flex; gap: 14px; align-items: center; }
.nav a { padding: 8px 10px; border-radius: 10px; display: inline-block; }
.nav a:hover { background: rgba(255,255,255,.06); }

.spacer { flex: 1; }

/* Hamburger button (mobile) */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: var(--border-ui);
  background: transparent;
  padding: 0;
}
.hamburger {
  position: relative;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute; left: 0;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger::before { transform: translateY(-6px); }
.hamburger::after  { transform: translateY( 6px); }

/* Turn into "X" when open */
.hamburger-btn.is-open .hamburger { background: transparent; }
.hamburger-btn.is-open .hamburger::before { transform: translateY(0) rotate(45deg); }
.hamburger-btn.is-open .hamburger::after  { transform: translateY(0) rotate(-45deg); }

/* Mobile nav panel */
@media (max-width: 900px) {
  .hamburger-btn { display: inline-flex; }
  .nav ul.links {
    position: absolute;
    left: 0; right: 0; top: 64px;
    background: rgba(10,20,32,.98);
    flex-direction: column;
    padding: var(--space-3) var(--space-4);
    border-bottom: var(--border-subtle);
    display: none;
  }
  .nav ul.links.open { display: flex; }
}

/* 4.2 BUTTONS ------------------------------------------------------------- */
.btn {
  border: 0;
  background: var(--card);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: transform .04s ease, background .2s;
}
.btn:hover { transform: translateY(-1px); background: #17283a; }
.btn.primary { background: var(--primary); color: #ffffff; }
.btn.primary:hover { background: var(--primary-600); }
.btn.ghost { background: transparent; border: var(--border-ui); }

/* 4.3 HERO --------------------------------------------------------------- */
.hero { padding: 72px 0 40px; }
.hero .title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
  margin: 0 0 var(--space-3);
}
.hero .subtitle {
  color: var(--muted);
  margin: 0 0 var(--space-4);
  max-width: 60ch;
}
.hero .cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* 4.4 CARDS -------------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-2);
}
.card h3 { margin: var(--space-2) 0 var(--space-1); font-size: 18px; }
.card p  { margin: 0; color: var(--muted); font-size: 14px; }
.card a  { margin-top: var(--space-3); }

/* 4.5 FOOTER ------------------------------------------------------------- */
.footer { padding: var(--space-8) 0; color: var(--muted); }

/* 4.6 FORMS -------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
label { font-size: 14px; color: #cbd5e1; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="file"] {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  background: var(--surface);
  color: var(--text);
  outline: 0;
}
input::placeholder { color: #789; }

/* selects & textarea styling */
select, textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  background: var(--surface);
  color: var(--text);
  outline: 0;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9fb4c7 50%), linear-gradient(135deg, #9fb4c7 50%, transparent 50%); background-position: calc(100% - 16px) calc(1em + 2px), calc(100% - 11px) calc(1em + 2px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.form-row { display: grid; gap: var(--space-3); grid-template-columns: 1fr 1fr; }

/* 4.7 MODALS ------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: var(--space-5);
  background: rgba(0,0,0,.52);
}
.modal.open { display: grid; }

.dialog {
  width: min(560px, 92vw);
  background: rgba(12,21,33,.98);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-1);
}
.dialog header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-3);
}
.dialog h2 { margin: 0; }
.close {
  background: transparent; border: 0; color: var(--muted);
  font-size: 22px; cursor: pointer;
}
.error { color: var(--danger); font-size: 13px; display: none; margin-top: var(--space-2); }

/* 4.8 PROFILE (MEMBERS) -------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-4);
  align-items: center;
}
.profile .avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.12);
  background: var(--surface);
  display: grid; place-items: center;
  font-weight: 700; color: #7aa2b8;
}
.badge {
  font-size: 12px; color: #9fb4c7;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}

/* 4.9 BANNER ------------------------------------------------------------- */
/* Hero banner blend effects */
:root{
  --banner-blend-color: rgba(45,212,191,.25); /* soft brand tint */
  --banner-shadow: rgba(0,0,0,.35);           /* vignette intensity */
}

/* Keep image crisp and positioned */
.hero-banner{
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* Extra overlay for smoother blend into page background */
.hero-banner::after{
  content:"";
  position:absolute; inset:-1px;
  z-index:0;
  pointer-events:none;
  /* stack of gentle overlays:
     1) radial vignette to darken edges
     2) vertical fade to tie into page
     3) soft brand tint to harmonize hues
  */
  background:
    radial-gradient(1200px 600px at 10% 0%, var(--banner-shadow) 0%, transparent 60%),
    linear-gradient(180deg, rgba(9,18,28,0) 0%, rgba(9,18,28,.20) 45%, rgba(9,18,28,.50) 100%),
    linear-gradient(90deg, var(--banner-blend-color), transparent 60%);
  mix-blend-mode: soft-light;
}

/* Ensure gradient underlays are below content */
.banner::before{ z-index:0; }
.banner .banner-content{ z-index:1; position: relative; }

/* Optional subtle parallax on larger screens (disabled on mobile for perf) */
@media (min-width: 900px){
  .hero-banner{ background-attachment: fixed; }
}

.banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface) center/cover no-repeat;
  aspect-ratio: 16/6;
  min-height: 220px;
  border: var(--border-subtle);
  box-shadow: var(--shadow-2);
  margin: var(--space-2) 0 var(--space-7);
}
.banner::before {
  z-index: 0;
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.0) 10%, rgba(8,15,25,.45) 55%, rgba(8,15,25,.72) 100%);
}
.banner .banner-content {
  z-index: 1;
  position: absolute; left: 18px; right: 18px; bottom: 16px;
}
.banner .banner-content h2 { margin: 0 0 6px; font-size: clamp(18px, 3.2vw, 28px); }
.banner .banner-content p  { margin: 0; color: #b7c7d9; }

/* ==========================================================================
   05. RESPONSIVE
   ========================================================================== */

/* <= 900px: mobile/tablet layout adjustments */
@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr; }  /* stack form fields */
}

/* <= 640px: tighter spacing and text */
@media (max-width: 640px) {
  .container { padding: 0 var(--space-4); }
  .hero { padding: 56px 0 28px; }
  .banner { aspect-ratio: 16/8; min-height: 180px; }
}


/* 4.10 ENHANCED FOOTER --------------------------------------------------- */
.site-footer {
  margin-top: var(--space-8);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
  border-top: var(--border-subtle);
}
.site-footer .container { padding-top: var(--space-7); padding-bottom: var(--space-7); }
.site-footer .top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 900px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-footer .top { grid-template-columns: 1fr; }
}

.site-footer .brand {
  display: grid; gap: var(--space-3);

  justify-items: center;
  text-align: center;
}
.site-footer .brand .badge {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #001219; font-weight: 900;
  box-shadow: 0 0 0 6px rgba(45,212,191,.1);
}
.site-footer .brand p { color: #b3c0cf; }

.site-footer h4 {
  margin: 0 0 var(--space-3);
  font-size: 14px; letter-spacing: .3px;
  color: #cfe0f1;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c3d1e0; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); }

.social { display: flex; gap: 10px; margin-top: var(--space-3); 
  justify-content: center;
}
.social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  border: var(--border-ui);
  background: rgba(255,255,255,.03);
}
.social a:hover { background: rgba(255,255,255,.06); }

.legal {
  border-top: var(--border-subtle);
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  color: var(--muted);
  font-size: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  flex-wrap: wrap;
}


/* Brand image overrides */
.brand .logo-img {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 8px; /* soft rounding to match UI */
}
.site-footer .brand-logo-img {
  height: 110px;
  width: auto;
  display: block;
  border-radius: 10px;
}


/* Responsive logo sizing */
@media (max-width: 640px) {
  .brand .logo-img { height: 44px; }
  .site-footer .brand-logo-img { height: 80px; }
}


/* Hero banner variant: center content within the banner */
.hero-banner { aspect-ratio: 16/5; min-height: 300px; }
.hero-banner .banner-content{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 0 var(--space-5);
  text-align: left;
  z-index: 1;
}
.hero-banner .title{ font-size: clamp(28px, 6vw, 52px); margin-bottom: 10px; text-align:left; }
.hero-banner .subtitle{ max-width: 70ch; margin: 0 0 16px; text-align:left; 
  font-size: 14px;}
.hero-banner .cta{ justify-content: flex-start; }
@media (max-width: 640px){
  .hero-banner{ aspect-ratio: 16/9; min-height: 240px; }
}

/* Hero banner card overlay */
.hero-card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-2);
  max-width: 760px;
}
@media (max-width: 640px){
  .hero-card{ padding: var(--space-5); max-width: none; }
}

.success { color: #22c55e; font-size: 14px; margin-top: 6px; }

/* Autofill neutralizer */
input:-webkit-autofill,
select:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  transition: background-color 10000s ease-in-out 0s;
}


/* Align card buttons across a row */
.grid.cards { align-items: stretch; }
.grid.cards .card { display: flex; flex-direction: column; }
.grid.cards .card .btn { margin-top: auto; }


/* Hero CTA anchored bottom-right on the banner */
.hero-banner .cta{
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  gap: var(--space-3);
}
@media (max-width: 640px){
  .hero-banner .cta{ right: 12px; bottom: 12px; }
}

.form-hint{ color:#9fb4c7; font-size:13px; }


/* ---- Form validation states ---- */
.field.invalid input,
.field.invalid select,
.field.invalid textarea{
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.error-text{
  color: var(--danger);
  font-size: 13px;
  margin-top: 6px;
}


/* VIDEO HERO (Gaming) */
.video-hero{ position: relative; height: 420px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-6); }
.video-hero .vh-video{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.video-hero .vh-overlay{
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(0,0,0,.45) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.0) 30%, rgba(0,0,0,.55) 100%);
}
.video-hero .vh-content{
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: var(--space-6);
}
@media (max-width: 640px){
  .video-hero{ height: 320px; border-radius: var(--radius-md); }
  .video-hero .vh-content{ padding-bottom: var(--space-5); }
}


/* Video hero text contrast */
.video-hero .vh-content .title{ color:#ffffff; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.video-hero .vh-content .subtitle{ color:#ffffff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }


/* STREAMERS CORNER (Gaming) */
.streamers .twitch-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-5);
}
.twitch-player-wrap, .twitch-chat-wrap{
  background: var(--surface);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.twitch-player-wrap{ aspect-ratio: 16/9; }
.twitch-player, .twitch-chat{ width: 100%; height: 100%; border: 0; display:block; }
.twitch-chat-wrap{ min-height: 360px; }

@media (max-width: 900px){
  .streamers .twitch-grid{ grid-template-columns: 1fr; }
  .twitch-chat-wrap{ min-height: 300px; }
}


/* Streamers playlists links */
.playlist-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: var(--space-3);
}
@media (max-width: 640px){
  .playlist-grid{ grid-template-columns: 1fr; }
}


/* Spacing: gap between navbar and hero/banner across pages */
:root{ --nav-hero-gap: var(--space-6); } /* tweakable */
.nav + .container .hero,
.nav + .container .banner.hero-banner,
.nav + .container .video-hero{
  margin-top: var(--nav-hero-gap);
}


/* Members: tabs & profile preview */
.tabs .tab-nav{ display:flex; gap:8px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs .tab-btn{
  padding: 8px 12px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.06); border: var(--border-subtle);
  cursor: pointer; font-weight: 600;
}
.tabs .tab-btn.active{ background: var(--primary); color: var(--bg); border-color: transparent; }
.tabs .tab-panels .tab-panel{ display:none; }
.tabs .tab-panels .tab-panel.active{ display:block; }

.grid.two{ display:grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-5, 20px); }
@media (max-width: 900px){ .grid.two{ grid-template-columns: 1fr; } }

.profile-preview .pp-header{ display:flex; gap:12px; align-items:center; border-bottom: var(--border-subtle); padding-bottom: 10px; margin-bottom: 10px; }
.pp-avatar{
  width: 72px; height:72px; object-fit: cover; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
}
.profile-preview .pp-body .pp-meta{ display:flex; flex-wrap: wrap; gap:8px; margin-top: 8px; }
.badge{ display:inline-block; padding:4px 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: var(--border-subtle); font-size: 12px; color: #cfe1f1; }
.muted{ color:#9fb4c7; font-size: 14px; }


/* Request: make the "Gaming Profile" tab text white */
.tabs .tab-btn[data-tab="profile"]{ color:#ffffff; }
.tabs .tab-btn.active[data-tab="profile"]{ color:#ffffff; }

/* Request: make "Forgot password?" link red for visibility */
.modal .open-forgot{ color: var(--danger) !important; }


/* Request: make the "Downloads" tab text white */
.tabs .tab-btn[data-tab="downloads"]{ color:#ffffff; }
.tabs .tab-btn.active[data-tab="downloads"]{ color:#ffffff; }


/* Improve visibility of the "New here? Sign up" link in the login modal */
.modal .form-hint a.open-signup{
  color: #ffffff !important;         /* strong contrast on dark bg */
  text-decoration: underline;
  font-weight: 600;
}
.modal .form-hint a.open-signup:hover,
.modal .form-hint a.open-signup:focus{
  text-decoration: none;
}


/* Request: make the "New here? Sign up" link green */
.modal .form-hint a.open-signup{
  color: #22c55e !important;  /* accessible green */
  text-decoration: underline;
  font-weight: 600;
}
.modal .form-hint a.open-signup:hover,
.modal .form-hint a.open-signup:focus{
  text-decoration: none;
}


/* Strong override for "New here? Sign up" link (covers visited + inline) */
#login-modal .form-hint a.open-signup,
#login-modal .form-hint a.open-signup:link,
#login-modal .form-hint a.open-signup:visited {
  color: #22c55e !important;   /* accessible green */
  text-decoration: underline;
  font-weight: 700;
}
#login-modal .form-hint a.open-signup:hover,
#login-modal .form-hint a.open-signup:focus{
  text-decoration: none;
}


/* Final enforce: "New here? Sign Up" link green in all states */
#login-modal .form-hint a.open-signup,
#login-modal .form-hint a.open-signup:link,
#login-modal .form-hint a.open-signup:visited,
#login-modal .form-hint a.open-signup:hover,
#login-modal .form-hint a.open-signup:active,
#login-modal .form-hint a.open-signup:focus{
  color: #22c55e !important;
}

/* Members Chat */
.chat-card{ display:flex; flex-direction:column; gap:12px; }
.chat-header{ display:flex; align-items:center; justify-content:space-between; }
.chat-title{ font-weight:700; }
.chat-status{ font-size:12px; color:#9fb4c7; }
.chat-messages{ height: 320px; overflow:auto; border: var(--border-subtle); border-radius: var(--radius-sm); padding: 10px; background: rgba(255,255,255,.04); }
.chat-row{ display:flex; margin: 6px 0; gap:8px; }
.chat-row.me{ justify-content:flex-end; }
.chat-bubble{ max-width: 70%; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.08); border: var(--border-subtle); box-shadow: var(--shadow-1); word-wrap: break-word; white-space: pre-wrap; }
.chat-row.me .chat-bubble{ background: var(--primary); color:#fff; border-color: transparent; }
.chat-meta{ font-size: 11px; color:#9fb4c7; margin-top:4px; }
.chat-input{ display:flex; gap:8px; align-items:center; }
.chat-input input{ flex:1; }
.emoji-panel{ display:grid; grid-template-columns: repeat(10, 1fr); gap:6px; padding:8px; border: var(--border-subtle); border-radius: var(--radius-sm); background: rgba(255,255,255,.04); max-height: 180px; overflow:auto; }
.emoji-panel button{ background: transparent; border: 0; font-size: 20px; cursor: pointer; }


/* Ensure Chat tab text is white in all states */
.tabs .tab-btn[data-tab="chat"],
.tabs .tab-btn[data-tab="chat"]:hover,
.tabs .tab-btn[data-tab="chat"]:focus,
.tabs .tab-btn[data-tab="chat"].active {
  color: #fff !important;
}
