/* SECURITY PAGE OVERHAUL */
.sidebar { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 52px 28px 52px 0; border-right: 1px solid var(--bsub); }
.sb-link { display: block; padding: 8px 12px; color: var(--tx2); text-decoration: none; font-size: 14px; font-family: var(--fu, system-ui); font-weight: 500; border-radius: 6px; transition: all 150ms; margin-bottom: 4px; }
.sb-link:hover { color: var(--tx); background: var(--sunken); }
.sb-link.active { background: var(--as); color: var(--ad); font-weight: 600; }
.sb-cta-wrap { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--b); }
.sb-cta { background: var(--a); color: white; border-radius: var(--rm, 10px); width: 100%; padding: 12px 16px; font-family: var(--fu, system-ui); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background 150ms; }
.sb-cta:hover { background: var(--ad); }

.feat-stack { display: flex; flex-direction: column; }
.feat-card { background: var(--card); border: 1px solid var(--b); padding: 24px 28px; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; position: relative; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.feat-card + .feat-card { border-top: none; }
.feat-card:first-child { border-radius: 14px 14px 0 0; }
.feat-card:last-child { border-radius: 0 0 14px 14px; }
.feat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--a); opacity: 0; transition: opacity .15s; }
.feat-card:hover::before { opacity: 1; }
.feat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); z-index: 1; border-color: var(--bs); }
.feat-icon-wrap { width: 40px; height: 40px; border-radius: 10px; background: var(--as); border: 1px solid var(--am); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.fc-text h4 { font-family: var(--fu, system-ui); font-size: 15px; font-weight: 600; color: var(--tx); margin-bottom: 4px; }
.fc-text p { font-family: var(--fb, Georgia); font-size: 14px; color: var(--tx2); line-height: 1.6; }

.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.comp-card { background: var(--card); border: 1px solid var(--b); border-radius: 16px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); transition: all .2s; display: flex; flex-direction: column; gap: 8px; }
.comp-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }
.comp-title { display: flex; align-items: center; gap: 8px; font-family: var(--fu, system-ui); font-weight: 600; font-size: 14px; color: var(--tx); }
.comp-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 9999px; font-family: var(--fu, system-ui); font-size: 11px; font-weight: 600; width: fit-content; }
.status-live { background: #DCF0E4; color: #2D6E43; } 
.status-progress { background: var(--as); color: var(--ad); } 
.status-available { background: var(--sunken); color: var(--tx2); }

.dp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dp-card { background: var(--surface); border: 1px solid var(--b); border-radius: 16px; padding: 24px; }
.dp-icon { width: 44px; height: 44px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 16px; }
.dp-card h4 { font-family: var(--fd, serif); font-size: 19px; font-weight: 600; color: var(--tx); margin-bottom: 8px; line-height: 1.3; }
.dp-card p { font-family: var(--fb, Georgia); font-size: 14px; color: var(--tx2); line-height: 1.6; }

.sp-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--b); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.sp-table th { background: var(--surface); text-align: left; padding: 14px 20px; font-family: var(--fu, system-ui); font-size: 12px; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--b); }
.sp-table td { padding: 16px 20px; border-bottom: 1px solid var(--b); font-family: var(--fb, Georgia); font-size: 14px; color: var(--tx2); }
.sp-table tr:last-child td { border-bottom: none; }
.sp-table tr:hover { background: #fafafa; }
.sp-name { font-weight: 600; color: var(--tx); font-family: var(--fu, system-ui); display: flex; align-items: center; gap: 8px; }
.sp-tag { font-family: var(--fm, monospace); font-size: 10px; background: var(--sunken); color: var(--tx3); padding: 2px 7px; border-radius: 4px; }
.sp-location { display: inline-flex; align-items: center; gap: 5px; background: var(--surface); border: 1px solid var(--b); border-radius: 9999px; padding: 3px 10px; font-size: 12px; font-family: var(--fu, system-ui); }

.gs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gs-card { background: var(--surface); border: 1px solid var(--b); border-radius: 16px; padding: 20px; }
.gs-flag { font-size: 24px; margin-bottom: 8px; }
.gs-card h4 { font-family: var(--fu, system-ui); font-size: 14px; font-weight: 600; color: var(--tx); margin-bottom: 4px; }
.gs-card p { font-family: var(--fb, Georgia); font-size: 13px; color: var(--tx2); line-height: 1.5; }

.sec-title { font-family: var(--fd, serif); font-size: 28px; font-weight: 700; color: var(--tx); margin-bottom: 24px; }
.sec-div { height: 1px; background: var(--bsub); margin: 64px 0; }
.page-body { display: grid; grid-template-columns: 220px 1fr; gap: 64px; max-width: 1100px; margin: 0 auto; padding: 0 48px 100px; }
.content-area { padding-top: 52px; }
.sec-block { scroll-margin-top: 90px; }

@media (max-width: 1023px) {
  .page-body { grid-template-columns: 1fr; gap: 0; padding: 0 24px 60px; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--bsub); padding: 20px 0; display: flex; flex-wrap: wrap; overflow-x: auto; gap: 8px; }
  .sb-link { white-space: nowrap; margin: 0; border-radius: 9999px; background: var(--surface); border: 1px solid var(--b); padding: 7px 14px; }
  .sb-link.active { background: var(--a); color: white; }
  .comp-grid, .gs-grid { grid-template-columns: repeat(2, 1fr); }
  .dp-grid { grid-template-columns: 1fr; }
  .sb-cta-wrap { display: none; }
  .content-area { padding-top: 32px; }
}
@media (max-width: 767px) {
  .page-body { padding: 0 16px 60px; }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .gs-grid { grid-template-columns: 1fr; gap: 10px; }
  .dp-grid { grid-template-columns: 1fr; }
  .sp-table { display: block; overflow-x: auto; min-width: 520px; }
  .sec-title { font-size: 22px; }
  .sec-div { margin: 40px 0; }
  .feat-card { padding: 18px 20px; }
}
