:root {
  --mc-green: #5dbd45;
  --mc-green-dark: #3d8b2e;
  --mc-green-light: #7dd66a;
  --mc-blue: #3b82f6;
  --mc-blue-dark: #1d4ed8;
  --mc-yellow: #f59e0b;
  --mc-yellow-light: #fcd34d;
  --mc-red: #ef4444;
  --mc-orange: #f97316;
  --mc-purple: #8b5cf6;
  --mc-white: #ffffff;
  --mc-bg: #f0f7ff;
  --mc-bg2: #e8f4fd;
  --mc-card: #ffffff;
  --mc-border: #c7dff7;
  --mc-text: #1e3a5f;
  --mc-text2: #4a7ab5;
  --mc-shadow: 0 4px 0 #b0cce8, 0 0 0 2px #d0e8f8;
  --mc-shadow-sm: 0 2px 0 #b0cce8, 0 0 0 1px #d0e8f8;
  --mc-radius: 4px;
  --mc-font: 'Nunito', sans-serif;
  --mc-font-pixel: 'Press Start 2P', monospace;
  --nav-height: 70px;
}

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

.mc-body {
  font-family: var(--mc-font);
  background: var(--mc-bg);
  color: var(--mc-text);
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(93,189,69,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59,130,246,0.06) 0%, transparent 50%);
}

/* HEADER */
.mc-header {
  background: linear-gradient(135deg, #1a5fb4 0%, #1e40af 100%);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom:3px solid var(--line);
  box-shadow: 0 3px 10px rgba(30,64,175,0.3);
}
.mc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mc-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mc-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #5dbd45, #3d8b2e);
  border-radius: var(--mc-radius);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
.mc-logo-text {
  font-family: var(--mc-font-pixel);
  font-size: 10px;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}
.mc-balance-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 12px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mc-balance-badge i { color:var(--text); }

/* BOTTOM NAV */
.mc-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  display: flex;
  align-items: flex-end;
  border-top: 3px solid var(--mc-border);
  box-shadow: 0 -4px 20px rgba(30,64,175,0.1);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.mc-nav-spacer { height: var(--nav-height); }
.mc-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0 10px;
  text-decoration: none;
  color:var(--text-2);
  font-size: 10px;
  font-weight: 700;
  transition: all 0.2s;
  gap: 4px;
}
.mc-nav-item.active { color: var(--mc-blue); }
.mc-nav-item:not(.mc-nav-deposit) .mc-nav-icon {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.mc-nav-item.active .mc-nav-icon { color: var(--mc-blue); }
.mc-nav-deposit {
  position: relative;
  padding-top: 0;
  flex: 1.2;
}
.mc-nav-deposit-btn {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 24px;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(249,115,22,0.5), 0 0 0 2px #fed7aa;
  margin-top: -20px;
  position: relative;
}
.mc-nav-deposit-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
}

/* CARDS */
.mc-card {
  background: var(--mc-card);
  border-radius: 12px;
  border: 2px solid var(--mc-border);
  box-shadow: var(--mc-shadow);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.mc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mc-green), var(--mc-blue));
}
.mc-card-blue {
  background: linear-gradient(135deg, #1a5fb4 0%, #1e40af 100%);
  border-color:var(--line);
  color: white;
}
.mc-card-blue::before { background: linear-gradient(90deg, #60a5fa, #93c5fd); }
.mc-card-green {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-color:var(--line);
  color: white;
}
.mc-card-orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-color: #c2410c;
  color: white;
}

/* BALANCE CARD */
.mc-balance-card {
  background: linear-gradient(135deg, #1a5fb4, #1e40af);
  border-radius: 16px;
  padding: 20px;
  color: white;
  border:2px solid var(--line);
  box-shadow: 0 6px 0 #1e3a8a, 0 0 0 2px #bfdbfe;
  position: relative;
  overflow: hidden;
}
.mc-balance-card::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.mc-balance-label {
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.mc-balance-label i { color:var(--text); }
.mc-balance-amount {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.mc-balance-amount span { font-size: 14px; opacity: 0.8; }
.mc-topup-btn {
  background: linear-gradient(135deg, #5dbd45, #3d8b2e);
  color: white;
  border:2px solid var(--line);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 0 #1a4d10;
  transition: all 0.15s;
}
.mc-topup-btn:hover { transform: translateY(1px); box-shadow: 0 2px 0 #1a4d10; }
.mc-topup-btn:active { transform: translateY(3px); box-shadow: none; }

/* BUTTONS */
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--mc-radius);
  font-family: var(--mc-font);
  font-weight: 800;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.mc-btn:active { transform: translateY(2px); }
.mc-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-color:var(--line);
  box-shadow: 0 3px 0 #1e3a8a;
}
.mc-btn-primary:active { box-shadow: none; }
.mc-btn-success {
  background: linear-gradient(135deg, #5dbd45, #3d8b2e);
  color: white;
  border-color:var(--line);
  box-shadow: 0 3px 0 #1a4d10;
}
.mc-btn-success:active { box-shadow: none; }
.mc-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-color:var(--line);
  box-shadow: 0 3px 0 #991b1b;
}
.mc-btn-danger:active { box-shadow: none; }
.mc-btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-color:var(--line);
  box-shadow: 0 3px 0 #92400e;
}
.mc-btn-sm { padding: 6px 12px; font-size: 12px; }
.mc-btn-full { width: 100%; }
.mc-btn-outline {
  background: white;
  color: var(--mc-blue);
  border-color: var(--mc-blue);
  box-shadow: 0 3px 0 #bfdbfe;
}

/* INPUTS */
.mc-input-group { margin-bottom: 16px; }
.mc-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--mc-text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mc-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--mc-border);
  border-radius: var(--mc-radius);
  font-family: var(--mc-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--mc-text);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}
.mc-input:focus {
  border-color: var(--mc-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.mc-input-icon { position: relative; }
.mc-input-icon .mc-input { padding-left: 40px; }
.mc-input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mc-text2);
  font-size: 16px;
}

/* SERVICE CARDS */
.mc-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mc-service-card {
  background: white;
  border: 2px solid var(--mc-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--mc-text);
  transition: all 0.2s;
  box-shadow: var(--mc-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mc-service-card:hover { transform: translateY(-2px); box-shadow: var(--mc-shadow); }
.mc-service-card:active { transform: translateY(0); }
.mc-service-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--mc-bg2);
  border: 2px solid var(--mc-border);
}
.mc-service-icon img { width: 100%; height: 100%; object-fit: cover; }
.mc-service-name { font-size: 13px; font-weight: 800; }

/* COUNTRY LIST */
.mc-country-item {
  background: white;
  border: 2px solid var(--mc-border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--mc-shadow-sm);
}
.mc-country-header {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  gap: 10px;
  cursor: pointer;
}
.mc-country-flag {
  width: 32px; height: 22px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.mc-country-flag img { width: 100%; height: 100%; object-fit: cover; }
.mc-country-name { font-size: 14px; font-weight: 800; flex: 1; }
.mc-badge {
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  background: #e0f2fe;
  color: #0369a1;
}
.mc-badge-green { background: #dcfce7; color: #15803d; }
.mc-badge-orange { background: #fff7ed; color: #c2410c; }
.mc-badge-red { background: #fee2e2; color: #b91c1c; }
.mc-badge-gray { background: #f1f5f9; color: #64748b; }

/* SERVER LIST */
.mc-server-item {
  background: white;
  border: 2px solid var(--mc-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--mc-shadow-sm);
}
.mc-server-info { flex: 1; }
.mc-server-name { font-size: 13px; font-weight: 800; }
.mc-server-id { font-size: 11px; color: var(--mc-text2); margin-top: 2px; }
.mc-server-price { font-size: 16px; font-weight: 900; color: var(--mc-blue); text-align: right; margin-right: 10px; }

/* STATUS BADGE */
.mc-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}
.mc-status-pending { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.mc-status-received { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.mc-status-completed { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.mc-status-canceled { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.mc-status-expiring { background: #fefce8; color: #854d0e; border: 1px solid #fef08a; }
.mc-status-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.mc-status-cancel { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* OTP DISPLAY */
.mc-otp-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 3px solid #86efac;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.mc-otp-code {
  font-family: var(--mc-font-pixel);
  font-size: 24px;
  color: #15803d;
  letter-spacing: 6px;
  margin: 8px 0;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

/* ALERT */
.mc-alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.mc-alert-error { background: #fee2e2; border: 2px solid #fca5a5; color: #b91c1c; }
.mc-alert-success { background: #dcfce7; border: 2px solid #86efac; color: #15803d; }
.mc-alert-warning { background: #fff7ed; border: 2px solid #fed7aa; color: #c2410c; }
.mc-alert-info { background: #eff6ff; border: 2px solid #bfdbfe; color: #1d4ed8; }

/* SECTION HEADERS */
.mc-section-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--mc-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mc-section-title i { color: var(--mc-blue); }

/* PAGE WRAPPER */
.mc-page { padding: 16px; }

/* LOADER */
.mc-loader {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  padding: 40px;
  color: var(--mc-text2);
}
.mc-spinner {
  width: 40px; height: 40px;
  border: 4px solid var(--mc-border);
  border-top-color: var(--mc-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* EMPTY STATE */
.mc-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--mc-text2);
}
.mc-empty i { font-size: 48px; margin-bottom: 12px; color:var(--text); }
.mc-empty h3 { font-size: 16px; margin-bottom: 6px; }
.mc-empty p { font-size: 13px; }

/* TABS */
.mc-tabs {
  display: flex;
  background: var(--mc-bg2);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 16px;
  border: 2px solid var(--mc-border);
}
.mc-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: var(--mc-text2);
  transition: all 0.2s;
}
.mc-tab.active {
  background: white;
  color: var(--mc-blue);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* ORDER ITEM */
.mc-order-item {
  background: white;
  border: 2px solid var(--mc-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--mc-text);
  display: block;
  box-shadow: var(--mc-shadow-sm);
  transition: all 0.2s;
}
.mc-order-item:hover { transform: translateY(-1px); box-shadow: var(--mc-shadow); }
.mc-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.mc-order-service {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800;
}
.mc-order-service img {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--mc-border);
}
.mc-order-meta {
  font-size: 11px; color: var(--mc-text2);
  display: flex; gap: 10px;
  margin-top: 4px;
}
.mc-order-meta i { margin-right: 2px; }

/* QR CODE */
.mc-qr-box {
  background: white;
  border: 3px solid var(--mc-border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--mc-shadow);
}
.mc-qr-box img {
  max-width: 220px;
  width: 100%;
  border-radius: 8px;
  margin: 10px auto;
  display: block;
}

/* STAT CARDS */
.mc-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mc-stat-card {
  background: white;
  border: 2px solid var(--mc-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--mc-shadow-sm);
  position: relative;
  overflow: hidden;
}
.mc-stat-card::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  opacity: 0.07;
}
.mc-stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
}
.mc-stat-icon.blue { background: #dbeafe; color: #1d4ed8; }
.mc-stat-icon.green { background: #dcfce7; color: #15803d; }
.mc-stat-icon.orange { background: #fff7ed; color: #c2410c; }
.mc-stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.mc-stat-value { font-size: 20px; font-weight: 900; }
.mc-stat-label { font-size: 11px; color: var(--mc-text2); font-weight: 700; margin-top: 2px; }

/* PROFILE */
.mc-profile-header {
  background: linear-gradient(135deg, #1a5fb4, #1e40af);
  padding: 24px 16px 40px;
  color: white;
  text-align: center;
}
.mc-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5dbd45, #3d8b2e);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  color: white;
  border: 4px solid rgba(255,255,255,0.3);
  margin: 0 auto 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.mc-profile-name { font-size: 20px; font-weight: 900; }
.mc-profile-email { font-size: 12px; opacity: 0.7; margin-top: 4px; }

/* SERVER STATUS */
.mc-server-status {
  background: white;
  border: 2px solid var(--mc-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
.mc-dot.green { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.mc-dot.red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ADMIN */
.mc-admin-nav {
  background: linear-gradient(135deg, #1a5fb4, #1e40af);
  padding: 0;
  border-bottom:3px solid var(--line);
}
.mc-admin-nav-inner {
  display: flex;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}
.mc-admin-nav-inner::-webkit-scrollbar { display: none; }
.mc-admin-nav-item {
  padding: 12px 16px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.mc-admin-nav-item.active, .mc-admin-nav-item:hover {
  color: white;
  border-bottom-color: #fcd34d;
}

/* PAGINATION */
.mc-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.mc-page-btn {
  width: 36px; height: 36px;
  border-radius: var(--mc-radius);
  border: 2px solid var(--mc-border);
  background: white;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--mc-text);
  font-weight: 800;
  font-size: 13px;
  transition: all 0.15s;
}
.mc-page-btn.active {
  background: var(--mc-blue);
  color: white;
  border-color: var(--mc-blue-dark);
}
.mc-page-btn:hover:not(.active) { background: var(--mc-bg2); }

/* CS PAGE */
.mc-cs-card {
  background: white;
  border: 2px solid var(--mc-border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--mc-shadow);
  text-decoration: none;
  color: var(--mc-text);
  display: block;
  transition: all 0.2s;
}
.mc-cs-card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #b0cce8; }
.mc-cs-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
}

/* PIXEL DECORATION */
.mc-pixel-header {
  font-family: var(--mc-font-pixel);
  font-size: 8px;
  color: var(--mc-text2);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.mc-pixel-header::before, .mc-pixel-header::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--mc-border);
  border-radius: 2px;
}

/* NOTIFICATION BADGE */
.mc-float-cs {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-height) + 16px);
  z-index: 99;
}
.mc-float-cs a {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(59,130,246,0.5);
  border: 3px solid white;
}

/* SEARCH */
.mc-search {
  position: relative;
  margin-bottom: 16px;
}
.mc-search input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 2px solid var(--mc-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--mc-font);
  font-weight: 600;
  background: white;
  color: var(--mc-text);
  outline: none;
}
.mc-search input:focus { border-color: var(--mc-blue); }
.mc-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mc-text2);
  font-size: 16px;
}

/* DIVIDER */
.mc-divider {
  height: 1px;
  background: var(--mc-border);
  margin: 16px 0;
}

/* TABLE */
.mc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mc-table th {
  background: var(--mc-bg2);
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
  color: var(--mc-text2);
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--mc-border);
}
.mc-table td {
  padding: 12px;
  border-bottom: 1px solid var(--mc-border);
  font-weight: 600;
}
.mc-table tr:last-child td { border-bottom: none; }
.mc-table-wrap {
  background: white;
  border: 2px solid var(--mc-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--mc-shadow-sm);
  overflow-x: auto;
}

/* MODAL OVERLAY */
.mc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  display: none;
}
.mc-modal-overlay.open { display: flex; }
.mc-modal {
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.mc-modal-handle {
  width: 40px; height: 4px;
  background: var(--mc-border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* TIMER */
.mc-timer {
  font-family: var(--mc-font-pixel);
  font-size: 14px;
  color: var(--mc-orange);
  padding: 8px 16px;
  background: #fff7ed;
  border: 2px solid #fed7aa;
  border-radius: 8px;
  text-align: center;
}

/* STRUK / RECEIPT */
.mc-receipt {
  background: white;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}
.mc-receipt::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  background: var(--mc-bg);
  border: 2px solid #94a3b8;
  border-radius: 50%;
}
.mc-receipt::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  background: var(--mc-bg);
  border: 2px solid #94a3b8;
  border-radius: 50%;
}
.mc-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 13px;
}
.mc-receipt-row:last-child { border-bottom: none; }
.mc-receipt-row .label { color: var(--mc-text2); font-weight: 700; }
.mc-receipt-row .value { font-weight: 800; }

/* TOOLTIP */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background:var(--surface);
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-family: var(--mc-font);
  font-weight: 600;
}
[data-tooltip]:hover::after { opacity: 1; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

/* RESPONSIVE */
@media (max-width: 380px) {
  .mc-balance-amount { font-size: 22px; }
  .mc-service-grid { gap: 8px; }
}

/* =========================================================
   KING NOKOS — ROYAL DARK THEME
   ========================================================= */
html {
  color-scheme: dark;
  background:var(--surface);
}

:root {
  --mc-green: #f5b942;
  --mc-green-dark: #b7791f;
  --mc-green-light: #ffd978;
  --mc-blue: #f6c453;
  --mc-blue-dark: #d99b21;
  --mc-yellow: #f6c453;
  --mc-yellow-light: #ffe29a;
  --mc-orange: #f59e0b;
  --mc-purple: #9b87f5;
  --mc-white: #f8fafc;
  --mc-bg: #070a10;
  --mc-bg2: #101620;
  --mc-card: #111827;
  --mc-border: #2a3444;
  --mc-text: #f8fafc;
  --mc-text2: #aab4c4;
  --mc-shadow: 0 5px 0 #03050a, 0 0 0 1px rgba(246,196,83,.24), 0 14px 30px rgba(0,0,0,.28);
  --mc-shadow-sm: 0 3px 0 #03050a, 0 0 0 1px rgba(246,196,83,.14);
}

body,
body.mc-body,
body[style] {
  background:
    radial-gradient(circle at 12% 5%, rgba(246,196,83,.10), transparent 32%),
    radial-gradient(circle at 90% 80%, rgba(139,92,246,.08), transparent 38%),
    linear-gradient(180deg, #070a10 0%, #090d15 56%, #05070b 100%) !important;
  color: var(--mc-text) !important;
}

.mc-body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 26px 26px;
  z-index: -1;
}

/* Header and royal brand */
.mc-header,
.landing-nav {
  background:var(--surface) !important;
  border-color: rgba(246,196,83,.42) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.45) !important;
  backdrop-filter: blur(16px);
}
.mc-logo-icon,
.landing-logo,
.landing-nav-logo-icon,
.auth-logo .mc-logo-icon {
  background: linear-gradient(145deg, #ffe29a 0%, #f6c453 45%, #b7791f 100%) !important;
  color: #111318 !important;
  border-color: rgba(255,255,255,.28) !important;
  box-shadow: 0 5px 18px rgba(246,196,83,.30), inset 0 1px rgba(255,255,255,.45) !important;
}
.mc-logo-text,
.landing-nav-logo {
  color:var(--text) !important;
  text-shadow: 0 0 18px rgba(246,196,83,.25) !important;
}
.mc-balance-badge {
  background: rgba(246,196,83,.10) !important;
  border-color: rgba(246,196,83,.30) !important;
  color:var(--text) !important;
}

/* Main surfaces */
.mc-card,
.mc-service-card,
.mc-country-item,
.mc-server-item,
.mc-order-item,
.mc-broadcast-card,
.mc-cs-card,
.mc-stat-card,
.mc-table-wrap,
.mc-profile-header,
.mc-receipt,
.mc-modal,
.auth-card,
.how-step,
.feature-card,
.app-chip {
  background:var(--surface) !important;
  border-color:var(--line) !important;
  color: var(--mc-text) !important;
  box-shadow: var(--mc-shadow-sm) !important;
}
.mc-card::before {
  background: linear-gradient(90deg, transparent, #f6c453, #9b87f5, transparent) !important;
}
.mc-card:hover,
.mc-service-card:hover,
.mc-country-item:hover,
.mc-server-item:hover,
.mc-order-item:hover,
.feature-card:hover,
.how-step:hover {
  border-color: rgba(246,196,83,.55) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.38), 0 0 0 1px rgba(246,196,83,.16) !important;
}

.mc-card-blue,
.mc-balance-card {
  background:var(--surface) !important;
  border-color: rgba(246,196,83,.60) !important;
  box-shadow: 0 6px 0 #03050a, 0 0 0 1px rgba(246,196,83,.35), 0 18px 36px rgba(0,0,0,.36) !important;
}
.mc-card-green {
  background:var(--surface) !important;
  border-color:var(--line) !important;
}
.mc-card-orange,
.mc-banner {
  background: linear-gradient(135deg, #7a4b08 0%, #a96808 52%, #5b3405 100%) !important;
  border-color: #d99b21 !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.30) !important;
}

/* Typography */
.mc-section-title,
.auth-title,
.landing-section-title,
.how-step h3,
.feature-card h3,
.mc-service-name,
.mc-country-name,
.mc-server-name,
.mc-profile-name,
.mc-stat-value,
.mc-order-service,
.mc-receipt-row .value,
.mc-pixel-header {
  color:var(--text) !important;
}
.auth-sub,
.auth-footer,
.landing-section-sub,
.how-step p,
.feature-card p,
.mc-label,
.mc-profile-email,
.mc-stat-label,
.mc-order-meta,
.mc-server-id,
.mc-receipt-row .label {
  color:var(--text-2) !important;
}
a:not(.mc-btn):not(.mc-nav-item):not(.landing-btn-primary):not(.landing-btn-outline) {
  text-decoration-color: rgba(246,196,83,.45);
}
.auth-footer a,
.mc-banner-link {
  color:var(--text) !important;
}

/* Forms and controls */
.mc-input,
.mc-search input,
.bc-reply-input,
select,
textarea,
input:not([type="checkbox"]):not([type="radio"]),
.mc-amount-btn {
  background:var(--surface) !important;
  color:var(--text) !important;
  border-color:var(--line) !important;
  caret-color: #f6c453;
}
.mc-input::placeholder,
.mc-search input::placeholder,
textarea::placeholder,
input::placeholder {
  color: #687386 !important;
}
.mc-input:focus,
.mc-search input:focus,
select:focus,
textarea:focus,
input:focus {
  border-color: #f6c453 !important;
  box-shadow: 0 0 0 3px rgba(246,196,83,.13) !important;
  outline: none;
}
.mc-input-icon i,
.mc-input-right,
.mc-search i {
  color:var(--text-2) !important;
}
.auth-divider::before,
.mc-divider {
  background:var(--surface) !important;
}
.auth-divider span {
  background:var(--surface) !important;
  color:var(--text-2) !important;
}
.mc-amount-btn:hover,
.mc-amount-btn.selected {
  background: rgba(246,196,83,.12) !important;
  color:var(--text) !important;
  border-color: #f6c453 !important;
}

/* Buttons */
.mc-btn-primary,
.mc-btn-success,
.mc-topup-btn,
.landing-btn-primary,
.mc-nav-deposit-btn {
  background: linear-gradient(145deg, #ffe29a 0%, #f6c453 48%, #c88819 100%) !important;
  color: #111318 !important;
  border-color: #8f6118 !important;
  box-shadow: 0 4px 0 #704710, 0 8px 20px rgba(246,196,83,.22) !important;
}
.mc-btn-primary:hover,
.mc-btn-success:hover,
.mc-topup-btn:hover,
.landing-btn-primary:hover {
  filter: brightness(1.06);
}
.mc-btn-outline,
.landing-btn-outline {
  background: rgba(255,255,255,.035) !important;
  color:var(--text) !important;
  border-color:var(--line) !important;
  box-shadow: none !important;
}
.mc-btn-outline:hover,
.landing-btn-outline:hover {
  background: rgba(246,196,83,.09) !important;
  border-color: rgba(246,196,83,.55) !important;
}
.oauth-google,
.oauth-github {
  background:var(--surface) !important;
  color:var(--text) !important;
  border-color:var(--line) !important;
}

/* Bottom navigation */
.mc-bottom-nav {
  background:var(--surface) !important;
  border-top-color: #2a3444 !important;
  box-shadow: 0 -10px 30px rgba(0,0,0,.52) !important;
}
.mc-nav-item {
  color:var(--text-2) !important;
}
.mc-nav-item.active,
.mc-nav-item.active .mc-nav-icon {
  color:var(--text) !important;
}
.mc-nav-deposit-btn {
  border-color:var(--line) !important;
}

/* Menu, tabs, lists and tables */
.mc-menu-item {
  background: transparent !important;
  color:var(--text) !important;
  border-bottom-color: #252e3d !important;
}
.mc-menu-item:hover {
  background: rgba(246,196,83,.07) !important;
}
.mc-menu-item i:first-child {
  background: rgba(246,196,83,.11) !important;
  color:var(--text) !important;
}
.mc-menu-item.danger i:first-child {
  background: rgba(239,68,68,.12) !important;
  color: #fb7185 !important;
}
.mc-tabs,
.mc-admin-nav {
  background:var(--surface) !important;
  border-color:var(--line) !important;
}
.mc-tab,
.mc-admin-nav-item {
  color:var(--text-2) !important;
}
.mc-tab.active,
.mc-admin-nav-item.active,
.mc-admin-nav-item:hover {
  color:var(--text) !important;
  border-color: #f6c453 !important;
  background: rgba(246,196,83,.07) !important;
}
.mc-table th {
  background:var(--surface) !important;
  color:var(--text) !important;
  border-bottom-color: #344055 !important;
}
.mc-table td {
  color:var(--text) !important;
  border-bottom-color: #232c3a !important;
}
.mc-table tr:hover td {
  background: rgba(246,196,83,.055) !important;
}

/* Alerts, badges, pending and receipt */
.mc-notice,
.mc-pending-card {
  background:var(--surface) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}
.mc-alert-info {
  background:var(--surface) !important;
  border-color:var(--line) !important;
  color: #8ec5ff !important;
}
.mc-alert-success {
  background:var(--surface) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}
.mc-alert-warning {
  background:var(--surface) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}
.mc-alert-error {
  background:var(--surface) !important;
  border-color:var(--line) !important;
  color: #fda4af !important;
}
.mc-badge,
.mc-badge-gray,
.mc-status {
  border: 1px solid rgba(255,255,255,.08);
}
.mc-badge-gray {
  background:var(--surface) !important;
  color:var(--text-2) !important;
}
.mc-badge-green,
.mc-status-completed,
.mc-status-success,
.mc-status-received {
  background:var(--surface) !important;
  color:var(--text) !important;
}
.mc-badge-orange,
.mc-status-pending,
.mc-status-expiring {
  background:var(--surface) !important;
  color:var(--text) !important;
}
.mc-badge-red,
.mc-status-canceled,
.mc-status-cancel {
  background:var(--surface) !important;
  color: #fda4af !important;
}
.mc-qr-box {
  background: #ffffff !important;
  border-color: #f6c453 !important;
  box-shadow: 0 0 0 5px rgba(246,196,83,.08) !important;
}
.mc-receipt::before,
.mc-receipt::after {
  background:var(--surface) !important;
  border-color:var(--line) !important;
}
.mc-receipt-row {
  border-bottom-color: #2c3544 !important;
}
.mc-modal-handle {
  background:var(--surface) !important;
}

/* Landing page */
.landing-hero {
  background:
    radial-gradient(circle at 50% 20%, rgba(246,196,83,.15), transparent 32%),
    linear-gradient(145deg, #05070b 0%, #0b111b 48%, #171108 100%) !important;
}
.landing-title span,
.landing-stat-num {
  color:var(--text) !important;
}
.landing-bg-section,
.landing-section {
  background: transparent !important;
}
.landing-bg-section {
  border-top: 1px solid rgba(246,196,83,.12);
  border-bottom: 1px solid rgba(246,196,83,.12);
}
.landing-cta {
  background:var(--surface) !important;
  border-top: 1px solid rgba(246,196,83,.18);
}
.app-chip {
  color:var(--text) !important;
}

/* Inline legacy quick-menu colors */
.mc-page a[style*="text-align:center"] {
  color:var(--text) !important;
}
.mc-page div[style*="width:52px"][style*="height:52px"] {
  background:var(--surface) !important;
  border-color:var(--line) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}

/* Broadcast/reply details */
.bc-reply-item,
.bc-reply-form,
.bc-reactions {
  border-color:var(--line) !important;
}
.bc-reply-avatar,
.mc-avatar {
  background: linear-gradient(145deg, #f6c453, #9a6516) !important;
  color: #111318 !important;
}

/* Scrollbar */
::-webkit-scrollbar-track { background:var(--surface); }
::-webkit-scrollbar-thumb { background:var(--surface); }
::-webkit-scrollbar-thumb:hover { background: #f6c453; }

@media (min-width: 1024px) {
  body.mc-body {
    background:
      radial-gradient(circle at 20% 10%, rgba(246,196,83,.08), transparent 28%),
      linear-gradient(145deg, #05070b, #0b111b) !important;
  }
}


/* GLOBAL CHAT */
.mc-chat-page {
  padding-bottom: 18px;
}
.mc-chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.mc-chat-subtitle {
  color:var(--text-2);
  font-size: 12px;
  line-height: 1.45;
}
.mc-chat-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border:1px solid var(--line);
  border-radius: 999px;
  background:var(--surface);
  color:var(--text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .7px;
}
.mc-chat-card {
  overflow: hidden;
  border:1px solid var(--line);
  border-radius: 18px;
  background:var(--surface);
  box-shadow: 0 18px 42px rgba(0,0,0,.35);
}
.mc-chat-messages {
  min-height: 430px;
  height: calc(100vh - 300px);
  max-height: 680px;
  overflow-y: auto;
  padding: 16px 13px;
  scroll-behavior: smooth;
}
.mc-chat-loading,
.mc-chat-empty {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color:var(--text-2);
  text-align: center;
  font-size: 12px;
}
.mc-chat-loading i,
.mc-chat-empty i {
  font-size: 28px;
  color:var(--text);
}
.mc-chat-empty strong {
  color:var(--text);
  font-size: 14px;
}
.mc-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
}
.mc-chat-row.own {
  flex-direction: row-reverse;
}
.mc-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--text-2);
  font-size: 13px;
}
.mc-chat-avatar.admin {
  background:var(--surface);
  border-color:var(--line);
  color:var(--text);
}
.mc-chat-content {
  position: relative;
  max-width: min(78%, 520px);
}
.mc-chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 3px 5px;
  min-height: 16px;
}
.mc-chat-row.own .mc-chat-meta {
  justify-content: flex-end;
}
.mc-chat-name {
  color:var(--text);
  font-size: 11px;
  font-weight: 900;
}
.mc-chat-admin-badge {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(246,196,83,.14);
  border: 1px solid rgba(246,196,83,.32);
  color:var(--text);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .45px;
}
.mc-chat-time {
  margin-left: auto;
  color: #657287;
  font-size: 9px;
}
.mc-chat-row.own .mc-chat-time {
  margin-left: 0;
}
.mc-chat-bubble {
  border:1px solid var(--line);
  border-radius: 5px 15px 15px 15px;
  background:var(--surface);
  color:var(--text);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 5px 13px rgba(0,0,0,.18);
}
.mc-chat-row.own .mc-chat-bubble {
  border-color:var(--line);
  border-radius: 15px 5px 15px 15px;
  background:var(--surface);
  color:var(--text);
}
.mc-chat-delete {
  position: absolute;
  top: 20px;
  right: -27px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color:var(--text-2);
  cursor: pointer;
}
.mc-chat-row.own .mc-chat-delete {
  right: auto;
  left: -27px;
}
.mc-chat-delete:hover {
  background: rgba(239,68,68,.12);
  color: #fb7185;
}
.mc-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 11px;
  border-top:1px solid var(--line);
  background:var(--surface);
}
.mc-chat-input-wrap {
  position: relative;
  flex: 1;
}
.mc-chat-input {
  display: block;
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  box-sizing: border-box;
  border:1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background:var(--surface);
  color:var(--text);
  padding: 11px 55px 11px 12px;
  font: 600 13px/1.45 'Nunito', sans-serif;
}
.mc-chat-input:focus {
  border-color: #bd8d2b;
  box-shadow: 0 0 0 3px rgba(246,196,83,.09);
}
.mc-chat-input::placeholder {
  color: #667489;
}
.mc-chat-counter {
  position: absolute;
  right: 10px;
  bottom: 7px;
  color: #637086;
  font-size: 8px;
  pointer-events: none;
}
.mc-chat-send {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  border: 1px solid #b57f20;
  border-radius: 13px;
  background: linear-gradient(145deg, #f6c453, #b87918);
  color: #17130a;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(190,126,23,.25);
}
.mc-chat-send:disabled {
  opacity: .5;
  cursor: wait;
}
.mc-chat-error {
  margin: 0 11px 9px;
  border: 1px solid rgba(239,68,68,.35);
  border-radius: 10px;
  background: rgba(239,68,68,.1);
  color:var(--text);
  padding: 8px 10px;
  font-size: 11px;
}
.mc-chat-rule {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 11px;
  color: #667489;
  font-size: 10px;
  line-height: 1.45;
}
.mc-chat-rule i {
  color: #9b7b35;
  margin-top: 2px;
}

@media (max-width: 380px) {
  .mc-chat-messages {
    height: calc(100vh - 285px);
    min-height: 380px;
  }
  .mc-chat-content {
    max-width: 76%;
  }
}

/* GLOBAL CHAT IMAGE UPLOAD */
.mc-chat-form {
  display: block;
}
.mc-chat-compose-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.mc-chat-image-button {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  border:1px solid var(--line);
  border-radius: 13px;
  background:var(--surface);
  color:var(--text);
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,.18);
}
.mc-chat-image-button:hover {
  border-color: #a87822;
  background:var(--surface);
}
.mc-chat-image-button:disabled {
  opacity: .5;
  cursor: wait;
}
.mc-chat-image-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  padding: 8px;
  border:1px solid var(--line);
  border-radius: 13px;
  background:var(--surface);
}
.mc-chat-image-preview[hidden] {
  display: none !important;
}
.mc-chat-preview-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  border:1px solid var(--line);
  border-radius: 10px;
  background:var(--surface);
}
.mc-chat-preview-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.mc-chat-preview-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mc-chat-preview-info strong {
  overflow: hidden;
  color:var(--text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-chat-preview-info span {
  color:var(--text-2);
  font-size: 9px;
}
.mc-chat-image-remove {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 0;
  border-radius: 9px;
  background: rgba(239,68,68,.09);
  color: #fb7185;
  cursor: pointer;
}
.mc-chat-bubble.has-image {
  overflow: hidden;
  padding: 5px;
}
.mc-chat-image-link {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background:var(--surface);
  cursor: zoom-in;
}
.mc-chat-image-link.broken {
  min-width: 180px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color:var(--text-2);
  font-size: 10px;
  cursor: default;
}
.mc-chat-image-link.broken i {
  color:var(--text);
  font-size: 22px;
}
.mc-chat-image {
  width: auto;
  max-width: min(320px, 64vw);
  max-height: 360px;
  display: block;
  object-fit: contain;
}
.mc-chat-text {
  padding: 7px 7px 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mc-chat-bubble:not(.has-image) .mc-chat-text {
  padding: 0;
}
.mc-chat-lightbox[hidden] {
  display: none !important;
}
.mc-chat-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
  background:var(--surface);
  backdrop-filter: blur(8px);
}
.mc-chat-lightbox img {
  max-width: 96vw;
  max-height: 88vh;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.mc-chat-lightbox-close {
  position: fixed;
  z-index: 2;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(15,20,29,.85);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}
body.mc-chat-lightbox-open {
  overflow: hidden;
}

@media (max-width: 420px) {
  .mc-chat-image-button,
  .mc-chat-send {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
  .mc-chat-image {
    max-width: 61vw;
    max-height: 300px;
  }
}

/* =========================================================
   KING NOKOS — FULL BLACK + GOLD RECTANGLE BACKGROUND
   Keeps every page dark and prevents the old blue/white auth
   background from appearing on mobile or desktop.
   ========================================================= */
html,
body,
body.mc-body,
body.mc-body[style] {
  min-height: 100%;
  background-color:var(--surface) !important;
  background-image:
    linear-gradient(rgba(246,196,83,.115) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,196,83,.115) 1px, transparent 1px),
    linear-gradient(rgba(246,196,83,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,196,83,.035) 1px, transparent 1px),
    radial-gradient(circle at 50% -10%, rgba(246,196,83,.10), transparent 42%),
    linear-gradient(180deg, #050505 0%, #020202 55%, #000000 100%) !important;
  background-size:
    96px 58px,
    96px 58px,
    24px 29px,
    24px 29px,
    auto,
    auto !important;
  background-position: center top !important;
  background-attachment: fixed !important;
  color:var(--text) !important;
}

/* Remove every legacy pale page background. */
.auth-wrapper,
.mc-page,
.landing-page,
.landing-main,
.landing-hero,
.landing-how,
.landing-features,
.landing-footer {
  background-color: transparent !important;
  background-image: none !important;
}

.auth-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

/* Extra offset gold rectangles so the background does not look like a plain grid. */
.auth-wrapper::before {
  content: '';
  position: fixed;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(246,196,83,.18);
  border-radius: 24px;
  box-shadow:
    42px 74px 0 -1px rgba(0,0,0,0),
    42px 74px 0 0 rgba(246,196,83,.08),
    -52px 168px 0 -1px rgba(0,0,0,0),
    -52px 168px 0 0 rgba(246,196,83,.055);
  z-index: 0;
}

.auth-wrapper > * {
  position: relative;
  z-index: 1;
}

.auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(246,196,83,.72) !important;
  outline: 1px solid rgba(246,196,83,.16);
  outline-offset: 4px;
  box-shadow:
    0 8px 0 #000,
    0 0 0 1px rgba(246,196,83,.18),
    0 22px 55px rgba(0,0,0,.72),
    0 0 38px rgba(246,196,83,.08) !important;
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #f6c453 0 54px, transparent 54px) top left / 100% 1px no-repeat,
    linear-gradient(180deg, #f6c453 0 54px, transparent 54px) top left / 1px 100% no-repeat,
    linear-gradient(270deg, #f6c453 0 54px, transparent 54px) bottom right / 100% 1px no-repeat,
    linear-gradient(0deg, #f6c453 0 54px, transparent 54px) bottom right / 1px 100% no-repeat;
  opacity: .76;
}

.auth-title > i,
.auth-logo + .auth-title i {
  color:var(--text) !important;
}

/* Black inputs and buttons remain readable against the gold-line background. */
.auth-card .mc-input,
.auth-card input,
.auth-card .oauth-btn {
  background:var(--surface) !important;
  border-color:var(--line) !important;
}

.auth-card .mc-input:focus,
.auth-card input:focus,
.auth-card .oauth-btn:hover {
  border-color: #f6c453 !important;
  box-shadow: 0 0 0 3px rgba(246,196,83,.12) !important;
}

@media (max-width: 520px) {
  html,
  body,
  body.mc-body {
    background-size:
      78px 52px,
      78px 52px,
      19.5px 26px,
      19.5px 26px,
      auto,
      auto !important;
  }

  .auth-wrapper {
    padding: 22px 18px;
  }

  .auth-card {
    outline-offset: 3px;
  }
}

/* =========================================================
   KING NOKOS — DARK READABLE UI V2
   Full-black surfaces, gold geometry, high-contrast typography.
   ========================================================= */
:root {
  --mc-green: #27d980;
  --mc-green-dark: #119b58;
  --mc-green-light: #67f3ad;
  --mc-blue: #5c8dff;
  --mc-blue-dark: #315fd3;
  --mc-yellow: #f4c557;
  --mc-yellow-light: #ffe49a;
  --mc-red: #ff6673;
  --mc-orange: #ff9f43;
  --mc-purple: #a978ff;
  --mc-white: #f8fafc;
  --mc-bg: #030303;
  --mc-bg2: #0a0d13;
  --mc-card: #0d1119;
  --mc-border: #735a28;
  --mc-text: #f4f7fb;
  --mc-text2: #bac5d6;
  --mc-shadow: 0 5px 0 #020202, 0 0 0 1px rgba(244,197,87,.28), 0 12px 28px rgba(0,0,0,.44);
  --mc-shadow-sm: 0 3px 0 #020202, 0 0 0 1px rgba(244,197,87,.18);
  --mc-font: 'Nunito', sans-serif;
  --mc-font-display: 'Oxanium', 'Nunito', sans-serif;
}

html,
body,
body.mc-body {
  color-scheme: dark;
  background-color:var(--surface) !important;
  color: var(--mc-text) !important;
}

body.mc-body,
button,
input,
select,
textarea {
  font-family: var(--mc-font) !important;
}

h1, h2, h3, h4, h5, h6,
.mc-section-title,
.auth-title,
.mc-card-title,
.mc-service-name,
.mc-server-name,
.mc-country-name,
.mc-balance-amount,
.mc-btn,
.mc-nav-item,
.mc-menu-item,
.mc-receipt-row .value,
.op-card-name {
  font-family: var(--mc-font-display) !important;
  letter-spacing: .15px;
}

/* Main chrome */
.mc-header {
  background:var(--surface) !important;
  border-bottom: 2px solid rgba(244,197,87,.68) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.72), 0 1px 0 rgba(244,197,87,.18) !important;
}
.mc-logo-text { color:var(--text) !important; }
.mc-logo-icon {
  background: linear-gradient(145deg, #ffe49a, #e3a91f) !important;
  border-color: #ffe8a8 !important;
  color: #080808 !important;
  box-shadow: 0 3px 0 #7c5713, 0 0 18px rgba(244,197,87,.32) !important;
}
.mc-balance-badge {
  background:var(--surface) !important;
  color:var(--text) !important;
  border-color: rgba(244,197,87,.46) !important;
}

.mc-bottom-nav {
  background:var(--surface) !important;
  border-top-color: rgba(244,197,87,.35) !important;
  box-shadow: 0 -8px 28px rgba(0,0,0,.72) !important;
  backdrop-filter: blur(14px);
}
.mc-nav-item { color:var(--text-2) !important; }
.mc-nav-item.active,
.mc-nav-item.active .mc-nav-icon { color:var(--text) !important; }
.mc-nav-deposit-btn {
  background: linear-gradient(145deg, #ffe59a, #dba21d) !important;
  color: #080808 !important;
  border-color:var(--line) !important;
  box-shadow: 0 4px 0 #6e4d0f, 0 0 0 2px #f4c557, 0 0 22px rgba(244,197,87,.3) !important;
}

/* Every ordinary surface stays dark. */
.mc-page,
.auth-wrapper,
.landing-page,
.landing-main,
.landing-hero,
.landing-how,
.landing-features,
.landing-footer { color: var(--mc-text) !important; }

.mc-card,
.mc-service-card,
.mc-country-item,
.mc-server-item,
.mc-order-item,
.mc-stat-card,
.mc-pending-card,
.mc-menu-item,
.mc-receipt,
.mc-modal,
.mc-dialog,
.auth-card,
.mc-search input,
.mc-input,
textarea,
select {
  background-color:var(--surface) !important;
  color:var(--text) !important;
  border-color: rgba(244,197,87,.35) !important;
}

.mc-card,
.mc-service-card,
.mc-country-item,
.mc-server-item,
.mc-order-item,
.mc-stat-card,
.mc-pending-card,
.auth-card {
  box-shadow: var(--mc-shadow-sm) !important;
}

.mc-card::before {
  background: linear-gradient(90deg, transparent, #f4c557 28%, #ffe6a0 50%, #f4c557 72%, transparent) !important;
  opacity: .82;
}

.mc-card:hover,
.mc-service-card:hover,
.mc-order-item:hover,
.mc-stat-card:hover {
  border-color: rgba(255,219,119,.72) !important;
  box-shadow: 0 4px 0 #020202, 0 0 0 1px rgba(244,197,87,.35), 0 14px 30px rgba(0,0,0,.55) !important;
}

/* Readability: neutral text may never blend into the background. */
.mc-section-title,
.mc-service-name,
.mc-country-name,
.mc-server-name,
.mc-order-service,
.mc-stat-value,
.mc-menu-item,
.mc-receipt-row .value,
.auth-title,
.mc-card-title { color:var(--text) !important; }

.mc-label,
.mc-balance-label,
.mc-server-id,
.mc-order-meta,
.mc-stat-label,
.mc-receipt-row .label,
.auth-sub,
.auth-footer,
.mc-pixel-header,
.mc-menu-item-arrow { color:var(--text-2) !important; }

body.mc-body [style*="color:#1e3a5f"],
body.mc-body [style*="color: #1e3a5f"] { color:var(--text) !important; }
body.mc-body [style*="color:#4a7ab5"],
body.mc-body [style*="color: #4a7ab5"],
body.mc-body [style*="color:#64748b"],
body.mc-body [style*="color: #64748b"] { color:var(--text) !important; }
body.mc-body [style*="color:#374151"],
body.mc-body [style*="color: #374151"] { color:var(--text) !important; }
body.mc-body [style*="color:#94a3b8"],
body.mc-body [style*="color: #94a3b8"] { color:var(--text-2) !important; }

/* Kill legacy white/pastel panels, including inline styles. */
body.mc-body [style*="background:white"],
body.mc-body [style*="background: white"],
body.mc-body [style*="background:#fff"],
body.mc-body [style*="background: #fff"],
body.mc-body [style*="background:#f8fafc"],
body.mc-body [style*="background: #f8fafc"],
body.mc-body [style*="background:#f1f5f9"],
body.mc-body [style*="background: #f1f5f9"],
body.mc-body [style*="background:#f0f7ff"],
body.mc-body [style*="background: #f0f7ff"],
body.mc-body [style*="background:#fff7ed"],
body.mc-body [style*="background: #fff7ed"],
body.mc-body [style*="background:#f0fdf4"],
body.mc-body [style*="background: #f0fdf4"] {
  background:var(--surface) !important;
  color:var(--text) !important;
}

/* Forms */
.mc-input,
.mc-search input,
.mc-dialog-select,
.mc-dialog-input-field,
textarea,
select {
  background:var(--surface) !important;
  color:var(--text) !important;
  border:2px solid var(--line) !important;
  caret-color: #f4c557;
}
.mc-input::placeholder,
.mc-search input::placeholder,
textarea::placeholder { color:var(--text-2) !important; opacity: 1; }
.mc-input:focus,
.mc-search input:focus,
.mc-dialog-select:focus,
.mc-dialog-input-field:focus,
textarea:focus,
select:focus {
  border-color: #f4c557 !important;
  box-shadow: 0 0 0 3px rgba(244,197,87,.14) !important;
}
.mc-search i,
.mc-input-icon i,
.mc-input-right { color: #d0b35e !important; }

/* Buttons */
.mc-btn-primary,
.mc-btn-success,
.mc-topup-btn {
  background: linear-gradient(145deg, #ffe18a, #d89c12) !important;
  border-color: #8d6512 !important;
  color: #0a0a0a !important;
  box-shadow: 0 4px 0 #69490d !important;
  text-shadow: none !important;
}
.mc-btn-outline,
.mc-copy-btn {
  background:var(--surface) !important;
  color:var(--text) !important;
  border-color: #8a6d2c !important;
  box-shadow: 0 3px 0 #030303 !important;
}
.mc-btn-outline:hover,
.mc-copy-btn:hover { background:var(--surface) !important; border-color: #f4c557 !important; }
.mc-copy-btn.copied,
.mc-btn.copied {
  background:var(--surface) !important;
  border-color: #39df91 !important;
  color:var(--text) !important;
}
.mc-btn:disabled { opacity: .66; color:var(--text) !important; }

/* Lists and product/provider cards */
.mc-service-icon,
.mc-country-flag {
  background:var(--surface) !important;
  border-color:var(--line) !important;
}
.mc-service-card { gap: 10px; }
.mc-service-name { color:var(--text) !important; }
.mc-server-price { color:var(--text) !important; }

.op-card {
  background:var(--surface) !important;
  border-color:var(--line) !important;
  box-shadow: 0 3px 0 #020202, 0 0 0 1px rgba(255,255,255,.025) !important;
}
.op-card:hover,
.op-card.active {
  background:var(--surface) !important;
  border-color: #f4c557 !important;
  box-shadow: 0 4px 0 #020202, 0 0 18px rgba(244,197,87,.15) !important;
}
.op-card-img {
  background:var(--surface) !important;
  border:1px solid var(--line);
}
.op-card-img img { background: transparent !important; }
.op-card-name,
.op-card.active .op-card-name { color:var(--text) !important; }
.op-card-icon { color:var(--text) !important; }

/* The fixed order action must not flash white while processing. */
.mc-order-sticky,
body.mc-body > div[style*="position:fixed"][style*="bottom:0"][style*="background:white"],
body.mc-body > div[style*="position: fixed"][style*="bottom: 0"][style*="background: white"] {
  background:var(--surface) !important;
  border-top: 1px solid rgba(244,197,87,.42) !important;
  box-shadow: 0 -8px 26px rgba(0,0,0,.72) !important;
  backdrop-filter: blur(12px);
}

.mc-skeleton {
  background:var(--surface) !important;
  background-size: 200% 100% !important;
}

/* Receipt and status surfaces */
.mc-receipt {
  background:var(--surface) !important;
  border:1px dashed var(--line) !important;
}
.mc-receipt-row { border-bottom-color: #252c38 !important; }
.mc-receipt-row .label { color:var(--text-2) !important; }
.mc-receipt-row .value { color:var(--text) !important; }
.mc-otp-box {
  background:var(--surface) !important;
  border-color: #2ecf7f !important;
}
.mc-timer { color: #ffb14e !important; }

.mc-status-pending,
.mc-status-expiring { background:var(--surface) !important; color:var(--text) !important; }
.mc-status-received,
.mc-status-completed,
.mc-status-success { background:var(--surface) !important; color:var(--text) !important; }
.mc-status-canceled,
.mc-status-cancel { background:var(--surface) !important; color: #ff9ba5 !important; }

/* Alerts */
.mc-alert { border-width: 1px !important; }
.mc-alert-warning { background:var(--surface) !important; color:var(--text) !important; border-color: #8f6d24 !important; }
.mc-alert-error { background:var(--surface) !important; color:var(--text) !important; border-color:var(--line) !important; }
.mc-alert-success { background:var(--surface) !important; color:var(--text) !important; border-color: #2c8c5c !important; }
.mc-alert-info { background:var(--surface) !important; color:var(--text) !important; border-color:var(--line) !important; }

/* Modal/dialog, no white sheets */
.mc-modal,
.mc-dialog {
  background:var(--surface) !important;
  border-color: #8a6b27 !important;
  color:var(--text) !important;
}
.mc-modal-handle,
.mc-dialog-sep { background:var(--surface) !important; }
.mc-dialog-title { color:var(--text) !important; }
.mc-dialog-msg,
.mc-dialog-label { color:var(--text) !important; }
.mc-dialog-btn-cancel {
  background:var(--surface) !important;
  color:var(--text) !important;
  border-color:var(--line) !important;
}
.mc-dialog-tag { background:var(--surface) !important; color:var(--text) !important; border-color:var(--line) !important; }
.mc-dialog-tag.selected { background:var(--surface) !important; color:var(--text) !important; border-color: #f4c557 !important; }

.oauth-google,
.oauth-btn {
  background:var(--surface) !important;
  color:var(--text) !important;
  border-color:var(--line) !important;
}
.auth-divider::before { background:var(--surface) !important; }
.auth-divider span { background:var(--surface) !important; color:var(--text-2) !important; }
.auth-footer a { color:var(--text) !important; }

/* Tables */
.mc-table th {
  background:var(--surface) !important;
  color:var(--text) !important;
  border-bottom-color: #8a6b27 !important;
}
.mc-table td { color:var(--text) !important; border-bottom-color: #252c38 !important; }
.mc-table tr:hover td { background:var(--surface) !important; }

/* QR needs a light island for scan reliability, but no white page/sheet. */
.mc-qr-box {
  background: #f8fafc !important;
  border-color: #f4c557 !important;
}

/* Mobile tuning */
@media (max-width: 520px) {
  .mc-service-grid { gap: 10px; }
  .mc-service-card { padding: 13px 10px; }
  .mc-page { padding-left: 14px !important; padding-right: 14px !important; }
}


/* =========================================================
   KING NOKOS — ADMIN LOGO UPLOAD
   ========================================================= */
.mc-brand-logo-img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: inherit !important;
}
.mc-logo-icon,
.landing-nav-logo-icon,
.auth-logo .mc-logo-icon,
.landing-logo {
  overflow: hidden !important;
}
.mc-brand-logo-img { padding: 3px !important; box-sizing: border-box !important; }
.brand-logo-upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo-preview {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border: 2px solid rgba(244,197,87,.78);
  border-radius: 16px;
  background:var(--surface);
  box-shadow: 0 4px 0 #62450f, 0 0 22px rgba(244,197,87,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color:var(--text);
  font-size: 34px;
  padding: 7px;
}
.brand-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.brand-logo-upload-info { min-width: 0; flex: 1; }
.brand-logo-help {
  font-size: 11px;
  line-height: 1.55;
  color:var(--text-2);
  margin-top: 7px;
}
.brand-logo-remove {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #fca5a5;
  font-size: 12px;
  cursor: pointer;
}
.brand-logo-remove input {
  width: 18px;
  height: 18px;
  accent-color: #ef4444;
}
.error-brand-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color:var(--text);
  font-size: 74px;
}
.error-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 520px) {
  .brand-logo-upload-row { align-items: flex-start; }
  .brand-logo-preview { width: 70px; height: 70px; flex-basis: 70px; }
}

/* PROFILE AVATAR + GLOBAL CHAT AVATAR */
.mc-avatar-profile {
  position: relative;
  overflow: visible;
  background:var(--surface);
  border-color: rgba(246, 196, 83, .72);
  box-shadow: 0 0 0 4px rgba(246, 196, 83, .09), 0 10px 28px rgba(0, 0, 0, .42);
}
.mc-avatar-profile > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background:var(--surface);
}
.mc-avatar-profile .mc-avatar-fallback {
  display: none;
}
.mc-avatar-profile.fallback .mc-avatar-fallback {
  display: inline-block;
}
.mc-avatar-edit {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border:2px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(145deg, #f6c453, #b77916);
  color: #171109;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .4);
}
.mc-avatar-edit:active {
  transform: scale(.94);
}
.mc-avatar-modal {
  background:var(--surface);
  border: 1px solid rgba(246, 196, 83, .45);
}
.mc-avatar-modal-title {
  margin: 0 0 6px;
  color:var(--text);
  font-family: 'Oxanium', sans-serif;
  font-size: 17px;
  font-weight: 800;
}
.mc-avatar-modal-subtitle {
  margin: 0 0 17px;
  color:var(--text-2);
  font-size: 11px;
  line-height: 1.5;
}
.mc-avatar-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 18px 14px;
  border: 1px dashed rgba(246, 196, 83, .48);
  border-radius: 16px;
  background: rgba(246, 196, 83, .035);
  color:var(--text);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.mc-avatar-picker:hover {
  border-color: #f6c453;
  background: rgba(246, 196, 83, .075);
}
.mc-avatar-picker > strong {
  color:var(--text);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.mc-avatar-picker > span {
  color:var(--text-2);
  font-size: 9px;
}
.mc-avatar-preview {
  position: relative;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #a87927;
  border-radius: 50%;
  background:var(--surface);
  color: #d6aa50;
  font-size: 36px;
  box-shadow: 0 0 0 5px rgba(246, 196, 83, .08), 0 12px 30px rgba(0, 0, 0, .35);
}
.mc-avatar-preview > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}
.mc-avatar-preview-camera {
  position: absolute;
  right: -1px;
  bottom: 3px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border:2px solid var(--line);
  border-radius: 50%;
  background: #f6c453;
  color: #171109;
  font-size: 11px;
}
.mc-avatar-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}
.mc-avatar-delete-form {
  margin-top: 9px;
}
.mc-avatar-delete-button {
  width: 100%;
  border: 1px solid rgba(239, 68, 68, .35) !important;
  background: rgba(239, 68, 68, .08) !important;
  color: #fca5a5 !important;
}
.mc-chat-heading-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.mc-chat-profile-link {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border:1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 196, 83, .07);
  color: #dcbf72;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}
.mc-chat-profile-link:hover {
  border-color: #a77929;
  background: rgba(246, 196, 83, .12);
  color:var(--text);
}
.mc-chat-profile-link-avatar {
  width: 23px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #8d6825;
  border-radius: 50%;
  background:var(--surface);
  color:var(--text);
  font-size: 9px;
}
.mc-chat-profile-link-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.mc-chat-avatar {
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}
.mc-chat-avatar.admin {
  box-shadow: 0 0 0 2px rgba(246, 196, 83, .08), 0 4px 12px rgba(0, 0, 0, .3);
}
.mc-chat-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.mc-chat-avatar-initial {
  font-family: 'Oxanium', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.mc-chat-row.own .mc-chat-avatar {
  border-color: #9c752b;
}
@media (max-width: 430px) {
  .mc-chat-profile-link > span:last-child {
    display: none;
  }
  .mc-chat-profile-link {
    padding-right: 4px;
  }
}

/* FAVICON SETTINGS */
.brand-favicon-preview {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  border-radius: 14px;
  padding: 10px;
}
.brand-favicon-preview img {
  image-rendering: auto;
  object-fit: contain;
}
.brand-favicon-source,
.brand-env-note {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.55;
  color:var(--text);
}
.brand-favicon-source {
  padding: 8px 10px;
  border: 1px solid rgba(244, 197, 87, .34);
  border-radius: 9px;
  background: rgba(244, 197, 87, .06);
}
.brand-env-note {
  padding: 10px 11px;
  border: 1px solid rgba(59, 130, 246, .28);
  border-radius: 10px;
  background: rgba(59, 130, 246, .06);
  color:var(--text);
}
.brand-favicon-source code,
.brand-env-note code,
.brand-logo-remove code {
  color:var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .95em;
}
@media (max-width: 520px) {
  .brand-favicon-preview {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
}
