@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #08090d;
  --bg-surface: #0e1017;
  --bg-card: rgba(16, 18, 27, 0.75);
  --bg-card-hover: rgba(24, 27, 41, 0.85);
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #997a15;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --border-gold: rgba(212, 175, 55, 0.22);
  --border-gold-hover: rgba(212, 175, 55, 0.6);
  --text-main: #f0f2f5;
  --text-muted: #8e95a5;
  --text-gold: #e6ca65;
  --accent-red: #ff4757;
  --accent-green: #2ed573;
  --accent-blue: #1e90ff;
  --font-title: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --font-stat: 'Rajdhani', sans-serif;
}

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

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(30, 144, 255, 0.04) 0%, transparent 40%),
    linear-gradient(180deg, #0b0c12 0%, #06070a 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090a0f;
}
::-webkit-scrollbar-thumb {
  background: #252836;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Header & Top Bar */
.top-bar {
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 2rem;
}

.top-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 56px;
  max-width: 210px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(212, 175, 55, 0.45));
  transition: transform 0.25s ease;
}

.logo-area:hover .brand-logo-img {
  transform: scale(1.03);
}

.logo-divider {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.55), transparent);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #d4af37, #997a15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--gold-glow);
  border: 1px solid var(--gold-light);
}

.logo-icon svg {
  width: 26px;
  height: 26px;
  fill: #000;
}

.logo-text h1 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.logo-text span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-primary);
  display: block;
}

/* Server Status Badge */
.server-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  background: rgba(46, 213, 115, 0.08);
  border: 1px solid rgba(46, 213, 115, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a8ffcc;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(46, 213, 115, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  background: rgba(18, 20, 30, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
  background: rgba(22, 25, 38, 0.95);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  pointer-events: none;
}

/* Search Results Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #11131c;
  border: 1px solid var(--border-gold-hover);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  max-height: 380px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}

.search-item:hover {
  background: rgba(212, 175, 55, 0.12);
}

.search-item-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.search-item-info h4 {
  font-size: 0.85rem;
  color: var(--text-gold);
}

.search-item-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-site {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #e6e9ef;
}
.btn-site:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.btn-discord {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #7289da;
}
.btn-discord:hover {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.btn-admin {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(153, 122, 21, 0.3));
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
}
.btn-admin:hover {
  background: linear-gradient(135deg, #d4af37, #997a15);
  color: #000;
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4rem 2rem 2.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 350px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.28);
  padding: 0.32rem 0.95rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
}

.hero h2 {
  font-family: var(--font-title);
  font-size: 2.8rem;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.hero h2 span {
  color: var(--gold-primary);
  text-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.hero p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* 6 Main Tabs Navigation */
.nav-tabs {
  max-width: 1380px;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  background: rgba(14, 16, 24, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
  flex-wrap: wrap;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.05rem;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.3);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(153, 122, 21, 0.22));
  color: var(--gold-light);
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px var(--gold-glow);
}

.tab-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Main Container */
.container {
  max-width: 1440px;
  margin: 2rem auto;
  padding: 0 2rem 5rem;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: block;
}

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

/* Section Header */
.section-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 1rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  border-radius: 2px;
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
}

.pill-btn {
  padding: 0.4rem 1rem;
  background: rgba(20, 24, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pill-btn:hover, .pill-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Card Style */
.wiki-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.wiki-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.wiki-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
  transform: translateY(-4px);
}

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

.card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  position: relative;
  overflow: hidden;
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.wiki-card:hover .card-avatar img {
  transform: scale(1.1);
}

.card-header-info {
  flex: 1;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-gold);
  font-weight: 500;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Card Specs / Badges */
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #ddd;
}

.badge-level {
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  font-weight: 700;
  font-family: var(--font-stat);
}

.badge-map {
  color: #70a1ff;
  border-color: rgba(112, 161, 255, 0.3);
}

.badge-respawn {
  color: #ff6b81;
  border-color: rgba(255, 107, 129, 0.3);
}

/* Drops Preview in Card */
.drops-preview {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem;
}

.drops-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.drops-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drop-slot {
  width: 36px;
  height: 36px;
  background: #110e0a;
  border: 1px solid #4a3e2e;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s;
}

.drop-slot:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.drop-slot img {
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
}

.drop-slot .slot-count {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-size: 0.65rem;
  font-family: var(--font-stat);
  color: #ffda79;
  font-weight: 700;
  text-shadow: 1px 1px 2px #000;
}

/* NPC Action Button */
.btn-open-shop {
  width: 100%;
  padding: 0.65rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(153, 122, 21, 0.25));
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  color: var(--gold-light);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  transition: all 0.3s;
}

.btn-open-shop:hover {
  background: linear-gradient(135deg, #d4af37, #997a15);
  color: #000;
  box-shadow: 0 0 15px var(--gold-glow);
}

/* ========================================================
   METIN2 ORIGINAL SHOP / INVENTORY WINDOW MODAL
   ======================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.metin2-window {
  width: 380px;
  background: linear-gradient(180deg, #2b251d 0%, #17130e 100%);
  border: 2px solid #b89343;
  box-shadow: 
    0 0 0 2px #0f0c08,
    0 20px 50px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(184, 147, 67, 0.3);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.m2-titlebar {
  background: linear-gradient(180deg, #443725 0%, #2a2012 100%);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #735925;
}

.m2-title {
  font-family: var(--font-title);
  color: #ffda79;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px #000;
}

.m2-close-btn {
  background: #6b1f1f;
  border: 1px solid #c0392b;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.m2-close-btn:hover {
  background: #e74c3c;
  box-shadow: 0 0 8px #e74c3c;
}

.m2-body {
  padding: 1.25rem;
  background: #14100b;
}

/* 5x9 Metin2 Shop Grid */
.m2-grid-container {
  display: grid;
  grid-template-columns: repeat(5, 42px);
  grid-auto-rows: 42px;
  gap: 3px;
  background: #090705;
  padding: 10px;
  border: 2px solid #3d311d;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
  margin: 0 auto;
  justify-content: center;
  border-radius: 4px;
}

.m2-slot {
  width: 42px;
  height: 42px;
  background: #19140e;
  border: 1px solid #332817;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.m2-slot:hover {
  background: #2b2216;
  border-color: #ffd32a;
}

.m2-slot img {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.8));
}

.m2-slot-count {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-family: var(--font-stat);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffda79;
  text-shadow: 1px 1px 1px #000, -1px -1px 1px #000;
  pointer-events: none;
}

.m2-shop-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #332817;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========================================================
   METIN2 TOOLTIP (HOVER)
   ======================================================== */
.m2-tooltip {
  position: fixed;
  background: rgba(10, 8, 5, 0.95);
  border: 2px solid #b89343;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(184, 147, 67, 0.3);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  min-width: 220px;
  max-width: 320px;
  z-index: 9999;
  pointer-events: none;
  display: none;
  font-size: 0.85rem;
  line-height: 1.4;
}

.tooltip-title {
  font-family: var(--font-title);
  color: #ffd32a;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  text-shadow: 1px 1px 2px #000;
  border-bottom: 1px solid rgba(184, 147, 67, 0.3);
  padding-bottom: 0.3rem;
}

.tooltip-desc {
  color: #a4b0be;
  font-size: 0.8rem;
  margin: 0.4rem 0;
}

.tooltip-price {
  color: #ffa502;
  font-family: var(--font-stat);
  font-weight: 700;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Craft System Styles */
.craft-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1.5rem;
}

.craft-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.3s;
}

.craft-card:hover {
  border-color: var(--border-gold-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
}

.craft-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 0.75rem;
}

.craft-header h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: #fff;
}

.craft-badge-npc {
  font-size: 0.75rem;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.craft-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.craft-ingredients {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.craft-item-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

.craft-item-box img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.craft-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold-primary);
}

.craft-rate {
  font-size: 0.75rem;
  font-family: var(--font-stat);
  font-weight: 700;
  color: #2ed573;
}

.craft-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 0.75rem;
  min-width: 90px;
}

.craft-result img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.craft-result span {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 600;
  text-align: center;
}

.craft-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
}

/* Gameplay Guides Layout */
.guides-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

.guides-sidebar {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.25rem;
  height: fit-content;
}

.guide-nav-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.4rem;
}

.guide-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.guide-nav-item.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(153, 122, 21, 0.2));
  color: var(--gold-light);
  border-left: 3px solid var(--gold-primary);
}

.guide-content-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 2.5rem;
}

.guide-content-card h2 {
  font-family: var(--font-title);
  color: var(--gold-light);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.guide-content-card .guide-summary {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 1rem;
}

.guide-body h3 {
  font-family: var(--font-title);
  color: #fff;
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.guide-body p {
  color: #c8d1de;
  margin-bottom: 1rem;
}

.guide-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #c8d1de;
}

.guide-body li {
  margin-bottom: 0.5rem;
}

/* Wiki Tables */
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
}

.wiki-table th {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-gold);
}

.wiki-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: #d1d8e0;
}

.wiki-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Footer */
footer {
  background: #06070a;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding: 3rem 2rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

/* Responsive */
@media (max-width: 900px) {
  .guides-layout {
    grid-template-columns: 1fr;
  }
  .top-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrapper {
    max-width: 100%;
  }
  .nav-tabs {
    flex-direction: column;
  }
  .tab-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ========================================================
   CONTINENTAL2 WIKI V2 ENHANCEMENTS (6 MENUS, CHESTS & MULTI-SLOT SHOP)
   ======================================================== */
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.section-count-badge {
  padding: 0.4rem 0.95rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  color: var(--gold-light);
  font-family: var(--font-stat);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.filter-pills {
  flex-wrap: wrap;
}

.wiki-card {
  display: flex;
  flex-direction: column;
}

.wiki-card .card-desc {
  flex: 1;
}

.card-avatar {
  width: 84px;
  height: 94px;
  flex-shrink: 0;
}

.card-avatar.avatar-portrait {
  padding: 5px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
  background: radial-gradient(circle at 50% 55%, rgba(212, 175, 55, 0.16) 0%, rgba(8, 10, 15, 0.96) 76%);
}

.card-avatar.avatar-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.85));
}

.card-avatar.avatar-boss {
  border-color: rgba(255, 107, 129, 0.55);
  background: radial-gradient(circle at 50% 55%, rgba(255, 71, 87, 0.16) 0%, rgba(8, 10, 15, 0.96) 76%);
  box-shadow: 0 4px 16px rgba(255, 71, 87, 0.18);
}

.card-avatar.avatar-chest {
  padding: 10px;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.2) 0%, rgba(10, 12, 18, 0.9) 75%);
  border-color: rgba(212, 175, 55, 0.5);
}

.badge-element {
  color: #a29bfe;
  border-color: rgba(162, 155, 254, 0.35);
}

.drops-count-pill {
  color: var(--gold-light);
  font-family: var(--font-stat);
  font-weight: 700;
}

.drop-slot-chest {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: inset 0 0 6px rgba(212, 175, 55, 0.22);
}

.drop-slot-more {
  font-family: var(--font-stat);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

.btn-open-shop.btn-subtle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.25);
  color: #d8dee9;
}

.btn-open-shop.btn-subtle:hover {
  background: linear-gradient(135deg, #d4af37, #997a15);
  color: #000;
  border-color: var(--gold-primary);
}

/* Multi-Row Authentic 5x9 Shop Slots */
.m2-grid-container {
  grid-template-rows: repeat(9, 42px);
}

.m2-slot.span-2 {
  height: 87px;
}

.m2-slot.span-2 img {
  max-width: 36px;
  max-height: 78px;
}

.m2-slot.span-3 {
  height: 132px;
}

.m2-slot.span-3 img {
  max-width: 36px;
  max-height: 120px;
}

/* Sandık & Drop Detay Modalı */
.metin2-window-wide {
  width: min(820px, 95vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.metin2-window-wide .m2-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(88vh - 48px);
}

.m2-back-btn {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid #b89343;
  color: #ffda79;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.m2-back-btn:hover {
  background: #d4af37;
  color: #000;
}

.drops-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #3d311d;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.drops-modal-avatar {
  width: 76px;
  height: 84px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 55%, rgba(212, 175, 55, 0.16) 0%, #0d0a07 78%);
  border: 1px solid #8c6d2c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
  overflow: hidden;
}

.drops-modal-avatar.is-portrait {
  padding: 4px;
}

.drops-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drops-modal-avatar.is-portrait img {
  object-fit: contain;
}

.drops-modal-info {
  flex: 1;
}

.drops-modal-subrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.drops-modal-sub {
  font-size: 0.82rem;
  color: #ffda79;
  font-weight: 600;
}

.drops-modal-pill {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  color: var(--gold-light);
}

.drops-modal-info p {
  font-size: 0.83rem;
  color: #b8c1cf;
  line-height: 1.45;
}

.drops-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 0.6rem;
  overflow-y: auto;
  padding-right: 4px;
  max-height: 52vh;
}

.drops-modal-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  background: #1c1610;
  border: 1px solid #3a2e1d;
  border-radius: 6px;
  transition: all 0.2s;
}

.drops-modal-item:hover {
  background: #282016;
  border-color: #d4af37;
}

.drops-modal-item.is-clickable-chest {
  cursor: pointer;
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, #241c11, #19130c);
}

.drops-modal-item-icon {
  width: 40px;
  height: 40px;
  background: #0e0b08;
  border: 1px solid #4a3c27;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.drops-modal-item-icon img {
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
}

.drops-modal-item-icon .slot-count {
  position: absolute;
  bottom: 1px;
  right: 3px;
  font-size: 0.68rem;
  font-family: var(--font-stat);
  font-weight: 700;
  color: #ffda79;
  text-shadow: 1px 1px 2px #000;
}

.drops-modal-item-text {
  min-width: 0;
  flex: 1;
}

.drops-modal-item-name {
  font-size: 0.83rem;
  font-weight: 600;
  color: #f3f4f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drops-modal-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: #9aa3b2;
  margin-top: 2px;
}

.chance-tag {
  color: #2ed573;
  font-family: var(--font-stat);
  font-weight: 700;
}

/* Tooltip Extras */
.tooltip-type {
  color: #70a1ff;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tooltip-chance {
  color: #2ed573;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.tooltip-barter {
  color: #ffda79;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* Craft & Guide Polish */
.craft-cat-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-gold);
  margin-top: 2px;
}

.guide-nav-cat {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.guide-nav-title {
  display: block;
  line-height: 1.35;
}

.guide-cat-kicker {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-primary);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

@keyframes pulseCardGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
  50% { box-shadow: 0 0 35px rgba(212, 175, 55, 0.75); border-color: #ffd32a; }
}

.card-pulse-highlight {
  animation: pulseCardGlow 1.1s ease 2;
}
