/* ==========================================================================
   MeawNarok MMORPG - Fantasy Game Windows Design System (CSS Magic Edition)
   Pure CSS - Zero Extra Image Assets Required
   ========================================================================== */

/* ==========================================================================
   1. Universal Master Fantasy Window Framing
   ========================================================================== */
#inventory-window.inven-dialog,
#equipment-window.equip-dialog,
#stats-window.stats-dialog,
#storage-window.storage-dialog,
#kafra-dialog.kafra-npc-window,
#upgrade-npc-dialog.kafra-npc-window,
#general-npc-dialog.kafra-npc-window,
#shop-dialog,
#auto-combat-modal.auto-combat-dialog,
#leaderboard-modal.leaderboard-dialog,
#inspect-player-window.inspect-player-dialog,
#dye-studio-modal.dye-studio-modal,
#channel-switch-modal.channel-switch-dialog {
  position: absolute;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(30, 46, 74, 0.98) 0%, rgba(15, 23, 42, 0.97) 55%, rgba(9, 13, 24, 0.99) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.65);
  border-radius: 14px;
  box-shadow: 
    0 22px 65px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(10, 15, 26, 0.9),
    inset 0 0 0 1px rgba(254, 240, 138, 0.25),
    inset 0 0 35px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(245, 158, 11, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Medieval Gold Edge Bevel on Top of Every Master Window */
#inventory-window.inven-dialog::before,
#equipment-window.equip-dialog::before,
#stats-window.stats-dialog::before,
#storage-window.storage-dialog::before,
#kafra-dialog.kafra-npc-window::before,
#upgrade-npc-dialog.kafra-npc-window::before,
#general-npc-dialog.kafra-npc-window::before,
#shop-dialog::before,
#auto-combat-modal.auto-combat-dialog::before,
#leaderboard-modal.leaderboard-dialog::before,
#inspect-player-window.inspect-player-dialog::before,
#channel-switch-modal.channel-switch-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(245, 158, 11, 0.5) 15%, 
    rgba(254, 240, 138, 0.95) 50%, 
    rgba(245, 158, 11, 0.5) 85%, 
    transparent 100%
  );
  z-index: 10;
  pointer-events: none;
}

/* ==========================================================================
   2. Universal Window Header & Actions (Engraved Metallic Bar)
   ========================================================================== */
.ro-window .window-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 3px 8px rgba(0, 0, 0, 0.45);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.ro-window .window-header:active {
  cursor: grabbing;
}

.ro-window .window-header span:not(.btn-text):not(.btn-icon):not(.lb-cache-badge) {
  font-family: var(--font-hud, 'Outfit', 'Chakra Petch', sans-serif);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fef08a;
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.9), 0 0 12px rgba(245, 158, 11, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Universal Ruby Jewel Close Button */
.ro-window .btn-close {
  width: 26px;
  height: 26px;
  background: radial-gradient(circle at 35% 35%, #ef4444 0%, #991b1b 100%);
  border: 1.5px solid rgba(254, 202, 202, 0.6);
  border-radius: 7px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ro-window .btn-close:hover {
  background: radial-gradient(circle at 35% 35%, #f87171 0%, #dc2626 100%);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: scale(1.08);
}

.ro-window .btn-close:active {
  transform: scale(0.92);
}

/* ==========================================================================
   3. Inventory Window (I) Special Polish
   ========================================================================== */
#inventory-window .btn-sort-inven {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fef08a;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.18s ease;
  cursor: pointer;
}

#inventory-window .btn-sort-inven:hover {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border-color: #fef08a;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

#inventory-window .inven-category-tabs,
#storage-window .storage-category-tabs {
  display: flex;
  gap: 6px;
  background: rgba(8, 12, 22, 0.82);
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.04);
}

#inventory-window .inven-tab-btn,
#storage-window .storage-tab-btn {
  flex: 1;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

#inventory-window .inven-tab-btn:hover,
#storage-window .storage-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

#inventory-window .inven-tab-btn.active,
#storage-window .storage-tab-btn.active {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.35) 0%, rgba(180, 83, 9, 0.25) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.85);
  color: #fffbeb;
  box-shadow: 
    0 0 12px rgba(245, 158, 11, 0.35), 
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 10px rgba(245, 158, 11, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

#inventory-window .inven-grid,
#inventory-window .inven-grid-expanded,
#storage-window .storage-grid {
  background: rgba(7, 10, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 
    inset 0 4px 16px rgba(0, 0, 0, 0.85), 
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.04);
  margin-bottom: 12px;
}

#inventory-window .inven-item-cell,
#storage-window .storage-grid .inven-item-cell {
  position: relative;
  width: 54px;
  height: 54px;
  background: radial-gradient(circle at center, rgba(30, 41, 62, 0.6) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.11);
  border-top-color: rgba(255, 255, 255, 0.22);
  border-left-color: rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 2px 6px rgba(0, 0, 0, 0.75), 
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

#inventory-window .inven-item-cell:hover,
#storage-window .storage-grid .inven-item-cell:hover {
  border-color: #fcd34d;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.32) 0%, rgba(20, 30, 52, 0.95) 100%);
  box-shadow: 
    0 0 15px rgba(245, 158, 11, 0.45), 
    inset 0 0 10px rgba(245, 158, 11, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px) scale(1.04);
  z-index: 5;
}

#inventory-window .inven-item-cell.is-equipped {
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.25) 0%, rgba(26, 36, 60, 0.95) 100%) !important;
  border-color: rgba(245, 158, 11, 0.9) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4), inset 0 0 12px rgba(245, 158, 11, 0.35) !important;
}

#inventory-window .inven-item-cell.empty-slot,
#storage-window .storage-grid .inven-item-cell.empty-slot {
  background: rgba(8, 11, 19, 0.55);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-top-color: rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.8);
  cursor: default;
  transform: none !important;
}

/* ==========================================================================
   4. Equipment Window (E) - 3D Paperdoll & Sockets
   ========================================================================== */
#equipment-window.equip-dialog {
  width: 590px;
}

.equip-dialog .paperdoll-container {
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 10px;
  box-shadow: inset 0 4px 18px rgba(0, 0, 0, 0.85);
}

/* Redesigned 3D Equipment Sockets */
.equip-dialog .equip-slot-item {
  background: linear-gradient(135deg, rgba(24, 33, 50, 0.85) 0%, rgba(12, 17, 28, 0.95) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-left-color: rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  padding: 6px 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.equip-dialog .equip-slot-item:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.35);
}

.equip-dialog .equip-slot-item.empty {
  background: rgba(10, 14, 24, 0.55);
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.equip-dialog .equip-slot-item.empty:hover {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(56, 189, 248, 0.08);
}

/* Sunken Velvet Slot Icon Box */
.equip-dialog .slot-icon-socket {
  background: radial-gradient(circle at center, rgba(30, 41, 62, 0.6) 0%, rgba(10, 15, 26, 0.95) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.22);
  border-left-color: rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Center Character Stage & Pedestal */
.equip-dialog .paperdoll-avatar-frame {
  background: radial-gradient(circle at center, rgba(30, 46, 74, 0.4) 0%, rgba(10, 15, 26, 0.9) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  box-shadow: 
    inset 0 0 20px rgba(0, 0, 0, 0.8), 
    0 0 20px rgba(245, 158, 11, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.equip-dialog .paperdoll-char-canvas,
.inspect-player-dialog .paperdoll-char-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.equip-dialog .paperdoll-char-canvas:hover,
.inspect-player-dialog .paperdoll-char-canvas:hover {
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.45)) brightness(1.06);
}

.equip-dialog .paperdoll-name {
  color: #fef08a;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Bottom Stats Summary Bar */
.equip-dialog .equip-stats-summary {
  background: linear-gradient(180deg, rgba(20, 27, 42, 0.9) 0%, rgba(10, 14, 24, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 8px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.equip-dialog .eq-stat-pill {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.18s ease;
}

.equip-dialog .eq-stat-pill:hover {
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   5. Status / Stats Window (C) - Attributes & Character Card
   ========================================================================== */
#stats-window.stats-dialog {
  width: 400px;
}

/* Profile Avatar Frame */
.stats-dialog .avatar-frame {
  border: 2px solid rgba(245, 158, 11, 0.65);
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.2) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.7), 
    inset 0 0 12px rgba(0, 0, 0, 0.7), 
    0 0 15px rgba(245, 158, 11, 0.3);
}

/* Attributes Grid (STR, AGI, VIT, INT, DEX, LUK) */
.stats-dialog .attr-item {
  background: linear-gradient(135deg, rgba(24, 32, 50, 0.75) 0%, rgba(13, 18, 30, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 6px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
}

.stats-dialog .attr-item:hover {
  background: linear-gradient(135deg, rgba(32, 44, 70, 0.85) 0%, rgba(18, 26, 44, 0.95) 100%);
  border-color: rgba(245, 158, 11, 0.45);
}

/* Sapphire Crystal Attribute Plus Button */
.stats-dialog .btn-attr-up {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  border: 1.5px solid rgba(191, 219, 254, 0.8);
  border-radius: 6px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-weight: 900;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-dialog .btn-attr-up:hover:not(:disabled) {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  border-color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Derived Combat Stats Panel */
.stats-dialog .derived-row {
  background: rgba(10, 15, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  border-radius: 7px;
  padding: 6px 10px;
}

/* PvP Summary Honor Banner */
.stats-dialog .pvp-stats-summary {
  background: linear-gradient(180deg, rgba(30, 24, 44, 0.9) 0%, rgba(14, 12, 22, 0.98) 100%);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.12), 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   6. Kafra Storage Window (Bank & Vault)
   ========================================================================== */
#storage-window .storage-zeny-bank {
  background: linear-gradient(180deg, rgba(24, 30, 48, 0.9) 0%, rgba(13, 17, 28, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 10px;
  box-shadow: inset 0 0 12px rgba(245, 158, 11, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#storage-window .btn-bank-deposit {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border: 1px solid #34d399;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

#storage-window .btn-bank-withdraw {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid #fde047;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   7. Hall of Fame / Leaderboard Modal (B)
   ========================================================================== */
#leaderboard-modal.leaderboard-dialog {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 
    0 24px 70px rgba(0, 0, 0, 0.95), 
    0 0 35px rgba(245, 158, 11, 0.25),
    inset 0 0 0 1px rgba(254, 240, 138, 0.3);
}

#leaderboard-modal .leaderboard-nav-tabs {
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 5px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

#leaderboard-modal .lb-tab-btn.active {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.35) 0%, rgba(180, 83, 9, 0.25) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.85);
  color: #fef08a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   8. Auto Combat Settings Modal
   ========================================================================== */
#auto-combat-modal.auto-combat-dialog {
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 
    0 22px 65px rgba(0, 0, 0, 0.92),
    0 0 30px rgba(34, 197, 94, 0.2),
    inset 0 0 0 1px rgba(134, 239, 172, 0.25);
}

#auto-combat-modal.auto-combat-dialog::before {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(34, 197, 94, 0.5) 15%, 
    rgba(134, 239, 172, 0.95) 50%, 
    rgba(34, 197, 94, 0.5) 85%, 
    transparent 100%
  );
}

/* ==========================================================================
   9. Player Vending / Market Bazaar Windows (vending-buyer-dialog)
   ========================================================================== */
#vending-buyer-modal.vending-buyer-dialog {
  border-color: rgba(245, 158, 11, 0.65) !important;
  box-shadow: 
    0 22px 65px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(10, 15, 26, 0.9),
    inset 0 0 0 1px rgba(254, 240, 138, 0.25),
    inset 0 0 35px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(245, 158, 11, 0.2) !important;
}

#vending-buyer-modal.vending-buyer-dialog .vending-header {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.38) !important;
}

#vending-buyer-modal.vending-buyer-dialog .vending-header span {
  color: #fef08a !important;
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.9), 0 0 12px rgba(245, 158, 11, 0.45) !important;
}

/* Merchant Seller Bar (Guild License / Market Stall Placard) */
.vending-buyer-dialog .vending-seller-bar {
  background: linear-gradient(180deg, rgba(28, 36, 56, 0.85) 0%, rgba(14, 20, 32, 0.95) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 8px rgba(0, 0, 0, 0.45) !important;
}

.vending-buyer-dialog .vending-seller-name {
  color: #fef08a !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.vending-buyer-dialog .vending-seller-meta {
  color: #94a3b8 !important;
  font-size: 11px !important;
}

.vending-buyer-dialog .vending-zeny-val {
  color: #34d399 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.4) !important;
}

/* Items List Header */
.vending-buyer-dialog .vending-items-list-header {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #cbd5e1 !important;
  padding: 0 8px 4px 8px !important;
  letter-spacing: 0.3px !important;
}

/* Item Container & Scrollbar Tray */
.vending-buyer-dialog .vending-buyer-items-container {
  background: rgba(7, 10, 18, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 11px !important;
  padding: 8px 6px !important;
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.8) !important;
  flex: 1 !important;
  min-height: 220px !important;
}

/* Item Card (Normal State) */
.vending-buyer-dialog .vending-buyer-card {
  background: linear-gradient(135deg, rgba(22, 30, 48, 0.8) 0%, rgba(12, 17, 28, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top-color: rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  margin-bottom: 2px !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.vending-buyer-dialog .vending-buyer-card:hover {
  background: linear-gradient(135deg, rgba(32, 44, 70, 0.9) 0%, rgba(18, 26, 44, 0.98) 100%) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  transform: translateX(2px) !important;
}

/* Item Card (Selected Active State) */
.vending-buyer-dialog .vending-buyer-card.selected {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(28, 38, 62, 0.95) 100%) !important;
  border: 1.5px solid #f59e0b !important;
  box-shadow: 
    0 0 14px rgba(245, 158, 11, 0.4), 
    inset 0 0 10px rgba(245, 158, 11, 0.15) !important;
  transform: translateX(3px) !important;
}

/* Card Icon Box (3D Sunken Well) */
.vending-buyer-dialog .vending-buyer-card-icon {
  width: 36px !important;
  height: 36px !important;
  background: radial-gradient(circle at center, rgba(30, 41, 62, 0.7) 0%, rgba(10, 15, 26, 0.95) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8) !important;
}

/* Card Name & Price */
.vending-buyer-dialog .vending-buyer-card-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
}

.vending-buyer-dialog .vending-buyer-card-price {
  font-family: var(--font-hud, 'Outfit', monospace) !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #fbbf24 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 3px !important;
}

.vending-buyer-dialog .vending-z-unit {
  font-size: 11px !important;
  color: #f59e0b !important;
  font-weight: 700 !important;
}

/* Bottom Checkout Action Panel (Compact & Polished) */
.vending-buyer-dialog .vending-buy-action-panel {
  background: linear-gradient(180deg, rgba(20, 27, 44, 0.92) 0%, rgba(10, 14, 24, 0.98) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  gap: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

.vending-buyer-dialog .vending-buy-item-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #fef08a !important;
}

/* Inspect Pill Button */
.vending-buyer-dialog .vending-btn-inspect-pill {
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid #38bdf8 !important;
  color: #38bdf8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.18s ease !important;
  cursor: pointer !important;
}

.vending-buyer-dialog .vending-btn-inspect-pill:hover {
  background: #38bdf8 !important;
  color: #0f172a !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6) !important;
  transform: translateY(-1px) !important;
}

/* Qty Controls */
.vending-buyer-dialog .vending-qty-btn {
  width: 26px !important;
  height: 26px !important;
  background: linear-gradient(180deg, rgba(40, 50, 75, 0.9) 0%, rgba(20, 28, 44, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.vending-buyer-dialog .vending-qty-btn:hover {
  background: #3b82f6 !important;
  border-color: #93c5fd !important;
  color: #ffffff !important;
}

.vending-buyer-dialog .vending-qty-btn-max {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
  border: 1px solid #fef08a !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border-radius: 5px !important;
  padding: 3px 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.vending-buyer-dialog .vending-qty-btn-max:hover {
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.7) !important;
  transform: translateY(-1px) !important;
}

.vending-buyer-dialog .vending-buyer-qty-input {
  background: rgba(10, 14, 24, 0.9) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 5px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  width: 48px !important;
  height: 26px !important;
  text-align: center !important;
}

/* Buy Action Button */
.vending-buyer-dialog .btn-vending-buy {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
  border: 1.5px solid #6ee7b7 !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.vending-buyer-dialog .btn-vending-buy:hover:not(.insufficient-zeny) {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px) !important;
}

.vending-buyer-dialog .btn-vending-buy.insufficient-zeny {
  background: linear-gradient(180deg, #ef4444 0%, #991b1b 100%) !important;
  border: 1.5px solid #fca5a5 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}

/* ==========================================================================
   10. Minimap & Radar Info Panel (Top Right HUD)
   ========================================================================== */
#minimap-panel {
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(28, 42, 68, 0.96) 0%, rgba(15, 23, 42, 0.96) 65%, rgba(9, 13, 24, 0.98) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.55) !important;
  border-radius: 14px !important;
  box-shadow: 
    0 16px 45px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(10, 15, 26, 0.9),
    inset 0 0 0 1px rgba(254, 240, 138, 0.22),
    inset 0 0 25px rgba(0, 0, 0, 0.65),
    0 0 20px rgba(245, 158, 11, 0.15) !important;
  padding: 10px 12px !important;
}

#minimap-panel .minimap-header {
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.35) !important;
  padding-bottom: 7px !important;
  gap: 10px !important;
}

#minimap-panel .map-title-box {
  max-width: 200px !important;
}

#minimap-panel .map-title {
  color: #fef08a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 8px rgba(245, 158, 11, 0.35) !important;
}

/* Quick Tool Buttons */
#minimap-panel .ro-channel-badge-btn {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.2) 100%) !important;
  border: 1px solid rgba(52, 211, 153, 0.65) !important;
  color: #6ee7b7 !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
  padding: 3px 8px !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25) !important;
  transition: all 0.18s ease !important;
}

#minimap-panel .ro-channel-badge-btn:hover {
  background: rgba(16, 185, 129, 0.4) !important;
  border-color: #a7f3d0 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-1px) !important;
}

#minimap-panel .ro-icon-btn {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 7px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#minimap-panel .ro-icon-btn:hover {
  border-color: #f59e0b !important;
  color: #ffffff !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5) !important;
}

/* Minimap Canvas Viewport (Nautical Brass Radar Frame) */
#minimap-panel .minimap-wrapper {
  border: 1.5px solid rgba(245, 158, 11, 0.55) !important;
  border-radius: 10px !important;
  box-shadow: 
    inset 0 0 16px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(245, 158, 11, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

#minimap-panel .minimap-compass-n {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%) !important;
  border: 1px solid #fef08a !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  font-size: 8.5px !important;
  border-radius: 4px !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6) !important;
  padding: 1px 4px !important;
}

/* Dashboard on the right */
#minimap-panel .minimap-dashboard {
  width: 165px !important;
  gap: 6px !important;
}

/* Card General Styling */
#minimap-panel .minimap-card {
  background: linear-gradient(135deg, rgba(24, 33, 52, 0.8) 0%, rgba(13, 18, 30, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top-color: rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 5px rgba(0, 0, 0, 0.35) !important;
}

/* Coordinates Card */
#minimap-panel .coord-card {
  border-color: rgba(245, 158, 11, 0.35) !important;
  padding: 6px 10px !important;
}

#minimap-panel .coord-card .card-val {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #fbbf24 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 8px rgba(245, 158, 11, 0.35) !important;
}

/* Information Stack (Full width rows - No Broken Words!) */
.minimap-info-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-card-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 5px 8px !important;
}

.stat-row-left {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.stat-card-row .card-val {
  font-size: 11px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* Network & FPS Bar */
#minimap-panel .perf-card {
  background: rgba(10, 14, 24, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  padding: 4px 10px !important;
  border-radius: 7px !important;
}

#minimap-panel .perf-text {
  font-size: 10.5px !important;
  font-weight: 700 !important;
}

/* Minimap Fullscreen Tactical Action Button (HUD Tile) */
#minimap-panel .minimap-fullscreen-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex: 1 !important;
  min-width: 34px !important;
  max-width: 44px !important;
  padding: 8px 3px !important;
  background: linear-gradient(180deg, rgba(28, 42, 68, 0.85) 0%, rgba(13, 18, 30, 0.95) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.4) !important;
  border-top-color: rgba(254, 240, 138, 0.5) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.5) !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: #fef08a !important;
}

#minimap-panel .minimap-fullscreen-btn:hover {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.25) 0%, rgba(18, 27, 44, 0.98) 100%) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.55), inset 0 0 8px rgba(251, 191, 36, 0.2) !important;
  transform: translateY(-1px) scale(1.03) !important;
}

#minimap-panel .minimap-fullscreen-btn:active {
  transform: translateY(1px) scale(0.98) !important;
}

#minimap-panel .minimap-fullscreen-btn.is-fullscreen {
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.3) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  border-color: #38bdf8 !important;
  border-top-color: #7dd3fc !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45), inset 0 0 8px rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
}

#minimap-panel .minimap-fullscreen-btn.is-fullscreen:hover {
  border-color: #7dd3fc !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.65) !important;
}

#minimap-panel .fs-icon-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  color: inherit !important;
  transition: transform 0.2s ease !important;
}

#minimap-panel .minimap-fullscreen-btn:hover .fs-icon-wrap {
  transform: scale(1.15) !important;
}

#minimap-panel .fs-label-vertical {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 1px !important;
  font-family: var(--font-hud, 'Outfit', 'Chakra Petch', sans-serif) !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  line-height: 1.1 !important;
  color: #94a3b8 !important;
  transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

#minimap-panel .minimap-fullscreen-btn:hover .fs-label-vertical {
  color: #fef08a !important;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.6) !important;
}

#minimap-panel .minimap-fullscreen-btn.is-fullscreen .fs-label-vertical {
  color: #38bdf8 !important;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.5) !important;
}

#minimap-panel .fs-indicator {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: rgba(148, 163, 184, 0.4) !important;
  box-shadow: 0 0 3px rgba(148, 163, 184, 0.3) !important;
  transition: all 0.2s ease !important;
}

#minimap-panel .minimap-fullscreen-btn:hover .fs-indicator {
  background: #f59e0b !important;
  box-shadow: 0 0 8px #f59e0b !important;
}

#minimap-panel .minimap-fullscreen-btn.is-fullscreen .fs-indicator {
  background: #22c55e !important;
  box-shadow: 0 0 8px #22c55e !important;
  animation: pulse-dot 2s infinite !important;
}

/* Minimap Tactical Drag Handle (Beside Fullscreen Button) */
#minimap-panel .minimap-content {
  gap: 8px !important;
}

#minimap-panel .minimap-drag-handle {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 15px !important;
  min-width: 15px !important;
  padding: 6px 0 !important;
  background: linear-gradient(180deg, rgba(20, 30, 48, 0.75) 0%, rgba(10, 15, 26, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important;
  cursor: grab !important;
  user-select: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#minimap-panel .minimap-drag-handle:hover {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.22) 0%, rgba(14, 116, 144, 0.4) 100%) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35) !important;
  transform: translateY(-1px) scale(1.02) !important;
}

#minimap-panel .minimap-drag-handle:active,
#minimap-panel.is-dragging-minimap .minimap-drag-handle {
  cursor: grabbing !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.3) 0%, rgba(180, 83, 9, 0.45) 100%) !important;
  border-color: rgba(245, 158, 11, 0.7) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45) !important;
}

#minimap-panel .minimap-drag-handle .drag-grip-ridges {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  pointer-events: none !important;
}

#minimap-panel .minimap-drag-handle .grip-dot {
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: rgba(148, 163, 184, 0.55) !important;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.2s ease !important;
}

#minimap-panel .minimap-drag-handle:hover .grip-dot {
  background: #38bdf8 !important;
  box-shadow: 0 0 6px #38bdf8 !important;
}

#minimap-panel .minimap-drag-handle:active .grip-dot,
#minimap-panel.is-dragging-minimap .grip-dot {
  background: #fbbf24 !important;
  box-shadow: 0 0 6px #fbbf24 !important;
}

#minimap-panel.is-dragging-minimap,
#minimap-panel.is-dragging-minimap * {
  cursor: grabbing !important;
}

/* ==========================================================================
   11. Server Channel Switcher Modal (channel-switch-dialog)
   ========================================================================== */
#channel-switch-modal.channel-switch-dialog {
  width: 520px !important;
  max-width: 95vw !important;
  position: absolute !important;
  top: calc(50% - 210px);
  left: calc(50% - 260px);
  transform: none;
  z-index: 100050 !important;
}

#channel-switch-modal .channel-switch-header {
  padding: 10px 16px !important;
  cursor: grab !important;
}

#channel-switch-modal .channel-switch-header:active {
  cursor: grabbing !important;
}

#channel-switch-modal .modal-title {
  color: #fef08a !important;
  font-family: var(--font-hud, 'Outfit', 'Chakra Petch', sans-serif) !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.9), 0 0 12px rgba(245, 158, 11, 0.45) !important;
}

#channel-switch-modal .channel-modal-info p {
  margin: 0 0 14px 0 !important;
  font-size: 12.5px !important;
  color: #cbd5e1 !important;
  line-height: 1.55 !important;
}

/* Channel Cards List */
#channel-switch-modal .channel-cards-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  max-height: 380px !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}

#channel-switch-modal .channel-cards-list::-webkit-scrollbar {
  width: 6px;
}
#channel-switch-modal .channel-cards-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
}
#channel-switch-modal .channel-cards-list::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 4px;
}
#channel-switch-modal .channel-cards-list::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.7);
}

.channel-expansion-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(59, 130, 246, 0.25) 100%) !important;
  border: 1px solid rgba(168, 85, 247, 0.5) !important;
  color: #c084fc !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 1px 6px !important;
  border-radius: 6px !important;
  margin-left: 6px !important;
  letter-spacing: 0.2px !important;
  vertical-align: middle !important;
}

/* Individual Channel Card */
#channel-switch-modal .channel-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  background: linear-gradient(135deg, rgba(24, 33, 52, 0.85) 0%, rgba(12, 17, 28, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top-color: rgba(255, 255, 255, 0.18) !important;
  border-radius: 11px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

#channel-switch-modal .channel-card:hover {
  background: linear-gradient(135deg, rgba(32, 44, 70, 0.9) 0%, rgba(18, 26, 44, 0.98) 100%) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  transform: translateX(3px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5) !important;
}

/* Active / Connected Channel Card */
#channel-switch-modal .channel-card.current {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(26, 38, 62, 0.95) 100%) !important;
  border: 1.5px solid #f59e0b !important;
  box-shadow: 
    0 0 18px rgba(245, 158, 11, 0.35), 
    inset 0 0 12px rgba(245, 158, 11, 0.15) !important;
}

/* 3D Sunken Icon Socket */
#channel-switch-modal .channel-icon {
  width: 44px !important;
  height: 44px !important;
  background: radial-gradient(circle at center, rgba(30, 42, 65, 0.8) 0%, rgba(10, 15, 26, 0.95) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9px !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  font-size: 24px !important;
}

#channel-switch-modal .channel-title-group h4 {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 2px !important;
}

.channel-current-badge {
  font-size: 10px !important;
  font-weight: 800 !important;
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%) !important;
  color: #0f172a !important;
  padding: 1.5px 7px !important;
  border-radius: 4px !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5) !important;
}

#channel-switch-modal .channel-title-group p {
  color: #94a3b8 !important;
  font-size: 11.5px !important;
}

/* Status Pill */
#channel-switch-modal .channel-status-pill.smooth {
  background: rgba(16, 185, 129, 0.2) !important;
  border: 1px solid rgba(52, 211, 153, 0.6) !important;
  color: #6ee7b7 !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
}

/* Action Buttons */
#channel-switch-modal .btn-channel-action.current {
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1.5px solid rgba(52, 211, 153, 0.6) !important;
  color: #6ee7b7 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  border-radius: 7px !important;
  padding: 6px 12px !important;
}

#channel-switch-modal .btn-channel-action.switch {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid #38bdf8 !important;
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  border-radius: 7px !important;
  padding: 6px 14px !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: all 0.18s ease !important;
}

#channel-switch-modal .btn-channel-action.switch:hover {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* Footer & Secondary Close Button */
#channel-switch-modal .channel-modal-footer {
  margin-top: 14px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 12px !important;
}

.channel-btn-close-footer {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
  color: #fef08a !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 6px 16px !important;
  border-radius: 7px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 5px rgba(0, 0, 0, 0.45) !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.channel-btn-close-footer:hover {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
  border-color: #fef08a !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6) !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   11. Fantasy RO Gateway Portal & Authentication Screen (#auth-screen, .auth-box)
   ========================================================================== */
#auth-screen {
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.4) 0%, rgba(3, 7, 18, 0.85) 100%) !important;
}

.auth-box {
  position: relative !important;
  width: 90% !important;
  max-width: 440px !important;
  padding: 26px 28px !important;
  border-radius: 16px !important;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(26, 38, 62, 0.98) 0%, rgba(13, 19, 33, 0.97) 55%, rgba(7, 10, 18, 0.99) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.7) !important;
  box-shadow: 
    0 26px 80px rgba(0, 0, 0, 0.96),
    0 0 0 1px rgba(10, 15, 26, 0.95),
    inset 0 0 0 1px rgba(254, 240, 138, 0.28),
    inset 0 0 45px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(245, 158, 11, 0.2) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  overflow: hidden !important;
  animation: fadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Golden Medieval Rim Bevel on Top of Login Portal */
.auth-box::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2.5px !important;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(245, 158, 11, 0.5) 15%, 
    rgba(254, 240, 138, 0.98) 50%, 
    rgba(245, 158, 11, 0.5) 85%, 
    transparent 100%
  ) !important;
  z-index: 10 !important;
  pointer-events: none !important;
  border-radius: 16px 16px 0 0 !important;
}

/* Header & Title Area */
.ro-logo-title {
  text-align: center !important;
  margin-bottom: 14px !important;
  position: relative !important;
}

.ro-logo-title .logo-subtitle {
  font-family: var(--font-thai, 'Kanit', sans-serif) !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #fde047 !important;
  letter-spacing: 3.5px !important;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.8), 0 2px 4px rgba(0, 0, 0, 0.95) !important;
  margin-bottom: 2px !important;
  text-transform: uppercase !important;
}

.ro-logo-title h1 {
  font-family: var(--font-hud, 'Chakra Petch', sans-serif) !important;
  font-size: 27px !important;
  font-weight: 900 !important;
  letter-spacing: 2.5px !important;
  color: #ffffff !important;
  text-shadow: 
    0 0 20px rgba(245, 158, 11, 0.85), 
    0 0 35px rgba(217, 119, 6, 0.5), 
    0 2px 6px rgba(0, 0, 0, 0.95) !important;
  margin: 0 !important;
  line-height: 1.15 !important;
}

.ro-logo-title .logo-edition {
  font-family: var(--font-hud, 'Outfit', sans-serif) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  letter-spacing: 2.8px !important;
  margin-top: 4px !important;
  opacity: 0.9 !important;
}

/* Ornamental Divider Line below Title */
.ro-logo-title::after {
  content: '' !important;
  display: block !important;
  width: 65% !important;
  height: 1px !important;
  margin: 12px auto 4px !important;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.65), transparent) !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4) !important;
}

/* Mode Switch Tabs */
.auth-tabs {
  display: flex !important;
  gap: 6px !important;
  background: rgba(10, 15, 26, 0.65) !important;
  padding: 4px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55) !important;
  margin: 12px 0 16px !important;
}

.auth-tab {
  flex: 1 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  color: #94a3b8 !important;
  font-family: var(--font-hud) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-align: center !important;
}

.auth-tab:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f1f5f9 !important;
}

.auth-tab.active {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.65) !important;
  color: #fef08a !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(245, 158, 11, 0.35) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15), 
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 0 10px rgba(245, 158, 11, 0.2) !important;
}

/* Form Groups & 3D Sunken Input Wells */
.form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}

.form-group label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #e2e8f0 !important;
  letter-spacing: 0.3px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.form-group input {
  background: rgba(9, 13, 24, 0.85) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  color: #fef08a !important;
  font-size: 13.5px !important;
  font-family: var(--font-hud), sans-serif !important;
  letter-spacing: 0.4px !important;
  outline: none !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  caret-color: #f59e0b !important;
}

.form-group input::placeholder {
  color: #64748b !important;
  font-family: var(--font-main), sans-serif !important;
  font-size: 12.5px !important;
}

.form-group input:focus {
  border-color: rgba(245, 158, 11, 0.85) !important;
  background: rgba(9, 13, 24, 0.95) !important;
  box-shadow: 
    inset 0 2px 6px rgba(0, 0, 0, 0.9), 
    0 0 14px rgba(245, 158, 11, 0.45), 
    0 0 0 1px rgba(245, 158, 11, 0.3) !important;
}

/* CRITICAL: Overriding Browser Autofill light-blue/white background */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover, 
.form-group input:-webkit-autofill:focus, 
.form-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #090d18 inset !important;
  box-shadow: 0 0 0 1000px #090d18 inset !important;
  -webkit-text-fill-color: #fef08a !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  caret-color: #f59e0b !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Password Toggle Eye Button */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 42px !important;
}

.btn-toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 41, 59, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 6px !important;
  color: #cbd5e1 !important;
  padding: 3px 6px !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-toggle-password:hover {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #f59e0b !important;
  color: #fef08a !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4) !important;
}

/* Primary Action Buttons (3D Metallic RO Style) */
.btn-auth-submit {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 70%, #b45309 100%) !important;
  border: 1.5px solid #fde047 !important;
  border-radius: 9px !important;
  color: #0f172a !important;
  font-family: var(--font-hud) !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  padding: 11px !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  box-shadow: 
    0 4px 14px rgba(217, 119, 6, 0.55), 
    inset 0 1px 0 rgba(255, 255, 255, 0.4), 
    inset 0 -2px 0 rgba(0, 0, 0, 0.25) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-top: 4px !important;
}

.btn-auth-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 
    0 6px 22px rgba(245, 158, 11, 0.75), 
    inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
  filter: brightness(1.08) !important;
}

.btn-auth-submit:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.5) !important;
}

.btn-auth-submit.btn-reg {
  background: linear-gradient(180deg, #10b981 0%, #059669 70%, #047857 100%) !important;
  border: 1.5px solid #6ee7b7 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
  box-shadow: 
    0 4px 14px rgba(16, 185, 129, 0.5), 
    inset 0 1px 0 rgba(255, 255, 255, 0.35), 
    inset 0 -2px 0 rgba(0, 0, 0, 0.25) !important;
}

.btn-auth-submit.btn-reg:hover {
  box-shadow: 
    0 6px 22px rgba(16, 185, 129, 0.75), 
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  filter: brightness(1.08) !important;
}

/* Sleek Google Sign-In Button (Obsidian Glass Theme) */
.btn-google-auth {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  color: #f1f5f9 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 9px !important;
  padding: 10px 16px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  font-family: var(--font-hud), sans-serif !important;
  letter-spacing: 0.3px !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-top: 14px !important;
}

.btn-google-auth:hover {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.22) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  border-color: rgba(66, 133, 244, 0.75) !important;
  box-shadow: 0 0 16px rgba(66, 133, 244, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
}

/* Divider */
.auth-footer-divider {
  display: flex !important;
  align-items: center !important;
  text-align: center !important;
  margin: 14px 0 12px !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

.auth-footer-divider::before, 
.auth-footer-divider::after {
  content: '' !important;
  flex: 1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.auth-footer-divider span {
  padding: 0 12px !important;
}

/* Adventurer Quick Pass - Guest Play Button (No more ugly dashed lines) */
.btn-guest-play {
  width: 100% !important;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 9px !important;
  color: #e0f2fe !important;
  font-family: var(--font-hud) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  padding: 10px !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.btn-guest-play:hover {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.25) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px) !important;
}

.btn-guest-play:active {
  transform: translateY(1px) !important;
}

/* Server Status Capsule (Perfect Center Alignment) */
.auth-server-status {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 14px auto 0 !important;
  padding: 5px 16px !important;
  width: fit-content !important;
  max-width: 100% !important;
  background: rgba(10, 15, 26, 0.75) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  border-radius: 20px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.4px !important;
  text-align: center !important;
}

.auth-server-status #auth-status-text {
  color: #cbd5e1 !important;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
}

.status-indicator {
  position: relative !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

.status-indicator.online {
  background: #10b981 !important;
  box-shadow: 0 0 8px #10b981, 0 0 16px rgba(16, 185, 129, 0.8) !important;
  animation: statusPulse 1.8s infinite ease-in-out !important;
}

/* ==========================================================================
   12. Epic Character Selection Screen & Character Slots (#char-select-screen, .char-slots-box)
   ========================================================================== */
#char-select-screen {
  position: fixed;
  inset: 0;
  z-index: 1000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, rgba(3, 7, 18, 0.92) 100%) !important;
  padding: 10px !important;
}

#char-select-screen.hidden {
  display: none !important;
}

/* Master Character Selection Stage Container (Aspect Ratio: 841 / 468) */
.char-slots-box {
  position: relative !important;
  width: min(940px, 96vw) !important;
  aspect-ratio: 841 / 468 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: fadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.char-slots-box::before {
  display: none !important;
}

/* 3D Fantasy Ornate Frame Overlay (Pixel-Perfect PNG Over Stage) */
.char-frame-art {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  pointer-events: none !important;
  z-index: 10 !important;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.85)) !important;
}

/* Header Interactive Layer (Above Frame) */
.char-select-header {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 20 !important;
  pointer-events: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* User Account Capsule in Frame (Top Left) */
.user-account-badge {
  position: absolute !important;
  left: 7.4% !important;
  top: 9.4% !important;
  width: 21.4% !important;
  height: 6.2% !important;
  z-index: 21 !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 26px 0 24px !important;
  font-size: 13px !important;
}

.user-account-badge strong {
  color: #fef08a !important;
  font-family: var(--font-hud), 'Chakra Petch', sans-serif !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  max-width: 95px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Channel Switcher Pill in Frame (Top Right: calibrated) */
.char-select-channel-pill {
  position: absolute !important;
  left: 69.7% !important;
  top: 9.3% !important;
  width: 12.7% !important;
  height: 6.2% !important;
  z-index: 21 !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 0 8px 0 22px !important;
  box-shadow: none !important;
  color: #f0fdf4 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.char-select-channel-pill:hover {
  background: rgba(56, 189, 248, 0.18) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6) !important;
  transform: translateY(-1px) !important;
}

.channel-pill-arrow {
  font-size: 10px !important;
  color: #93c5fd !important;
}

/* Logout Button (Top Far Right: calibrated) */
.btn-logout {
  position: absolute !important;
  left: 82.2% !important;
  top: 9.5% !important;
  width: 11.2% !important;
  height: 6.2% !important;
  z-index: 21 !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.7) !important;
  transform: translateY(-1px) !important;
}

.btn-logout:active {
  transform: translateY(1px) !important;
}

/* Character Slots Grid Container */
.char-slots-grid {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  pointer-events: none !important;
  margin: 0 !important;
  gap: 0 !important;
}

/* Character Slot Card (Slot Columns 1, 2, 3) */
.char-slot-card, .char-slot-empty {
  position: absolute !important;
  top: 17% !important;
  height: 77.5% !important;
  width: 28.5% !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: none !important;
}

.char-slot-card:hover, .char-slot-empty:hover {
  transform: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.char-slot-card:nth-child(1), .char-slot-empty:nth-child(1) {
  left: 4.8% !important;
}

.char-slot-card:nth-child(2), .char-slot-empty:nth-child(2) {
  left: 35.7% !important;
}

.char-slot-card:nth-child(3), .char-slot-empty:nth-child(3) {
  left: 66.6% !important;
}

/* Stage Window (Top of Slot) */
.char-slot-stage {
  position: absolute !important;
  top: 0.5% !important;
  left: 3% !important;
  width: 94% !important;
  height: 48.5% !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 18px 18px 0 0 !important;
  margin: 0 !important;
  z-index: 1 !important;
}

.char-slot-stage::before {
  display: none !important;
}

/* Background Scene Image */
.char-slot-bg-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1 !important;
  transition: transform 0.4s ease, filter 0.4s ease !important;
}

.char-slot-card:hover .char-slot-bg-img {
  transform: scale(1.04) !important;
}

/* Character Live Animation Canvas */
.char-slot-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

/* Job Crest Emblem (Top Right of Stage) */
.char-slot-job-icon {
  position: absolute !important;
  top: 7px !important;
  right: 8px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(254, 240, 138, 0.85) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.85), inset 0 0 6px rgba(245, 158, 11, 0.5) !important;
  background: rgba(10, 15, 26, 0.9) !important;
  z-index: 12 !important;
}

.char-slot-job-icon canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Character Name (On Wood Plaque) */
.char-slot-name {
  position: absolute !important;
  top: 49.3% !important;
  left: 15.4% !important;
  width: 70.0% !important;
  height: 8.5% !important;
  z-index: 15 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-hud), 'Chakra Petch', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.8px !important;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.95), 
    0 0 10px rgba(254, 240, 138, 0.6) !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  pointer-events: none !important;
}

/* Job & Gender Badges (Inside Capsule Outlines) */
.char-slot-badges {
  position: absolute !important;
  top: 57.2% !important;
  left: 7.1% !important;
  width: 83.5% !important;
  height: 6.8% !important;
  z-index: 15 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  pointer-events: none !important;
}

/* Slot 1 Job & Gender Badges */
.char-slot-card:nth-child(1) .char-slot-badges {
  top: 57.2% !important;
  left: 12.0% !important;
  width: 79.3% !important;
  height: 6.8% !important;
}

/* Slot 2 Job & Gender Badges */
.char-slot-card:nth-child(2) .char-slot-badges {
  top: 57.2% !important;
  left: 7.1% !important;
  width: 83.5% !important;
  height: 6.8% !important;
}

/* Slot 3 Job & Gender Badges */
.char-slot-card:nth-child(3) .char-slot-badges {
  top: 57.2% !important;
  left: 4.9% !important;
  width: 82.4% !important;
  height: 6.8% !important;
}

.char-slot-job-badge, .char-slot-gender-badge {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-hud), sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  border-radius: 12px !important;
  height: 100% !important;
  text-transform: uppercase !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.job-badge-archer { color: #86efac !important; text-shadow: 0 0 6px rgba(34, 197, 94, 0.8) !important; }
.job-badge-thief { color: #f472b6 !important; text-shadow: 0 0 6px rgba(236, 72, 153, 0.8) !important; }
.job-badge-swordsman { color: #93c5fd !important; text-shadow: 0 0 6px rgba(59, 130, 246, 0.8) !important; }
.job-badge-mage { color: #d8b4fe !important; text-shadow: 0 0 6px rgba(168, 85, 247, 0.8) !important; }
.job-badge-novice { color: #fef08a !important; text-shadow: 0 0 6px rgba(245, 158, 11, 0.8) !important; }
.job-badge-fate-weaver, .job-badge-fate_weaver { color: #e9d5ff !important; text-shadow: 0 0 8px rgba(192, 132, 252, 0.9) !important; }

.char-slot-gender-badge.gender-male {
  color: #7dd3fc !important;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.8) !important;
}

.char-slot-gender-badge.gender-female {
  color: #f9a8d4 !important;
  text-shadow: 0 0 6px rgba(244, 114, 182, 0.8) !important;
}

/* Stat Rows on Parchment */
.char-slot-stats {
  position: absolute !important;
  top: 65% !important;
  left: 8.5% !important;
  width: 83% !important;
  height: 19% !important;
  z-index: 15 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-evenly !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 6px !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.char-stat-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  border: none !important;
  padding: 0 !important;
  font-size: 11px !important;
}

.char-stat-row .stat-spacer {
  flex: 1 !important;
}

.char-stat-row .stat-val-lv {
  color: #1e293b !important;
  font-weight: 800 !important;
  font-family: var(--font-hud), sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 0.2px !important;
}

.char-stat-row .stat-val-map {
  color: #0369a1 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
}

.char-stat-row .stat-val-zeny {
  color: #047857 !important;
  font-weight: 800 !important;
  font-family: var(--font-hud), sans-serif !important;
  font-size: 11px !important;
}

/* Interactive Action Buttons Hitboxes (Pixel-Perfect Alignment with selectcharactor.png) */
.char-slot-actions {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 15 !important;
  pointer-events: none !important;
  margin: 0 !important;
}

/* Play Game Button Hitbox (Default / Slot 2 calibrated) */
.btn-play-slot {
  position: absolute !important;
  top: 84.5% !important;
  left: 4.9% !important;
  width: 69.3% !important;
  height: 11.2% !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: 1.5px solid transparent !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Play Game Button Hitbox (Slot 1 calibrated precision) */
.char-slot-card:nth-child(1) .btn-play-slot {
  top: 84.5% !important;
  left: 6.4% !important;
  width: 69.3% !important;
  height: 11.2% !important;
}

/* Play Game Button Hitbox (Slot 2 calibrated precision) */
.char-slot-card:nth-child(2) .btn-play-slot {
  top: 84.5% !important;
  left: 4.9% !important;
  width: 69.3% !important;
  height: 11.2% !important;
}

/* Play Game Button Hitbox (Slot 3 calibrated precision) */
.char-slot-card:nth-child(3) .btn-play-slot {
  top: 84.3% !important;
  left: 2.7% !important;
  width: 69.3% !important;
  height: 11.2% !important;
}

.btn-play-slot:hover {
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.35) 0%, rgba(254, 240, 138, 0.25) 50%, rgba(245, 158, 11, 0.15) 85%) !important;
  border-color: rgba(254, 240, 138, 0.75) !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.75), inset 0 0 10px rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: brightness(1.16) contrast(1.08) !important;
  -webkit-backdrop-filter: brightness(1.16) contrast(1.08) !important;
}

.btn-play-slot:active {
  background: rgba(0, 0, 0, 0.25) !important;
  border-color: rgba(245, 158, 11, 0.85) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: brightness(0.9) !important;
  -webkit-backdrop-filter: brightness(0.9) !important;
}

/* Delete Character Button Hitbox (Default / Slot 2 calibrated) */
.btn-del-slot {
  position: absolute !important;
  top: 84.5% !important;
  left: 76.6% !important;
  width: 19.5% !important;
  height: 11.2% !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: 1.5px solid transparent !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Delete Character Button Hitbox (Slot 1 calibrated precision) */
.char-slot-card:nth-child(1) .btn-del-slot {
  top: 84.5% !important;
  left: 78.8% !important;
  width: 17.3% !important;
  height: 11.2% !important;
}

/* Delete Character Button Hitbox (Slot 2 calibrated precision) */
.char-slot-card:nth-child(2) .btn-del-slot {
  top: 84.5% !important;
  left: 76.6% !important;
  width: 19.5% !important;
  height: 11.2% !important;
}

/* Delete Character Button Hitbox (Slot 3 calibrated precision) */
.char-slot-card:nth-child(3) .btn-del-slot {
  top: 84.5% !important;
  left: 74.0% !important;
  width: 18.7% !important;
  height: 11.2% !important;
}

.btn-del-slot:hover {
  background: radial-gradient(ellipse at 50% 45%, rgba(248, 113, 113, 0.38) 0%, rgba(220, 38, 38, 0.22) 55%, transparent 85%) !important;
  border-color: rgba(252, 165, 165, 0.75) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.75), inset 0 0 8px rgba(254, 202, 202, 0.45) !important;
  backdrop-filter: brightness(1.15) !important;
  -webkit-backdrop-filter: brightness(1.15) !important;
}

.btn-del-slot:active {
  background: rgba(153, 27, 27, 0.38) !important;
  border-color: rgba(239, 68, 68, 0.85) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: brightness(0.88) !important;
  -webkit-backdrop-filter: brightness(0.88) !important;
}

/* Empty Slot Card Styling */
.char-slot-empty {
  cursor: pointer !important;
}

.empty-stage {
  filter: brightness(0.6) saturate(0.8) !important;
  transition: filter 0.3s ease !important;
}

.char-slot-empty:hover .empty-stage {
  filter: brightness(0.85) saturate(1.1) !important;
}

.empty-rune-circle {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(254, 240, 138, 0.8) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  color: #fef08a !important;
  background: rgba(15, 23, 42, 0.6) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6), inset 0 0 10px rgba(245, 158, 11, 0.3) !important;
  animation: pulseEmptyRune 1.8s infinite ease-in-out !important;
  z-index: 3 !important;
}

@keyframes pulseEmptyRune {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 14px rgba(245, 158, 11, 0.5); }
  50% { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 24px rgba(254, 240, 138, 0.85); }
}

.empty-name {
  color: #fde68a !important;
  font-size: 13.5px !important;
}

.empty-badges,
.char-slot-empty .char-slot-badges {
  display: none !important;
}

.stat-val-dash {
  color: #64748b !important;
  font-weight: 700 !important;
}

/* Empty Slot Card Action Button (calibrated: Fully Opaque to cleanly mask underlying artwork) */
.btn-create-slot-action {
  position: absolute !important;
  top: 84.5% !important;
  left: 4.9% !important;
  width: 91.2% !important;
  height: 11.2% !important;
  pointer-events: auto !important;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 55%, #b45309 100%) !important;
  border: 1.5px solid #fef08a !important;
  border-radius: 10px !important;
  color: #0f172a !important;
  font-family: var(--font-hud), sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  text-shadow: 0 1px 0 rgba(254, 240, 138, 0.5) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 12px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Empty Slot 1 Create Action Button */
.char-slot-empty:nth-child(1) .btn-create-slot-action {
  top: 84.5% !important;
  left: 6.4% !important;
  width: 89.7% !important;
  height: 11.2% !important;
}

/* Empty Slot 2 Create Action Button */
.char-slot-empty:nth-child(2) .btn-create-slot-action {
  top: 84.5% !important;
  left: 4.9% !important;
  width: 91.2% !important;
  height: 11.2% !important;
}

/* Empty Slot 3 Create Action Button */
.char-slot-empty:nth-child(3) .btn-create-slot-action {
  top: 84.3% !important;
  left: 2.7% !important;
  width: 90.0% !important;
  height: 11.2% !important;
}

.char-slot-empty:hover .btn-create-slot-action,
.btn-create-slot-action:hover {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%) !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.8), 0 0 20px rgba(254, 240, 138, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
  transform: translateY(-2px) !important;
  filter: brightness(1.05) !important;
}

.btn-create-slot-action:active {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%) !important;
  transform: translateY(1px) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6) !important;
}

/* Guest Warning Banner below frame */
.guest-warning-banner {
  position: absolute !important;
  top: 102% !important;
  left: 6% !important;
  right: 6% !important;
  z-index: 25 !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7) !important;
  border-radius: 10px !important;
  padding: 8px 16px !important;
}

/* ==========================================================================
   13. Cinematic Character Creation Studio Modal (#char-create-modal, .char-create-box)
   ========================================================================== */
.char-create-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.9) 0%, rgba(3, 7, 18, 0.97) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 100080 !important;
}

.char-create-box {
  width: 95% !important;
  max-width: 960px !important;
  max-height: 92vh !important;
  padding: 20px 26px !important;
  border-radius: 18px !important;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(26, 38, 62, 0.98) 0%, rgba(13, 19, 33, 0.97) 55%, rgba(7, 10, 18, 0.99) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.7) !important;
  box-shadow: 
    0 28px 85px rgba(0, 0, 0, 0.96),
    0 0 0 1px rgba(10, 15, 26, 0.95),
    inset 0 0 0 1px rgba(254, 240, 138, 0.28),
    inset 0 0 45px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(245, 158, 11, 0.2) !important;
  position: relative !important;
  overflow-y: auto !important;
  animation: fadeInDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Golden Medieval Top Rim */
.char-create-box::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2.5px !important;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(245, 158, 11, 0.5) 15%, 
    rgba(254, 240, 138, 0.98) 50%, 
    rgba(245, 158, 11, 0.5) 85%, 
    transparent 100%
  ) !important;
  z-index: 10 !important;
  pointer-events: none !important;
  border-radius: 18px 18px 0 0 !important;
}

/* Header */
.char-create-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-bottom: 12px !important;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.35) !important;
  margin-bottom: 16px !important;
}

.char-create-header span {
  font-family: var(--font-hud), 'Chakra Petch', sans-serif !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #fef08a !important;
  letter-spacing: 1.2px !important;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.6), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

/* Ruby Jewel Close Buttons */
#btn-close-char-create,
#btn-close-del-modal {
  width: 28px !important;
  height: 28px !important;
  background: radial-gradient(circle at 35% 35%, #ef4444 0%, #991b1b 100%) !important;
  border: 1.5px solid rgba(254, 202, 202, 0.6) !important;
  border-radius: 7px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#btn-close-char-create:hover,
#btn-close-del-modal:hover {
  background: radial-gradient(circle at 35% 35%, #f87171 0%, #b91c1c 100%) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  transform: scale(1.06) !important;
}

/* Delete Character Confirmation Modal */
.delete-char-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.9) 0%, rgba(3, 7, 18, 0.97) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 100100 !important;
}

.delete-char-box {
  width: 90% !important;
  max-width: 460px !important;
  padding: 20px 24px !important;
  border-radius: 16px !important;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(45, 20, 20, 0.98) 0%, rgba(20, 10, 15, 0.97) 55%, rgba(10, 5, 8, 0.99) 100%) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(239, 68, 68, 0.25) !important;
}

/* 3D Metallic Gold Bevel - Confirm Character Creation Button */
#btn-confirm-create-char.btn-create-confirm,
.btn-create-confirm {
  width: 100% !important;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 70%, #b45309 100%) !important;
  border: 1.5px solid #fde047 !important;
  border-radius: 10px !important;
  color: #0f172a !important;
  font-family: var(--font-hud), 'Chakra Petch', sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
  padding: 13px 20px !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  box-shadow: 
    0 4px 16px rgba(217, 119, 6, 0.55), 
    inset 0 1px 0 rgba(255, 255, 255, 0.45), 
    inset 0 -2px 0 rgba(0, 0, 0, 0.25) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-top: 8px !important;
  display: block !important;
  text-align: center !important;
}

#btn-confirm-create-char.btn-create-confirm:hover,
.btn-create-confirm:hover {
  transform: translateY(-2px) !important;
  box-shadow: 
    0 6px 24px rgba(245, 158, 11, 0.75), 
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  filter: brightness(1.08) !important;
}

#btn-confirm-create-char.btn-create-confirm:active,
.btn-create-confirm:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.5) !important;
}

/* ==========================================================================
   Gender Selector & Character Badges (Male / Female Customization)
   ========================================================================== */
.gender-section-header {
  font-family: var(--font-hud), 'Outfit', 'Chakra Petch', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #fde047 !important;
  letter-spacing: 0.6px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(245, 158, 11, 0.4) !important;
  margin-top: 14px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.gender-cards-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.gender-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.25) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  user-select: none !important;
}

.gender-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(254, 240, 138, 0.5) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 12px rgba(245, 158, 11, 0.3) !important;
}

.gender-card .gender-icon {
  font-size: 26px !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)) !important;
  transition: transform 0.2s ease !important;
}

.gender-card:hover .gender-icon {
  transform: scale(1.15) !important;
}

.gender-card .gender-info {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.gender-card .gender-title {
  font-family: var(--font-hud), 'Outfit', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #f1f5f9 !important;
  letter-spacing: 0.5px !important;
}

.gender-card .gender-desc {
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin-top: 1px !important;
}

.gender-card .gender-check {
  font-size: 13px !important;
  color: #10b981 !important;
  font-weight: 900 !important;
  opacity: 0 !important;
  transform: scale(0.6) !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Male Active */
.gender-card[data-gender="male"].active {
  border-color: #38bdf8 !important;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.45) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), inset 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

.gender-card[data-gender="male"].active .gender-title {
  color: #7dd3fc !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6) !important;
}

.gender-card[data-gender="male"].active .gender-check {
  opacity: 1 !important;
  color: #38bdf8 !important;
  transform: scale(1) !important;
}

/* Female Active */
.gender-card[data-gender="female"].active {
  border-color: #f472b6 !important;
  background: linear-gradient(135deg, rgba(190, 24, 93, 0.45) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.4), inset 0 0 12px rgba(244, 114, 182, 0.25) !important;
}

.gender-card[data-gender="female"].active .gender-title {
  color: #fbcfe8 !important;
  text-shadow: 0 0 10px rgba(244, 114, 182, 0.6) !important;
}

.gender-card[data-gender="female"].active .gender-check {
  opacity: 1 !important;
  color: #f472b6 !important;
  transform: scale(1) !important;
}

/* Character Slot Gender Badge */
.char-slot-gender-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 1px 7px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  margin-left: 6px !important;
  letter-spacing: 0.3px !important;
  vertical-align: middle !important;
}

.char-slot-gender-badge.gender-male {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
}

.char-slot-gender-badge.gender-female {
  background: rgba(236, 72, 153, 0.2) !important;
  color: #fbcfe8 !important;
  border: 1px solid rgba(244, 114, 182, 0.5) !important;
}

/* Character Creation Girl Live Canvas */
#char-create-girl-canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8)) !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 5 !important;
}

/* ==========================================================================
   14. Master Fantasy Universal Confirmation Modal (#ro-custom-confirm-modal)
   ========================================================================== */
.ro-confirm-dialog-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.78) 0%, rgba(3, 7, 18, 0.92) 100%) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  font-family: var(--font-hud), 'Outfit', sans-serif !important;
  user-select: none !important;
  animation: fadeIn 0.2s ease-out !important;
}

.ro-confirm-box {
  width: 90% !important;
  max-width: 410px !important;
  padding: 24px 26px !important;
  border-radius: 18px !important;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(26, 38, 62, 0.98) 0%, rgba(13, 19, 33, 0.97) 55%, rgba(7, 10, 18, 0.99) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.7) !important;
  box-shadow: 
    0 24px 70px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(10, 15, 26, 0.95),
    inset 0 0 0 1px rgba(254, 240, 138, 0.25),
    inset 0 0 35px rgba(0, 0, 0, 0.75),
    0 0 30px rgba(245, 158, 11, 0.25) !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
  animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Golden Medieval Top Rim */
.ro-confirm-box::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2.5px !important;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(245, 158, 11, 0.5) 15%, 
    rgba(254, 240, 138, 0.98) 50%, 
    rgba(245, 158, 11, 0.5) 85%, 
    transparent 100%
  ) !important;
  z-index: 10 !important;
  pointer-events: none !important;
  border-radius: 18px 18px 0 0 !important;
}

/* Danger Variant (Red Ruby Frame) */
.ro-confirm-box.danger {
  border-color: rgba(239, 68, 68, 0.75) !important;
  box-shadow: 
    0 24px 70px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(10, 15, 26, 0.95),
    inset 0 0 0 1px rgba(254, 202, 202, 0.25),
    inset 0 0 35px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(239, 68, 68, 0.3) !important;
}

.ro-confirm-box.danger::before {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(239, 68, 68, 0.5) 15%, 
    rgba(254, 202, 202, 0.95) 50%, 
    rgba(239, 68, 68, 0.5) 85%, 
    transparent 100%
  ) !important;
}

/* Icon Medallion */
.ro-confirm-icon-badge {
  width: 56px !important;
  height: 56px !important;
  margin: 0 auto 12px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 28px !important;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35) !important;
}

.ro-confirm-box.danger .ro-confirm-icon-badge {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
  border-color: rgba(239, 68, 68, 0.7) !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.4) !important;
}

/* Title */
.ro-confirm-title {
  font-family: var(--font-hud), 'Chakra Petch', sans-serif !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
  color: #fef08a !important;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.6), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
  margin-bottom: 10px !important;
}

.ro-confirm-box.danger .ro-confirm-title {
  color: #fecaca !important;
  text-shadow: 0 0 14px rgba(239, 68, 68, 0.7), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

/* Message Text Box (3D Sunken Well) */
.ro-confirm-message {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  line-height: 1.6 !important;
  background: rgba(9, 13, 24, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  margin-bottom: 18px !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6) !important;
}

/* Actions Row */
.ro-confirm-actions {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
}

/* 3D Metallic Confirm Button (Gold) */
.btn-ro-confirm-ok {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 70%, #b45309 100%) !important;
  border: 1.5px solid #fde047 !important;
  border-radius: 9px !important;
  color: #0f172a !important;
  font-family: var(--font-hud) !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  padding: 10px 22px !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  box-shadow: 
    0 4px 14px rgba(217, 119, 6, 0.55), 
    inset 0 1px 0 rgba(255, 255, 255, 0.4), 
    inset 0 -2px 0 rgba(0, 0, 0, 0.25) !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-ro-confirm-ok:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
  filter: brightness(1.08) !important;
}

.btn-ro-confirm-ok:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.5) !important;
}

/* 3D Crimson Ruby Confirm Button (Danger) */
.btn-ro-confirm-ok.danger {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 70%, #991b1b 100%) !important;
  border: 1.5px solid #fca5a5 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
  box-shadow: 
    0 4px 14px rgba(239, 68, 68, 0.55), 
    inset 0 1px 0 rgba(255, 255, 255, 0.4), 
    inset 0 -2px 0 rgba(0, 0, 0, 0.25) !important;
}

.btn-ro-confirm-ok.danger:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
  filter: brightness(1.08) !important;
}

.btn-ro-confirm-ok.danger:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5) !important;
}

/* Refined Obsidian Glass Cancel Button */
.btn-ro-confirm-cancel {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 9px !important;
  color: #f1f5f9 !important;
  font-family: var(--font-hud) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  padding: 10px 20px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-ro-confirm-cancel:hover {
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px) !important;
}

.btn-ro-confirm-cancel:active {
  transform: translateY(1px) !important;
}

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   15. Master Fantasy Player Vending Setup & Dialogs (#vending-setup-modal, .vending-dialog)
   ========================================================================== */
.vending-dialog {
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(26, 38, 62, 0.98) 0%, rgba(13, 19, 33, 0.97) 55%, rgba(7, 10, 18, 0.99) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.7) !important;
  border-radius: 14px !important;
  box-shadow: 
    0 24px 70px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(10, 15, 26, 0.95),
    inset 0 0 0 1px rgba(254, 240, 138, 0.25),
    inset 0 0 35px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(245, 158, 11, 0.2) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  overflow: hidden !important;
}

/* Golden Medieval Top Rim */
.vending-dialog::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(245, 158, 11, 0.5) 15%, 
    rgba(254, 240, 138, 0.95) 50%, 
    rgba(245, 158, 11, 0.5) 85%, 
    transparent 100%
  ) !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

/* Universal Header Bar (Override brown background) */
.vending-header {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.38) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 3px 8px rgba(0, 0, 0, 0.45) !important;
  padding: 9px 14px !important;
}

.vending-header span:not(.btn-text):not(.btn-icon) {
  font-family: var(--font-hud), 'Outfit', sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #fef08a !important;
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.9), 0 0 12px rgba(245, 158, 11, 0.45) !important;
}

/* Ruby Close Button */
.vending-header .btn-close {
  width: 26px !important;
  height: 26px !important;
  background: radial-gradient(circle at 35% 35%, #ef4444 0%, #991b1b 100%) !important;
  border: 1.5px solid rgba(254, 202, 202, 0.6) !important;
  border-radius: 7px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.vending-header .btn-close:hover {
  background: radial-gradient(circle at 35% 35%, #f87171 0%, #b91c1c 100%) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  transform: scale(1.06) !important;
}

/* Shop Title Input Row (3D Sunken Well) */
.vending-title-row {
  background: rgba(9, 13, 24, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 9px !important;
  padding: 8px 12px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}

.vending-label {
  color: #fef08a !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
}

.vending-title-input {
  background: rgba(10, 15, 26, 0.85) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 6px !important;
  color: #fef08a !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 7px 12px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7) !important;
  transition: all 0.2s ease !important;
}

.vending-title-input:focus {
  border-color: #f59e0b !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(245, 158, 11, 0.45) !important;
}

/* Dual Sub-Panels */
.vending-sub-panel {
  background: rgba(9, 13, 24, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5) !important;
  padding: 10px 12px !important;
}

.vending-panel-header {
  border-bottom: 1px solid rgba(245, 158, 11, 0.25) !important;
  padding-bottom: 7px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.vending-panel-header span:first-child {
  color: #e2e8f0 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.vending-badge-count {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35)) !important;
  border: 1px solid rgba(245, 158, 11, 0.6) !important;
  color: #fef08a !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
}

.vending-badge-hint {
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #7dd3fc !important;
  border-radius: 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
}

/* Master 3D Sunken Velvet Item Cells (Inventory Picker) */
.vending-inven-item-cell {
  width: 44px !important;
  height: 44px !important;
  background: radial-gradient(circle at 50% 30%, rgba(20, 29, 48, 0.95) 0%, rgba(9, 13, 24, 0.98) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: 
    inset 0 2px 5px rgba(0, 0, 0, 0.85), 
    0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.vending-inven-item-cell:hover {
  border-color: #fde047 !important;
  box-shadow: 
    0 0 12px rgba(245, 158, 11, 0.5), 
    inset 0 2px 5px rgba(0, 0, 0, 0.7) !important;
  transform: scale(1.06) !important;
  background: radial-gradient(circle at 50% 30%, rgba(30, 46, 74, 0.95) 0%, rgba(13, 19, 33, 0.98) 100%) !important;
}

.vending-inven-item-qty {
  background: rgba(10, 15, 26, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  padding: 1px 4px !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  color: #fef08a !important;
  bottom: 2px !important;
  right: 2px !important;
}

/* Selling Slot Cards (Left Panel) */
.vending-sell-slot-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

.vending-slot-price-input {
  background: rgba(9, 13, 24, 0.85) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  border-radius: 5px !important;
  color: #fef08a !important;
  font-weight: 800 !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

/* Footer Action Buttons */
.vending-footer {
  border-top: 1px solid rgba(245, 158, 11, 0.2) !important;
  padding-top: 12px !important;
}

.vending-footer-hint {
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* 3D Metallic Gold Start Button */
.btn-vending-start {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 70%, #b45309 100%) !important;
  border: 1.5px solid #fde047 !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  font-family: var(--font-hud) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  padding: 9px 18px !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  box-shadow: 
    0 3px 10px rgba(217, 119, 6, 0.5), 
    inset 0 1px 0 rgba(255, 255, 255, 0.4), 
    inset 0 -2px 0 rgba(0, 0, 0, 0.25) !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-vending-start:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 18px rgba(245, 158, 11, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  filter: brightness(1.08) !important;
}

.btn-vending-start:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.5) !important;
}

/* Refined Obsidian Glass Cancel Button */
.btn-vending-cancel {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  color: #f1f5f9 !important;
  font-family: var(--font-hud) !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  padding: 9px 16px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-vending-cancel:hover {
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px) !important;
}

.btn-vending-cancel:active {
  transform: translateY(1px) !important;
}









