/* ================= COLOR SYSTEM ================= */

:root{
  --color-bg:#F2E8D5;
  --color-card:#FFFFFF;
  --color-text:#2E5D3A;
  --color-text-muted:#5f7d66;

  --color-primary:#E5A9A9;
  --color-primary-hover:#d99696;

  --color-highlight:#E3C565;

  --color-border:rgba(46,93,58,.15);
}

/* DARK MODE */
[data-theme="dark"]{
  --color-bg:#1F241F;
  --color-card:#2A302A;
  --color-text:#E6E1D6;
  --color-text-muted:#A8B3A0;

  --color-primary:#C98787;
  --color-primary-hover:#b57676;

  --color-highlight:#D4B24F;

  --color-border:rgba(255,255,255,.08);
}

/* ================= DARK MODE INPUT FIX ================= */

[data-theme="dark"] .sheet input,
[data-theme="dark"] .sheet select{

  background:#3A413A;        /* lebih gelap & solid */
  color:#FFFFFF;             /* text putih jelas */

  border:1px solid rgba(255,255,255,.12);
}

[data-theme="dark"] .sheet input::placeholder{
  color:rgba(255,255,255,.55);
}

[data-theme="dark"] .sheet input:focus{
  border-color:var(--color-highlight);
  box-shadow:0 0 0 3px rgba(212,178,79,.25);
}


@font-face {
  font-family: 'BrittanySignature';
  src: url('./fonts/BrittanySignature.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.field-group{
  margin-bottom:16px;
}

.field-group label{
  display:block;
  font-size:13px;
  margin-bottom:6px;
  color:var(--color-text-muted);
}

[data-theme="dark"] .field-group label{
  color:rgba(255,255,255,.7);
}
/* ================= RESET ================= */

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

html, body {
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

/* ================= APP LAYOUT ================= */

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;   /* ← ini kuncinya */

  padding: 8px 12px 6px;    /* sedikit dipadatkan */

  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.header-title{
  font-family: 'BrittanySignature', serif;
  font-size: 17px;
  line-height: 1.7;      /* dipadatkan */
  letter-spacing: 0.5px;
}

.header-title br{
  display: block;
}

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

.user-label {
  font-size: 12px;
  color: var(--color-text-muted);
}

.theme-toggle,
.profile-icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-card);

  cursor: pointer;
  transition: all .2s ease;
}

.theme-toggle:active,
.profile-icon:active {
  transform: scale(.92);
  background: var(--color-highlight);
}

/* ================= CONTENT ================= */

.content {
  flex: 1;
  padding: 0 12px 90px;
}

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

.schedule-card,
.profile-card,
.metric-card,
.panel {
  background: var(--color-card);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 16px;

  box-shadow:
    0 4px 16px rgba(0,0,0,.04);

  transition: transform .2s ease, box-shadow .2s ease;
}

.schedule-card:active,
.profile-card:active,
.metric-card:active {
  transform: scale(.98);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* ================= METRIC ================= */

.metric-label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.metric-value {
  font-size: 26px;
  font-weight: 600;
}

/* ================= ACCOUNT ACTION FIX ================= */

.account-actions{
  margin-top:18px;
  display:flex;
  gap:12px;
}

.account-actions button{
  flex:1;
  height:48px;
  border-radius:16px;
  font-weight:600;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all .2s ease;
  border:none;
}

/* PRIMARY */
.account-actions .btn-primary{
  background:var(--color-primary);
  color:var(--color-text);
}

.account-actions .btn-primary:hover{
  background:var(--color-primary-hover);
}

.account-actions .btn-primary:active{
  background:var(--color-highlight);
  transform:scale(.97);
}

/* SECONDARY */
.account-actions .btn-secondary{
  background:transparent;
  border:1px solid var(--color-border);
  color:var(--color-text);
}

.account-actions .btn-secondary:active{
  background:var(--color-highlight);
  transform:scale(.97);
}

/* SECONDARY */
.account-actions .btn-secondary{
  background:transparent;
  border:1px solid var(--color-border);
  color:var(--color-text);
  transition:all .2s ease;
}

.account-actions .btn-secondary:active{
  background:var(--color-highlight);
  transform:scale(.97);
}

/* ================= LEDGER ================= */

.ledger-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.ledger-date {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ================= BOTTOM NAV ================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: space-around;
  align-items: center;

  padding: 8px 0;

  background: var(--color-card);
  border-top: 1px solid var(--color-border);
}

.bottom-nav button {
  flex: 1;
  background: transparent;
  border: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  font-size: 20px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all .2s ease;
}

.bottom-nav button span {
  font-size: 11px;
}

.bottom-nav button.active {
  color: var(--color-highlight);
  transform: translateY(-3px);
}

/* ================= TOAST ================= */

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 18px;
  font-size: 14px;
  color: white;
  z-index: 9999;
  animation: fadeIn .2s ease;
}

.toast-success { background: var(--color-primary); }
.toast-error { background: #c76b6b; }
.toast-warning { background: var(--color-highlight); }

/* ================= ANIMATION ================= */

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}


/* ================= ACCOUNT ================= */

:root{
  --account-gap: 18px;
  --card-padding: 16px;
}

.account-container{
  padding-top: 12px;
  max-width:430px;
  margin:0 auto;
}

.account-card{
  background:var(--color-card);
  border-radius:24px;
  padding: var(--card-padding);
  margin-bottom: 12px;
}

.account-top{
  display:flex;
  align-items:center;
  gap:16px;
}

.account-avatar{
  width:72px;
  height:72px;
  border-radius:50%;
  background:var(--color-highlight);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  cursor:pointer;
  flex-shrink:0;
}

.account-info{
  flex:1;
  text-align:right;
}

.account-username{
  font-weight:600;
  font-size:18px;
}

.account-level,
.account-playing{
  font-size:12px;
  color:var(--color-text-muted);
  margin-top:2px;
}

.account-membership{
  display:inline-block;
  padding:4px 10px;
  border-radius:20px;
  font-size:12px;
  background:var(--color-highlight);
  color:var(--color-text);
  margin-top:8px;
}

.account-actions{
  margin-top:18px;
  display:flex;
  gap:12px;
}

.btn-secondary{
  flex:1;
  padding:12px;
  border-radius:16px;
  border:1px solid var(--color-border);
  background:transparent;
  color:var(--color-text);
  cursor:pointer;
}

.account-group{
  background:var(--color-card);
  border-radius:24px;
  overflow:hidden;
  margin:0;
}

.group-row{
  padding:16px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--color-border);
  font-size:14px;
  cursor:pointer;
  transition:background .2s ease;
}

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

.group-row:active{
  background:var(--color-highlight);
}


/* ================= BOTTOM SHEET ================= */

.sheet-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(6px);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  z-index:9998;
}

.sheet-overlay.active{
  opacity:1;
  pointer-events:auto;
}

.sheet{
  position:fixed;
  left:0;
  right:0;
  bottom:0;

  background:var(--color-card);
  border-radius:28px 28px 0 0;

  padding:24px 20px calc(40px + env(safe-area-inset-bottom));

  max-height:90vh;
  overflow-y:auto;

  transform:translateY(100%);
  transition:transform .35s cubic-bezier(.22,1,.36,1);

  box-shadow:0 -12px 30px rgba(0,0,0,.12);

  z-index:9999;
}

.sheet.active{
  transform:translateY(0);
}

/* HANDLE */

.sheet-handle{
  width:48px;
  height:5px;
  border-radius:10px;
  background:var(--color-border);
  margin:0 auto 22px auto;
}

/* TITLE */

.sheet h3{
  margin-bottom:20px;
  margin-top:0;
  font-size:18px;
  font-weight:600;
}

/* ================= INPUT ================= */

.sheet input,
.sheet select{
  width:100%;
  height:52px;
  padding:0 16px;
  margin-bottom:16px;

  border-radius:18px;
  border:1px solid var(--color-border);

  background:#E9DFC8;
  color:var(--color-text);

  font-size:15px;
  outline:none;

  transition:all .2s ease;
}

.sheet input:focus,
.sheet select:focus{
  border-color:var(--color-highlight);
  box-shadow:0 0 0 3px rgba(227,197,101,.25);
}

/* DATE ICON FIX */

.sheet input[type="date"]::-webkit-calendar-picker-indicator{
  filter:brightness(0.4);
  opacity:.8;
}

/* ================= PHONE ROW ================= */

.phone-row{
  display:flex;
  gap:10px;
  margin-bottom:16px;
}

.phone-row select{
  width:120px;
  height:52px;
  border-radius:18px;
  border:1px solid var(--color-border);
  background:var(--color-bg);
  color:var(--color-text);
  padding:0 12px;
}

.phone-row input{
  flex:1;
  height:52px;
  border-radius:18px;
  border:1px solid var(--color-border);
  background:var(--color-bg);
  color:var(--color-text);
  padding:0 16px;
}

/* DARK MODE FIX */
[data-theme="dark"] .phone-row select,
[data-theme="dark"] .phone-row input{
  background:#3A413A;
  color:#fff;
}

/* ================= TERMS ================= */

.terms-row{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  color:var(--color-text);
  margin:10px 0 18px;
  cursor:pointer;
}

.terms-row input{
  width:18px;
  height:18px;
  margin:0;
  accent-color:var(--color-highlight);
  cursor:pointer;
}

/* ================= BUTTON ================= */

.sheet .form-submit{
  width:100%;
  height:50px;
  border-radius:18px;
  border:none;
  font-weight:600;
  background:var(--color-primary);
  color:var(--color-text);
  cursor:pointer;
  transition:all .2s ease;
}

.sheet .form-submit:hover{
  background:var(--color-primary-hover);
}

.sheet .form-submit:active{
  background:var(--color-highlight);
  transform:scale(.97);
}


/* ================= FIX INTL TEL INPUT ================= */

.sheet .iti {
  width:100%;
  margin-bottom:16px;
}

.sheet .iti input {
  width:100%;
  height:52px;
  padding-left:60px !important; /* ruang untuk flag */
  border-radius:18px;
  background:inherit;
  color:var(--color-text);
  border:1px solid var(--color-border);
}

.iti__country-list {
  z-index: 99999 !important;
}

.iti__flag-container{
  left:12px;
}

/* ================= MEMBER PAGE ================= */

.member-container{
  padding:16px 0;
}

/* CARD */
.member-card{
  background:var(--color-card);
  padding:20px;
  border-radius:22px;
  margin-bottom:20px;
  display:flex;
  gap:20px;
  position:relative;
}

/* LEFT SIDE */
.member-left{
  width:35%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.member-avatar{
  width:90px;
  height:90px;
  border-radius:50%;
  background:var(--color-primary);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:36px;
  color:white;
}

.follow-stats{
  font-size:12px;
  text-align:center;
  opacity:.8;
}

.member-bio{
  font-size:12px;
  text-align:center;
  opacity:.7;
}

/* RIGHT SIDE */
.member-right{
  width:65%;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.member-username{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:600;
}


/* ROLE BADGE */
.role-badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:12px;
  font-size:11px;
  font-weight:600;
  text-transform:capitalize;
}

.badge-member{
  background:#ddd;
  color:#333;
}

.badge-admin{
  background:#E3C565;
  color:#2E5D3A;
}

.badge-supercoach{
  background:#2E5D3A;
  color:white;
}

.badge-coach{
  background:#3b82f6;
  color:white;
}

/* ACTION BUTTONS */

.follow-btn,
.friend-btn{
  padding:6px 12px;
  border-radius:14px;
  border:none;
  cursor:pointer;
  font-size:12px;
}

.follow-btn{
  background:var(--color-primary);
  color:white;
}

.friend-btn{
  background:#ccc;
  color:#333;
}

/* BLOCK BUTTON */
.block-btn{
  position:absolute;
  top:10px;
  right:14px;
  cursor:pointer;
  font-size:14px;
  opacity:.8;
}

.block-btn:hover{
  opacity:1;
}


.member-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}


.chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dfe3e6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s ease;
}

.chat-btn:hover {
  background: #cfd4d8;
}

.btn-primary {
  background: #d97a82; /* pink kamu sebelumnya */
  border: none;
  color: white;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.full {
  width: 100%;
  margin-top: 12px;
}

.follow-btn.following {
  background: #4caf50;
}

.mutual-badge {
  background: #4caf50;
  color: white;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 8px;
  margin-left: 6px;
}

.follows-you-badge {
  background: #2196f3;
  color: white;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 8px;
  margin-left: 6px;
}

/* TAMPILAN LAYAR CHAT */
.chat-container{
  display:flex;
  flex-direction:column;
  height:100vh;
  background:var(--color-bg);
}

.chat-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px;
  background:var(--color-card);
  border-bottom:1px solid var(--color-border);
  border-bottom:1px solid rgba(255,255,255,0.05);
}

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

.chat-actions{
  display:flex;
  align-items:center;
}

.chat-clear{
  font-size:18px;
  cursor:pointer;
  opacity:0.7;
  transition:0.2s ease;
}

.chat-clear:hover{
  opacity:1;
  transform:scale(1.1);
}

.chat-back{
  font-size:20px;
  cursor:pointer;
  margin-right:12px;
}

.chat-user-info{
  display:flex;
  align-items:center;
  gap:12px;
}

.chat-user-text{
  display:flex;
  flex-direction:column;
}

.chat-username{
  font-weight:600;
  font-size:15px;
}

.chat-status{
  font-size:12px;
  opacity:0.6;
}

/* CHAT BODY */
.chat-messages{
  flex:1;
  overflow-y:auto;
  padding:16px 16px 20px 16px;
  display:flex;
  flex-direction:column;
  scroll-behavior:smooth;
}


/* BUBBLE */
.chat-bubble{
  position: relative;
  display: inline-flex;
  flex-direction: column;

  max-width: 75%;
  padding: 10px 14px 6px 14px;

  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.2px;

  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.chat-bubble.mine .seen-indicator{
  color: #4fc3f7;
}

.bubble-content{
  margin-bottom: 4px;
  word-wrap: break-word;
}

.bubble-footer{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  opacity: 0.7;
}

.bubble-time{
  font-size: 11px;
}

.seen-indicator{
  font-size: 11px;
}
/* spacing antar bubble dalam group */
.chat-bubble + .chat-bubble{
  margin-top:6px;
}
/* warna */
.chat-bubble.mine{
  background:var(--color-primary);
  color:#fff;
  border-bottom-right-radius:6px;
  -webkit-font-smoothing: antialiased;
}

.chat-bubble.theirs{
  background:var(--color-card);
  color:var(--color-text);
  border:1px solid var(--color-border);
  border-bottom-left-radius:6px;
  -webkit-font-smoothing: antialiased;
}
/* GROUP WRAPPER */
.chat-group{
  display:flex;
  flex-direction:column;
  margin-bottom:14px;
}

.chat-group.mine{
  align-items:flex-end;
}

.chat-group.theirs{
  align-items:flex-start;
}

/* CHAT AVATAR */
.chat-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  overflow:hidden;
}

.chat-avatar-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.chat-avatar-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--color-border);
  border-radius:50%;
}


.unread-badge{
  background:#ff3b3b;
  color:white;
  font-size:12px;
  padding:2px 6px;
  border-radius:999px;
  margin-left:6px;
}
.typing-indicator{
  display:flex;
  gap:4px;
  padding:8px 12px;
  margin-left:8px;
}

.typing-indicator span{
  width:6px;
  height:6px;
  background:#999;
  border-radius:50%;
  animation:blink 1.4s infinite both;
}

.typing-indicator span:nth-child(2){ animation-delay:.2s; }
.typing-indicator span:nth-child(3){ animation-delay:.4s; }

.chatlist-container{
  padding:16px;
}

.chatlist-header{
  margin-bottom:12px;
}

.chatlist-title{
  font-size:18px;
  font-weight:600;
}

.chatlist-body{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.chatlist-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px;
  background:var(--color-card);
  border:1px solid var(--color-border);
  border-radius:12px;
  cursor:pointer;
}

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

.chatlist-avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  overflow:hidden;
}

.chatlist-avatar-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.chatlist-avatar-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#1f3529;
}

.chatlist-text{
  display:flex;
  flex-direction:column;
}

.chatlist-username{
  font-weight:600;
  font-size:14px;
}

.chatlist-preview{
  font-size:12px;
  opacity:0.7;
}

.chatlist-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

.chatlist-time{
  font-size:11px;
  opacity:0.6;
}

.chatlist-badge{
  background:#ff4d4f;
  color:white;
  font-size:11px;
  padding:3px 8px;
  border-radius:20px;
}
.unread-section {
  margin-top: 24px;
}

.unread-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.unread-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.badge {
  background: #d4af37;
  color: #000;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.unread-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-top: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}

.unread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.unread-content {
  flex: 1;
  overflow: hidden;
}

.unread-dot {
  width: 8px;
  height: 8px;
  background: #4da3ff;
  border-radius: 50%;
}

.unread-name {
  font-weight: 600;
  font-size: 11px;
  opacity: 0.8;
}

.unread-text {
  font-size: 12px;
  opacity: 0.65;
}

.unread-preview {
  font-size: 13px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-time {
  font-size: 11px;
  opacity: 0.5;
}

.hidden {
  display: none;
}
/* ===== HOME BASE ===== */
.home-container {
  padding: 20px;
}

/* ===== HEADER ===== */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-profile-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-avatar img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-username {
  font-weight: 600;
  font-size: 16px;
}

.home-gpoint {
  font-size: 13px;
  opacity: 0.7;
}

.home-unread-icon {
  position: relative;
  font-size: 22px;
  cursor: pointer;
}

.home-unread-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50px;
}
/* Right header container */
.home-right-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Mini preview under mail */
.home-unread-preview {
  margin-top: 6px;
  max-width: 180px;
}

/* Mini unread bubble */
.home-unread-mini {
  background: rgba(255,255,255,0.15);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  text-align: right;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
/* ===== UNREAD SCROLL ===== */
/* Container scroll */
.home-unread-scroll {
  margin-top: 12px;

  display: flex;
  gap: 10px;
  overflow-x: auto;

  justify-content: flex-end;   /* 🔥 bikin rata kanan */
}

/* Item bubble */
.home-unread-item {
  background: rgba(255,255,255,0.08);
  padding: 8px 12px;
  border-radius: 12px;
  min-width: 140px;

  backdrop-filter: blur(6px);
  cursor: pointer;
}

/* ===== WALLET CARD ===== */
.wallet-card-pink {
  margin-top: 24px;
  padding: 20px;
  border-radius: 22px;

  background: linear-gradient(
  145deg,
  rgba(255, 170, 200, 0.8),
  rgba(255, 140, 190, 0.7)
);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 
    0 10px 25px rgba(255, 120, 170, 0.25),
    inset 0 1px 1px rgba(255,255,255,0.3);

  color: white;
}

.wallet-card-pink::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: radial-gradient(
    circle at top left,
    rgba(255,255,255,0.4),
    transparent 60%
  );
  pointer-events: none;
}
.wallet-saldo-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.9;
}
.wallet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.wallet-main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.wallet-amount {
  font-size: 22px;
  font-weight: bold;
}

.wallet-topup-btn {
  margin-top: 10px;
  background: white;
  color: #ff4d88;
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.member-card-img {
  width: 95px;
  border-radius: 8px;
}
/* ===== Eye Button ===== */
.eye-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  opacity: 0.75;
  transition: 0.2s ease;
}

.eye-btn:hover {
  opacity: 1;
}

.eye-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.4;
}


.dashboard-card{
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all .2s ease;
}

.dashboard-card:hover{
  transform: translateY(-2px);
  border: 1px solid rgba(255,255,255,0.15);
}

.card-title{
  font-size: 13px;
  opacity: .7;
  margin-bottom: 6px;
}

.card-value{
  font-size: 22px;
  font-weight: 600;
}

.reward-card{
  background: linear-gradient(
    135deg,
    rgba(255,215,0,0.08),
    rgba(255,255,255,0.04)
  );
  cursor: pointer;
}

.reward-title{
  font-size: 16px;
  font-weight: 600;
}

.reward-sub{
  font-size: 12px;
  opacity: .6;
  margin-top: 4px;
}

/* ================= LEVEL CARD ================= */

.level-card{
  margin-top:18px;
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border:1px solid var(--color-border);
}

[data-theme="dark"] .level-card{
  background:rgba(255,255,255,0.05);
}

.level-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.level-title{
  font-size:16px;
  font-weight:600;
}

.exp-info{
  font-size:13px;
  margin-top:6px;
  color:var(--color-text-muted);
}

.exp-bar{
  margin-top:8px;
  height:8px;
  background:rgba(0,0,0,0.08);
  border-radius:10px;
  overflow:hidden;
}

[data-theme="dark"] .exp-bar{
  background:rgba(255,255,255,0.08);
}

.exp-fill{
  height:100%;
  border-radius:10px;
  background:linear-gradient(
    90deg,
    #E3C565,
    #FFD700
  );
  transition:width 0.4s ease;
}

/* ================= EXP SECTION ================= */

.account-exp-text{
  font-size:13px;
  margin-top:4px;
  color:var(--color-text-muted);
}

.account-exp-bar{
  margin-top:6px;
  height:8px;
  background:rgba(0,0,0,0.08);
  border-radius:10px;
  overflow:hidden;
}

[data-theme="dark"] .account-exp-bar{
  background:rgba(255,255,255,0.08);
}

.account-exp-fill{
  height:100%;
  border-radius:10px;
  background:linear-gradient(90deg,#E3C565,#FFD700);
  transition:width 0.4s ease;
}

/* =========================
   PROFILE NAME + VERIFIED
========================= */

.profile-name-row{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.profile-name-row h2{
  margin:0;
  font-size:18px;
  font-weight:600;
  color:inherit; /* supaya ikut theme */
}


.phone-group{
  display:flex;
  gap:8px;
  align-items:center;
}

.country-wrapper{
  width:110px; /* kecil dan proporsional */
  flex-shrink:0;
}

.country-select{
  width:100%;
  padding:12px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(255,255,255,0.05);
  color:inherit;
  font-size:14px;
  appearance:none;
}

.phone-input{
  flex:1; /* nomor jadi panjang */
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(255,255,255,0.05);
  color:inherit;
}

.field-label{
  display:block;
  font-size:13px;
  margin-bottom:6px;
  opacity:0.7;
}
@keyframes blink{
  0%{opacity:.2;}
  20%{opacity:1;}
  100%{opacity:.2;}
}
.sheet-handle{
  width:40px;
  height:5px;
  border-radius:3px;
  background:rgba(255,255,255,0.4);
  margin:10px auto;
  cursor:pointer;
}

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


.account-bio{
  font-size:13px;
  opacity:.75;
  margin-top:10px;
  line-height:1.4;
}
.checkin-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg,#16a34a,#15803d);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}

.checkin-btn:hover {
  opacity: .9;
}

.session-closed {
  opacity: .6;
}

/* ===============================
   RACKET DISPLAY (SESSION POPUP)
================================= */
.racket-availability {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 10px;
  font-size: 13px;
  color: #555;
}

/* ===============================
   RACKET MODAL (JOIN FLOW)
================================= */
.racket-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: flex-end;
  z-index: 10000;
}

.racket-modal {
  width: 100%;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  animation: slideUp .25s ease-out;
}

.racket-modal h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
}

.racket-select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
  background: #fafafa;
  margin-bottom: 15px;
  appearance: none;
}

.racket-total-preview {
  font-size: 14px;
  margin-bottom: 15px;
  color: #333;
  font-weight: 500;
}

.racket-confirm-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: #16a34a;
  color: white;
  font-weight: 600;
  font-size: 15px;
}

.racket-cancel-btn {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: #e5e5e5;
  margin-top: 8px;
}


.session-notes {
  margin-top: 12px;
  padding: 10px;
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
}

.notes-content {
  white-space: pre-line;
  font-size: 14px;
  margin-top: 6px;
  opacity: 0.85;
}

.session-cashback-info {
  margin-top: 10px;
  padding: 10px;
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
  font-size: 13px;
}

.cashback-list div {
  margin-top: 3px;
  font-weight: 500;
}

/* ===============================
   CONFIRM MODAL
================================= */

.confirm-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.confirm-box{
  background: #1e1e1e;
  border-radius: 18px;
  padding: 24px;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: fadeInScale 0.2s ease;
}

.confirm-box h3{
  margin-bottom: 12px;
  font-size: 18px;
}

.confirm-box p{
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.confirm-actions{
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  gap: 10px;
}

.confirm-actions button{
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.confirm-actions button:first-child{
  background: #2b2b2b;
  color: #aaa;
}

.confirm-actions button:last-child{
  background: #00c2ff;
  color: #000;
}

.confirm-actions button:hover{
  transform: scale(1.03);
}

@keyframes fadeInScale{
  from{
    opacity:0;
    transform:scale(0.95);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

/* Overlay */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Box */
.modal-box{
  background: #1e1e1e;
  border-radius: 16px;
  padding: 22px;
  width: 90%;
  max-width: 380px;
  animation: fadeInScale 0.2s ease;
}

.modal-title{
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.modal-message{
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Buttons */
.modal-actions{
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions button{
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

/* Default */
.modal-default .modal-confirm{
  background: #00c2ff;
  color: #000;
}

/* Danger (Cancel Booking) */
.modal-danger .modal-confirm{
  background: #e74c3c;
  color: white;
}

/* Success */
.modal-success .modal-confirm{
  background: #2ecc71;
  color: #000;
}

.modal-cancel{
  background: #2b2b2b;
  color: #aaa;
}

@keyframes fadeInScale{
  from{ opacity:0; transform:scale(0.95); }
  to{ opacity:1; transform:scale(1); }
}

/* ===============================
   FULLSCREEN SCANNER
================================= */

body.scan-mode{
  margin:0;
  padding:0;
  overflow:hidden;
  background:#000;
}

#reader{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  z-index:10;
}

#reader video{
  width:100%;
  height:100%;
  object-fit:cover;
}

.membership-progress-box{
  background:#1f3a2d;
  border-radius:18px;
  padding:16px;
  margin:12px 0 18px;
  text-align:center;
}

.progress-bar{
  height:8px;
  background:#2c4c3c;
  border-radius:20px;
  margin:8px 0;
  overflow:hidden;
}

.elite-day.disabled {
  opacity:0.4;
  pointer-events:none;
}

.progress-fill{
  height:100%;
  width:0%;
  background:#00ff99;
  transition:.4s ease;
}

.membership-card{
  position:relative;
  width:100%;
  max-width:360px;
  margin:16px auto;
}

.membership-card img{
  width:100%;
  border-radius:22px;
}

.card-overlay{
  position:absolute;
  inset:0;
  padding:24px;
  color:white;
}

.card-name{
  position:absolute;
  bottom:60px;
  left:24px;
  font-weight:600;
}

.card-code{
  position:absolute;
  bottom:35px;
  left:24px;
  font-size:13px;
  opacity:.9;
}

/* =============================
   HOME CARD SIZE FIX
============================= */

#homeMemberCard .membership-card{
  max-width: 120px;
  border-radius: 14px !important;   /* kurangi curve biar lebih premium */
  overflow: hidden;                 /* jaga biar radius clean */
}

/* =============================
   HOME CARD TEXT POSITION FIX
============================= */

#homeMemberCard .wallet-member-name{
  bottom: 20px;
  left: 10px;
  font-size: 6px;        /* 4px terlalu kecil & pecah */
  letter-spacing: 0.3px; /* lebih tajam */
}

#homeMemberCard .wallet-member-code{
  bottom: 12px;
  left: 10px;
  font-size: 5px;
  letter-spacing: 0.4px;
}


.coin{
  position:fixed;
  top:-40px;
  width:18px;
  height:18px;
  background:gold;
  border-radius:50%;
  animation:fall linear forwards;
  z-index:9999;
}

@keyframes fall{
  to{ transform:translateY(110vh); }
}

/* ===== DAILY CHECK-IN CARD (THEME FIXED) ===== */
.daily-card{
  margin-top:24px;
  padding:20px;
  border-radius:22px;

  background:var(--color-card);
  color:var(--color-text);

  border:1px solid var(--color-border);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.08);

  position:relative;
  overflow:hidden;
}

/* subtle premium overlay */
.daily-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:22px;

  background: radial-gradient(
    circle at top left,
    rgba(255,255,255,0.12),
    transparent 60%
  );

  pointer-events:none;
}

/* HEADER */
.daily-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}

.daily-title{
  font-size:16px;
  font-weight:600;
}

.daily-info{
  font-size:13px;
  opacity:.7;
  cursor:pointer;
}

/* DAY BOX SCROLL */
.daily-days{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom:8px;
}

.daily-days::-webkit-scrollbar{
  height:6px;
}

.daily-days::-webkit-scrollbar-thumb{
  background:var(--color-border);
  border-radius:6px;
}

/* DAY BOX */
.daily-box{
  min-width:95px;
  padding:12px;
  border-radius:14px;
  text-align:center;
  cursor:pointer;
  transition:.2s ease;

  background:var(--color-bg);
  border:1px solid var(--color-border);
  color:var(--color-text);
}

.daily-box:hover{
  transform:translateY(-2px);
  background:rgba(0,0,0,0.04);
}

[data-theme="dark"] .daily-box:hover{
  background:rgba(255,255,255,0.06);
}

.daily-box.claimed{
  background:rgba(46, 204, 113, 0.15);
  border:1px solid #2ecc71;
}

/* TEXT */
.daily-day{
  font-size:12px;
  opacity:.7;
  margin-bottom:6px;
}

.daily-reward{
  font-size:14px;
  font-weight:600;
  color:var(--color-highlight);
}

/* STATUS BAR */
.daily-status{
  margin-top:14px;
  padding:12px;
  border-radius:12px;
  text-align:center;
  font-size:13px;

  background:var(--color-bg);
  border:1px solid var(--color-border);
  color:var(--color-text);
}

.daily-status.done{
  background:rgba(46, 204, 113, 0.15);
  border:1px solid #2ecc71;
  color:#2ecc71;
}

/* ===== DARK MODE ENHANCEMENT ===== */
[data-theme="dark"] .daily-card{
  box-shadow:
    0 10px 25px rgba(0,0,0,0.5);
}

/* ===== QR READER ===== */
#qrReader {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
}

#qrReader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 16px;
}

/* ===== HEADER CHAT AREA ===== */

.header-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}

.header-top-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.header-bottom-row{
  margin-top:-6px;   /* tarik naik supaya nempel */
}
.header-top-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.user-label{
  display:flex;
  align-items:center;
  height:36px;   /* samakan dengan toggle */
}

/* ===== CHAT BUTTON ===== */

.chat-btn{
  position:relative;
  background:none;
  border:none;
  color:inherit;
  font-size:16px;
  cursor:pointer;
}

.chat-badge{
  position:absolute;
  top:-5px;
  right:-6px;
  min-width:16px;
  height:16px;
  padding:0 4px;

  border-radius:999px;
  background:#ff3b30;
  color:#fff;

  font-size:10px;
  font-weight:600;

  display:flex;
  align-items:center;
  justify-content:center;
}

.chat-badge.hidden{
  display:none;
}
.chatlist-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px;
  border-radius:12px;
  cursor:pointer;
  transition:.15s ease;
}

.chatlist-card:hover{
  background:rgba(255,255,255,0.05);
}

.chatlist-avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  overflow:hidden;
}

.chatlist-avatar-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.chatlist-avatar-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#1f3529;
}

.chatlist-text{
  display:flex;
  flex-direction:column;
}

.chatlist-username{
  font-weight:600;
  font-size:14px;
}

.chatlist-preview{
  font-size:12px;
  opacity:0.7;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:180px;
}

.chatlist-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

.chatlist-time{
  font-size:11px;
  opacity:0.6;
}

.chatlist-badge{
  background:#25D366;
  color:white;
  font-size:11px;
  padding:3px 8px;
  border-radius:20px;
}

/* =========================================
   CHAT INPUT FULL WIDTH FIX
========================================= */

.chat-input-wrapper{
  width:100%;
  display:flex;
  gap:10px;
  padding:10px 12px;
  box-sizing:border-box;
}

.chat-input-wrapper textarea{
  flex:1;
  resize:none;
  border-radius:14px;
  border:none;
  padding:10px 12px;
  font-size:14px;
  box-sizing:border-box;
  width:100%;
}

.chat-input-wrapper button{
  padding:0 18px;
  border:none;
  border-radius:20px;
  background:#22c55e;
  color:white;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}


/* ===============================
   CHAT INPUT FULL WIDTH FIX
================================= */
.chat-input{
  display:flex;
  border-top:1px solid rgba(255,255,255,0.05)
}

.chat-input input{
  flex:1;
  background:#1a2f25;
  border:none;
  border-radius:20px;
  padding:10px 14px;
  color:white;
}

.chat-input{
  position:relative;
  width:100%;
  display:flex;
  gap:10px;
  padding:10px 12px;
  box-sizing:border-box;
}

.chat-input textarea{
  flex:1;
  resize:none;
  border:none;
  outline:none;
  padding:12px 14px;
  border-radius:16px;
  font-size:14px;
  box-sizing:border-box;
  width:100%;
  min-height:42px;
}

.chat-input button{
  margin-left:10px;
  background:#2d7a5a;
  border:none;
  padding:10px 16px;
  border-radius:20px;
  color:white;
  cursor:pointer;
}

.chat-input button{
  border:none;
  padding:0 20px;
  border-radius:20px;
  background:#22c55e;
  color:#fff;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
  height:42px;
}




/* ==============================
   HEADER STATS
============================== */

.header-bottom-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.header-stats{
  display:flex;
  flex-direction:column;
  justify-content:center;
  font-size:12px;
  line-height:1.2;
  text-align:right;
}

.stat-online{
  color:#7CFF8A;
  font-weight:600;
  animation:pulseOnline 2s infinite;
}

.stat-weekly{
  color:#e0e0e0;
}


/* ==============================
   ANIMATIONS
============================== */

@keyframes waveMove{
  0%{background-position:0 0;}
  100%{background-position:1000px 0;}
}

@keyframes waterGlow{
  from{opacity:0.1;}
  to{opacity:0.3;}
}

@keyframes goldShine{
  0%{transform:translateX(-100%);}
  100%{transform:translateX(100%);}
}

@keyframes silverPulse{
  0%,100%{transform:scale(1);}
  50%{transform:scale(1.03);}
}

@keyframes pulseOnline{
  0%{opacity:1;}
  50%{opacity:0.5;}
  100%{opacity:1;}
}


/* ==============================
   LOADING
============================== */

.page-loading {
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.content {
  transition: opacity 0.2s ease;
}
/* =====================================================
   CHAT SEEN
===================================================== */

.chat-check{
  font-size:12px;
  margin-left:6px;
  color:#aaa;
}

.chat-check.seen{
  color:#3da5ff;
}


/

/* =============================
   VERIFIED PROGRESS - THEME AWARE PREMIUM
============================= */

.verified-progress-card{
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;

  background: var(--color-card);
  color: var(--color-text);

  border: 1px solid var(--color-border);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.08);

  backdrop-filter: blur(10px);

  position: relative;
  overflow: hidden;
}

/* subtle premium overlay */
.verified-progress-card::after{
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,215,0,0.06), transparent 50%);

  pointer-events: none;
  border-radius: inherit;
}

/* TITLE */
.verified-title{
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;

  color: var(--color-text);
  letter-spacing: 0.3px;
}

/* ROW */
.verified-row{
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 13px;
  margin-top: 10px;
}

.verified-row:first-of-type{
  margin-top: 0;
}

/* LABEL */
.verified-row div:first-child{
  opacity: 0.65;
}

/* VALUE */
.verified-row div:last-child{
  font-weight: 500;
  display: flex;
  align-items: center;
}

/* =============================
   BAR (TRACK)
============================= */

.verified-bar{
  height: 10px;
  width: 100%;

  background: var(--color-border);

  border-radius: 999px;
  overflow: hidden;

  margin-top: 6px;
}

/* =============================
   FILL BASE (NEON GLASS)
============================= */

.verified-fill{
  height: 100%;
  width: 0%;

  border-radius: 999px;

  background:
    linear-gradient(90deg, #00ffae, #00d4ff);

  box-shadow:
    0 0 8px rgba(0,255,174,0.6),
    0 0 16px rgba(0,212,255,0.4);

  transition: width 0.5s ease;
}

/* =============================
   GOLD BAR (INGOT STYLE)
============================= */

.verified-fill.gold{
  background:
    linear-gradient(
      90deg,
      #7a5c00 0%,
      #ffd700 25%,
      #fff3a0 50%,
      #ffd700 75%,
      #7a5c00 100%
    );

  box-shadow:
    0 0 6px rgba(255,215,0,0.6),
    inset 0 0 6px rgba(255,255,255,0.4);
}

/* =============================
   FULL STATE (SUCCESS GLOW)
============================= */

.verified-fill.full{
  background:
    linear-gradient(90deg, #52c41a, #95de64) !important;

  box-shadow:
    0 0 10px rgba(82,196,26,0.9),
    0 0 20px rgba(82,196,26,0.5);
}

/* =============================
   CHECK ICON
============================= */

.verified-check{
  color: #52c41a;
  font-weight: bold;
  margin-left: 6px;

  text-shadow: 0 0 6px rgba(82,196,26,0.6);
}

/* ===== DARK MODE ENHANCEMENT ===== */
[data-theme="dark"] .verified-progress-card{
  box-shadow:
    0 10px 26px rgba(0,0,0,0.6);
}

.championclub-btn{
  display:flex;
  align-items:center;
  gap:6px;

  padding:6px 10px;
  border-radius:10px;

  background:rgba(255,215,0,0.15);
  color:#FFD700;

  cursor:pointer;
  font-size:12px;
}

.championclub-btn i{
  font-size:12px;
}
.champion-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
}

.champion-header .title{
  font-size:18px;
  font-weight:700;
  color:#fff;
}

.close-btn{
  cursor:pointer;
  padding:6px 10px;
  border-radius:8px;
  background:rgba(255,255,255,0.1);
  color:#fff;
}

.champion-entry{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:12px;
  margin-bottom:8px;

  border-radius:12px;

  background: linear-gradient(
    135deg,
    rgba(255,215,0,0.15),
    rgba(255,255,255,0.05)
  );

  color:#fff;
}

.champion-entry .rank{
  font-weight:700;
  color:#FFD700;
}

.champion-entry .name{
  flex:1;
  margin-left:10px;
}

.champion-entry .stat{
  font-size:12px;
  opacity:0.8;
}

.champion-entry .diff{
  font-weight:600;
}

.champion-entry{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:12px;
  margin-bottom:8px;

  border-radius:12px;

  background: linear-gradient(
    135deg,
    rgba(255,215,0,0.15),
    rgba(255,255,255,0.05)
  );

  color:#fff;
}

.champion-entry .rank{
  font-weight:700;
  color:#FFD700;
}

.champion-entry .name{
  flex:1;
  margin-left:10px;
}

.champion-entry .stat{
  font-size:12px;
  opacity:0.8;
}

.champion-entry .diff{
  font-weight:600;
}

/* ===== PODIUM ===== */
.champion-podium{
  display:flex;
  justify-content:center;
  align-items:flex-end;
  gap:10px;
  margin-bottom:20px;
}

.podium-item{
  flex:1;
  text-align:center;
  padding:12px;
  border-radius:16px;
  color:#fff;
  position:relative;
  animation:popUp 0.4s ease;
}

/* HEIGHT DIFFERENCE */
.rank-1{ height:120px; background:linear-gradient(135deg,#FFD700,#ffb700); }
.rank-2{ height:100px; background:linear-gradient(135deg,#C0C0C0,#9e9e9e); }
.rank-3{ height:85px; background:linear-gradient(135deg,#cd7f32,#a05a2c); }

/* TEXT */
.podium-rank{
  font-weight:700;
}

.podium-name{
  margin-top:8px;
  font-size:14px;
}

.podium-diff{
  margin-top:6px;
  font-weight:600;
}

/* ===== ENTRY ===== */
.fade-in{
  animation:fadeIn 0.3s ease;
}

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

@keyframes popUp{
  from{ transform:scale(0.8); opacity:0; }
  to{ transform:scale(1); opacity:1; }
}

.movement{
  font-size:12px;
  margin-top:4px;
}

.movement.up{
  color:#00e676;
}

.movement.down{
  color:#ff5252;
}

.movement.same{
  color:#aaa;
}

.champion-entry.me{
  border:1px solid #00e5ff;
  box-shadow:0 0 10px rgba(0,229,255,0.3);
}


/* ===============================
   CHAMPION CLUB - LIGHT MODE FIX
=============================== */

.light-mode .champion-entry{
  color:#1b4332; /* forest green */
}

.light-mode .champion-entry .rank{
  color:#2d6a4f;
}

.light-mode .champion-entry .name{
  color:#1b4332;
}

.light-mode .champion-entry .stat{
  color:#40916c;
}

.light-mode .champion-entry .diff{
  color:#2d6a4f;
}

/* PODIUM TEXT */
.light-mode .podium-item{
  color:#1b4332;
}

.light-mode .podium-name{
  color:#1b4332;
}

.light-mode .podium-diff{
  color:#2d6a4f;
}

/* MOVEMENT */
.light-mode .movement.up{
  color:#2d6a4f;
}

.light-mode .movement.down{
  color:#d00000;
}

.light-mode .movement.same{
  color:#6c757d;
}


/* ================================
   VERIFY MODAL (CLEAN VERSION)
================================ */

.verify-modal{
  position:fixed;
  inset:0;

  background:rgba(0,0,0,.5);
  backdrop-filter:blur(4px);

  display:flex;
  align-items:center;
  justify-content:center;

  z-index:9999;

  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}

.verify-modal.show{
  opacity:1;
  pointer-events:auto;
}


/* ================================
   CARD
================================ */

.verify-modal-card{
  width:90%;
  max-width:340px;

  background:#ffffff;
  border-radius:16px;

  padding:22px 18px;
  text-align:center;

  box-shadow:0 12px 30px rgba(0,0,0,.25);

  animation:verifyFade .25s ease;
}

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


/* ================================
   ICON
================================ */

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


/* ================================
   TITLE
================================ */

.verify-title{
  font-size:18px;
  font-weight:600;
  margin-bottom:6px;
  color:#111;
}


/* ================================
   TEXT
================================ */

.verify-text{
  font-size:13px;
  color:#666;
  margin-bottom:16px;
  line-height:1.4;
}


/* ================================
   BUTTONS
================================ */

.verify-buttons{
  display:flex;
  gap:8px;
}

.verify-primary{
  flex:1;
  background:#1ca7ec;
  border:none;
  color:#fff;

  padding:10px;
  border-radius:10px;

  font-size:13px;
  font-weight:600;
  cursor:pointer;

  transition:.2s;
}

.verify-primary:hover{
  background:#1593d2;
}

.verify-secondary{
  flex:1;
  background:#f1f1f1;
  border:none;

  padding:10px;
  border-radius:10px;

  font-size:13px;
  cursor:pointer;

  transition:.2s;
}

.verify-secondary:hover{
  background:#e0e0e0;
}


/* ================================
   HEADER STATS (RAPIIN)
================================ */

.header-stats{
  display:flex;
  flex-direction:column;
  align-items:flex-end;

  font-size:12px;
  line-height:1.3;
}

.stat-online{
  color:#6CFF8F;
  font-weight:600;
}

.stat-weekly{
  color:#bfbfbf;
}


/* ================================
   LOADING STATE
================================ */

.page-loading{
  opacity:.4;
  transition:opacity .2s ease;
}

.content{
  transition:opacity .2s ease;
}

/* ===============================
   CHAMPION CLUB - FLOWER PINK THEME
============================== */

.leaderboard-wrapper{
  min-height:100vh;
  padding:16px;
  font-family:system-ui;

  /* 🌸 dusty pink gradient */
  background:linear-gradient(
    to bottom,
    #f8d7da,
    #f1c6cc,
    #eab3bb
  );

  /* 🌸 subtle flower pattern */
  background-image:url("https://www.transparenttextures.com/patterns/flowers.png");
  color:#111;
}


/* ===============================
   TITLE
============================== */

.leaderboard-title{
  font-size:20px;
  font-weight:700;
  margin-bottom:14px;
  color:#111;
}


/* ===============================
   PODIUM (FIX POSITION)
============================== */

.champion-podium{
  display:flex;
  justify-content:center;
  align-items:flex-end;
  gap:10px;
  margin-bottom:16px;
}

/* urutan: 3 - 1 - 2 */
.podium-item{
  width:90px;
  padding:10px;
  border-radius:14px;
  text-align:center;

  background:#ffffff;
  color:#111;

  box-shadow:0 4px 12px rgba(0,0,0,.08);
}

/* POSISI */
.rank-1{
  order:2;
  transform:scale(1.1);

  background:#FFD54F;
  color:#000;
}

.rank-2{
  order:3;
  background:#f1f1f1;
}

.rank-3{
  order:1;
  background:#f6d2a2;
}


/* TEXT PODIUM */
.podium-rank{
  font-size:12px;
  font-weight:600;
}

.podium-name{
  font-size:13px;
  font-weight:600;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.podium-stat{
  font-size:11px;
  opacity:.7;
}

.podium-diff{
  font-size:13px;
  font-weight:700;
  margin-top:2px;
}


/* ===============================
   LIST (ANTI TUMPAH)
============================== */

.champion-entry{
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:12px;
  margin-bottom:8px;

  border-radius:12px;
  background:#ffffff;

  box-shadow:0 2px 8px rgba(0,0,0,.05);

  font-size:13px;
  color:#111;
}

/* GRID BIAR RAPI */
.champion-entry .rank{
  width:40px;
  font-weight:600;
  color:#c59d00;
}

.champion-entry .name{
  flex:1;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.champion-entry .stat{
  width:90px;
  text-align:right;
  font-size:12px;
  opacity:.7;
}

.champion-entry .diff{
  width:45px;
  text-align:right;
  font-weight:700;
}


/* ===============================
   HIGHLIGHT USER
============================== */

.champion-entry.me{
  border:2px solid #ff7aa2;
  background:#fff0f3;
}


/* ===============================
   HEADER ROW FIX
============================== */

.header-bottom-row{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

/* ===============================
   LEADERBOARD - FLOWER PINK FIXED
============================== */

.leaderboard-wrapper{
  min-height:100vh;
  padding:16px;
  font-family:system-ui;

  background:
    linear-gradient(to bottom,#f8d7da,#f1c6cc,#eab3bb),
    url("https://www.transparenttextures.com/patterns/flowers.png");

  color:#111;
}


/* ===============================
   TITLE
============================== */

.leaderboard-title{
  font-size:20px;
  font-weight:700;
  margin-bottom:14px;
}


/* ===============================
   CARD (MAIN FIX)
============================== */

.rank-item{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:14px;
  margin-bottom:10px;

  border-radius:14px;
  background:#ffffff;

  box-shadow:0 3px 10px rgba(0,0,0,.06);
}


/* ===============================
   LEFT SIDE
============================== */

.rank-item > div:first-child{
  max-width:60%;
}

.rank-item > div:first-child div:first-child{
  font-weight:600;
  font-size:14px;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rank-item > div:first-child div:last-child{
  font-size:12px;
  opacity:.6;
}


/* ===============================
   RIGHT SIDE
============================== */

.rank-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;

  max-width:40%;
  text-align:right;
}

.rank-session{
  font-size:13px;
  font-weight:600;

  white-space:nowrap;
}

.rank-reward{
  font-size:12px;
  margin-top:2px;
  opacity:.75;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}


/* ===============================
   TOP 3 COLORS
============================== */

.rank-1{
  background:#FFD54F;
  color:#000;
}

.rank-2{
  background:#f1f1f1;
}

.rank-3{
  background:#f6d2a2;
}


/* ===============================
   RULES SECTION
============================== */

.leaderboard-rules{
  margin-top:18px;
  padding-top:12px;

  border-top:1px solid rgba(0,0,0,.15);

  font-size:12px;
  line-height:1.5;
  opacity:.85;
}

.rules-title{
  font-weight:600;
  margin-bottom:6px;
}

.rules-text{
  margin-bottom:6px;
}


/* ===============================
   CHAMPION CLUB (MM SYSTEM)
================================= */
.mm-entry{
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:14px;
  border-radius:14px;
  margin-bottom:10px;

  background:#ffffff;
}

/* RANK */
.mm-rank{
  width:40px;
  font-weight:700;
}

/* NAME */
.mm-name{
  flex:2;
  font-weight:600;
  font-size:14px;
}

/* STAT */
.mm-stat{
  flex:1;
  font-size:13px;
  opacity:0.7;
  text-align:right;
}

/* DIFF */
.mm-diff{
  width:60px;
  text-align:right;
  font-weight:800;
  font-size:16px;
}

/* POSITIVE */
.mm-pos{
  color:#1d4ed8;
}

/* NEGATIVE */
.mm-neg{
  color:#dc2626;
}

/* ===============================
   TOP RANK STYLE
================================= */
.mm-entry:nth-child(1){
  background:linear-gradient(135deg,#facc15,#fde68a);
}

.mm-entry:nth-child(2){
  background:#e5e7eb;
}

.mm-entry:nth-child(3){
  background:#e5e7eb;
}

#championClub .mm-rank{
  width:40px;
  font-weight:700;
}

#championClub .mm-name{
  flex:2;
  font-weight:600;
}

#championClub .mm-stat{
  flex:1;
  font-size:13px;
  opacity:0.7;
  text-align:right;
}

#championClub .mm-diff{
  width:60px;
  text-align:right;
  font-weight:800;
}

#championClub .mm-pos{
  color:#1d4ed8;
}

#championClub .mm-neg{
  color:#dc2626;
}

.skill-dashboard-btn{
  width:100%;
  padding:8px;
  margin-bottom:6px;

  border:none;
  border-radius:10px;

  font-size:12px;
  font-weight:600;
  color:#fff !important;

  cursor:pointer;

  /* 🔥 WARNA UTAMA */
  background:crimson;

  /* 🔥 GLOW DISCO */
  animation:discoGlow 0.8s infinite alternate;
}

/* 🔥 efek lampu nyala */
@keyframes discoGlow{
  0%{
    box-shadow:
      0 0 5px crimson,
      0 0 10px crimson;
  }
  50%{
    box-shadow:
      0 0 10px orange,
      0 0 20px yellow;
  }
  100%{
    box-shadow:
      0 0 10px #00ffff,
      0 0 20px #ff00ff;
  }
}

.skill-dashboard-btn{
  color:#fff !important;
  text-shadow:
    0 0 2px #000,
    0 0 4px #000;
}
.skill-dashboard-btn{
  position:relative;
  z-index:1;
}

.skill-dashboard-btn{
  position:relative;
  z-index:1;
  color:#fff !important;
  font-size:12px !important;
}

/* 🔥 pastikan text di atas efek */
.skill-dashboard-btn span{
  position:relative;
  z-index:2;
}

.skill-modal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;

  display:flex;
  justify-content:center;
  align-items:center;

  z-index:9999;
}

.skill-modal.hidden{
  display:none;
}

.skill-overlay{
  position:absolute;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
}

.skill-content{
  position:relative;
  background:#f5efe6; /* sesuaikan tema kamu */
  width:90%;
  max-width:420px;
  max-height:80vh;

  overflow-y:auto;

  padding:16px;
  border-radius:16px;

  z-index:2;
}

.skill-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.skill-header button{
  width:28px;
  height:28px;

  border:none;
  border-radius:50%;

  background:#eee;
  color:#333;

  font-size:14px;
  font-weight:bold;

  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;
}

.skill-header button:hover{
  background:#ff4d4d;
  color:#fff;
}


.skill-row{
  display:flex;
  justify-content:space-between;
  align-items:center;

  gap:10px;

  /* 🔥 penting */
  flex-wrap:nowrap;
}

.skill-stars{
  white-space:nowrap;
  flex-shrink:0;
}
.skill-name{
  flex:1;
  font-size:13px; /* kecilin dikit */
}
.skill-row{
  margin-bottom:6px;
}

.skill-stars .star{
  font-size:22px;
  margin-left:2px;
}

.skill-stars .star.active{
  color:#FFD700;   /* gold */
  text-shadow:0 0 6px rgba(255,215,0,0.7);
}

.skill-row{
  gap:14px;
}
/* =========================================
   VERIFIED BADGE FINAL (NO STRETCH)
========================================= */

.member-username {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.member-username .verified-badge {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.member-username .verified-badge svg {
  width: 16px !important;
  height: 16px !important;

  display: block;
  aspect-ratio: 1 / 1;
}


/* =========================================
   VERIFIED BADGE (FIX BULAT & SHARP)
========================================= */

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 16px;
  height: 16px;
  min-width: 16px; /* 🔥 anti ketarik */
  min-height: 16px;

  margin-left: 6px;
  flex-shrink: 0;

  /* 🔥 bersih total */
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.verified-badge svg {
  width: 100%;
  height: 100%;
  display: block;

  /* 🔥 JAGA ASPECT RATIO */
  aspect-ratio: 1 / 1;
}
.verified-badge svg {
  image-rendering: -webkit-optimize-contrast;
}
