/* ==========================================================================
   TREND NOW - 스타일 시트 (style.css)
   컨셉: 모던 다크 글래스모피즘 & 실시간 금융/데이터 대시보드
   ========================================================================== */

:root {
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(31, 41, 55, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.35);

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;

  /* 사용자 요청 지정 색상 */
  --color-up: #10b981;      /* 상승: 선명한 에메랄드 초록색 */
  --color-up-bg: rgba(16, 185, 129, 0.15);
  --color-down: #ef4444;    /* 하강: 강렬한 빨간색 */
  --color-down-bg: rgba(239, 68, 68, 0.15);
  --color-new: #a855f7;     /* 신규: 네온 바이올렛 */
  --color-new-bg: rgba(168, 85, 247, 0.18);
  --color-same: #4b5563;

  --font-base: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.08);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.1) 0%, transparent 45%);
  background-attachment: fixed;
}

/* --------------------------------------------------------------------------
   1. 글로벌 네비게이션 헤더
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}

.logo-text h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.logo-text h1 span {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text .tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* 타이머 & 컨트롤 */
.status-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.refresh-widget {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.timer-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.timer-countdown {
  font-family: var(--font-display);
  font-weight: 700;
  color: #38bdf8;
}

.timer-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  transition: width 1s linear;
}

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-refresh:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(6, 182, 212, 0.35));
  border-color: #60a5fa;
  color: #fff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.btn-refresh i.spinning {
  animation: spin 0.8s linear infinite;
}

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

.live-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-up);
  box-shadow: 0 0 8px var(--color-up);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-homepage {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.2));
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-homepage:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(52, 211, 153, 0.35));
  border-color: #34d399;
  color: #fff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* --------------------------------------------------------------------------
   2. 하이라이트 전광판 티커
   -------------------------------------------------------------------------- */
.highlight-bar {
  background: rgba(17, 24, 39, 0.6);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 1.5rem;
}

.highlight-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ticker-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 280px;
  overflow: hidden;
}

.ticker-badge {
  background: linear-gradient(90deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.ticker-viewport {
  overflow: hidden;
  height: 22px;
  position: relative;
  flex: 1;
}

.ticker-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: tickerSlide 28s linear infinite;
}

.ticker-list:hover {
  animation-play-state: paused;
}

.ticker-list li {
  font-size: 0.85rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: color 0.2s;
}

.ticker-list li:hover {
  color: #38bdf8;
  text-decoration: underline;
}

@keyframes tickerSlide {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.summary-cards {
  display: flex;
  gap: 1rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.summary-item .label {
  color: var(--text-muted);
}

.summary-item .value {
  font-weight: 700;
  color: #fff;
}

.summary-item .value.gainer {
  color: var(--color-up);
}

/* --------------------------------------------------------------------------
   2-1. 구글 & 네이버 통합 검색창
   -------------------------------------------------------------------------- */
.search-engines-container {
  width: 100%;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.search-engine-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 580px;
}

/* Google Logo Inside */
.google-icon-img {
  display: flex;
  align-items: center;
  margin-right: 8px;
}
.google-icon-img img {
  height: 24px;
}
.google-icon-img .divider {
  width: 1px;
  height: 20px;
  background-color: #e5e5e5;
  margin-left: 10px;
}

.search-engine-form {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 26px;
  padding: 0 16px;
  width: 100%;
  height: 52px;
  transition: box-shadow 0.2s ease, border-radius 0.2s ease;
}

.search-engine-form.has-dropdown-open {
  border-radius: 26px 26px 0 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.google-form {
  border: 1px solid #dfe1e5;
}
.google-form.has-dropdown-open {
  border-bottom-color: transparent !important;
}

.google-form:hover,
.google-form:focus-within {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border-color: transparent;
}
.google-form.has-dropdown-open:focus-within {
  border-color: #dfe1e5;
  border-bottom-color: transparent !important;
}

.naver-form {
  border: 2px solid #03c75a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.naver-form.has-dropdown-open {
  border-bottom-color: transparent !important;
}

.search-icon-left {
  display: flex;
  align-items: center;
  color: #9aa0a6;
  font-size: 1rem;
}

.naver-icon-img {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.naver-n-logo {
  background: #03c75a;
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.naver-icon-img .divider {
  width: 1px;
  height: 20px;
  background-color: #e5e5e5;
  margin-left: 10px;
}

.search-engine-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #202124;
  font-size: 1.05rem;
  outline: none;
}

.search-engine-input::placeholder {
  color: #c4c4c4;
}

.search-icons-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #5f6368;
  font-size: 1.15rem;
}

.search-icons-right i {
  cursor: pointer;
  transition: color 0.2s;
}

.search-icons-right i:hover {
  color: #202124;
}

.btn-naver-ai {
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 4px 12px;
  color: #03c75a;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05), 0 0 15px rgba(3, 199, 90, 0.15);
  transition: all 0.2s;
}

.btn-naver-ai::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 20px;
  background: linear-gradient(90deg, #0cebeb, #20e3b2, #29ffc6);
  z-index: -1;
  opacity: 0.3;
}

.btn-naver-ai i {
  color: #2b61d6;
}

.btn-naver-ai span {
  background: linear-gradient(90deg, #2b61d6, #03c75a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 최근 검색어 드롭다운 */
.recent-searches-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  background: #ffffff;
  border: 1px solid;
  border-top: none;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 8px 12px rgba(0,0,0,0.1);
  z-index: 100;
  padding: 1rem 0 0.5rem;
}

.google-form .recent-searches-dropdown {
  border-color: #dfe1e5;
  left: -1px; right: -1px;
}
.naver-form .recent-searches-dropdown {
  border-color: #03c75a;
  border-width: 2px;
  left: -2px; right: -2px;
}

.search-engine-form.has-dropdown-open .recent-searches-dropdown {
  display: block;
}

.recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.25rem 0.75rem;
  font-size: 0.85rem;
  color: #888;
  border-bottom: 1px solid #f1f3f4;
  margin-bottom: 0.5rem;
}
.recent-header span {
  font-weight: 700;
  color: #202124;
}

.btn-clear-all {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 0.8rem;
}

.btn-clear-all:hover {
  text-decoration: underline;
}

.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 250px;
  overflow-y: auto;
}

.recent-list li {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
}

.recent-list li:hover {
  background: #f8f9fa;
}

.recent-icon {
  color: #9aa0a6;
  margin-right: 0.75rem;
  font-size: 0.9rem;
}

.recent-text {
  flex: 1;
  color: #202124;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.recent-time {
  color: #888;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.btn-recent-delete {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-recent-delete:hover {
  color: #888;
}

.recent-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   3. 메인 레이아웃 (트렌드 70% : 채팅 30%)
   -------------------------------------------------------------------------- */
.main-wrapper {
  max-width: 1680px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 1.75rem;
  align-items: start;
}

/* 탭 네비게이션 */
.tab-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tab-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.55rem 1.05rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.tab-btn .flag-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.tab-extras {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* 접속 IP 감지 뱃지 */
.ip-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.76rem;
  color: #9ca3af;
}

.ip-indicator i {
  color: #38bdf8;
}

.country-pill {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  font-size: 0.7rem;
}

/* 한국어 자동 번역 토글 버튼 */
.btn-trans-toggle {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-trans-toggle:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
}

.btn-trans-toggle.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
  border-color: #818cf8;
  color: #c7d2fe;
}

/* 날짜 및 시간 선택기 (과거 데이터 조회) */
.history-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.history-picker i {
  color: #818cf8;
}

.history-date-input,
.history-time-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.history-date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
  cursor: pointer;
}

.history-date-input:focus,
.history-time-select:focus {
  color: #fff;
}

.history-time-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.tab-favicon {
  width: 14px;
  height: 14px;
}

.naver-icon {
  background: #03c75a;
  color: #fff;
  font-weight: 900;
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.daum-icon {
  background: #ff5532;
  color: #fff;
  font-weight: 900;
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.yahoo-icon {
  background: #ff0033;
  color: #fff;
  font-weight: 900;
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.trend-legend {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-sample {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.badge-sample.up {
  color: var(--color-up);
  background: var(--color-up-bg);
}

.badge-sample.down {
  color: var(--color-down);
  background: var(--color-down-bg);
}

.badge-sample.new {
  color: var(--color-new);
  background: var(--color-new-bg);
}

/* --------------------------------------------------------------------------
   4. 포털별 트렌드 카드 및 랭킹 리스트 (Top 10)
   -------------------------------------------------------------------------- */
.trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
}

.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-lg);
}

.portal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.9rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.portal-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.portal-logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}

.portal-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.portal-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 랭킹 리스트 아이템 */
.ranking-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.ranking-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
}

.rank-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

/* 순위 숫자 */
.rank-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  width: 24px;
  text-align: center;
  color: var(--text-muted);
}

.ranking-item:nth-child(1) .rank-num {
  color: #facc15; /* 1위 골드 */
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.ranking-item:nth-child(2) .rank-num {
  color: #cbd5e1; /* 2위 실버 */
}

.ranking-item:nth-child(3) .rank-num {
  color: #f97316; /* 3위 브론즈 */
}

/* 키워드 링크 - 잘림 방지 및 가독성 향상 */
.rank-keyword-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  padding-right: 0.5rem;
}

.rank-keyword {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.35;
  transition: color 0.2s;
}

.rank-keyword:hover {
  color: #38bdf8;
}

.rank-snippet {
  font-size: 0.76rem;
  color: var(--text-muted);
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.35;
  margin-top: 3px;
}

/* 순위 우측 등락 뱃지 & 검색량 */
.rank-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.search-volume {
  font-size: 0.72rem;
  font-family: var(--font-display);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* 순위 변동 뱃지 - 요청 사양: 상승은 초록색, 하강은 빨간색 */
.rank-change {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 44px;
  justify-content: center;
}

.rank-change.up {
  color: var(--color-up);
  background: var(--color-up-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.rank-change.down {
  color: var(--color-down);
  background: var(--color-down-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.rank-change.same {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.rank-change.new {
  color: var(--color-new);
  background: var(--color-new-bg);
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-weight: 800;
}

/* 토론 버튼 (클릭 시 채팅으로 인용) */
.btn-quote-chat {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  font-size: 0.8rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-quote-chat:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

/* 10위 하단 출처 표기 (회색) */
.portal-card-footer {
  margin-top: 0.9rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.74rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.portal-card-footer i {
  font-size: 0.7rem;
  color: #6b7280;
}

.portal-card-footer span {
  color: #9ca3af;
  letter-spacing: -0.01em;
}

/* 로딩 플레이스홀더 */
.loading-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}

.loading-placeholder i {
  font-size: 2.5rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   5. 실시간 라이브 채팅 사이드바
   -------------------------------------------------------------------------- */
.chat-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 80px;
}

.chat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 580px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.chat-header {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #38bdf8;
}

.chat-title h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chat-online-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--color-up);
}

.online-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-up);
  box-shadow: 0 0 6px var(--color-up);
}

/* 닉네임 입력 바 */
.nickname-bar {
  padding: 0.5rem 1.2rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.nick-label {
  color: var(--text-muted);
  white-space: nowrap;
}

#nicknameInput {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

#nicknameInput:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.btn-nick-change {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
  white-space: nowrap;
  word-break: keep-all;
}

.btn-nick-change:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* 채팅 메시지 스크롤 영역 */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.system-msg {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  margin: 0.2rem auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  font-size: 0.85rem;
  animation: fadeIn 0.2s ease-out;
}

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

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-admin-login {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.btn-admin-login:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #fff;
}

.btn-admin-login.logged-in {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.ip-tag-small {
  font-size: 0.7rem;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* 채팅 말풍선 정렬 (내가 보낸 건 오른쪽, 남이 보낸 건 왼쪽) */
.chat-bubble.other {
  align-self: flex-start;
  margin-right: auto;
  margin-left: 0;
}

.chat-bubble.mine {
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
}

.admin-mode .chat-bubble.other .chat-sender {
  cursor: pointer;
}
.admin-mode .chat-bubble.other .chat-sender:hover {
  text-decoration: underline;
  color: #ef4444;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
}

.chat-bubble.mine .chat-meta {
  flex-direction: row-reverse;
}

.chat-sender {
  font-weight: 700;
  color: #60a5fa;
}

.chat-bubble.mine .chat-sender {
  color: #a78bfa;
}

.chat-time {
  color: var(--text-muted);
}

/* 관리자 모드 전용 IP 및 벤 버튼 */
.sender-ip-badge {
  font-size: 0.65rem;
  color: #9ca3af;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.btn-ban-ip-action {
  background: #dc2626;
  color: #fff;
  border: none;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-ban-ip-action:hover {
  background: #b91c1c;
}

.chat-text {
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-bubble.other .chat-text {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-top-left-radius: 2px;
  text-align: left;
}

.chat-bubble.mine .chat-text {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-top-right-radius: 2px;
  text-align: left;
}

/* 인용 칩 */
.quoted-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.25);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
  border-left: 2px solid var(--accent-cyan);
}

/* 입력 영역 */
.chat-input-area {
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
}

.quote-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.btn-cancel-quote {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1rem;
  cursor: pointer;
}

.btn-cancel-quote:hover {
  color: #fff;
}

.input-row {
  display: flex;
  gap: 0.5rem;
}

#chatInput {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-family: inherit;
}

#chatInput:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.09);
}

.btn-send {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.15s, opacity 0.15s;
}

.btn-send:hover {
  opacity: 0.92;
  transform: scale(1.05);
}

/* 인사이트 위젯 */
.insights-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
}

.insights-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: #f59e0b;
}

.insights-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.insight-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border-left: 3px solid #f59e0b;
}

.insight-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.insight-item a:hover {
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   6. 푸터
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  background: rgba(11, 15, 25, 0.9);
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.footer-logo span {
  color: var(--accent-cyan);
}

.footer-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-top: 0.25rem;
}

.update-time-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: right;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   7. 반응형 미디어 쿼리
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .chat-section {
    position: static;
  }

  .chat-card {
    height: 480px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-controls {
    width: 100%;
    justify-content: space-between;
  }

  .highlight-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-cards {
    width: 100%;
    justify-content: space-between;
  }

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

  .tab-navigation {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .update-time-info, .copyright {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   8. 차단(벤) 오버레이 & 관리자 모달 스타일
   -------------------------------------------------------------------------- */
.banned-overlay {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  animation: fadeIn 0.2s ease;
}

.banned-overlay i {
  color: #ef4444;
  font-size: 1rem;
}

.rank-keyword-original {
  font-size: 0.73rem;
  color: #818cf8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.rank-keyword-original span {
  opacity: 0.85;
}

/* 관리자 모달 */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.admin-modal-content {
  position: relative;
  z-index: 1001;
  background: #111827;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScale 0.2s ease-out;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.admin-modal-header {
  padding: 1rem 1.25rem;
  background: rgba(239, 68, 68, 0.1);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-header .modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f87171;
  font-weight: 700;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close-modal:hover {
  color: #fff;
}

.admin-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.admin-status-text {
  font-size: 0.82rem;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border-left: 3px solid #ef4444;
}

.ban-manual-box label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.manual-ban-row {
  display: flex;
  gap: 0.5rem;
}

#manualBanIpInput {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

#manualBanIpInput:focus {
  outline: none;
  border-color: #ef4444;
}

.btn-manual-ban {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-manual-ban:hover {
  background: #dc2626;
}

.banned-list-box h5 {
  font-size: 0.82rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.banned-ip-list {
  list-style: none;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.banned-ip-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.6rem;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 4px;
  font-size: 0.8rem;
  color: #fca5a5;
}

.btn-unban-ip {
  background: transparent;
  border: 1px solid #10b981;
  color: #10b981;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-unban-ip:hover {
  background: #10b981;
  color: #fff;
}

.empty-list {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.8rem;
}

.admin-modal-footer {
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: flex-end;
}

.btn-admin-logout {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-admin-logout:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Mobile Toggle Icon */
.mobile-toggle-icon {
  display: none;
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

@media (max-width: 768px) {
  .mobile-toggle-icon {
    display: inline-block;
  }
  
  .portal-card-header {
    cursor: pointer;
  }
  
  .portal-card .ranking-list,
  .portal-card .portal-card-footer {
    display: none;
  }
  
  .portal-card.expanded .ranking-list,
  .portal-card.expanded .portal-card-footer {
    display: block;
  }
  
  .portal-card.expanded .mobile-toggle-icon {
    transform: rotate(180deg);
  }

  
  .ticker-box {
    min-width: 0;
    width: 100%;
  }
  .highlight-container {
    overflow: hidden;
    max-width: 100vw;
  }

  .content-layout {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 1.5rem;
  }
}

.click-rank {
  font-weight: 700;
  color: var(--accent-blue);
  margin-right: 0.5rem;
  font-size: 0.85rem;
}
.click-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   가상 키보드 UI
   -------------------------------------------------------------------------- */
.v-keyboard {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  width: 400px;
  z-index: 1000;
  overflow: hidden;
  border: 1px solid #dfe1e5;
  animation: slideUp 0.3s ease-out;
}

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

.vk-header {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dfe1e5;
  font-weight: 600;
  color: #202124;
  font-size: 0.9rem;
}

.vk-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #5f6368;
  cursor: pointer;
  line-height: 1;
}

.vk-keys {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vk-row {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.vk-key {
  background: #f1f3f4;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 0.5rem;
  min-width: 32px;
  text-align: center;
  font-size: 0.95rem;
  color: #202124;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}

.vk-key:hover {
  background: #e8eaed;
}

.vk-key:active {
  background: #d2e3fc;
  border-color: #d2e3fc;
}

.vk-space {
  width: 200px;
}
.vk-backspace {
  min-width: 44px;
  background: #e8eaed;
}

/* --------------------------------------------------------------------------
   이미지 검색 모달 UI
   -------------------------------------------------------------------------- */
.img-search-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-search-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.img-search-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: zoomIn 0.2s ease-out;
  overflow: hidden;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.img-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f3f4;
}

.img-search-header h4 {
  margin: 0;
  color: #202124;
  font-size: 1.1rem;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #5f6368;
  cursor: pointer;
  line-height: 1;
}

.img-search-body {
  padding: 2rem;
  text-align: center;
}

.drag-drop-area {
  border: 2px dashed #dadce0;
  border-radius: 12px;
  padding: 3rem 2rem;
  background: #f8f9fa;
  transition: all 0.2s;
}

.drag-drop-area.dragover {
  border-color: #1a73e8;
  background: #e8f0fe;
}

.drag-drop-area img {
  height: 48px;
  margin-bottom: 1rem;
}

.drag-drop-area p {
  color: #3c4043;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.btn-upload-file {
  background: #1a73e8;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-upload-file:hover {
  background: #1557b0;
}

.img-search-warning {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #80868b;
}
