/* =========================================
   终末地工业风核心变量 (Endfield Style)
   ========================================= */
:root {
  --ef-yellow: #fff100;
  --ef-black: #111111;
  --ef-white: #ffffff;
  --ef-gray: #f4f5f7;
  --ef-dark-gray: #dddddd;
  --ef-border: #111111;
  --ef-red: #ff3333;
  --ef-green: #00cc66;
}

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

body {
  font-family: "Oswald", "DIN", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--ef-gray);
  color: var(--ef-black);
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* =========================================
   工业机械动效 (Mechanical Animations)
   ========================================= */
@keyframes mechSnapIn {
  0% { transform: translateX(-60px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes ribbonDrop {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

@keyframes textStutter {
  0% { opacity: 0; transform: translateX(-5px); }
  20% { opacity: 1; transform: translateX(2px); }
  40% { opacity: 0; transform: translateX(-2px); }
  60% { opacity: 1; transform: translateX(0); }
  100% { opacity: 1; transform: translateX(0); }
}

/* =========================================
   全局背景与导航
   ========================================= */
.ef-watermark {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  font-size: 180px; font-weight: 900;
  color: rgba(0, 0, 0, 0.03);
  z-index: -1; pointer-events: none;
  white-space: nowrap; letter-spacing: -5px;
}

.site-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 70px;
  background: var(--ef-white);
  border-right: 1px solid var(--ef-border);
  display: flex; flex-direction: column; align-items: center;
  z-index: 100;
}

.sidebar-logo {
  background: var(--ef-black); color: var(--ef-yellow);
  width: 100%; height: 70px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 24px;
}

.nav-menu { width: 100%; display: flex; flex-direction: column; margin-top: 20px; }
.nav-menu a {
  text-decoration: none; writing-mode: vertical-lr;
  padding: 24px 0; width: 100%; text-align: center;
  font-weight: 700; font-size: 14px; letter-spacing: 4px;
  border-bottom: 1px solid var(--ef-dark-gray);
  color: #666;
  transition: background-color 0.1s, color 0.1s; 
  display: flex; align-items: center; justify-content: center;
}
.nav-menu a:hover { color: var(--ef-black); background: #f9f9f9; }
.nav-menu a.active { background: var(--ef-yellow); color: var(--ef-black); border-bottom: 1px solid var(--ef-border); }

.sidebar-bottom {
  margin-top: auto; background: var(--ef-black); color: var(--ef-white);
  width: 100%; height: 70px;
  display: flex; justify-content: center; align-items: center; position: relative;
}
.sidebar-bottom::after {
  content: ""; position: absolute; bottom: 15px;
  width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid var(--ef-white);
}

/* =========================================
   主内容区
   ========================================= */
.container {
  margin-left: 70px;
  padding: 60px 80px 80px 80px;
  width: calc(100% - 70px);
  max-width: none; 
  position: relative;
}

/* CMYK 印刷条 */
.cmyk-decor {
  position: fixed; 
  top: 0; right: 0; 
  display: flex;
  z-index: 110;
  animation: ribbonDrop 0.5s cubic-bezier(0.0, 0.9, 0.1, 1.0) backwards;
}
.cmyk-col { display: flex; flex-direction: column; width: 16px; }
.cmyk-m { height: 20px; background: #ff0090; }
.cmyk-c { height: 20px; background: #00f0ff; }
.cmyk-y { height: 120px; background: linear-gradient(to bottom, var(--ef-yellow) 60%, transparent); }

.page-header { margin-bottom: 40px; }
.page-header h2 {
  font-size: 36px; font-weight: 900; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  animation: textStutter 0.4s cubic-bezier(0.1, 1.0, 0.0, 1.0) backwards;
}
.page-header h2::before { content: ""; display: block; width: 10px; height: 36px; background: var(--ef-yellow); }
.page-header .hint-en { font-family: monospace; font-size: 13px; color: #888; letter-spacing: 3px; margin-top: 4px; margin-left: 22px; }

/* =========================================
   工业卡片
   ========================================= */
.card {
  background: var(--ef-white);
  border: 1px solid var(--ef-border);
  padding: 30px;
  margin-bottom: 24px;
  position: relative;
  border-radius: 0; 
  animation: mechSnapIn 0.4s cubic-bezier(0.0, 0.9, 0.1, 1.0) backwards;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }

.card::before, .card::after { content: "+"; position: absolute; font-size: 14px; color: #999; line-height: 1; }
.card::before { top: 6px; left: 6px; } .card::after { bottom: 6px; right: 6px; }

.card h3 {
  font-size: 18px; border-bottom: 1px solid var(--ef-border);
  padding-bottom: 10px; margin-bottom: 20px;
  display: inline-block; text-transform: uppercase;
}

.hint { color: #888; font-size: 13px; margin: 4px 0 12px; font-weight: bold; }

/* =========================================
   黑卡重构：终末地控制台面板 (Hero Section)
   ========================================= */
.hero {
  background: var(--ef-black); color: var(--ef-white);
  padding: 60px 70px; border: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), calc(100% - 50px) 100%, 0 100%);
  text-align: left; position: relative; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px; pointer-events: none; z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero h2 { font-size: 48px; margin-bottom: 8px; color: var(--ef-white); display: flex; align-items: center; letter-spacing: 2px;}
.hero h2 .yellow-block { display: inline-block; width: 18px; height: 42px; background: var(--ef-yellow); margin-right: 20px; }
.hero .hint { color: var(--ef-yellow); margin-bottom: 24px; font-family: monospace; letter-spacing: 1px;}
.hero .desc { color: #aaaaaa; max-width: 650px; font-size: 15px; margin-bottom: 40px;}
.hero-watermark { position: absolute; right: -20px; bottom: -40px; font-size: 200px; font-weight: 900; color: rgba(255,255,255,0.03); z-index: 1; pointer-events: none; line-height: 1; }
.hero-actions { display: flex; gap: 20px; }

/* =========================================
   表单与按钮
   ========================================= */
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 13px; font-weight: bold; color: var(--ef-black); margin-bottom: 6px; text-transform: uppercase; }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="password"], .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ef-border); background: var(--ef-gray); font-size: 14px; font-family: inherit; border-radius: 0; transition: 0.1s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; background: var(--ef-white); border-color: var(--ef-black); box-shadow: 4px 4px 0 var(--ef-yellow); }
.form-row.inline { display: flex; gap: 10px; align-items: flex-end; }
.form-row.inline input { flex: 1; }

.btn {
  display: inline-block; padding: 12px 28px; background: var(--ef-white); color: var(--ef-black);
  border: 1px solid var(--ef-border); font-size: 14px; font-weight: 900; cursor: pointer; text-transform: uppercase;
  transition: background-color 0.1s, color 0.1s; border-radius: 0; text-decoration: none; letter-spacing: 1px;
}
.btn:hover { background: var(--ef-dark-gray); }
.btn:active { background: var(--ef-border); color: var(--ef-white); } 
.btn.primary { background: var(--ef-black); color: var(--ef-white); border-color: var(--ef-yellow); border-left: 6px solid var(--ef-yellow);}
.btn.primary:hover { background: var(--ef-yellow); color: var(--ef-black); border-color: var(--ef-border); }
.btn.danger { background: var(--ef-red); color: var(--ef-white); border-color: var(--ef-black); }
.btn.small { padding: 4px 12px; font-size: 12px; border-left: 1px solid var(--ef-border); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.countdown { margin-left: 10px; font-size: 13px; color: var(--ef-yellow); font-weight: bold; background: var(--ef-black); padding: 2px 6px; }

/* 消息提示 */
.msg { font-size: 13px; font-weight: bold; margin-top: 10px; min-height: 20px; }
.msg.error { color: var(--ef-red); }
.msg.ok { color: var(--ef-green); }

/* =========================================
   查询终端 & 档案专属样式 (Query & Dossier)
   ========================================= */
.search-console {
  background: var(--ef-black); padding: 8px 8px 8px 24px;
  display: flex; align-items: center; border: 2px solid var(--ef-black); margin-bottom: 10px;
}
.search-console .cmd-prompt { color: var(--ef-yellow); font-family: monospace; font-weight: 900; font-size: 16px; margin-right: 14px;}
.search-console input {
  background: transparent !important; border: none !important; color: var(--ef-white) !important;
  box-shadow: none !important; font-family: monospace; font-size: 16px; flex: 1; padding: 0 !important;
}
.search-console input::placeholder { color: #666; }
.search-console .btn { margin-left: 16px; }

.dossier-panel { border: 2px solid var(--ef-black); background: var(--ef-white); position: relative; margin-top: 30px; animation: mechSnapIn 0.3s cubic-bezier(0.1, 1.0, 0.0, 1.0) backwards; }
.dossier-header {
  background: var(--ef-black); color: var(--ef-white);
  padding: 12px 24px; font-family: monospace; font-weight: bold; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.dossier-header .status-indicator { color: var(--ef-yellow); }
.dossier-body { padding: 30px; position: relative; }
.dossier-body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px; z-index: 0;
}
.dossier-content { position: relative; z-index: 1; }

.icp-number, .icp-success {
  font-size: 36px; font-weight: 900; color: var(--ef-black);
  background: var(--ef-yellow); border: 2px solid var(--ef-black);
  padding: 16px; text-align: center; margin: 14px 0; letter-spacing: 2px;
}
.code-block {
  background: var(--ef-black); color: var(--ef-green); padding: 16px;
  font-size: 13px; font-family: monospace; border: 1px solid var(--ef-border);
  border-left: 4px solid var(--ef-yellow); margin: 10px 0 20px; white-space: pre-wrap; word-break: break-all;
}

.info-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; border-top: 2px solid var(--ef-border); border-bottom: 2px solid var(--ef-border); }
.info-table th, .info-table td { padding: 12px 14px; border-bottom: 1px solid var(--ef-dark-gray); text-align: left; background: rgba(255,255,255,0.8);}
.info-table th { background: var(--ef-gray); font-weight: bold; text-transform: uppercase; font-size: 12px; width: 140px;}
.info-table.wide tr:hover td { background: var(--ef-yellow); color: var(--ef-black); }

.badge { display: inline-block; padding: 2px 8px; font-size: 12px; font-weight: bold; border: 1px solid var(--ef-border); text-transform: uppercase; }
.badge.normal { background: var(--ef-yellow); color: var(--ef-black); }
.badge.abnormal { background: var(--ef-red); color: var(--ef-white); }
.badge.revoked { background: var(--ef-black); color: var(--ef-white); }

.stats { display: flex; gap: 0; border: 1px solid var(--ef-border); margin: 20px 0; }
.stat { flex: 1; text-align: center; padding: 20px 10px; border-right: 1px solid var(--ef-border); background: var(--ef-white); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: 32px; font-weight: 900; }
.stat span { font-size: 12px; color: #666; text-transform: uppercase; }
.stat.warn { background: var(--ef-yellow); }

.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.site-item {
  display: block; text-decoration: none; color: var(--ef-black);
  border: 1px solid var(--ef-border); padding: 14px 18px;
  margin-bottom: 12px; background: var(--ef-gray); transition: background-color 0.1s, border-color 0.1s; 
}
.site-item:hover { background: var(--ef-yellow); border-color: var(--ef-black); }
.site-item-name { font-weight: 900; text-transform: uppercase; margin-bottom: 6px; font-size: 16px; }
.site-item-intro { font-size: 13px; color: #555; }


/* =========================================
   移动端响应式适配 (Mobile Adaptation)
   ========================================= */
@media (max-width: 768px) {
  /* 导航栏移到底部 */
  .site-sidebar {
    top: auto; bottom: 0; left: 0;
    width: 100%; height: 60px;
    flex-direction: row;
    border-right: none; border-top: 1px solid var(--ef-border);
    z-index: 999;
  }
  .sidebar-logo {
    width: 70px; height: 100%;
    font-size: 20px; border-right: 1px solid var(--ef-border);
  }
  .nav-menu {
    margin-top: 0; flex-direction: row; height: 100%; width: calc(100% - 70px);
  }
  .nav-menu a {
    writing-mode: horizontal-tb;
    padding: 0; height: 100%; flex: 1;
    border-bottom: none; border-left: 1px solid var(--ef-dark-gray);
    font-size: 12px; letter-spacing: 1px;
  }
  .nav-menu a.active {
    border-bottom: none;
    box-shadow: inset 0 4px 0 var(--ef-black); /* 顶部活动指示 */
  }
  .sidebar-bottom { display: none; }

  /* 容器修正与留白 */
  .container {
    margin-left: 0;
    width: 100%; /* 修复这里：将宽度重置为撑满屏幕 */
    padding: 30px 20px 100px 20px; /* 底部留出导航栏空间 */
  }
  
  /* 缩小 CMYK 印刷条以防遮挡 */
  .cmyk-decor {
    transform: none; /* 清除缩放 */
  }
  .cmyk-col { width: 10px; }
  .cmyk-m { height: 12px; }
  .cmyk-c { height: 12px; }
  .cmyk-y { height: 72px; }

  /* 标题与卡片间距优化 */
  .page-header h2 { font-size: 26px; }
  .page-header .hint-en { display: none; }
  .card { padding: 20px; }

  /* Hero 黑卡切角与内边距压缩 */
  .hero {
    padding: 30px 20px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  }
  .hero h2 { font-size: 32px; letter-spacing: 1px; }
  .hero h2 .yellow-block { width: 12px; height: 28px; margin-right: 12px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero .desc { font-size: 13px; margin-bottom: 30px; }
  .hero-watermark { font-size: 120px; bottom: -10px; right: -10px; }

  /* 表单与输入重排 */
  .form-row.inline { flex-direction: column; align-items: stretch; }
  .form-row.inline .btn { margin-top: 10px; width: 100%; }
  
  /* 查询终端重排 */
  .search-console { flex-direction: column; align-items: stretch; padding: 16px; }
  .search-console .cmd-prompt { margin-bottom: 10px; }
  .search-console input { padding: 8px 0 !important; }
  .search-console .btn { margin-left: 0; margin-top: 14px; }
  
  /* 表格重构：手机端列表化展示 */
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td {
    display: block; width: 100%;
  }
  .info-table tr { margin-bottom: 14px; border: 1px solid var(--ef-border); }
  .info-table th { background: var(--ef-black); color: var(--ef-white); border-bottom: none; width: 100%; padding: 8px 12px; }
  .info-table td { border-bottom: none; padding: 12px; }
  
  /* 其他数据面板缩放 */
  .icp-number, .icp-success { font-size: 24px; padding: 10px; }
  .home-grid { grid-template-columns: 1fr; }
  .stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--ef-border); }
  .stat:last-child { border-bottom: none; }

  /* =========================================
     排行榜与 Modal 弹窗 Mobile 专项重构
     ========================================= */
  .card.rank-section {
    padding: 18px 14px;
  }

  .card-header-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .card-header-flex h3 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 16px;
  }

  .tab-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .rank-widget-btn {
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    font-size: 12px;
    display: block;
    margin-top: 2px;
    border-left: 1px solid var(--ef-border) !important;
    background: var(--ef-gray);
  }

  .rank-list {
    gap: 8px;
  }

  .rank-item {
    padding: 10px 10px;
    gap: 8px;
    align-items: center;
  }

  .rank-left {
    gap: 8px;
    flex: 1;
    min-width: 0;
    align-items: center;
  }

  .rank-badge {
    min-width: 44px;
    padding: 3px 4px;
    font-size: 11px;
    border-width: 1px;
    flex-shrink: 0;
  }

  .rank-site-info {
    flex: 1;
    min-width: 0;
  }

  .rank-site-name {
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .rank-site-sub {
    font-size: 11px;
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 4px;
    white-space: normal;
    word-break: break-all;
    line-height: 1.25;
  }

  .rank-right {
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    justify-content: center;
    min-width: 78px;
    flex-shrink: 0;
  }

  .rank-pv-box {
    width: 100%;
    min-width: 76px;
    padding: 3px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    text-align: right;
  }

  .rank-pv-num {
    font-size: 13px;
    line-height: 1;
  }

  .rank-pv-label {
    font-size: 9px;
    line-height: 1;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0.85;
  }

  /* Modal 弹窗移动端适配 */
  .modal-backdrop {
    padding: 12px;
  }

  .modal-card {
    box-shadow: 4px 4px 0 var(--ef-black);
    border-width: 2px;
    max-height: 85vh;
  }

  .modal-header {
    padding: 10px 14px;
  }

  .modal-header h3 {
    font-size: 14px;
  }

  .modal-body {
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .card.rank-section {
    padding: 14px 8px;
  }
  .rank-item {
    padding: 8px 6px;
    gap: 6px;
  }
  .rank-left {
    gap: 6px;
  }
  .rank-badge {
    min-width: 38px;
    padding: 2px 3px;
    font-size: 10px;
  }
  .rank-right {
    min-width: 70px;
  }
  .rank-pv-box {
    min-width: 68px;
    padding: 2px 4px;
  }
}

/* =========================================
   访问量排行榜与小组件样式 (Leaderboard & Widget)
   ========================================= */
.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ef-black);
  padding-bottom: 10px;
}

.tab-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn {
  background: var(--ef-white);
  color: var(--ef-black);
  border: 2px solid var(--ef-black);
  padding: 6px 14px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  background: var(--ef-gray);
}

.tab-btn.active {
  background: var(--ef-black);
  color: var(--ef-yellow);
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ef-white);
  border: 2px solid var(--ef-black);
  padding: 12px 16px;
  box-shadow: none !important;
  transform: none !important;
  transition: background 0.15s ease;
}

/* 仅黄色背景高亮，彻底消除上浮与阴影 */
.rank-item:hover, .rank-item:active {
  background: #fff100 !important;
  transform: none !important;
  box-shadow: none !important;
}

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

.rank-badge {
  font-size: 14px;
  font-weight: 900;
  padding: 4px 10px;
  border: 1px solid var(--ef-black);
  min-width: 54px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.rank-1 { background: #ffe600; color: #111; }
.rank-2 { background: #e2e8f0; color: #111; }
.rank-3 { background: #fed7aa; color: #111; }
.rank-other { background: var(--ef-gray); color: #555; }

.rank-site-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.rank-site-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--ef-black);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.rank-site-name:hover {
  color: #d97706;
}

.rank-site-sub {
  font-size: 12px;
  color: #666;
  font-family: monospace;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-icp {
  color: #0284c7;
  font-weight: bold;
}

.rank-icp-none {
  color: #999;
}

.rank-right {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.rank-pv-box {
  background: var(--ef-gray);
  border: 1px solid var(--ef-dark-gray);
  padding: 6px 12px;
  text-align: center;
  min-width: 80px;
}

.rank-pv-box.highlight {
  background: var(--ef-black);
  border-color: var(--ef-black);
}

.rank-pv-box.highlight .rank-pv-num {
  color: var(--ef-yellow);
}

.rank-pv-box.highlight .rank-pv-label {
  color: #aaa;
}

.rank-pv-num {
  font-size: 18px;
  font-weight: 900;
  font-family: monospace;
  color: var(--ef-black);
}

.rank-pv-label {
  font-size: 10px;
  color: #666;
}

/* Modal 弹窗 */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--ef-white);
  border: 3px solid var(--ef-black);
  box-shadow: 10px 10px 0 var(--ef-black);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  background: var(--ef-black);
  color: var(--ef-yellow);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--ef-yellow);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}