/**
 * Digital Guardian - Main Stylesheet v2.0
 * 디지털에서 지우고 싶은 모든 것을 삭제합니다
 */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  /* Primary - 신뢰, 보호 */
  --guardian-navy: #1a365d;
  --guardian-navy-light: #2c5282;
  --guardian-navy-dark: #0d1b2a;
  
  /* Secondary - 희망, 회복 */
  --guardian-green: #38a169;
  --guardian-green-light: #48bb78;
  
  /* Accent */
  --guardian-orange: #ed8936;
  --guardian-red: #e53e3e;
  
  /* Neutral */
  --guardian-gray-50: #f7fafc;
  --guardian-gray-100: #edf2f7;
  --guardian-gray-200: #e2e8f0;
  --guardian-gray-600: #718096;
  --guardian-gray-800: #2d3748;
  
  /* Service Colors */
  --service-victim: #e53e3e;
  --service-funeral: #ed8936;
  --service-rtbf: #ecc94b;
  --service-business: #38a169;
  --service-will: #4299e1;
  --service-self: #9f7aea;
}

/* Dark Mode */
[data-theme="dark"] {
  --guardian-navy: #0d1b2a;
  --guardian-gray-50: #1a202c;
  --guardian-gray-100: #2d3748;
  --guardian-gray-800: #e2e8f0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--guardian-navy);
  color: white;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 54, 93, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
}

.logo-sub {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: 0.5rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--guardian-green);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 다크/라이트 모드 토글 */
.theme-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.2);
}

.lang-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.2);
}

.cta-btn {
  background: var(--guardian-green);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(56, 161, 105, 0.4);
}

/* ========== Hero Section ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--guardian-navy) 0%, var(--guardian-navy-dark) 100%);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #a0aec0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  max-width: 600px;
}

/* ========== Search Box ========== */
.search-box {
  display: flex;
  max-width: 700px;
  width: 100%;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.search-box input {
  flex: 1;
  padding: 1.5rem 2rem;
  font-size: 1.1rem;
  border: none;
  outline: none;
  color: var(--guardian-gray-800);
}

.search-box input::placeholder {
  color: var(--guardian-gray-600);
}

.search-box button {
  padding: 1.5rem 2.5rem;
  background: var(--guardian-green);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background: var(--guardian-green-light);
}

/* ========== Search Engine Grid ========== */
.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 1000px;
  width: 100%;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

@media (max-width: 900px) {
  .search-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .search-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.search-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.search-card:hover {
  transform: translateY(-5px);
}

.engine-link {
  display: block;
}

.engine-header {
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.engine-icon {
  font-size: 1.3rem;
}

.engine-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--guardian-gray-800);
}

.engine-action {
  padding: 0.8rem 1rem;
  color: var(--guardian-navy);
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--guardian-gray-100);
  font-size: 0.9rem;
}

.delete-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--guardian-red);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 0.85rem;
}

.delete-btn:hover {
  background: #c53030;
}

/* ========== Services Section ========== */
.services-section {
  padding: 6rem 2rem;
  background: var(--guardian-gray-50);
}

.services-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--guardian-navy);
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  color: var(--guardian-navy);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--guardian-gray-600);
  margin-bottom: 1rem;
}

.service-card .price {
  display: inline-block;
  background: var(--guardian-navy);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ========== Service Detail Page ========== */
.service-detail {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  background: white;
}

.service-detail h2 {
  color: var(--guardian-navy);
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--guardian-gray-100);
}

.service-detail p {
  color: var(--guardian-gray-800);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.service-detail ul {
  margin: 1rem 0 2rem 0;
  padding-left: 0;
  list-style: none;
}

.service-detail li {
  color: var(--guardian-gray-800);
  margin-bottom: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--guardian-gray-50);
  border-radius: 8px;
  border-left: 3px solid var(--guardian-green);
}

.service-detail li strong {
  color: var(--guardian-navy);
}

.highlight-box {
  background: linear-gradient(135deg, #fff5f5, #fed7d7);
  border-left: 4px solid var(--service-victim);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
}

.highlight-box h4 {
  color: var(--service-victim);
  margin-bottom: 0.5rem;
}

.highlight-box p {
  color: var(--guardian-gray-800);
}

.price-box {
  background: linear-gradient(135deg, var(--guardian-gray-50), var(--guardian-gray-100));
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2.5rem 0;
  text-align: center;
  border: 1px solid var(--guardian-gray-200);
}

.price-box .price {
  font-size: 2.5rem;
  color: var(--guardian-navy);
  font-weight: 800;
}

.contact-box {
  background: linear-gradient(135deg, var(--guardian-navy), var(--guardian-navy-light));
  color: white;
  padding: 2rem;
  border-radius: 16px;
  margin: 2rem 0;
}

.contact-box h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.contact-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}

.cta-section {
  text-align: center;
  margin: 3rem 0;
}

/* ========== Trust Section ========== */
.trust-section {
  padding: 6rem 2rem;
  background: var(--guardian-navy);
  text-align: center;
}

.trust-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.trust-section .subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 3rem;
  font-style: italic;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-item {
  padding: 2rem;
}

.trust-item span {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.trust-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.trust-item p {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* ========== Footer ========== */
.footer {
  background: var(--guardian-navy-dark);
  padding: 3rem 2rem 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
  color: var(--guardian-gray-200);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--guardian-green);
}

.footer-info {
  text-align: center;
  color: var(--guardian-gray-600);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-copyright {
  text-align: center;
  color: var(--guardian-gray-600);
  font-size: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright a {
  color: var(--guardian-green);
}

/* ========== Form Styles ========== */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: white;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--guardian-navy);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--guardian-gray-200);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--guardian-green);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* 체크박스 스타일 */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--guardian-gray-50);
  border-radius: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-group label {
  color: var(--guardian-gray-800);
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-group a {
  color: var(--guardian-green);
  text-decoration: underline;
}

.form-note {
  color: var(--guardian-gray-600);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: var(--guardian-green);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: var(--guardian-green-light);
  transform: translateY(-2px);
}

.contact-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--guardian-gray-50);
  border-radius: 15px;
}

.contact-info h4 {
  color: var(--guardian-navy);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--guardian-gray-800);
  margin-bottom: 0.5rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }
  
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .search-box {
    flex-direction: row;
    border-radius: 20px;
  }
  
  .search-box input {
    border-radius: 20px 20px 0 0;
  }
  
  .search-box button {
    border-radius: 0 0 20px 20px;
  }
  
  .service-detail {
    padding: 2rem 1rem;
  }
}

/* ========== 언어 모달 텍스트 색상 수정 ========== */
.wia-lang-item {
  color: #333 !important;
}

/* ========== Theme Toggle ========== */
.theme-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

/* ========== Dark Mode ========== */
[data-theme="dark"] body {
  background: #0d1b2a;
}

[data-theme="dark"] .service-detail,
[data-theme="dark"] .form-card,
[data-theme="dark"] .privacy-content {
  background: #1a202c;
  color: #e2e8f0;
}

[data-theme="dark"] .service-detail h2,
[data-theme="dark"] .service-detail h3,
[data-theme="dark"] .form-card h1,
[data-theme="dark"] .privacy-content h1,
[data-theme="dark"] .privacy-content h2 {
  color: #90cdf4;
}

[data-theme="dark"] .service-detail p,
[data-theme="dark"] .service-detail li,
[data-theme="dark"] .form-card p,
[data-theme="dark"] .privacy-content p,
[data-theme="dark"] .privacy-content li {
  color: #cbd5e0;
}

[data-theme="dark"] .services-section {
  background: #1a202c;
}

[data-theme="dark"] .service-card {
  background: #2d3748;
}

[data-theme="dark"] .service-card h3 {
  color: #90cdf4;
}

[data-theme="dark"] .service-card p {
  color: #a0aec0;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

[data-theme="dark"] .checkbox-group {
  background: #2d3748;
}

[data-theme="dark"] .checkbox-group label {
  color: #cbd5e0;
}

[data-theme="dark"] .contact-info {
  background: #2d3748;
}

[data-theme="dark"] .contact-info h4 {
  color: #90cdf4;
}

[data-theme="dark"] .contact-info p {
  color: #a0aec0;
}

/* ========== 언어 모달 텍스트 색상 보장 ========== */
.wia-lang-item {
  color: #333333 !important;
}

.wia-lang-item:hover {
  color: #333333 !important;
}

.wia-lang-item.selected {
  color: #ffffff !important;
}

/* ========== Platform Grid (v3.0) ========== */
.category-header {
  margin: 2rem 0 1rem;
  text-align: left;
  width: 100%;
}

.category-header h3 {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.platform-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.platform-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.platform-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.platform-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 2px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8f9fa;
}

.platform-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.platform-icon .emoji-fallback {
  font-size: 1.8rem;
}

.platform-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.delete-btn-mini {
  background: #e53e3e;
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.platform-card:hover .delete-btn-mini {
  opacity: 1;
}

.delete-btn-mini:hover {
  background: #c53030;
}

/* Search Page Layout */
#platform-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

@media (max-width: 768px) {
  .platform-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .platform-icon {
    width: 45px;
    height: 45px;
  }
  
  .platform-name {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .platform-category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .platform-card {
    padding: 0.75rem;
  }
}

/* ========== 이모지 보호 (Gradient에서 제외) ========== */
.emoji,
h1 .emoji,
h2 .emoji,
h3 .emoji,
h4 .emoji,
.hero h1::first-letter {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  color: initial !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* 제목에서 이모지와 텍스트 분리 스타일 */
.title-with-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.title-with-emoji .emoji {
  display: inline-block;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  font-size: inherit;
}

.title-with-emoji .text {
  background: linear-gradient(135deg, #ffffff, #a0aec0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero 섹션 이모지 보호 */
/* 서비스 카드 이모지 */
.service-icon,
.trust-item span,
.platform-icon .emoji-fallback {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  color: initial !important;
}

/* 제목 이모지 한 줄 정렬 */
.title-with-emoji {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero h1.title-with-emoji {
  flex-direction: row !important;
}

/* ========== Platform Emoji (이모지 기반 아이콘) ========== */
.platform-emoji {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 2px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

/* ========== Platform Icons v4.0 (SVG) ========== */
.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.platform-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.platform-card:hover .platform-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.platform-emoji-fallback {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.platform-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--guardian-gray-800);
  text-align: center;
}

[data-theme="dark"] .platform-name {
  color: #e2e8f0;
}

[data-theme="dark"] .platform-icon {
  background: rgba(255,255,255,0.1);
}

.platform-card {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

.delete-btn-mini {
  font-size: 0.7rem;
  padding: 4px 8px;
  background: #e53e3e;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.platform-card:hover .delete-btn-mini {
  opacity: 1;
}

.category-header {
  width: 100%;
  margin-bottom: 1rem;
}

.category-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.platform-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .platform-category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
  
  .platform-icon {
    width: 40px;
    height: 40px;
  }
  
  .platform-name {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .platform-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== Language Modal (Simple) ========== */
.lang-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

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

.lang-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 900px;
  width: 95%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.lang-modal-header {
  background: linear-gradient(135deg, #1a365d, #2d3748);
  color: white;
  padding: 25px;
  text-align: center;
  position: relative;
}

.lang-modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.lang-modal-header p {
  margin: 8px 0 0;
  opacity: 0.9;
}

.lang-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.lang-close-btn:hover {
  transform: scale(1.2);
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 25px;
  max-height: 60vh;
  overflow-y: auto;
}

.lang-item {
  padding: 12px 10px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  text-align: center;
  font-size: 0.95rem;
  color: #333;
}

.lang-item:hover {
  border-color: #38a169;
  background: #f0fff4;
}

.lang-item.active {
  border-color: #38a169;
  background: #c6f6d5;
  font-weight: bold;
}

@media (max-width: 768px) {
  .lang-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .lang-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

[data-theme="dark"] .lang-modal-content {
  background: #1a202c;
}

[data-theme="dark"] .lang-item {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

[data-theme="dark"] .lang-item:hover {
  background: #38a169;
  border-color: #38a169;
}

[data-theme="dark"] .lang-item.active {
  background: #276749;
  border-color: #38a169;
}
