/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  overflow-x: hidden;
}

/* App Container */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: linear-gradient(180deg, #1a0f0f 0%, #0d0505 100%);
  border-right: 1px solid #3a1515;
  padding: 20px 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.logo {
  padding: 0 20px 20px;
  border-bottom: 2px solid #ff4444;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: #ff4444;
  font-size: 24px;
}

.logo span {
  font-size: 20px;
  font-weight: bold;
  color: #ff6666;
  letter-spacing: 1px;
}

.logo small {
  font-size: 11px;
  color: #888;
  margin-left: auto;
}

/* Menu */
.menu {
  padding: 0 10px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  margin: 4px 0;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  color: #aaa;
  font-size: 14px;
}

.menu-item:hover {
  background: rgba(255, 68, 68, 0.1);
  color: #ff6666;
}

.menu-item.active {
  background: linear-gradient(90deg, rgba(255, 68, 68, 0.2), transparent);
  color: #ff6666;
  border-left: 3px solid #ff4444;
}

.menu-item i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.menu-item .count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.menu-item.active .count {
  background: rgba(255, 68, 68, 0.3);
  color: #ff8888;
}

/* Main Content */
.main-content {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
}

/* Header */
.header {
  background: rgba(20, 20, 20, 0.95);
  padding: 15px 30px;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.header-left {
  display: flex;
  gap: 15px;
  align-items: center;
}

.shop-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.shop-status i {
  font-size: 10px;
  animation: pulse 2s infinite;
}

.shop-status.open {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #4caf50;
}

.shop-status.open i {
  color: #4caf50;
}

.shop-status.closed {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: #f44336;
}

.shop-status.closed i {
  color: #f44336;
  animation: none;
}

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

.nav-btn {
  background: transparent;
  border: 1px solid #444;
  color: #aaa;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-btn:hover {
  border-color: #ff4444;
  color: #ff6666;
}

.nav-btn.active {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  border-color: #ff4444;
  color: white;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

.search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  padding: 8px 15px;
  border-radius: 6px;
  color: #fff;
  width: 250px;
  font-size: 14px;
}

.search-input::placeholder {
  color: #666;
}

.search-input:focus {
  outline: none;
  border-color: #ff4444;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

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

.btn-cart-header {
  position: relative;
  background: transparent;
  border: 1px solid #ff4444;
  color: #ff6666;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cart-header:hover {
  background: rgba(255, 68, 68, 0.1);
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.btn-login,
.btn-register {
  background: transparent;
  border: 1px solid #ff4444;
  color: #ff6666;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-login:hover,
.btn-register:hover {
  background: rgba(255, 68, 68, 0.1);
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  background: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(10, 10, 10, 0.9)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><radialGradient id="grad"><stop offset="0%" stop-color="%23ff4444" stop-opacity="0.3"/><stop offset="100%" stop-color="%23000000" stop-opacity="0"/></radialGradient></defs><circle cx="600" cy="300" r="300" fill="url(%23grad)"/></svg>');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 50% 40%, rgba(139, 0, 0, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 68, 68, 0.1) 0%, transparent 60%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-logo {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px rgba(255, 68, 68, 0.6));
  display: none; /* Hide if image doesn't exist */
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 
    0 0 20px rgba(255, 68, 68, 0.8),
    0 0 40px rgba(255, 68, 68, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.8);
  color: #fff;
}

.hero-title .highlight {
  background: linear-gradient(90deg, #ff6666, #ff4444, #cc0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(255, 68, 68, 0.8));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 68, 68, 1));
  }
}

.hero-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  color: #aaa;
  font-size: 14px;
}

.hero-info i {
  color: #ff6666;
}

.separator {
  color: #444;
}

.btn-primary {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  border: none;
  color: white;
  padding: 15px 40px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 68, 68, 0.6);
}

/* Items Grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 30px;
  max-width: 1400px;
}

.item-card {
  background: linear-gradient(135deg, rgba(30, 15, 15, 0.8), rgba(20, 10, 10, 0.6));
  border: 1px solid #3a1515;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 68, 68, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.item-card:hover {
  border-color: #ff4444;
  transform: translateY(-5px);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 68, 68, 0.3);
}

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

.item-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #444;
  border-radius: 8px;
  position: relative;
}

.item-icon img {
  max-width: 60px;
  max-height: 60px;
  filter: drop-shadow(0 0 10px rgba(255, 68, 68, 0.5));
}

.item-icon.warning {
  background: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
}

.item-icon.warning i {
  font-size: 36px;
  color: #ff6666;
}

.item-name {
  color: #ddd;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Floating Action Buttons */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.5);
  transition: all 0.3s;
  z-index: 1000;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(255, 68, 68, 0.7);
}

.fab-up {
  bottom: 100px;
  background: rgba(40, 40, 40, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.fab-up:hover {
  background: rgba(60, 60, 60, 0.9);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff4444, #cc0000);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff6666, #ff4444);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 70px;
    padding: 10px 0;
  }

  .logo span,
  .logo small,
  .menu-item span {
    display: none;
  }

  .menu-item {
    justify-content: center;
    padding: 12px;
  }

  .main-content {
    margin-left: 70px;
  }

  .header {
    padding: 10px 15px;
    flex-direction: column;
    gap: 10px;
  }

  .search-input {
    width: 100%;
  }

  .hero-title {
    font-size: 28px;
  }

  .items-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 20px;
  }
}

/* Category Page Styles */
.category-header {
  padding: 30px;
  background: linear-gradient(135deg, rgba(30, 15, 15, 0.8), rgba(20, 10, 10, 0.6));
  border-bottom: 2px solid #3a1515;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.category-title i {
  font-size: 48px;
  color: #ff6666;
  filter: drop-shadow(0 0 10px rgba(255, 68, 68, 0.5));
}

.category-title h1 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 5px;
}

.category-title p {
  color: #aaa;
  font-size: 14px;
}

.category-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.search-filter-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  max-width: 600px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 14px;
}

.search-input {
  width: 100%;
  padding: 10px 15px 10px 38px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #3a1515;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  transition: all 0.2s;
}

.search-input::placeholder {
  color: #666;
}

.search-input:focus {
  outline: none;
  border-color: #ff4444;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

.affix-filter {
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #3a1515;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

.affix-filter:focus {
  outline: none;
  border-color: #ff4444;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

.affix-filter option {
  background: #1a0f0f;
  color: #fff;
}

.sort-select {
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #3a1515;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.sort-select:focus {
  outline: none;
  border-color: #ff4444;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

.sort-select option {
  background: #1a0f0f;
  color: #fff;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 30px;
  max-width: 1400px;
}

.product-card {
  background: linear-gradient(135deg, rgba(30, 15, 15, 0.9), rgba(20, 10, 10, 0.8));
  border: 2px solid #3a1515;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 68, 68, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

/* Grade-based border colors */
/* 일반 (Normal) - 회색 */
.product-card[data-grade="normal"] {
  border-color: #9e9e9e;
}

.product-card[data-grade="normal"]:hover {
  border-color: #bdbdbd;
  box-shadow: 0 10px 40px rgba(158, 158, 158, 0.4);
}

/* 마법 (Magic) - 파란색 */
.product-card[data-grade="magic"] {
  border-color: #4169e1;
}

.product-card[data-grade="magic"]:hover {
  border-color: #6495ed;
  box-shadow: 0 10px 40px rgba(65, 105, 225, 0.4);
}

/* 희귀 (Rare) - 노란색 */
.product-card[data-grade="rare"] {
  border-color: #ffd700;
}

.product-card[data-grade="rare"]:hover {
  border-color: #ffed4e;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

/* 전설 (Legendary) - 주황색 */
.product-card[data-grade="legendary"] {
  border-color: #ff8800;
}

.product-card[data-grade="legendary"]:hover {
  border-color: #ffaa00;
  box-shadow: 0 10px 40px rgba(255, 136, 0, 0.4);
}

/* 고유 (Unique) - 갈색/금색 */
.product-card[data-grade="unique"] {
  border-color: #d4af37;
}

.product-card[data-grade="unique"]:hover {
  border-color: #f0d060;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 10;
}

/* 일반 (Normal) 배지 */
.product-card[data-grade="normal"] .product-badge {
  background: linear-gradient(135deg, #9e9e9e, #757575);
  color: #fff;
  box-shadow: 0 0 15px rgba(158, 158, 158, 0.5);
}

/* 마법 (Magic) 배지 */
.product-card[data-grade="magic"] .product-badge {
  background: linear-gradient(135deg, #4169e1, #1e90ff);
  color: #fff;
  box-shadow: 0 0 15px rgba(65, 105, 225, 0.5);
}

/* 희귀 (Rare) 배지 */
.product-card[data-grade="rare"] .product-badge {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  font-weight: 900;
}

/* 전설 (Legendary) 배지 */
.product-card[data-grade="legendary"] .product-badge {
  background: linear-gradient(135deg, #ff8800, #ff6600);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 136, 0, 0.5);
}

/* 고유 (Unique) 배지 */
.product-card[data-grade="unique"] .product-badge {
  background: linear-gradient(135deg, #d4af37, #b8960e);
  color: #000;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  font-weight: 900;
}

.product-image {
  width: 100%;
  height: 180px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #444;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 68, 68, 0.2) 0%, transparent 70%);
}

.product-image i {
  font-size: 72px;
  color: #ff6666;
  filter: drop-shadow(0 0 20px rgba(255, 68, 68, 0.6));
  z-index: 1;
}

.product-info {
  position: relative;
  z-index: 1;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
  min-height: 44px;
}

.product-stats {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #3a1515;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4db8ff;
  font-size: 12px;
  margin-bottom: 4px;
}

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

.stat-item i {
  color: #ff6666;
  font-size: 10px;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid #ff4444;
  border-radius: 6px;
  margin-bottom: 15px;
}

.price-label {
  color: #aaa;
  font-size: 13px;
}

.price-value {
  font-size: 20px;
  font-weight: bold;
  color: #ff6666;
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-detail,
.btn-cart,
.btn-purchase {
  padding: 10px;
  border: 1px solid #3a1515;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-detail {
  background: rgba(255, 255, 255, 0.05);
  color: #ddd;
  border-color: #555;
}

.btn-detail:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ff4444;
  color: #ff6666;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.2);
}

.btn-cart {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  border-color: #ff4444;
}

.btn-cart:hover {
  background: linear-gradient(135deg, #ff6666, #ff4444);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.btn-cart i,
.btn-detail i,
.btn-purchase i {
  font-size: 14px;
}

.btn-purchase {
  background: linear-gradient(135deg, #ff9900, #ff6600);
  border-color: #ff9900;
  color: white;
}

.btn-purchase:hover {
  background: linear-gradient(135deg, #ffaa00, #ff7700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 30px;
}

.page-btn {
  background: rgba(30, 15, 15, 0.8);
  border: 1px solid #3a1515;
  color: #aaa;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  min-width: 40px;
}

.page-btn:hover:not(:disabled) {
  border-color: #ff4444;
  color: #ff6666;
  background: rgba(255, 68, 68, 0.1);
}

.page-btn.active {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  border-color: #ff4444;
  color: white;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Auth Pages (Login/Register) */
.auth-container {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: 
    radial-gradient(ellipse at top, rgba(139, 0, 0, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(255, 68, 68, 0.1) 0%, transparent 50%);
}

.auth-box {
  background: linear-gradient(135deg, rgba(30, 15, 15, 0.95), rgba(20, 10, 10, 0.9));
  border: 1px solid #3a1515;
  border-radius: 12px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.auth-header i {
  font-size: 48px;
  color: #ff6666;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 20px rgba(255, 68, 68, 0.5));
}

.auth-header h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 10px;
}

.auth-header p {
  color: #aaa;
  font-size: 14px;
}

.auth-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ddd;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group label i {
  color: #ff6666;
  width: 16px;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #3a1515;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #ff4444;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
  background: rgba(0, 0, 0, 0.6);
}

.form-group input::placeholder {
  color: #666;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  cursor: pointer;
  accent-color: #ff4444;
}

.checkbox-label a {
  color: #ff6666;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.link {
  color: #ff6666;
  font-size: 13px;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 68, 68, 0.6);
}

.auth-divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #3a1515;
}

.auth-divider span {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 15, 15, 0.95), rgba(20, 10, 10, 0.9));
  padding: 0 15px;
  color: #666;
  font-size: 13px;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.social-btn {
  padding: 12px;
  border: 1px solid #3a1515;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.social-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: #ff4444;
  transform: translateY(-2px);
}

.social-btn i {
  font-size: 18px;
}

.social-btn.google:hover {
  border-color: #4285f4;
  box-shadow: 0 0 15px rgba(66, 133, 244, 0.3);
}

.social-btn.discord:hover {
  border-color: #5865f2;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
}

.auth-footer {
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.auth-footer a {
  color: #ff6666;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Link Styles */
a {
  color: inherit;
  text-decoration: none;
}

a.menu-item {
  display: flex;
  text-decoration: none;
}

/* Responsive - Auth Pages */
@media (max-width: 768px) {
  .auth-box {
    padding: 30px 20px;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-actions {
    width: 100%;
    flex-direction: column;
  }

  .sort-select {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px;
  }

  .product-card {
    padding: 15px;
  }

  .product-image {
    height: 150px;
  }

  .product-image i {
    font-size: 56px;
  }

  .product-name {
    font-size: 14px;
    min-height: 40px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .btn-detail,
  .btn-cart {
    padding: 12px;
  }
}

/* Admin Pages Styles */
.admin-container {
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #3a1515;
}

.admin-header h1 {
  font-size: 28px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header h1 i {
  color: #ff6666;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #aaa;
}

.btn-logout {
  padding: 8px 16px;
  background: rgba(255, 68, 68, 0.2);
  border: 1px solid #ff4444;
  border-radius: 6px;
  color: #ff6666;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(255, 68, 68, 0.3);
  transform: translateY(-2px);
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-secondary {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #555;
  border-radius: 6px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ff4444;
  color: #ff6666;
}

.admin-search {
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #3a1515;
  border-radius: 6px;
  color: #fff;
  width: 250px;
}

.admin-search:focus {
  outline: none;
  border-color: #ff4444;
}

/* Shop Status Control */
.shop-control-container {
  margin-bottom: 30px;
}

.shop-control-card {
  background: linear-gradient(135deg, rgba(30, 15, 15, 0.9), rgba(20, 10, 10, 0.8));
  border: 2px solid #3a1515;
  border-radius: 12px;
  padding: 25px;
}

.shop-control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.shop-control-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-status-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.shop-status-display i {
  font-size: 10px;
  animation: pulse 2s infinite;
}

.shop-status-display.open {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #4caf50;
}

.shop-status-display.open i {
  color: #4caf50;
}

.shop-status-display.closed {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #f44336;
}

.shop-status-display.closed i {
  color: #f44336;
  animation: none;
}

.shop-control-buttons {
  display: flex;
  gap: 15px;
}

.btn-shop-control {
  flex: 1;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-shop-control i {
  font-size: 16px;
}

.btn-shop-control.btn-open {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: 1px solid #4caf50;
}

.btn-shop-control.btn-open:hover {
  background: linear-gradient(135deg, #66bb6a, #4caf50);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-shop-control.btn-close {
  background: linear-gradient(135deg, #f44336, #e53935);
  color: white;
  border: 1px solid #f44336;
}

.btn-shop-control.btn-close:hover {
  background: linear-gradient(135deg, #ef5350, #f44336);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(30, 15, 15, 0.8), rgba(20, 10, 10, 0.6));
  border: 1px solid #3a1515;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.stat-info h3 {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #888;
}

/* Admin Menu */
.admin-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.admin-menu-card {
  background: linear-gradient(135deg, rgba(30, 15, 15, 0.8), rgba(20, 10, 10, 0.6));
  border: 2px solid #3a1515;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.admin-menu-card:hover {
  border-color: #ff4444;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 68, 68, 0.3);
}

.admin-menu-card i {
  font-size: 48px;
  color: #ff6666;
  margin-bottom: 15px;
  display: block;
}

.admin-menu-card h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}

.admin-menu-card p {
  color: #aaa;
  font-size: 14px;
}

/* Admin Table */
.admin-table-container {
  background: linear-gradient(135deg, rgba(30, 15, 15, 0.8), rgba(20, 10, 10, 0.6));
  border: 1px solid #3a1515;
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  border-bottom: 2px solid #3a1515;
}

.admin-table th {
  padding: 15px;
  text-align: left;
  color: #ff6666;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

.admin-table td {
  padding: 15px;
  border-bottom: 1px solid #2a1515;
  color: #ddd;
}

.admin-table tbody tr {
  transition: all 0.2s;
}

.admin-table tbody tr:hover {
  background: rgba(255, 68, 68, 0.05);
}

.product-name-cell,
.category-name-cell,
.member-username-cell {
  font-weight: 500;
  color: #fff;
}

.admin-table code {
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  color: #4db8ff;
  font-size: 12px;
}

/* Grade Badges in Table */
.grade-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.grade-badge.normal {
  background: linear-gradient(135deg, #9e9e9e, #757575);
  color: #fff;
}

.grade-badge.magic {
  background: linear-gradient(135deg, #4169e1, #1e90ff);
  color: #fff;
}

.grade-badge.rare {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
}

.grade-badge.legendary {
  background: linear-gradient(135deg, #ff8800, #ff6600);
  color: #fff;
}

.grade-badge.unique {
  background: linear-gradient(135deg, #d4af37, #b8960e);
  color: #000;
}

/* Status Badges */
.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
}

.status-badge.active {
  background: rgba(67, 233, 123, 0.2);
  color: #43e97b;
  border: 1px solid #43e97b;
}

.status-badge.soldout {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
}

.status-badge.suspended {
  background: rgba(255, 159, 64, 0.2);
  color: #ff9f40;
  border: 1px solid #ff9f40;
}

/* Table Actions */
.table-actions {
  display: flex;
  gap: 8px;
}

.btn-edit,
.btn-delete {
  padding: 8px 12px;
  border: 1px solid #3a1515;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-edit:hover {
  background: rgba(79, 172, 254, 0.2);
  border-color: #4facfe;
  color: #4facfe;
}

.btn-delete:hover {
  background: rgba(255, 107, 107, 0.2);
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* Responsive - Admin */
@media (max-width: 768px) {
  .admin-container {
    padding: 20px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .admin-actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-search {
    width: 100%;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-menu {
    grid-template-columns: 1fr;
  }

  .admin-table-container {
    overflow-x: scroll;
  }

  .admin-table {
    min-width: 800px;
  }
}
/* Loading Overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.loading-spinner {
  font-size: 48px;
  color: #ff6666;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Toast Messages */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #333 0%, #222 100%);
  border-left: 4px solid #ff6666;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.toast-success {
  border-left-color: #4caf50;
}

.toast.toast-error {
  border-left-color: #f44336;
}

.toast.toast-info {
  border-left-color: #2196f3;
}

.toast.toast-warning {
  border-left-color: #ff9800;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 2px solid #ff6666;
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(255, 102, 102, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 2px solid #333;
}

.modal-header h2 {
  color: #ff6666;
  font-size: 24px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-modal {
  background: none;
  border: none;
  color: #999;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: #ff6666;
}

.modal-body {
  padding: 30px;
}

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

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-field label i {
  color: #ff6666;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #333;
  border-radius: 8px;
  padding: 12px 15px;
  color: white;
  font-size: 14px;
  transition: all 0.3s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #ff6666;
  background: rgba(255, 255, 255, 0.08);
}

.form-field textarea {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

.form-field small {
  color: #888;
  font-size: 12px;
}

/* Image Upload Section */
.image-upload-section {
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed #444;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.image-upload-section h3 {
  color: #ff6666;
  font-size: 16px;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.image-preview {
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid #333;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #666;
  margin-bottom: 15px;
  overflow: hidden;
}

.image-preview i {
  font-size: 48px;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-upload-controls {
  display: flex;
  gap: 10px;
}

.image-upload-controls input[type="file"] {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #333;
  border-radius: 8px;
  color: #ccc;
  cursor: pointer;
}

.btn-upload {
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff6666 0%, #ff4444 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-upload:hover {
  background: linear-gradient(135deg, #ff8888 0%, #ff6666 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 102, 102, 0.4);
}

/* Modal Footer */
.modal-footer {
  padding: 20px 30px;
  border-top: 2px solid #333;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cancel {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #444;
  border-radius: 8px;
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-cancel:hover {
  border-color: #666;
  background: rgba(255, 255, 255, 0.08);
}

.btn-save {
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff6666 0%, #ff4444 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-save:hover {
  background: linear-gradient(135deg, #ff8888 0%, #ff6666 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 102, 102, 0.4);
}

/* Badge Styles */
.badge {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

.badge-normal {
  background: rgba(158, 158, 158, 0.2);
  color: #9e9e9e;
  border: 1px solid #9e9e9e;
}

.badge-magic {
  background: rgba(65, 105, 225, 0.2);
  color: #4169e1;
  border: 1px solid #4169e1;
}

.badge-rare {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid #ffd700;
}

.badge-legendary {
  background: rgba(255, 136, 0, 0.2);
  color: #ff8800;
  border: 1px solid #ff8800;
}

.badge-unique {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
  border: 1px solid #d4af37;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-active {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid #4caf50;
}

.status-soldout {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid #f44336;
}

/* Admin Pagination */
.admin-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.admin-pagination .pagination {
  display: flex;
  gap: 5px;
  align-items: center;
}

.page-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #333;
  border-radius: 6px;
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.page-btn:hover:not([disabled]) {
  border-color: #ff6666;
  color: #ff6666;
  background: rgba(255, 102, 102, 0.1);
}

.page-btn.active {
  border-color: #ff6666;
  background: #ff6666;
  color: white;
}

.page-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-dots {
  color: #666;
  padding: 0 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    margin: 10px;
  }

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

  .modal-header {
    padding: 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 15px 20px;
  }
}

/* User Menu Dropdown */
.user-menu {
  position: relative;
}

.btn-user {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #ff6666;
  border-radius: 25px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-user:hover {
  background: rgba(255, 102, 102, 0.1);
  border-color: #ff8888;
}

.btn-user i.fa-user-circle {
  font-size: 18px;
}

.btn-user i.fa-chevron-down {
  font-size: 12px;
  transition: transform 0.3s;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 2px solid #ff6666;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1000;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  color: #ccc;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
}

.dropdown-item:hover {
  background: rgba(255, 102, 102, 0.1);
  color: #ff6666;
}

.dropdown-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Profile Page */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #333;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #ff6666 0%, #ff4444 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
}

.profile-info h1 {
  color: #ff6666;
  font-size: 28px;
  margin: 0 0 10px 0;
}

.profile-info p {
  color: #888;
  font-size: 14px;
  margin: 0;
}

.profile-form {
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid #333;
  border-radius: 12px;
  padding: 30px;
}

.profile-form h2 {
  color: #ff6666;
  font-size: 20px;
  margin: 0 0 25px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-field {
  margin-bottom: 25px;
}

.profile-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.profile-field label i {
  color: #ff6666;
}

.profile-field input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #333;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  transition: all 0.3s;
}

.profile-field input:focus {
  outline: none;
  border-color: #ff6666;
  background: rgba(255, 255, 255, 0.08);
}

.profile-field input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-field small {
  display: block;
  color: #666;
  font-size: 12px;
  margin-top: 5px;
}

.profile-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #333;
}

.btn-save-profile {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ff6666 0%, #ff4444 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-save-profile:hover {
  background: linear-gradient(135deg, #ff8888 0%, #ff6666 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 102, 102, 0.4);
}

.btn-cancel-profile {
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #444;
  border-radius: 8px;
  color: #ccc;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-cancel-profile:hover {
  border-color: #666;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }

  .profile-form {
    padding: 20px;
  }

  .profile-actions {
    flex-direction: column;
  }
}

/* Admin Link Styles */
.header-right a[title="관리자 로그인"] {
  color: #666 !important;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s;
}

.header-right a[title="관리자 로그인"]:hover {
  background: rgba(255, 102, 102, 0.1);
  color: #ff6666 !important;
}

.header-right a[title="관리자 로그인"] i {
  font-size: 14px;
}

/* Global Select and Option Styles - 모든 select와 option에 다크 테마 적용 */
select {
  background-color: #1a1a1a !important;
  color: #fff !important;
  border: 1px solid #444 !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
}

select:focus {
  outline: none !important;
  border-color: #ff6666 !important;
  box-shadow: 0 0 5px rgba(255, 102, 102, 0.3) !important;
}

select option {
  background-color: #1a1a1a !important;
  color: #fff !important;
  padding: 8px 12px !important;
}

select option:hover,
select option:focus,
select option:checked {
  background-color: #2a2a2a !important;
  color: #ff6666 !important;
}

/* Select placeholder (first option) */
select option[value=""] {
  color: #999 !important;
}

/* Dropdown in specific contexts */
.form-field select option,
.admin-form select option,
.auth-form select option {
  background: #1a1a1a !important;
  color: #fff !important;
}

/* Category actions select */
.category-actions select {
  background-color: #1a1a1a !important;
  color: #fff !important;
}

.category-actions select option {
  background-color: #1a1a1a !important;
  color: #fff !important;
}

/* Product Image Sizing - 상품 이미지 크기 제한 */
.product-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  z-index: 2;
  position: relative;
}

/* 폴백 이미지 (카테고리 아이콘) 스타일 */
.product-image img[src*="category-icons"] {
  opacity: 0.6;
  max-width: 80%;
  max-height: 80%;
}
