﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&family=Kanit:wght@700&display=swap');

@font-face { 
    font-family: 'greater'; 
    src: url(fonts/greater.otf) format('opentype'); 
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'greater', sans-serif;
    color: #f4f4f8;
    background: url('images/background.png') center/cover no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 56px;
    width: 56px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.02);
    object-fit: cover;
    display: block;
}

nav a {
    color: #e9ecff;
    margin-right: 28px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #ffffff;
    
    background: rgba(75,75,255,0.15);
    box-shadow: 0 0 3px rgba(75,75,255,0.15);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
    padding: 8px 18px;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(5,5,15,0.45);
}

.hero {
    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 12px;
    margin-top: 20px;
}

.hero h1 {
    font-family: 'greater', sans-serif;
    font-size: 3.5rem;
    text-transform: uppercase;
    font-weight: lighter;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.hero h1 span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #aeb7ff;
    letter-spacing: 2px;
    margin-top: 10px;
}

.hero p {
    font-family: 'Poppins', sans-serif;
    color: #d0d3ff;
    max-width: 600px;
    font-size: 1.2rem;
    margin-top: 20px;
    z-index: 1;
    position: relative;
}

.btn {
    font-family: 'Poppins', sans-serif;
    margin-top: 40px;
    padding: 15px 40px;
    background: linear-gradient(90deg, #3e63dd, #6d6dff);
    color: white;
    text-transform: uppercase;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(62,99,221,0.4);
    z-index: 1;
}

.btn:hover {
    background: linear-gradient(90deg, #6d6dff, #9b8fff);
    box-shadow: 0 0 25px rgba(157,146,255,0.8);
}

.news {
    text-align: left;
    padding: 100px 20px;
}

.news h2 {
    font-family: 'greater', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 60px;
    letter-spacing: 2px;
    margin-left: -20px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(62,99,221,0.6);
}

.news-banner {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.news-banner .news-link {
    display: block;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease;
}

.news-banner .news-link:hover {
    transform: scale(1.02);
}

.news-banner img {
    width: 100%;
    height: 650px;
    margin-bottom: -50px;
    object-fit: cover;
    object-position: center;
}

.news-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.8)); */
    padding: 30px;
    color: #ffffff;
    text-align: left;
}

.news-text h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(62,99,221,0.5);
}

.news-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    --bg: url('soon.png');
    --left: 50%;
    --tx: -50%;
    --bg-pos: center bottom;
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: flex-end;
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
}

.team-card::after {
    content: "";
    position: absolute;
    left: var(--left);
    bottom: -6px;
    transform: translateX(var(--tx)) scale(1);
    width: 150%;
    height: 82%;
    background: var(--bg) var(--bg-pos) / cover no-repeat;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.06);
    transition: transform .32s cubic-bezier(.2,.9,.2,1), filter .22s, box-shadow .22s;
    z-index: 0;
    pointer-events: none;
    filter: saturate(1.4) contrast(1.08) brightness(1.06);
    transform-origin: center bottom;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 40, 0.03) 15%,
    rgba(0, 0, 0, 0.35) 85%
  );
  transition: 0.3s ease;
  z-index: 1;
}


.team-card:hover::before {
  background: linear-gradient(
    180deg,
    rgba(30, 60, 150, 0.05) 20%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.team-card:hover::after {
    transform: translateX(var(--tx)) scale(1.14);
    filter: saturate(1.45) contrast(1.1) brightness(1.07) drop-shadow(0 36px 50px rgba(20,20,60,0.45));
    box-shadow: 0 36px 80px rgba(0,0,0,0.65);
}

.team-overlay {
    position: relative;
    z-index: 2;
    padding: 0px 5px;
    width: 100%;
    text-align: center;
    color: #e8eaff;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
}

.team-overlay h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(62,99,221,0.5);
}

.team-overlay p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.info-btn {
    background: linear-gradient(90deg, #3e63dd, #6d6dff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.info-btn:hover {
    background: linear-gradient(90deg, #6d6dff, #9b8fff);
    box-shadow: 0 0 20px rgba(62,99,221,0.5);
}

.upcoming {
    opacity: 0.6;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.team-grid .team-card:nth-child(1) {
    --bg: url('images/yoru.png');
    --left: 50%;
    --tx: -50%;
    --bg-pos: center bottom;
}

.team-grid .team-card:nth-child(2) {
    --bg: url('images/cod.png');
    --left: 50%;
    --tx: -50%;
    --bg-pos: center top;
}

/* .team-grid .team-card:nth-child(3) {
    --bg: url('jinx.png');
    --left: 50%;
    --tx: -50%;
    --bg-pos: center bottom;
} */

html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .logo img {
        height: 48px;
        width: 48px;
    }

    nav a {
        margin-right: 12px;
        padding: 6px 8px;
        font-size: 0.85rem;
    }

    .team-card {
        width: 260px;
        height: 360px;
    }

    .container {
        padding: 0 18px;
    }

    .team-card::after {
        width: 200%;
        height: 78%;
        left: 50%;
        transform: translateX(-50%) scale(1);
    }

    .team-grid .team-card:nth-child(2) {
        --left: 50%;
        --tx: -50%;
        --bg-pos: center bottom;
    }
}

/* ===== HOMEPAGE TEAMS SUBTITLE ===== */
.home-teams-subtitle {
  color: #6a7098;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  margin-top: 6px;
  margin-bottom: 4px;
}

/* ===== TEAM OVERLAY CTA ===== */
.team-overlay-cta {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9bb0ff;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.team-card:hover .team-overlay-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Teams section badge center */
.teams .about-section-center {
  margin-bottom: 40px;
}
.teams {
  padding: 20px 20px 60px;
}

/* ===== ADMIN ROSTER ROLE LABEL ===== */
.admin-roster-role-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  color: #6a7098;
  min-width: 60px;
}

.footer {
  width: 100%;
  padding: 40px 0 10px;
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #e9ecff;
  font-family: 'Poppins', sans-serif;
}

.footer-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: 30px 40px;
  background: linear-gradient(90deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 -6px 20px rgba(5,5,15,0.45);
}

.footer-column {
  flex: 1 1 220px;
  min-width: 200px;
}

.footer-column h4 {
  font-family: 'Kanit', sans-serif;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(75,75,255,0.4);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    
    background: rgba(75,75,255,0.15);
    box-shadow: 0 0 3px rgba(75,75,255,0.15);
}

.footer-socials a {
  color: #b6b8ff;
  margin-right: 15px;
  font-size: 1.2rem;
  transition: 0.3s ease;
}

.footer-socials a:hover {
  color: #6d6dff;
  
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #aaaee0;
  opacity: 0.8;
}

/* ===== PÃGINAS LEGALES Y SOPORTE ===== */
.legal-page {
  max-width: 820px;
  margin: 60px auto 80px;
  padding: 0 24px;
  color: #c8ccf0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
}

.legal-page h2 {
  font-family: 'Kanit', sans-serif;
  font-size: 2rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(75, 75, 255, 0.4);
}

.legal-page h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 1.15rem;
  color: #aeb7ff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 32px;
  margin-bottom: 10px;
}

.legal-page p {
  margin-bottom: 14px;
  font-size: 0.96rem;
}

.legal-page ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-page ul li {
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.legal-page strong {
  color: #ffffff;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(75, 75, 255, 0.35);
}

.faq-item h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0;
  margin-bottom: 8px;
}

.faq-item p {
  margin-bottom: 0;
  color: #a0a4c8;
}

.btn-back-legal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c8ccf0;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.88rem;
  cursor: pointer;
  margin-bottom: 28px;
  transition: background 0.2s, border-color 0.2s;
  font-family: 'Poppins', sans-serif;
}

.btn-back-legal:hover {
  background: rgba(75, 75, 255, 0.15);
  border-color: rgba(75, 75, 255, 0.4);
  color: #ffffff;
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .footer-column {
    min-width: 100%;
  }

  .footer-socials {
    justify-content: center;
  }
}

/* TEAMS */

/* ===== TEAM PAGE REDISEÃ‘O PRO ===== */

.team-page {
  padding-top: 140px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-page {
  padding: 100px 24px 80px;
  max-width: 960px;
  margin: 0 auto;
}

/* Text gradient utility */
.text-gradient {
  background: linear-gradient(135deg, #3e63dd, #9b8fff, #4cff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About Hero */
.about-hero {
  text-align: center;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.about-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(62,99,221,0.15) 0%, rgba(62,99,221,0.04) 40%, transparent 70%);
  pointer-events: none;
  animation: aboutPulse 6s ease-in-out infinite;
}
@keyframes aboutPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -55%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -55%) scale(1.15); }
}
.about-hero-content {
  position: relative;
  z-index: 1;
}
.about-hero-logo {
  width: 420px;
  max-width: 80vw;
  height: auto;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 40px rgba(62,99,221,0.4));
}
.about-hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 3px;
  margin: 0 0 14px;
  line-height: 1.1;
}
.about-hero-accent {
  background: linear-gradient(135deg, #3e63dd, #9b8fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-hero-subtitle {
  color: #9ba2c2;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 10px;
  text-transform: uppercase;
  margin-bottom: 32px;
  text-shadow: 0 0 20px rgba(62,99,221,0.3);
}
.about-hero-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3e63dd, #9b8fff);
  border-radius: 2px;
  margin: 0 auto;
}

/* About Sections */
.about-section {
  margin-bottom: 72px;
}
.about-section-badge {
  display: inline-block;
  background: rgba(62,99,221,0.08);
  color: #6d6dff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 3.5px;
  padding: 7px 18px;
  border-radius: 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(109,109,255,0.12);
}
.about-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.3;
}
.about-section p {
  color: #9297b5;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 14px;
}
.about-section-center {
  text-align: center;
  margin-bottom: 8px;
}

/* About Intro (split layout) */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid #1e1e2a;
  border-bottom: 1px solid #1e1e2a;
}
.about-intro-left .about-section-badge { margin-bottom: 14px; }
.about-intro-left h2 { margin-bottom: 0; font-size: 1.9rem; }
.about-intro-right p:last-child { margin-bottom: 0; }

/* About Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 56px 0 72px;
}
.about-stat {
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border: 1px solid #222233;
  border-radius: 14px;
  padding: 32px 16px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.about-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3e63dd, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.about-stat:hover {
  border-color: #3e63dd44;
  transform: translateY(-3px);
}
.about-stat:hover::before { opacity: 1; }
.about-stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.about-stat-label {
  color: #6a6a7a;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* About Values */
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.about-value-card {
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border: 1px solid #222233;
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  position: relative;
}
.about-value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity 0.35s;
}
.about-value-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.about-value-card:hover::before { opacity: 1; }
.about-value-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(62,99,221,0.08);
  border: 1px solid rgba(62,99,221,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.about-value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.about-value-card p {
  color: #9297b5;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* About Divisions */
.about-divisions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.about-division-card {
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border: 1px solid #222233;
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.about-division-card:hover {
  border-color: #3e63dd44;
  transform: translateY(-3px);
}
.about-division-stripe {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 3px 0 0 3px;
}
.about-division-header {
  margin-bottom: 12px;
}
.about-division-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6d6dff;
  background: rgba(109,109,255,0.08);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.about-division-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.about-division-card p {
  color: #9297b5;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* About CTA */
.about-cta {
  text-align: center;
  background: linear-gradient(145deg, #141428 0%, #111115 100%);
  border: 1px solid #222233;
  border-radius: 18px;
  padding: 56px 36px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.about-cta-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(62,99,221,0.2), transparent 70%);
  pointer-events: none;
}
.about-cta h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  position: relative;
}
.about-cta p {
  color: #9297b5;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.about-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #3e63dd, #5a7dff);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 14px 36px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.about-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(62,99,221,0.35);
}
.about-cta-btn-secondary {
  background: transparent;
  border: 2px solid rgba(62,99,221,0.5);
}
.about-cta-btn-secondary:hover {
  background: rgba(62,99,221,0.1);
  border-color: #3e63dd;
}

@media (max-width: 768px) {
  .about-hero h1 { font-size: 2.2rem; letter-spacing: 1px; }
  .about-hero-subtitle { letter-spacing: 4px; font-size: 0.8rem; }
  .about-intro { grid-template-columns: 1fr; gap: 24px; }
  .about-intro-left h2 { font-size: 1.5rem; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-values-grid { grid-template-columns: 1fr; }
  .about-divisions { grid-template-columns: 1fr; }
  .about-cta { padding: 40px 24px; }
}

/* ===== TEAM PAGE REDESIGN ===== */

.team-page {
  padding-top: 90px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Team Hero */
.team-section-hero {
  text-align: center;
  padding: 64px 0 52px;
  position: relative;
  overflow: hidden;
}
.team-section-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(62,99,221,0.14) 0%, rgba(62,99,221,0.04) 40%, transparent 70%);
  pointer-events: none;
  animation: aboutPulse 6s ease-in-out infinite;
}
.team-section-hero-content { position: relative; z-index: 1; }
.team-section-hero h1 {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 3px;
  margin: 0 0 14px;
  line-height: 1.1;
}
.team-hero-desc {
  color: #9297b5;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  margin: 0 0 28px;
}

/* Team Stats Row */
.team-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 64px;
}

/* Team Block (content sections) */
.team-block {
  margin-bottom: 72px;
}

/* Roster */
.roster-section { margin-bottom: 32px; }

.roster-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  width: fit-content;
  margin: 20px auto 36px;
}

.roster-tab {
  color: #9297b5;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1px;
  padding: 8px 22px;
  border-radius: 8px;
  transition: all 0.25s;
  border: none;
  background: transparent;
  cursor: pointer;
}

.roster-tab:hover { color: #fff; }
.roster-tab.active {
  color: #fff;
  background: rgba(62,99,221,0.2);
  box-shadow: 0 0 12px rgba(62,99,221,0.15);
}

/* Player Grid */
.roster-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== PLAYER CARD ===== */
/* ===== PLAYER CARD – portrait style ===== */
.player-card {
  position: relative;
  width: 160px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border: 1px solid #222233;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  cursor: default;
}
.player-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(160deg, rgba(62,99,221,0.25), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.player-card:hover {
  border-color: rgba(62,99,221,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(62,99,221,0.2);
}
.player-card:hover::after { opacity: 1; }

/* Portrait image area */
.player-img {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.player-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.player-card:hover .player-img img {
  transform: scale(1.06);
}
/* Gradient fade from image into card body */
.player-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #111115);
  pointer-events: none;
}

/* Card body */
.player-info {
  padding: 12px 14px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.player-info h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.player-info .role {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6d6dff;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(62,99,221,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.player-card-quote {
  font-family: 'Poppins', sans-serif;
  font-size: 0.73rem;
  color: #55566a;
  font-style: italic;
  text-align: center;
  padding: 0 14px 14px;
  line-height: 1.5;
  margin: 0;
}
.player-edit-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  border-radius: 0 0 16px 16px;
  background: rgba(8,8,20,0.92);
  border: none;
  border-top: 1px solid rgba(62,99,221,0.22);
  color: #7080c8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 9px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s, color 0.2s;
  z-index: 10;
}
.player-card:hover .player-edit-btn {
  opacity: 1;
  transform: translateY(0);
}
.player-edit-btn:hover {
  background: rgba(62,99,221,0.65);
  color: #fff;
  border-top-color: rgba(62,99,221,0.5);
}

/* Team performance grid */
.team-performance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.team-chart-card {
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border: 1px solid #222233;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.chart-container {
  background: transparent;
  border-radius: 12px;
  padding: 0;
  flex: 1;
  min-height: 220px;
}
.team-history-card {
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border: 1px solid #222233;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.team-history-card h4 {
  font-family: 'Kanit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6a6a7a;
  margin: 0 0 16px;
  flex-shrink: 0;
}
.match-score {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #c8cee8;
  letter-spacing: 1.5px;
}
.match-history-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3e63dd transparent;
}
.match-history-scroll::-webkit-scrollbar { width: 4px; }
.match-history-scroll::-webkit-scrollbar-track { background: transparent; }
.match-history-scroll::-webkit-scrollbar-thumb { background: #3e63dd55; border-radius: 4px; }

/* Player edit modal */
.player-edit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-edit-modal[hidden] { display: none; }
.player-edit-card {
  background: #14141e;
  border: 1px solid #232340;
  border-radius: 18px;
  padding: 32px 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.player-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.player-edit-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.player-edit-close {
  background: none;
  border: none;
  color: #6a6a7a;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.player-edit-close:hover { color: #fff; }
.player-edit-img-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(62,99,221,0.08);
  border: 1px solid rgba(62,99,221,0.2);
  color: #6d6dff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.player-edit-img-btn:hover { background: rgba(62,99,221,0.14); }

/* Performance info (old compat) */
.performance-info { display: none; }

/* Team page responsive */
@media (max-width: 768px) {
  .team-section-hero h1 { font-size: 2rem; letter-spacing: 1px; }
  .team-stats-row { grid-template-columns: repeat(3, 1fr); }
  .team-performance-grid { grid-template-columns: 1fr; }
  .player-card { width: 140px; }
  .player-img { height: 155px; }
}
@media (max-width: 480px) {
  .team-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ===== TEAM PAGE END ===== */

/* ===== SHOP ===== */

.shop-page {
  padding-top: 120px;
  max-width: 1300px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
  padding-bottom: 80px;
  box-sizing: border-box;
}

/* --- Shop Hero --- */

.shop-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 52px;
  margin-bottom: 48px;
  border-radius: 18px;
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border: 1px solid #222233;
  border-bottom: 1px solid #222233;
}

.shop-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3e63dd, #9b8fff, transparent);
}

.shop-hero-glow {
  position: absolute;
  top: -50%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(62,99,221,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.shop-hero-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.shop-hero-left {
  flex: 1;
}

.shop-hero-left .about-section-badge {
  margin-bottom: 16px;
}

.shop-hero-left h1 {
  font-family: 'Kanit', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
  line-height: 1.1;
}

.shop-hero-left p {
  color: #9297b5;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
  max-width: 480px;
}

.shop-hero-stats {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.shop-hero-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid #222233;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  min-width: 88px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.shop-hero-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3e63dd, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.shop-hero-stat:hover { border-color: rgba(62,99,221,0.35); transform: translateY(-3px); }
.shop-hero-stat:hover::before { opacity: 1; }

.shop-hero-stat-number {
  display: block;
  font-family: 'Kanit', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  line-height: 1;
}

.shop-hero-stat-label {
  color: #4a4a7a;
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Layout --- */

.shop-content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: start;
}

.shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(62,99,221,0.3) transparent;
  padding-right: 4px;
}

.shop-sidebar::-webkit-scrollbar { width: 4px; }
.shop-sidebar::-webkit-scrollbar-track { background: transparent; }
.shop-sidebar::-webkit-scrollbar-thumb { background: rgba(62,99,221,0.3); border-radius: 4px; }

.sidebar-panel {
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border-radius: 14px;
  border: 1px solid #222233;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.sidebar-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
}

.sidebar-panel h3,
.sidebar-panel h4 {
  margin: 0 0 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  color: #3e4470;
  text-transform: uppercase;
  letter-spacing: 2.5px;
}

/* --- Sidebar Nav Links --- */

.shop-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border-left: 2px solid transparent;
  color: #7a80a8;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.83rem;
  transition: all 0.2s ease;
}

.shop-nav-link:hover {
  color: #c0c6e8;
  background: rgba(255,255,255,0.04);
  border-left-color: rgba(62,99,221,0.3);
}

.shop-nav-link.active {
  color: #c0c8f0;
  background: linear-gradient(90deg, rgba(62,99,221,0.14), rgba(62,99,221,0.05));
  border-left-color: #3e63dd;
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #3e4470;
  transition: color 0.2s ease;
}

.shop-nav-link:hover .nav-icon,
.shop-nav-link.active .nav-icon {
  color: #6d6dff;
}

/* --- Sidebar Promo --- */

.sidebar-promo {
  background: linear-gradient(145deg, rgba(76,255,136,0.05), rgba(62,99,221,0.05));
  border-color: rgba(76,255,136,0.15);
}

.promo-tag {
  display: inline-block;
  background: rgba(62,99,221,0.08);
  color: #6d6dff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1px solid rgba(109,109,255,0.12);
  text-transform: uppercase;
}

.sidebar-promo p {
  margin: 0;
  color: #7a80a8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  line-height: 1.65;
}

/* --- Toolbar --- */

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.shop-toolbar-left {
  flex: 1;
  min-width: 200px;
}

.shop-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border: 1px solid #222233;
  border-radius: 12px;
  padding: 10px 16px;
  transition: border-color 0.25s;
  max-width: 340px;
  width: 100%;
}

.search-container:focus-within {
  border-color: rgba(62,99,221,0.45);
}

.search-icon {
  color: #3e4470;
  flex-shrink: 0;
  transition: color 0.2s;
}

.search-container:focus-within .search-icon {
  color: #6d6dff;
}

.search-input {
  background: transparent;
  border: none;
  color: #c0c6e8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  outline: none;
  width: 100%;
  padding: 0;
}

.search-input::placeholder {
  color: #30304a;
}

.shop-sort {
  position: relative;
}

/* ===== CUSTOM SORT DROPDOWN ===== */

.custom-sort {
  position: relative;
}

.custom-sort-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  color: #7a80a8;
  border: 1px solid #222233;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  width: 100%;
  white-space: nowrap;
}

.custom-sort-trigger:hover,
.custom-sort.open .custom-sort-trigger {
  color: #c0c6e8;
  border-color: rgba(62,99,221,0.35);
}

.sort-trigger-icon {
  font-size: 0.7rem;
  color: #6d6dff;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62,99,221,0.1);
  border-radius: 5px;
  flex-shrink: 0;
}

.sort-trigger-label {
  flex: 1;
}

.sort-chevron {
  transition: transform 0.25s ease;
  opacity: 0.4;
  flex-shrink: 0;
  color: #6d6dff;
}

.custom-sort.open .sort-chevron {
  transform: rotate(180deg);
  opacity: 0.9;
}

.custom-sort-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 200px;
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border: 1px solid #222233;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  padding: 5px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
}

.custom-sort.open .custom-sort-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sort-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  color: #7a80a8;
  border: none;
  border-radius: 10px;
  border-left: 2px solid transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.sort-option:hover {
  background: rgba(255,255,255,0.04);
  color: #c0c6e8;
  border-left-color: rgba(62,99,221,0.3);
}

.sort-option.active {
  background: linear-gradient(90deg, rgba(62,99,221,0.14), rgba(62,99,221,0.05));
  color: #fff;
  font-weight: 600;
  border-left-color: #3e63dd;
}

.sort-option-icon {
  font-size: 0.7rem;
  color: #3e4470;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border-radius: 5px;
  flex-shrink: 0;
}

.sort-option.active .sort-option-icon {
  color: #6d6dff;
  background: rgba(62,99,221,0.1);
}

.sort-option-label {
  flex: 1;
}

.sort-option-check {
  opacity: 0;
  color: #6d6dff;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.sort-option.active .sort-option-check {
  opacity: 1;
}

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border: 1px solid #222233;
  color: #7a80a8;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.cart-icon:hover {
  border-color: rgba(62,99,221,0.35);
  color: #c0c6e8;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3e63dd;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid #0f0f18;
}

/* --- Products Grid --- */

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

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.no-results-content h3 {
  margin: 0 0 12px;
  font-family: 'Kanit', sans-serif;
  color: #fff;
  font-size: 1.4rem;
}

.no-results-content p {
  margin: 0 0 24px;
  color: #7a80a8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
}

/* --- Product Cards --- */

.product-card {
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border: 1px solid #222233;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3e63dd, transparent);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 2;
}

.product-card:hover {
  border-color: rgba(62,99,221,0.4);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.product-card:hover::before { opacity: 1; }

.product-image {
  position: relative;
  overflow: hidden;
  height: 260px;
  background: rgba(0,0,0,0.2);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.quick-view,
.add-to-cart {
  width: 100%;
  padding: 11px 20px;
  background: rgba(62,99,221,0.12);
  color: #c0c6e8;
  border: none;
  border-top: 1px solid #222233;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.add-to-cart {
  background: linear-gradient(90deg, #3e63dd, #5b7fe8);
  color: #fff;
  border-top: none;
}

.quick-view:hover {
  background: rgba(62,99,221,0.22);
  color: #fff;
}

.add-to-cart:hover {
  background: linear-gradient(90deg, #4b70e8, #7090ff);
  box-shadow: 0 0 20px rgba(62,99,221,0.4);
}

.product-info {
  padding: 16px 18px 18px;
  border-top: 1px solid #1c1c28;
}

.product-category-tag {
  display: inline-block;
  background: rgba(62,99,221,0.08);
  color: #6d6dff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(109,109,255,0.12);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.product-info h3 {
  margin: 0 0 10px;
  font-family: 'Kanit', sans-serif;
  font-size: 1rem;
  color: #d8ddf5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.product-info-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-info .price {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

/* --- Responsive --- */

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

  .shop-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    max-height: none;
  }

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

  .shop-hero-body {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .shop-hero-left p {
    max-width: none;
  }

  .shop-hero-stats {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-toolbar-right {
    justify-content: space-between;
  }

  .search-container {
    max-width: none;
  }

  .shop-hero-left h1 {
    font-size: 2rem;
  }

  .shop-hero {
    padding: 36px 24px;
  }

  .product-image {
    height: 200px;
  }

  .product-info {
    padding: 14px 16px 16px;
  }

  .product-info h3 {
    font-size: 0.9rem;
  }

  .product-info .price {
    font-size: 1rem;
  }
}

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

  .product-image {
    height: 260px;
  }
}

.product-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  width: min(1200px, calc(100% - 40px));
  max-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 72px 1.1fr 0.9fr;
  gap: 0;
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border: 1px solid #222233;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  overflow: hidden;
  z-index: 1;
  animation: slideUp 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255,76,76,0.2);
  color: #ff6b6b;
  transform: scale(1.1);
}

/* --- Thumbnail column (Pull&Bear style) --- */

.pm-thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 8px 16px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 60px);
  scrollbar-width: thin;
  scrollbar-color: rgba(109,109,255,0.3) transparent;
  justify-content: center;
  align-items: center;
}

.pm-thumbs-col::-webkit-scrollbar { width: 3px; }
.pm-thumbs-col::-webkit-scrollbar-thumb { background: rgba(109,109,255,0.3); border-radius: 10px; }

.pm-thumb {
  width: 56px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.03);
  padding: 0;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.pm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pm-thumb:hover {
  border-color: rgba(109,109,255,0.4);
}

.pm-thumb.active {
  border-color: #3e63dd;
  box-shadow: 0 0 8px rgba(62,99,221,0.3);
}

/* --- Main image --- */

.pm-main-image {
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(100vh - 60px);
}

.pm-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pm-main-image:hover img {
  transform: scale(1.03);
}

/* --- Product details panel --- */

.pm-details {
  padding: 36px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - 60px);
  scrollbar-width: thin;
  scrollbar-color: rgba(109,109,255,0.3) transparent;
}

.pm-details::-webkit-scrollbar { width: 4px; }
.pm-details::-webkit-scrollbar-thumb { background: rgba(109,109,255,0.3); border-radius: 10px; }

.pm-category-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6d6dff;
  margin-bottom: 8px;
  display: block;
}

.pm-name {
  font-family: 'Kanit', sans-serif;
  font-size: 1.8rem;
  margin: 0 0 8px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.pm-price {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
}

.pm-description {
  color: #b0b8e8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0 0 8px;
}

.pm-model-info {
  color: #7a82b8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  margin: 0 0 18px;
}

/* Tags */
.pm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pm-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #c0c6e8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pm-tag:hover {
  background: rgba(75,75,255,0.1);
  border-color: rgba(109,109,255,0.3);
  color: #fff;
}

/* Sections */
.pm-section {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Colors */
.pm-color-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pm-color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.pm-color-dot:hover {
  transform: scale(1.15);
  border-color: rgba(255,255,255,0.4);
}

.pm-color-dot.selected {
  border-color: #6d6dff;
  box-shadow: 0 0 0 3px rgba(109,109,255,0.3);
  transform: scale(1.1);
}

/* Size */
.pm-size-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pm-size-select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #c0c6e8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a82b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.pm-size-select:focus {
  outline: none;
  border-color: rgba(109,109,255,0.5);
  box-shadow: 0 0 10px rgba(109,109,255,0.15);
  color: #fff;
}

.pm-size-select option {
  background: #0e1020;
  color: #c0c6e8;
}

.pm-select-error {
  border-color: #ff4c4c !important;
  box-shadow: 0 0 10px rgba(255,76,76,0.25) !important;
  animation: pmShake 0.35s ease;
}

@keyframes pmShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Quantity */
.pm-qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pm-qty-row label {
  color: #aeb7ff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

.pm-qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.pm-qty-controls button {
  background: rgba(255,255,255,0.05);
  border: none;
  color: #c0c6e8;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pm-qty-controls button:hover {
  background: rgba(75,75,255,0.2);
  color: #fff;
}

.pm-qty-controls input {
  background: transparent;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  width: 48px;
  height: 36px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Action buttons */
.pm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.pm-btn-secondary {
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #c0c6e8;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.pm-btn-secondary:hover {
  background: rgba(75,75,255,0.15);
  border-color: rgba(109,109,255,0.3);
  color: #fff;
}

.pm-btn-add {
  padding: 14px 20px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #3e63dd, #6d6dff);
  color: #ffffff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.pm-btn-add:hover {
  background: linear-gradient(90deg, #6d6dff, #9b8fff);
  box-shadow: 0 0 20px rgba(62,99,221,0.5);
  
}

/* --- Modal responsive --- */

@media (max-width: 960px) {
  .modal-content {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 40px);
  }

  .pm-thumbs-col {
    flex-direction: row;
    max-height: none;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 0 16px;
    order: 2;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .pm-thumb {
    width: 48px;
    height: 60px;
  }

  .pm-main-image {
    order: 1;
    max-height: 50vh;
  }

  .pm-details {
    order: 3;
    max-height: none;
    padding: 24px 20px;
  }
}

/* ===== NOTIFICATION ===== */

.notification {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #3e63dd, #6d6dff);
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 0 20px rgba(62,99,221,0.5);
  z-index: 3000;
  transition: bottom 0.3s ease;
  max-width: 90%;
}

.notification.show {
  bottom: 30px;
}

/* ===== CART MODAL IMPROVEMENTS ===== */

.cart-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.cart-modal[hidden] {
  display: none !important;
}

.cart-content {
  position: relative;
  width: min(600px, calc(100% - 40px));
  max-height: calc(100vh - 80px);
  background: rgba(10, 12, 20, 0.98);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  overflow: hidden;
  z-index: 1;
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cart-header h2 {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  color: #ffffff;
  font-size: 1.5rem;
}

.cart-view {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cart-view[hidden] {
  display: none;
}

.cart-items {
  flex: 1;
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.empty-cart {
  text-align: center;
  color: #aeb7ff;
  font-family: 'Poppins', sans-serif;
  padding: 40px 0;
  margin: 0;
  font-size: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-bottom: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: border-color 0.2s;
}

.cart-item:hover {
  border-color: rgba(109,109,255,0.15);
}

.cart-item:last-child {
  margin-bottom: 0;
}

.cart-item-clickable {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  cursor: pointer;
  border-radius: 10px;
  padding: 0;
  margin: 0;
  transition: background 0.2s;
}

.cart-item-clickable:hover {
  background: transparent;
}

.cart-item-image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h4 {
  margin: 0 0 2px;
  font-family: 'Kanit', sans-serif;
  color: #ffffff;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-info p {
  margin: 0;
  color: #aeb7ff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
}

.cart-item-details {
  display: block;
  color: #6d7194;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 2px;
}

.cart-qty-btn {
  background: transparent;
  border: none;
  color: #aeb7ff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  padding: 0;
}

.cart-qty-btn:hover {
  background: rgba(62,99,221,0.2);
  color: #ffffff;
}

.cart-qty-value {
  min-width: 22px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: #ffffff;
  font-weight: 600;
}

.cart-remove {
  background: transparent;
  border: none;
  color: #555a7a;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.cart-remove:hover {
  background: rgba(255,80,80,0.12);
  color: #ff6b6b;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cart-total {
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  font-size: 1.1rem;
}

.cart-total strong {
  color: #4cff88;
  font-weight: 700;
}

.cart-checkout {
  background: linear-gradient(90deg, #3e63dd, #6d6dff);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-checkout:hover {
  background: linear-gradient(90deg, #6d6dff, #9b8fff);
  
  box-shadow: 0 0 20px rgba(62,99,221,0.5);
}

/* ===== CHECKOUT STYLES ===== */

.checkout-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 0 24px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(109,109,255,0.3) transparent;
}

.checkout-view[hidden] {
  display: none;
}

.checkout-view::-webkit-scrollbar { width: 4px; }
.checkout-view::-webkit-scrollbar-thumb { background: rgba(109,109,255,0.3); border-radius: 10px; }

/* --- Step Indicator --- */

.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 0 8px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.step-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: #7a82b8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7a82b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.step-line {
  width: 32px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.step-line.completed {
  background: linear-gradient(90deg, #3e63dd, #6d6dff);
}

.checkout-step.active .step-number {
  background: linear-gradient(135deg, #3e63dd, #6d6dff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 12px rgba(62,99,221,0.4);
}

.checkout-step.active .step-label {
  color: #fff;
}

.checkout-step.completed .step-number {
  background: rgba(62,99,221,0.2);
  border-color: #3e63dd;
  color: #6d6dff;
}

.checkout-step.completed .step-label {
  color: #aeb7ff;
}

/* --- Checkout Content --- */

.checkout-section-header {
  margin-bottom: 8px;
}

.checkout-section-header h3 {
  margin: 0 0 4px;
  font-family: 'Kanit', sans-serif;
  color: #ffffff;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.checkout-section-sub {
  margin: 0;
  color: #7a82b8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
}

.checkout-tab-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-tab-content[hidden] {
  display: none;
}

.checkout-tab-content h3 {
  margin: 0 0 16px;
  font-family: 'Kanit', sans-serif;
  color: #ffffff;
  font-size: 1.3rem;
}

.checkout-tab-content h4 {
  margin: 0 0 12px;
  font-family: 'Kanit', sans-serif;
  color: #ffffff;
  font-size: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.form-group label {
  color: #aeb7ff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d6dff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option {
  background: #0d0f1a;
  color: #ffffff;
  padding: 10px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  background: rgba(255,255,255,0.06);
  border-color: rgba(109,109,255,0.5);
  box-shadow: 0 0 10px rgba(109,109,255,0.15);
}

.form-group input::placeholder {
  color: rgba(174,183,255,0.45);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #141622 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  caret-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* --- Custom Select (Country) --- */

.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #c0c6e8;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  background: rgba(255,255,255,0.06);
  border-color: rgba(109,109,255,0.5);
  box-shadow: 0 0 10px rgba(109,109,255,0.15);
  color: #ffffff;
}

.custom-select-chevron {
  transition: transform 0.25s ease;
  opacity: 0.5;
  flex-shrink: 0;
  color: #6d6dff;
}

.custom-select.open .custom-select-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(14, 16, 28, 0.98);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(5,5,15,0.6);
  backdrop-filter: blur(8px);
  padding: 5px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.custom-select.open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  color: #b0b8e8;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.custom-select-option:hover {
  background: rgba(75,75,255,0.15);
  color: #ffffff;
}

.custom-select-option.active {
  background: linear-gradient(90deg, #3e63dd, #6d6dff);
  color: #ffffff;
  font-weight: 600;
}

.custom-select-check {
  opacity: 0;
  color: #4cff88;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.custom-select-option.active .custom-select-check {
  opacity: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 6px;
}

/* --- Shipping Options --- */

.shipping-options {
  background: linear-gradient(90deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
  padding: 18px;
  border-radius: 14px;
  margin: 6px 0;
  backdrop-filter: blur(6px);
}

.shipping-options h4 {
  margin: 0 0 14px;
  font-family: 'Kanit', sans-serif;
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  border: 1px solid transparent;
}

.shipping-option:last-child {
  margin-bottom: 0;
}

.shipping-option:hover {
  background: rgba(75,75,255,0.08);
  border-color: rgba(109,109,255,0.15);
}

.shipping-option input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #3e63dd;
}

.option-label {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.option-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-name {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
}

.option-time {
  color: #7a82b8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
}

.option-price-tag {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: #c0c6e8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
}

.option-price-tag.free {
  background: rgba(76,255,136,0.1);
  color: #4cff88;
}

/* --- Payment Methods --- */

.payment-methods {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.payment-method {
  cursor: pointer;
}

.payment-method input[type="radio"] {
  display: none;
}

.method-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
  border: 1.5px solid rgba(255,255,255,0.08);
  padding: 18px 20px;
  border-radius: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.payment-method input[type="radio"]:checked ~ .method-card {
  background: linear-gradient(90deg, rgba(62,99,221,0.12), rgba(109,109,255,0.06));
  border-color: rgba(109,109,255,0.4);
  box-shadow: 0 0 12px rgba(62,99,221,0.15);
}

.method-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62,99,221,0.15);
  border-radius: 10px;
  flex-shrink: 0;
}

.method-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.method-name {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
}

.method-desc {
  color: #7a82b8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
}

.method-check {
  color: transparent;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.payment-method input[type="radio"]:checked ~ .method-card .method-check {
  color: #6d6dff;
}

.payment-info-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(90deg, rgba(62,99,221,0.08), rgba(109,109,255,0.04));
  border: 1px solid rgba(109,109,255,0.15);
  color: #b0b8e8;
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
}

.payment-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62,99,221,0.12);
  border-radius: 10px;
  flex-shrink: 0;
}

.payment-info-box p {
  margin: 0;
}

.payment-info-box strong {
  color: #aeb7ff;
}

/* --- Review Section --- */

.review-section {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.review-section h4 {
  margin: 0 0 12px;
  font-family: 'Kanit', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aeb7ff;
}

.review-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.review-card-half {
  margin-bottom: 0;
  overflow: hidden;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.review-card-header h4 {
  margin: 0;
}

.review-card-header .link-btn {
  margin: 0;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(109,109,255,0.1);
  transition: all 0.3s ease;
}

.review-card-header .link-btn:hover {
  background: rgba(109,109,255,0.2);
}

#review-shipping-info,
#review-payment-info {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: #c0c6e8;
  line-height: 1.7;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.review-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.review-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.025);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}

.review-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}

.review-item-info {
  flex: 1;
  font-family: 'Poppins', sans-serif;
}

.review-item-info p {
  margin: 0;
  color: #ffffff;
  font-size: 0.88rem;
}

.review-item-info p:last-child {
  color: #7a82b8;
  font-size: 0.78rem;
}

.review-item span {
  color: #ffffff;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  color: #aeb7ff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
}

.summary-row.total {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
  margin-top: 8px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
}

.summary-row.total span:last-child {
  color: #6d6dff;
  font-size: 1.15rem;
}

.link-btn {
  background: none;
  border: none;
  color: #6d6dff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.link-btn:hover {
  color: #9b8fff;
}

.review-shipping-form {
  margin-top: 10px;
}

.review-form-group {
  margin-bottom: 8px;
}

.review-form-group label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  color: #7a82b8;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-form-group input,
.review-form-group select {
  width: 100%;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.review-form-group input:focus,
.review-form-group select:focus {
  border-color: #6d6dff;
}

.review-form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237a82b8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.review-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.review-save-btn {
  margin-top: 8px;
  width: 100%;
  padding: 9px 16px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.review-summary {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 18px;
  border-radius: 14px;
  margin-top: 12px;
  margin-bottom: 0;
  backdrop-filter: blur(6px);
}

.review-data-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: #c0c6e8;
}

.review-data-row svg {
  flex-shrink: 0;
}

.review-discount-section {
  margin-top: 12px;
}

.review-discount-section .discount-apply {
  display: flex;
  gap: 8px;
}

.review-discount-section .discount-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.review-discount-section .discount-input:focus {
  border-color: #6d6dff;
}

.review-discount-section .discount-btn {
  padding: 10px 18px;
  background: linear-gradient(90deg, #3e63dd, #6d6dff);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.review-discount-section .discount-btn:hover {
  background: linear-gradient(90deg, #6d6dff, #9b8fff);
}

.checkout-nav-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  align-items: stretch;
}

.btn-checkout-back {
  position: relative;
  bottom: -40px;
  flex: 0 0 auto;
  padding: 16px 24px;
  border-radius: 8px;
  max-height: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #c0c6e8;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.btn-checkout-back:hover {
  background: rgba(75,75,255,0.15);
  border-color: rgba(109,109,255,0.3);
  color: #fff;
}

.checkout-next,
.final-checkout {
  flex: 1;
  background: linear-gradient(90deg, #3e63dd, #6d6dff);
  color: #ffffff;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.checkout-next:hover,
.final-checkout:hover {
  background: linear-gradient(90deg, #6d6dff, #9b8fff);
  
  box-shadow: 0 0 20px rgba(62,99,221,0.5);
}

@media (max-width: 480px) {
  .checkout-steps {
    gap: 0;
  }

  .step-label {
    display: none;
  }

  .step-line {
    width: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .shipping-option {
    flex-direction: column;
    align-items: flex-start;
  }

  .option-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .checkout-view {
    max-height: calc(100vh - 180px);
  }

  .cart-content {
    width: calc(100% - 20px);
  }

  .cart-header,
  .checkout-view,
  .cart-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cart-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-checkout {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

/* scrollbar */

#match-history {
  max-width: 900px;
  margin: 0 auto;

  max-height: 320px;      /* ðŸ”¥ CLAVE */
  overflow-y: auto;       /* ðŸ”¥ CLAVE */

  padding-right: 6px;
}

#match-history::-webkit-scrollbar {
  width: 6px;
}

#match-history::-webkit-scrollbar-track {
  background: transparent;
}

#match-history::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3e63dd, #6d6dff);
  border-radius: 10px;
}

#match-history::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6d6dff, #9b8fff);
}

/* Firefox */
#match-history {
  scrollbar-width: thin;
  scrollbar-color: #3e63dd transparent;
}

/* CARD */
.match-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  padding: 16px 18px;
  margin-bottom: 10px;

  border-radius: 14px;
  border: 1px solid #1e1e2a;
  border-left: 3px solid transparent;

  background: linear-gradient(135deg, rgba(14,14,22,0.95), rgba(11,11,18,0.95));

  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.match-card.win   { border-left-color: rgba(76,255,136,0.5); }
.match-card.loss  { border-left-color: rgba(255,76,76,0.45); }

.match-card:hover {
  background: linear-gradient(135deg, rgba(20,20,32,0.98), rgba(16,14,26,0.98));
  border-color: #2e2e40;
  transform: translateX(2px);
}
.match-card.win:hover  { border-left-color: rgba(76,255,136,0.65); }
.match-card.loss:hover { border-left-color: rgba(255,76,76,0.6); }

/* LEFT side */
.match-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

/* Badge */
.match-badge {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.7rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: rgba(62,99,221,0.1);
  border: 1px solid rgba(62,99,221,0.2);
  color: #7090ff;
}
.match-badge.win  { background: rgba(76,255,136,0.07); border-color: rgba(76,255,136,0.2); color: #4cff88; }
.match-badge.loss { background: rgba(255,76,76,0.07);  border-color: rgba(255,76,76,0.2);  color: #ff5a5a; }

/* Match metadata */
.match-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.match-competition {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #4a4a7a;
}
.match-vs {
  font-family: 'Kanit', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #dde2ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-vs strong { color: #fff; }
.match-date {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  color: #505878;
}

/* RIGHT side */
.match-card-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Rounds scoreboard */
.match-rounds {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #1e1e2a;
  border-radius: 10px;
  padding: 8px 14px;
}
.match-rounds-w {
  font-family: 'Kanit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #4cff88;
  min-width: 22px;
  text-align: center;
  line-height: 1;
}
.match-rounds-l {
  font-family: 'Kanit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ff5a5a;
  min-width: 22px;
  text-align: center;
  line-height: 1;
}
.match-rounds-sep {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #3a3a5a;
}

/* RESULTADO */
.match-result {
  font-family: 'Kanit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 7px 16px;
  border-radius: 9px;
  white-space: nowrap;
  border: 1px solid transparent;
  text-transform: uppercase;
}

.match-result.win {
  color: #4cff88;
  background: rgba(76,255,136,0.1);
  border-color: rgba(76,255,136,0.2);
}

.match-result.loss {
  color: #ff5a5a;
  background: rgba(255,76,76,0.1);
  border-color: rgba(255,76,76,0.2);
}

.win {
  color: #4cff88;
}

.loss {
  color: #ff4c4c;
}

.chart-container {
  background: rgba(0,0,0,0.3);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(6px);
}

/* ===== PRODUCT BADGES ===== */

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.badge-new {
  background: linear-gradient(135deg, #4cff88, #2ecc71);
  color: #fff;
  box-shadow: 0 2px 12px rgba(76,255,136,0.35);
}

.badge-limited {
  background: linear-gradient(135deg, #ff6b6b, #e74c3c);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255,107,107,0.35);
}

.badge-best {
  background: linear-gradient(135deg, #f9a825, #ff8f00);
  color: #fff;
  box-shadow: 0 2px 12px rgba(249,168,37,0.35);
}

.product-category-tag {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a92c6;
  margin-bottom: 6px;
  padding: 2px 0;
}

/* ===== COLOR SWATCHES (PRODUCT CARDS) ===== */

.product-info-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.color-swatches {
  display: flex;
  gap: 5px;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-dot:hover {
  transform: scale(1.2);
  border-color: rgba(255,255,255,0.4);
}

/* ===== COLOR FILTER (SIDEBAR) ===== */

.color-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-filter-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #222233;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255,255,255,0.03);
}

.color-filter-dot:hover {
  transform: scale(1.15);
  border-color: rgba(62,99,221,0.5);
}

.color-filter-dot.active {
  border-color: #3e63dd;
  box-shadow: 0 0 0 3px rgba(62,99,221,0.2);
  transform: scale(1.1);
}

.color-filter-all {
  color: #6d6dff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-filter-dot.active .color-filter-all {
  color: #a0b0ff;
}

/* Color selector moved to pm-color-dot (product modal) */

/* ===== DISCOUNT SECTION (CART) ===== */

.discount-section {
  padding: 0 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.discount-apply {
  display: flex;
  gap: 10px;
}

.discount-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.discount-input:focus {
  outline: none;
  border-color: rgba(109,109,255,0.5);
  box-shadow: 0 0 10px rgba(109,109,255,0.15);
}

.discount-input.input-error {
  border-color: #ff4c4c;
  box-shadow: 0 0 10px rgba(255,76,76,0.2);
}

.discount-input::placeholder {
  color: rgba(174,183,255,0.5);
}

.discount-btn {
  padding: 10px 18px;
  background: linear-gradient(90deg, #3e63dd, #6d6dff);
  border: none;
  color: #ffffff;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.discount-btn:hover {
  background: linear-gradient(90deg, #6d6dff, #9b8fff);
  box-shadow: 0 0 20px rgba(62,99,221,0.5);
}

.discount-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(76,255,136,0.1);
  border: 1px solid rgba(76,255,136,0.3);
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 10px;
}

.discount-badge[hidden] {
  display: none;
}

.discount-code-text {
  color: #4cff88;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.discount-percent-text {
  color: #4cff88;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

.discount-remove {
  margin-left: auto;
  background: rgba(255,76,76,0.2);
  border: 1px solid rgba(255,76,76,0.3);
  color: #ff6b6b;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.discount-remove:hover {
  background: rgba(255,76,76,0.4);
}

/* ===== CART TOTALS ===== */

.cart-totals-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Poppins', sans-serif;
  color: #aeb7ff;
  font-size: 0.9rem;
}

.cart-subtotal-row,
.cart-discount-row,
.cart-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-total-row {
  color: #ffffff;
  font-size: 1.05rem;
}

.cart-total-row strong {
  color: #4cff88;
  font-weight: 700;
}

.discount-amount {
  color: #4cff88;
  font-weight: 600;
}

/* ===== TEAM CHAT ===== */

/* Full-screen overlay */
#team-chat {
  position: fixed;
  inset: 0;
  z-index: 490;
}
#team-chat[hidden] { display: none !important; }

.chat-wrapper {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 500;
  overflow: hidden;
  background: #060610;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ SIDEBAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-sidebar {
  width: 280px;
  min-width: 280px;
  background: linear-gradient(180deg, #0c0c1a 0%, #090912 100%);
  border-right: 1px solid #16162a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Sidebar header */
.chat-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 16px;
  background: linear-gradient(145deg, #14141e 0%, #0f0f18 100%);
  flex-shrink: 0;
  position: relative;
}
.chat-sidebar-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62,99,221,0.5), transparent);
}
.chat-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(62,99,221,0.35);
  box-shadow: 0 0 16px rgba(62,99,221,0.25);
  flex-shrink: 0;
}
.chat-sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.chat-sidebar-brand h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 0.88rem;
  color: #d4dcff;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}
.chat-sidebar-brand .about-section-badge {
  font-size: 0.52rem;
  padding: 3px 10px;
  letter-spacing: 2.5px;
  margin: 0;
}

/* Channels list */
.chat-channels {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.06) transparent;
}
.chat-channels::-webkit-scrollbar { width: 4px; }
.chat-channels::-webkit-scrollbar-track { background: transparent; }
.chat-channels::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 4px; }

.chat-channel-group-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #363862;
  padding: 14px 14px 5px;
  flex-shrink: 0;
  user-select: none;
}

.chat-channel-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 10px;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
  text-align: left;
  flex-shrink: 0;
}
.chat-channel-btn:hover {
  background: rgba(255,255,255,0.04);
  border-left-color: rgba(62,99,221,0.3);
}
.chat-channel-btn.active {
  background: linear-gradient(90deg, rgba(62,99,221,0.16), rgba(62,99,221,0.04));
  border-left-color: #3e63dd;
}
.chat-channel-btn-icon {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.chat-channel-btn.active .chat-channel-btn-icon,
.chat-channel-btn:hover .chat-channel-btn-icon { opacity: 1; }
.chat-channel-btn-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  color: #606898;
  flex: 1;
  transition: color 0.15s;
}
.chat-channel-btn:hover .chat-channel-btn-name { color: #b0bae0; }
.chat-channel-btn.active .chat-channel-btn-name {
  color: #c2ccf8;
  font-weight: 600;
}
.chat-channel-muted {
  font-size: 0.6rem;
  margin-left: auto;
  opacity: 0.35;
  flex-shrink: 0;
}
.chat-admin-btn {
  border-top: 1px solid #16162a !important;
  margin-top: 6px;
}

/* Sidebar footer */
.chat-sidebar-footer {
  padding: 12px;
  border-top: 1px solid #16162a;
  flex-shrink: 0;
  background: linear-gradient(145deg, #12121c 0%, #0e0e16 100%);
}
.chat-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  cursor: default;
  transition: background 0.2s;
}
.chat-user-info:hover { background: rgba(255,255,255,0.04); }
.chat-user-avatar-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.chat-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Kanit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}
.chat-user-avatar-img {
  position: absolute;
  inset: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-msg-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chat-user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}
#chat-user-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c0c8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-user-role {
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.55;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ MAIN AREA â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #08080f;
}

.chat-main-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
  padding: 0 24px;
  border-bottom: 1px solid #131320;
  background: linear-gradient(145deg, #10101a 0%, #0d0d16 100%);
  flex-shrink: 0;
  position: relative;
}
.chat-main-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62,99,221,0.22), transparent);
}
.chat-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #8890b8;
  cursor: pointer;
  padding: 4px;
}
.chat-channel-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  opacity: 0.8;
}
.chat-main-header h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 0.95rem;
  color: #dce4ff;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.chat-channel-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  color: #424870;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid #1e1e38;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.chat-back-btn {
  margin-left: auto;
  background: linear-gradient(145deg, rgba(62,99,221,0.1), rgba(62,99,221,0.04));
  border: 1px solid rgba(62,99,221,0.22);
  color: #7080b8;
  cursor: pointer;
  padding: 7px 18px;
  border-radius: 9px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}
.chat-back-btn:hover {
  color: #c8d4ff;
  background: linear-gradient(145deg, rgba(62,99,221,0.2), rgba(62,99,221,0.08));
  border-color: rgba(62,99,221,0.42);
  box-shadow: 0 2px 16px rgba(62,99,221,0.22);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ MESSAGES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  background: #08080f;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.05) transparent;
}
.chat-messages[hidden],
.chat-input-area[hidden],
.chat-planning-area[hidden],
.chat-admin-area[hidden] { display: none !important; }
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 4px; }

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: #28284e;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
}
.chat-empty p { margin: 0; color: #363660; }

.chat-date-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 12px;
}
.chat-date-separator::before,
.chat-date-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #181830, transparent);
}
.chat-date-separator span {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #32325e;
  background: #0b0b16;
  padding: 3px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 1px solid #1a1a30;
}

.chat-message {
  display: flex;
  gap: 12px;
  padding: 5px 10px 5px 8px;
  border-radius: 10px;
  transition: background 0.12s;
  margin-top: 10px;
  position: relative;
}
.chat-message:hover { background: rgba(255,255,255,0.02); }
.chat-message-grouped {
  margin-top: 1px;
  padding-left: 56px;
}
.chat-message-grouped:hover { background: rgba(255,255,255,0.02); }
.chat-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Kanit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.chat-msg-content { flex: 1; min-width: 0; }
.chat-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.chat-msg-author {
  font-family: 'Poppins', sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  color: #d4dcff;
}
.chat-msg-time,
.chat-msg-time-inline {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  color: #282850;
}
.chat-msg-time-inline {
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.chat-message:hover .chat-msg-time-inline { opacity: 1; }
.chat-msg-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: #a0aad0;
  line-height: 1.6;
  word-break: break-word;
}
.chat-msg-role {
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ INPUT â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-input-area {
  padding: 12px 20px 16px;
  border-top: 1px solid #111120;
  background: linear-gradient(180deg, #0b0b14 0%, #08080e 100%);
  flex-shrink: 0;
}
.chat-input-form {
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(255,255,255,0.025);
  border: 1px solid #1a1a2e;
  border-radius: 14px;
  padding: 4px 6px 4px 4px;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.chat-input-form:focus-within {
  border-color: rgba(62,99,221,0.42);
  box-shadow: 0 0 0 3px rgba(62,99,221,0.07), 0 4px 24px rgba(0,0,0,0.2);
}
.chat-input {
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: #c8d4ff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  outline: none;
  border-radius: 10px;
}
.chat-input::placeholder { color: #26264c; }
.chat-send-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #3e63dd, #5b7ff0);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  flex-shrink: 0;
}
.chat-send-btn:hover {
  background: linear-gradient(135deg, #4b70e8, #6d8fff);
  box-shadow: 0 3px 16px rgba(62,99,221,0.42);
}
.chat-send-btn:active { transform: scale(0.93); }
.chat-attach-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #3a3e68;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.chat-attach-btn:hover {
  background: rgba(255,255,255,0.06);
  color: #7880c0;
}

/* Image preview */
.chat-image-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: linear-gradient(145deg, #16161c 0%, #111115 100%);
  border: 1px solid #222233;
  border-radius: 12px;
  position: relative;
}
.chat-image-preview[hidden] { display: none !important; }
.chat-image-preview img {
  max-width: 120px;
  max-height: 80px;
  border-radius: 8px;
  object-fit: cover;
}
.chat-preview-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}
.chat-preview-remove:hover { background: #e8456c; }

/* Upload */
.chat-send-uploading {
  opacity: 0.6;
  pointer-events: none;
  animation: sendPulse 1s ease-in-out infinite;
}
@keyframes sendPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

/* Image thumbnail */
.chat-msg-image { margin: 4px 0 2px; max-width: 240px; }
.chat-msg-image img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: filter 0.2s, border-color 0.2s, transform 0.2s;
}
.chat-msg-image img:hover {
  filter: brightness(1.08);
  border-color: rgba(62,99,221,0.4);
  transform: scale(1.015);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ LIGHTBOX â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  cursor: zoom-out;
}
.chat-lightbox.active { display: flex; opacity: 1; }
.chat-lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.7);
  cursor: default;
}
.chat-lightbox-actions { display: flex; gap: 12px; margin-top: 16px; }
.chat-lightbox-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  color: #e0e4ff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.chat-lightbox-btn:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.25); }
.chat-lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.chat-lightbox-close:hover { background: rgba(255,255,255,0.18); }
.chat-lightbox-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.4);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
}
.chat-lightbox-loading[hidden] { display: none !important; }
.chat-lightbox-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #3e63dd;
  border-radius: 50%;
  animation: lbSpin 0.8s linear infinite;
}
@keyframes lbSpin { to { transform: rotate(360deg); } }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ CONTEXT MENU â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-context-menu {
  position: fixed;
  z-index: 10000;
  background: linear-gradient(145deg, #17171e 0%, #121218 100%);
  border: 1px solid #202032;
  border-radius: 12px;
  padding: 5px;
  min-width: 188px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.03);
  animation: ctxFadeIn 0.12s ease;
}
@keyframes ctxFadeIn {
  from { opacity: 0; transform: scale(0.93) translateY(-5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.chat-context-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: #7888b8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
  text-align: left;
}
.chat-context-menu button:hover {
  background: rgba(62,99,221,0.14);
  color: #dee6ff;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ PLANNING AREA â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-planning-area,
.chat-admin-area {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  min-height: 0;
  background: #08080f;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.05) transparent;
}
.chat-planning-area::-webkit-scrollbar,
.chat-admin-area::-webkit-scrollbar { width: 5px; }
.chat-planning-area::-webkit-scrollbar-track,
.chat-admin-area::-webkit-scrollbar-track { background: transparent; }
.chat-planning-area::-webkit-scrollbar-thumb,
.chat-admin-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 4px; }

.planning-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #131320;
}
.planning-header h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 1.05rem;
  color: #dce4ff;
  margin: 0;
  letter-spacing: 0.02em;
}
.planning-header-btns { display: flex; gap: 8px; }
.planning-add-btn {
  background: linear-gradient(135deg, #3e63dd, #5b7ff0);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.planning-add-btn:hover {
  background: linear-gradient(135deg, #4b70e8, #6d8fff);
  box-shadow: 0 3px 14px rgba(62,99,221,0.38);
}
.planning-add-btn:active { transform: scale(0.97); }
.planning-add-btn-alt {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
}
.planning-add-btn-alt:hover { background: rgba(255,255,255,0.12); box-shadow: none; }

/* Planning form */
.planning-form {
  background: linear-gradient(145deg, #15151e 0%, #101018 100%);
  border: 1px solid #202030;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}
.planning-form .form-row { display: flex; gap: 12px; }
.planning-form .form-group { flex: 1; margin-bottom: 10px; }
.planning-form label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.38);
  margin-bottom: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.planning-form input,
.planning-form select,
.planning-form textarea {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  color: #c8d4ff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.planning-form input:focus,
.planning-form select:focus,
.planning-form textarea:focus {
  border-color: rgba(62,99,221,0.5);
  box-shadow: 0 0 0 3px rgba(62,99,221,0.08);
}
.plan-color-options { display: flex; gap: 6px; }
.plan-color-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan-color-btn:hover { transform: scale(1.18); }
.plan-color-btn.active { border-color: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.3); }

/* Date groups */
.planning-date-group { margin-bottom: 22px; }
.planning-date-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #727898;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.planning-date-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.05);
}
.planning-today .planning-date-label { color: #4cff88; }
.planning-today .planning-date-label::after { background: rgba(76,255,136,0.1); }
.planning-past { opacity: 0.45; }

/* Planning item */
.planning-item {
  background: linear-gradient(145deg, #12121c 0%, #0e0e16 100%);
  border: 1px solid #1a1a2c;
  border-left: 3px solid #3e63dd;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.planning-item:hover {
  background: linear-gradient(145deg, #171728 0%, #13131e 100%);
  border-color: #24243a;
  border-left-color: #4b70e8;
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
  transform: translateY(-1px);
}
.planning-item-header { display: flex; align-items: center; gap: 10px; }
.planning-item-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4d0f8;
  flex: 1;
}
.planning-item-platform {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #a8b4ff;
  background: rgba(168,180,255,0.1);
  padding: 2px 8px;
  border-radius: 6px;
}
.planning-item-time {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
}
.planning-item-delete {
  background: none;
  border: none;
  color: rgba(255,255,255,0.22);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.planning-item-delete:hover { color: #ff4d6a; }
.planning-item-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.38);
  margin: 6px 0 0;
  line-height: 1.45;
}
.planning-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,0.18);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Match items */
.planning-match { border-left-width: 4px; }
.planning-match-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.planning-match-team {
  font-family: 'Kanit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}
.planning-match-vs {
  font-family: 'Kanit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ff6b8a;
  background: rgba(232,69,108,0.15);
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: 1.5px;
}
.planning-match-opponent {
  font-family: 'Kanit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b0bcff;
  flex: 1;
}
.planning-match-meta { display: flex; gap: 8px; margin-top: 4px; }
.planning-match-comp {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #f5a623;
  background: rgba(245,166,35,0.1);
  padding: 2px 8px;
  border-radius: 6px;
}
.planning-match-round {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.38);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ ADMIN PANEL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-section { margin-bottom: 26px; }
.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.admin-section-header h4 {
  font-family: 'Kanit', sans-serif;
  font-size: 0.95rem;
  color: #dce4ff;
  margin: 0;
}
.admin-add-form {
  background: linear-gradient(145deg, #15151e 0%, #101018 100%);
  border: 1px solid #202030;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}
.admin-add-form .form-row { display: flex; gap: 12px; }
.admin-add-form .form-group { flex: 1; margin-bottom: 8px; }
.admin-add-form label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.38);
  margin-bottom: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.admin-add-form input,
.admin-add-form select {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  color: #c8d4ff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-add-form input:focus,
.admin-add-form select:focus {
  border-color: rgba(62,99,221,0.5);
  box-shadow: 0 0 0 3px rgba(62,99,221,0.08);
}

/* Member cards */
.admin-member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(145deg, #12121c 0%, #0e0e16 100%);
  border: 1px solid #1a1a2c;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.18s;
}
.admin-member-card:hover {
  background: linear-gradient(145deg, #171728 0%, #13131e 100%);
  border-color: #24243a;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}
.admin-member-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Kanit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.admin-member-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-member-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #d0d8ff;
}
.admin-member-email {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.32);
}
.admin-member-role-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.admin-role-select {
  padding: 5px 8px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  color: #9098c8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.admin-role-select:focus { border-color: rgba(62,99,221,0.4); }

/* Channel cards */
.admin-channel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(145deg, #12121c 0%, #0e0e16 100%);
  border: 1px solid #1a1a2c;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.admin-channel-card:hover {
  background: linear-gradient(145deg, #171728 0%, #13131e 100%);
  border-color: #24243a;
}
.admin-channel-icon {
  font-size: 1.2rem;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.admin-channel-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-channel-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #d0d8ff;
}
.admin-channel-access {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.32);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ MOBILE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  .chat-wrapper {
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .chat-sidebar {
    position: fixed;
    left: -290px;
    top: 0; bottom: 0;
    z-index: 3000;
    width: 290px;
    transition: left 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 30px rgba(0,0,0,0.65);
  }
  .chat-sidebar.open { left: 0; }
  .chat-mobile-toggle { display: flex; }
  .chat-channel-desc { display: none; }
  .chat-messages { padding: 12px 14px; }
  .chat-input-area { padding: 10px 12px 14px; }
  .chat-planning-area,
  .chat-admin-area { padding: 16px 18px; }
  .planning-form .form-row,
  .admin-add-form .form-row { flex-direction: column; gap: 0; }
  .admin-member-card { flex-wrap: wrap; }
  .admin-role-select { margin-left: auto; }
}
/* ===== SAVE ADDRESS OPTION ===== */

.save-address-option {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}

.save-address-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: #c0c6e8;
}

.save-address-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.save-address-label input[type="checkbox"]:checked {
  background: #3e63dd;
  border-color: #3e63dd;
}

.save-address-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 45%;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.save-address-label input[type="checkbox"]:hover {
  border-color: rgba(62,99,221,0.5);
}

/* ===== AUTH MODAL ===== */

.auth-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2500;
  animation: fadeIn 0.3s ease;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
}

.auth-card {
  position: relative;
  width: min(420px, calc(100% - 40px));
  max-height: calc(100vh - 80px);
  background: rgba(10, 12, 20, 0.98);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  overflow-y: auto;
  z-index: 1;
  animation: slideUp 0.3s ease;
  padding: 36px 32px;
  scrollbar-width: thin;
  scrollbar-color: rgba(109,109,255,0.3) transparent;
}

.auth-card::-webkit-scrollbar { width: 4px; }
.auth-card::-webkit-scrollbar-thumb { background: rgba(109,109,255,0.3); border-radius: 10px; }

.auth-view[hidden] {
  display: none;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.auth-header h2 {
  margin: 0 0 4px;
  font-family: 'Kanit', sans-serif;
  font-size: 1.5rem;
  color: #ffffff;
  text-transform: uppercase;
}

.auth-header p {
  margin: 0;
  color: #7a82b8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
}

.auth-card .form-group {
  margin-bottom: 14px;
}

.auth-btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #3e63dd, #6d6dff);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 8px;
}

.auth-btn-primary:hover {
  background: linear-gradient(90deg, #6d6dff, #9b8fff);
  box-shadow: 0 0 20px rgba(62,99,221,0.4);
}

.auth-btn-secondary {
  width: 100%;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  color: #c0c6e8;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 16px;
}

.auth-btn-secondary:hover {
  background: rgba(255,80,80,0.1);
  border-color: rgba(255,80,80,0.3);
  color: #ff6b6b;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-footer p {
  color: #7a82b8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  margin: 0;
}

.auth-link {
  background: none;
  border: none;
  color: #6d6dff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.auth-link:hover {
  color: #9b8fff;
}

/* Avatar */

.auth-avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
}

.auth-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3e63dd, #6d6dff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Kanit', sans-serif;
  font-size: 1.8rem;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(62,99,221,0.35);
}

.auth-avatar-img {
  position: absolute;
  inset: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  box-shadow: 0 4px 20px rgba(62,99,221,0.35);
}

.auth-avatar-edit {
  position: absolute;
  bottom: 0;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3e63dd;
  border: 2px solid rgba(15,15,30,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s, transform 0.1s;
}

.auth-avatar-edit:hover {
  background: #5a7dee;
  transform: scale(1.1);
}

/* Verify View */

.verify-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.verify-code-input {
  text-align: center;
  font-size: 1.4rem !important;
  letter-spacing: 8px;
  font-weight: 700;
  font-family: 'Kanit', sans-serif !important;
}

/* Profile Section */

.account-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.account-section-header h4 {
  margin: 0;
}

.input-with-btn {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-with-btn input {
  flex: 1;
}

.auth-btn-small {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: #3e63dd;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.auth-btn-small:hover {
  background: #5a7dee;
}

.form-hint {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

/* Account Section â€” card style inspired by about-value-card */

.account-section {
  margin-top: 14px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(22,22,28,0.9) 0%, rgba(17,17,21,0.9) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.account-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(62,99,221,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.account-section:hover::before {
  opacity: 1;
}

.account-section:hover {
  border-color: rgba(62,99,221,0.2);
}

.account-section-badge {
  display: inline-block;
  background: rgba(62,99,221,0.08);
  color: #6d6dff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(109,109,255,0.12);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.account-section h4 {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  color: #ffffff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Auth header in account view */
.auth-header .account-user-name {
  font-family: 'Kanit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 6px 0 2px;
}

.account-user-email {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: #7a82b8;
}

.saved-info-block {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 14px;
}

.saved-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
}

.saved-info-row:last-child {
  border-bottom: none;
}

.saved-info-row span:first-child {
  color: #7a82b8;
}

.saved-info-row span:last-child {
  color: #e0e4ff;
  font-weight: 500;
}

.saved-info-empty {
  color: #555a7a;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  text-align: center;
  margin: 0;
  padding: 8px 0;
}

/* ===== ADDRESS CARDS ===== */

.address-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.address-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.address-card:hover {
  border-color: rgba(62,99,221,0.25);
  background: rgba(62,99,221,0.03);
}

.address-card-default {
  border-color: rgba(62,99,221,0.35);
  background: rgba(62,99,221,0.04);
}

.address-default-badge {
  display: inline-block;
  background: rgba(62,99,221,0.15);
  color: #6d9bff;
  font-family: 'Kanit', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
  border: 1px solid rgba(109,155,255,0.15);
}

.address-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: #a0a6c8;
  line-height: 1.5;
}

.address-card-info strong {
  color: #e0e4ff;
  font-size: 0.85rem;
  font-weight: 600;
}

.address-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.address-action-btn {
  background: none;
  border: none;
  color: #6d9bff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.2s;
}

.address-action-btn:hover {
  color: #9bb8ff;
}

.address-action-delete {
  color: #ff6b6b;
}

.address-action-delete:hover {
  color: #ff9090;
}

.address-action-default {
  color: #7a82b8;
}

.address-action-default:hover {
  color: #a0a8d8;
}

/* Add address card */
.address-card-add {
  border: 1px dashed rgba(255,255,255,0.1);
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  color: #555a7a;
  min-height: 120px;
  transition: border-color 0.2s, color 0.2s;
  gap: 6px;
}

.address-card-add:hover {
  border-color: rgba(62,99,221,0.3);
  color: #7a82b8;
}

.address-card-add span {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Address form inside account */
#address-form-section .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#address-form-section .form-group {
  margin-bottom: 12px;
}

#address-form-section label {
  display: block;
  color: #7a82b8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  margin-bottom: 4px;
  font-weight: 500;
}

#address-form-section input[type="text"],
#address-form-section input[type="email"],
#address-form-section input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: #e0e4ff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

#address-form-section input:focus {
  border-color: rgba(62,99,221,0.4);
}

#address-form-title {
  margin: 0 0 16px;
  font-family: 'Kanit', sans-serif;
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.address-form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.address-form-buttons .auth-btn-primary,
.address-form-buttons .auth-btn-secondary {
  flex: 1;
  padding: 10px;
  font-size: 0.82rem;
}

/* ===== AVATAR CROPPER MODAL (styled) ===== */

#avatar-cropper-modal.active {
  display: flex !important;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
  }

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

  #address-form-section .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== ADMIN ROSTER LINKING ===== */
.admin-roster-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.admin-roster-tab {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: #9297b5;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-roster-tab:hover { background: rgba(255,255,255,0.06); border-color: rgba(62,99,221,0.25); color: #a0a8d0; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.admin-roster-tab.active {
  background: linear-gradient(145deg, rgba(62,99,221,0.2), rgba(62,99,221,0.08));
  border-color: rgba(62,99,221,0.35);
  color: #b8c6ff;
  box-shadow: 0 2px 12px rgba(62,99,221,0.18);
}
.admin-roster-list { display: flex; flex-direction: column; gap: 8px; }
.admin-roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, #14141e 0%, #101018 100%);
  border: 1px solid #1e1e2e;
  border-radius: 10px;
  padding: 10px 14px;
  transition: background 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.18s;
}
.admin-roster-row:hover {
  background: linear-gradient(145deg, #18182a 0%, #141420 100%);
  border-color: #282840;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
}
.admin-roster-name {
  font-family: 'Kanit', sans-serif;
  font-size: 0.9rem;
  color: #fff;
  min-width: 90px;
}
.admin-roster-email {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #e0e0f0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  padding: 6px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-roster-email:focus {
  border-color: rgba(62,99,221,0.45);
  box-shadow: 0 0 0 3px rgba(62,99,221,0.08);
}

/* ===== PLANNING MATCH RESULT BUTTONS ===== */
.planning-result-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.planning-result-w,
.planning-result-l {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.planning-result-w {
  background: rgba(76,255,136,0.1);
  color: #4cff88;
  border: 1px solid rgba(76,255,136,0.22);
}
.planning-result-l {
  background: rgba(255,76,76,0.1);
  color: #ff4c4c;
  border: 1px solid rgba(255,76,76,0.22);
}
.planning-result-w:hover {
  background: rgba(76,255,136,0.2);
  border-color: rgba(76,255,136,0.4);
  box-shadow: 0 2px 12px rgba(76,255,136,0.18);
  transform: scale(1.04);
}
.planning-result-l:hover {
  background: rgba(255,76,76,0.2);
  border-color: rgba(255,76,76,0.4);
  box-shadow: 0 2px 12px rgba(255,76,76,0.18);
  transform: scale(1.04);
}

/* ===== ADMIN TABS ===== */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.025);
  border: 1px solid #1e1e2e;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.admin-tab {
  flex: 1;
  padding: 9px 4px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #5868a0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.admin-tab:hover { background: rgba(255,255,255,0.04); color: #9098c8; }
.admin-tab.active {
  background: linear-gradient(145deg, rgba(62,99,221,0.22), rgba(62,99,221,0.1));
  color: #c0c8ff;
  border: 1px solid rgba(62,99,221,0.2);
}
.admin-tab-panel[hidden] { display: none !important; }

/* Position selector in roster rows */
.admin-roster-pos-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #a0a6c8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  padding: 6px 10px;
  outline: none;
  cursor: pointer;
  min-width: 90px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-roster-pos-select:hover { border-color: rgba(255,255,255,0.14); color: #b8bedd; }
.admin-roster-pos-select:focus { border-color: rgba(62,99,221,0.4); }


/* ===== COOKIE CONSENT BANNER ===== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99000;
  background: linear-gradient(145deg, #17171e 0%, #121218 100%);
  border-top: 1px solid #222233;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
  padding: 16px 32px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}
.cookie-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(62,99,221,0.1);
  border: 1px solid rgba(62,99,221,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6d84dd;
  flex-shrink: 0;
}
.cookie-banner-text {
  flex: 1;
  min-width: 0;
}
.cookie-banner-title {
  font-family: 'Kanit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #dce4ff;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cookie-banner-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: #6a7098;
  margin: 0;
  line-height: 1.6;
}
.cookie-banner-desc strong { color: #9098c8; font-weight: 600; }
.cookie-banner-link {
  color: #5b80dd;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.cookie-banner-link:hover { color: #8da4ff; }
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Cookie buttons */
.cookie-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.cookie-btn-accept {
  background: linear-gradient(135deg, #3e63dd, #5b7ff0);
  color: #fff;
  border-color: transparent;
}
.cookie-btn-accept:hover {
  background: linear-gradient(135deg, #4b70e8, #6d8fff);
  box-shadow: 0 3px 14px rgba(62,99,221,0.38);
}
.cookie-btn-reject {
  background: rgba(255,255,255,0.05);
  color: #8890b8;
  border-color: rgba(255,255,255,0.1);
}
.cookie-btn-reject:hover {
  background: rgba(255,255,255,0.09);
  color: #c0c8f0;
  border-color: rgba(255,255,255,0.18);
}
.cookie-btn-settings {
  background: transparent;
  color: #5868a8;
  border-color: rgba(255,255,255,0.07);
}
.cookie-btn-settings:hover {
  background: rgba(255,255,255,0.04);
  color: #8898c8;
  border-color: rgba(255,255,255,0.14);
}

/* Cookie Settings Modal */
.cookie-settings-overlay[hidden] { display: none !important; }
.cookie-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 99500;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-settings-overlay.active { opacity: 1; }
.cookie-settings-modal {
  background: linear-gradient(145deg, #17171e 0%, #121218 100%);
  border: 1px solid #222233;
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.06) transparent;
}
.cookie-settings-modal::-webkit-scrollbar { width: 4px; }
.cookie-settings-modal::-webkit-scrollbar-track { background: transparent; }
.cookie-settings-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
.cookie-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #1e1e2e;
  position: sticky;
  top: 0;
  background: linear-gradient(145deg, #17171e 0%, #141420 100%);
  z-index: 1;
  backdrop-filter: blur(4px);
}
.cookie-settings-header h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #dce4ff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cookie-settings-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #6070a0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.cookie-settings-close:hover { background: rgba(255,255,255,0.1); color: #c0c8ff; }
.cookie-settings-intro {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  color: #5a6280;
  line-height: 1.6;
  padding: 18px 24px 8px;
  margin: 0;
}

/* Cookie category rows */
.cookie-category {
  padding: 16px 24px;
  border-top: 1px solid #1a1a2a;
}
.cookie-category-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: space-between;
}
.cookie-category-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.cookie-category-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: #c8d4ff;
}
.cookie-category-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  color: #4e5878;
  line-height: 1.55;
}

/* Toggle switch */
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: relative;
  width: 42px;
  height: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  transition: background 0.25s, border-color 0.25s;
  flex-shrink: 0;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #4a4e78;
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: rgba(62,99,221,0.35);
  border-color: rgba(62,99,221,0.5);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
  background: #6d8fff;
}
.cookie-toggle-forced {
  cursor: default;
}
.cookie-toggle-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4cff88;
  background: rgba(76,255,136,0.08);
  border: 1px solid rgba(76,255,136,0.18);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Detail list */
.cookie-detail-list {
  list-style: none;
  padding: 10px 0 2px 0;
  margin: 10px 0 0;
  border-top: 1px solid #161624;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cookie-detail-list li {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  color: #3e4468;
  line-height: 1.5;
  padding-left: 10px;
  position: relative;
}
.cookie-detail-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #3e63dd;
  font-size: 1rem;
  line-height: 1.2;
}
.cookie-detail-list li strong { color: #7880b8; font-weight: 600; }

/* Settings footer */
.cookie-settings-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px 22px;
  border-top: 1px solid #1a1a2a;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, #121218 60%, transparent);
}

/* Manage link in policy page */
.cookie-manage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 22px;
  background: linear-gradient(145deg, rgba(62,99,221,0.12), rgba(62,99,221,0.05));
  border: 1px solid rgba(62,99,221,0.25);
  border-radius: 10px;
  color: #7888c8;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.cookie-manage-btn:hover {
  background: linear-gradient(145deg, rgba(62,99,221,0.22), rgba(62,99,221,0.1));
  color: #c0ceff;
  border-color: rgba(62,99,221,0.42);
  box-shadow: 0 2px 14px rgba(62,99,221,0.18);
}

/* Mobile */
@media (max-width: 640px) {
  .cookie-banner {
    padding: 14px 18px;
  }
  .cookie-banner-inner {
    flex-direction: column;
    gap: 14px;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
  }
  .cookie-settings-modal {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    align-self: flex-end;
    max-height: 92vh;
  }
  .cookie-settings-overlay {
    align-items: flex-end;
    padding: 0;
  }
}

/* ── Chat: tag discriminator ── */
.chat-msg-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: #3a3a60;
}

/* ── Chat: delete button (appears on hover) ── */
.chat-msg-delete {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #4a4a6a;
  cursor: pointer;
  border-radius: 5px;
  font-size: 0.85rem;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.chat-message:hover .chat-msg-delete { opacity: 1; }
.chat-msg-delete:hover { background: rgba(255,70,85,0.15); color: #ff4655; }

/* ── Chat right-click context menu ── */
.chat-ctx-menu {
  position: fixed;
  z-index: 99999;
  min-width: 190px;
  background: #0f0f1e;
  border: 1px solid #2a2a44;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 8px 36px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.4);
}
.chat-ctx-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #a0aad0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  padding: 9px 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.chat-ctx-item:hover { background: rgba(255,255,255,0.06); color: #d4dcff; }
.chat-ctx-danger { color: #ff6070; }
.chat-ctx-danger:hover { background: rgba(255,70,85,0.14) !important; color: #ff4655 !important; }

/* ── Admin web-users edit form ── */
.admin-user-edit-btn {
  margin-left: auto;
  background: none;
  border: 1px solid #2a2a44;
  border-radius: 7px;
  color: #5a5a7a;
  cursor: pointer;
  padding: 4px 9px;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.admin-user-edit-btn:hover { background: rgba(62,99,221,0.12); color: #7a9aff; border-color: rgba(62,99,221,0.4); }
.admin-user-edit-form {
  margin-top: 12px;
  padding: 14px;
  background: rgba(62,99,221,0.04);
  border: 1px solid #1e1e38;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.admin-user-edit-form input {
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a44;
  border-radius: 8px;
  color: #c8d4ff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}
.admin-user-edit-form input:focus { border-color: rgba(62,99,221,0.5); }
.admin-user-edit-btns { display: flex; gap: 8px; margin-top: 4px; }
