.owner-body { min-height: 100vh; }
.owner-topbar { min-height: 66px; }
.owner-top-title { display: flex; align-items: center; gap: 9px; margin-inline: auto; color: var(--moss); font: 700 8px var(--pixel); text-transform: uppercase; }
.owner-indicator { width: 8px; height: 8px; background: var(--lime); box-shadow: 2px 2px 0 var(--ink); }
.owner-main { width: min(1450px, calc(100% - 36px)); margin: 0 auto; padding-block: 38px 70px; }
.hidden { display: none !important; }
.owner-auth { position: relative; width: min(100%, 450px); margin: 50px auto 70px; padding: 42px clamp(23px, 6vw, 52px); background: var(--lcd-light); box-shadow: 7px 7px 0 var(--ink); }
.owner-auth::before { position: absolute; inset: 9px; border: 1px dashed rgba(7,24,33,.38); content: ""; pointer-events: none; }
.auth-emblem { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 25px; background: var(--ink); color: var(--lcd); box-shadow: 4px 4px 0 var(--lime); font: 700 18px var(--pixel); }
.owner-auth .eyebrow { position: relative; font-size: 7px; }
.owner-auth h1 { position: relative; margin: 18px 0 9px; font: 400 17px/1.8 var(--pixel); letter-spacing: -.08em; }
.auth-subtitle { position: relative; margin-bottom: 24px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.owner-form { position: relative; display: grid; gap: 14px; }
.owner-form label, .settings-card label, .vpn-form label { display: grid; gap: 7px; color: var(--ink); font-size: 10px; font-weight: 700; }
.owner-form input, .settings-card input, .vpn-form input, .ip-field select, .add-link-row input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid rgba(7,24,33,.58); border-radius: 0; outline: none; background: #f8ffe9; color: var(--ink); font: 11px var(--mono); box-shadow: inset 2px 2px 0 rgba(7,24,33,.05); }
.owner-form input:focus, .settings-card input:focus, .vpn-form input:focus, .ip-field select:focus, .add-link-row input:focus { border-color: var(--moss); outline: 2px solid rgba(134,192,108,.5); outline-offset: 1px; }
.owner-form input::placeholder, .settings-card input::placeholder, .vpn-form input::placeholder, .add-link-row input::placeholder { color: #8ca08d; }
.owner-form .pixel-button { justify-self: start; margin-top: 7px; }
.setup-note { padding: 10px; border-left: 3px solid var(--lime); background: rgba(134,192,108,.18); color: var(--muted); font-size: 10px; line-height: 1.8; }
.form-hint { color: #69806e; font-size: 9px; line-height: 1.6; }
.auth-error, .form-result { min-height: 18px; margin: 10px 0 0; color: var(--moss); font-size: 10px; line-height: 1.6; }
.auth-error, .form-result.error, .vpn-result.error { color: #a3382f; }
.dashboard { display: grid; grid-template-columns: 235px minmax(0, 1fr); align-items: start; gap: 30px; }
.owner-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; min-height: 530px; border: 2px solid var(--ink); background: var(--ink); color: var(--lcd); box-shadow: 5px 5px 0 var(--moss); }
.sidebar-profile { display: flex; gap: 11px; align-items: center; padding: 20px 17px; border-bottom: 1px solid rgba(224,248,207,.22); }
.profile-pixel { display: grid; place-items: center; width: 37px; height: 37px; background: var(--lime); color: var(--ink); font: 700 14px var(--pixel); }
.sidebar-profile > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sidebar-profile small { color: #9ab88b; font: 700 6px var(--pixel); }
.sidebar-profile b { max-width: 145px; overflow: hidden; color: var(--lcd); font-size: 11px; text-overflow: ellipsis; }
.owner-nav { display: grid; gap: 5px; padding: 17px 10px; }
.owner-tab { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 7px 10px; border: 1px solid transparent; background: transparent; color: #b9d7a3; text-align: start; font-size: 9px; font-weight: 700; transition: background .2s, color .2s; }
.owner-tab:hover { background: rgba(224,248,207,.08); color: var(--lcd); }
.owner-tab.active { border-color: #73946a; background: #244d3d; color: var(--lcd); box-shadow: inset 3px 0 0 var(--lime); }
.nav-icon { display: grid; place-items: center; width: 22px; height: 22px; color: var(--lime); font-size: 17px; }
.sidebar-footer { display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding: 14px 16px; border-top: 1px solid rgba(224,248,207,.22); }
.sidebar-footer span { display: flex; align-items: center; gap: 7px; color: #9ab88b; font-size: 8px; }
.sidebar-footer > span i { width: 6px; height: 6px; border-radius: 50%; background: #9adc83; box-shadow: 0 0 7px #9adc83; }
.sidebar-footer button { align-self: start; padding: 0; border: 0; background: transparent; color: var(--lcd); font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.owner-content { min-width: 0; }
.owner-panel { display: none; animation: arrive .2s both; }
.owner-panel.active { display: block; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.panel-heading .eyebrow { font-size: 7px; }
.panel-heading h1 { margin: 12px 0 0; font: 400 clamp(17px, 2vw, 23px)/1.8 var(--pixel); letter-spacing: -.08em; }
.refresh-button { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 10px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 9px; font-weight: 700; }
.refresh-button:hover { background: var(--ink); color: var(--lcd); }
.refresh-button span:first-child { font-size: 15px; }
.attack-toolbar { display: flex; align-items: end; gap: 12px; margin-bottom: 17px; padding: 15px; border: 1px solid var(--ink); background: rgba(243,255,229,.55); }
.ip-field { display: grid; flex: 1; gap: 6px; max-width: 260px; color: var(--muted); font-size: 8px; font-weight: 700; }
.ip-field select { min-height: 37px; padding: 8px; font-size: 10px; }
.dark-outline { min-height: 37px; padding: 5px 11px; border-width: 1px; background: transparent; color: var(--ink); box-shadow: none; font: 700 8px var(--mono); }
.dark-outline:hover { background: var(--ink); color: var(--lcd); box-shadow: 3px 3px 0 var(--moss); }
.provider-badge { display: flex; flex-direction: column; gap: 6px; min-width: 104px; margin-inline-start: auto; padding: 7px 10px; border: 1px dashed var(--moss); }
.provider-badge small { color: var(--muted); font: 700 6px var(--pixel); }
.provider-badge b { font: 700 9px var(--mono); }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; margin-bottom: 12px; }
.summary-card { display: flex; flex-direction: column; min-height: 107px; padding: 14px; border: 1px solid var(--ink); background: var(--lcd-light); box-shadow: 3px 3px 0 rgba(7,24,33,.2); }
.summary-card small { color: var(--moss); font: 700 7px var(--pixel); line-height: 1.7; }
.summary-card strong { margin: 11px 0 6px; font: 700 18px var(--pixel); letter-spacing: -.07em; }
.summary-card span { margin-top: auto; color: var(--muted); font-size: 8px; }
.data-note { margin: 0 0 18px; padding: 10px 12px; border-left: 3px solid var(--lime); background: rgba(134,192,108,.17); color: var(--muted); font-size: 9px; line-height: 1.7; }
.data-card { margin-bottom: 18px; border: 1px solid var(--ink); background: var(--lcd-light); box-shadow: 3px 3px 0 rgba(7,24,33,.18); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.card-heading h2 { margin: 0 0 5px; font: 700 9px/1.7 var(--pixel); letter-spacing: -.04em; }
.card-heading p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.65; }
.result-count { display: grid; place-items: center; min-width: 27px; height: 27px; border: 1px solid var(--ink); font: 700 8px var(--pixel); }
.table-scroll { overflow-x: auto; }
.attack-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.attack-table th { padding: 11px 12px; background: rgba(134,192,108,.23); color: var(--moss); text-align: left; white-space: nowrap; font: 700 6px var(--pixel); }
.attack-table td { padding: 12px; border-top: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.attack-table tr[data-attack-index] { cursor: pointer; transition: background .15s; }
.attack-table tr[data-attack-index]:hover { background: rgba(134,192,108,.15); }
.attack-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.empty-cell { padding: 22px !important; color: var(--muted) !important; text-align: center; line-height: 1.7; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid var(--ink); white-space: nowrap; font-size: 7px; font-weight: 700; }
.status-pill::before { width: 6px; height: 6px; background: currentColor; content: ""; }
.status-mitigated { color: #17683c; }
.status-active { color: #8b4b00; }
.status-ended { color: #50695a; }
.status-unknown { color: #6b6b54; }
.attack-detail { padding: 17px; border-top: 1px dashed var(--moss); background: rgba(134,192,108,.12); }
.attack-detail h3 { margin: 0 0 13px; font: 700 9px var(--pixel); }
.detail-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.detail-item { padding: 10px; border: 1px solid var(--line); background: var(--lcd-light); }
.detail-item small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 7px; font-weight: 700; text-transform: uppercase; }
.detail-item b { font-size: 9px; overflow-wrap: anywhere; }
.notification-card .card-heading { align-items: start; }
.poll-indicator { display: flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; font: 700 6px var(--pixel); }
.poll-indicator i { width: 6px; height: 6px; background: var(--lime); animation: blink 1s infinite; }
.notification-list { max-height: 270px; overflow: auto; padding: 4px 16px; }
.notification-item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-icon { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--ink); background: var(--leaf); font-size: 11px; }
.notification-copy { min-width: 0; }
.notification-copy b { display: block; font-size: 9px; }
.notification-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.notification-time { color: var(--muted); white-space: nowrap; font-size: 7px; }
.integration-warning { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #9f6a00; background: #fff5d6; color: #664400; font-size: 9px; line-height: 1.7; }
.vpn-card, .settings-card { padding: 18px; }
.vpn-intro { display: flex; align-items: start; gap: 15px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.vpn-emblem { display: grid; flex: 0 0 43px; place-items: center; width: 43px; height: 43px; border: 1px solid var(--ink); background: var(--leaf); font-size: 21px; }
.vpn-intro h2, .custom-link-builder h3 { margin: 2px 0 7px; font: 700 9px/1.8 var(--pixel); }
.vpn-intro p { max-width: 680px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.vpn-form { display: grid; grid-template-columns: minmax(200px, 1fr) auto; align-items: end; gap: 14px; padding-block: 20px 14px; }
.vpn-form label small { color: var(--muted); font-size: 8px; font-weight: 400; }
.vpn-form .pixel-button { font-size: 8px; }
.vpn-result { min-height: 20px; color: var(--moss); font-size: 9px; line-height: 1.7; }
.vpn-requirements { display: flex; gap: 9px; align-items: start; margin-top: 10px; padding: 12px; background: rgba(134,192,108,.19); color: var(--moss); }
.vpn-requirements p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.settings-card .card-heading { margin: -18px -18px 18px; }
.settings-card > label { margin-bottom: 16px; }
.settings-card label small { color: var(--muted); font-size: 8px; font-weight: 400; line-height: 1.65; }
.settings-card .card-heading h2 { font-size: 9px; }
.lock-badge { display: flex; align-items: center; gap: 5px; color: var(--moss); white-space: nowrap; font: 700 6px var(--pixel); }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 17px; }
.form-actions .pixel-button { min-height: 39px; font-size: 7px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.custom-link-builder { margin: 20px 0 15px; padding: 15px; border: 1px dashed var(--moss); }
.custom-link-builder h3 { margin: 0 0 13px; font-size: 8px; }
.custom-link-list { display: grid; gap: 8px; margin-bottom: 10px; }
.custom-link-entry { display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 9px; font-size: 9px; }
.custom-link-entry a { color: var(--moss); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remove-link { width: 27px; height: 27px; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.remove-link:hover { background: var(--ink); color: var(--lcd); }
.add-link-row { display: grid; grid-template-columns: 1fr 1.4fr 32px; gap: 7px; }
.add-link-row input { min-height: 35px; padding: 8px; font-size: 9px; }
.small-add { border: 1px solid var(--ink); background: var(--ink); color: var(--lcd); font-size: 18px; }
.account-form > label { max-width: 480px; }
.account-form .settings-grid { max-width: 740px; margin-top: 15px; }
.security-footnote { display: flex; gap: 10px; align-items: start; padding: 12px 14px; border-left: 3px solid var(--lime); background: rgba(134,192,108,.15); }
.security-footnote p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.8; }
.security-footnote > span { color: var(--lime); }
[dir="rtl"] .owner-top-title, [dir="rtl"] .owner-auth .eyebrow, [dir="rtl"] .panel-heading .eyebrow { font-family: var(--arabic), var(--mono); letter-spacing: 0; }
[dir="rtl"] .owner-auth h1, [dir="rtl"] .panel-heading h1 { font-family: var(--arabic), var(--mono); letter-spacing: 0; font-weight: 800; }
[dir="rtl"] .owner-form label, [dir="rtl"] .settings-card label, [dir="rtl"] .vpn-form label { text-align: right; }
[dir="rtl"] .owner-tab { text-align: right; }
[dir="rtl"] .owner-tab.active { box-shadow: inset -3px 0 0 var(--lime); }
[dir="rtl"] .attack-table th, [dir="rtl"] .attack-table td { text-align: right; }
[dir="rtl"] .setup-note, [dir="rtl"] .data-note, [dir="rtl"] .security-footnote { border-right: 3px solid var(--lime); border-left: 0; }
[dir="rtl"] .card-heading h2, [dir="rtl"] .vpn-intro h2, [dir="rtl"] .custom-link-builder h3, [dir="rtl"] .summary-card small { font-family: var(--arabic), var(--mono); letter-spacing: 0; }
[dir="rtl"] .status-pill, [dir="rtl"] .provider-badge, [dir="rtl"] .game-stats, [dir="rtl"] .notification-time { direction: ltr; }
[dir="rtl"] .notification-copy { text-align: right; }
@media (max-width: 1000px) {
  .dashboard { grid-template-columns: 190px minmax(0,1fr); gap: 18px; }
  .owner-main { width: calc(100% - 26px); }
  .owner-tab { gap: 7px; padding-inline: 7px; font-size: 8px; }
  .summary-card { padding: 11px; }
  .summary-card strong { font-size: 15px; }
}
@media (max-width: 760px) {
  .owner-topbar { padding-inline: 12px; }
  .owner-top-title { display: none; }
  .owner-main { width: calc(100% - 24px); padding-block: 20px 45px; }
  .dashboard { grid-template-columns: 1fr; gap: 14px; }
  .owner-sidebar { position: static; min-height: 0; }
  .sidebar-profile { padding: 11px 13px; }
  .profile-pixel { width: 30px; height: 30px; font-size: 11px; }
  .owner-nav { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 7px; }
  .owner-tab { flex-direction: column; justify-content: center; gap: 3px; min-height: 58px; padding: 4px; text-align: center; font-size: 7px; }
  .owner-tab.active { box-shadow: inset 0 -3px 0 var(--lime); }
  [dir="rtl"] .owner-tab.active { box-shadow: inset 0 -3px 0 var(--lime); }
  .nav-icon { width: auto; height: 20px; font-size: 15px; }
  .sidebar-footer { flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; }
  .sidebar-footer button { font-size: 8px; }
  .panel-heading { align-items: center; margin-bottom: 16px; }
  .panel-heading h1 { font-size: 16px; }
  .panel-heading .eyebrow { font-size: 6px; }
  .summary-grid { gap: 7px; }
  .summary-card { min-height: 88px; padding: 9px; }
  .summary-card small { font-size: 5px; }
  .summary-card strong { margin-block: 8px 5px; font-size: 11px; }
  .summary-card span { font-size: 7px; line-height: 1.45; }
  .attack-toolbar { align-items: end; flex-wrap: wrap; gap: 8px; padding: 10px; }
  .ip-field { max-width: unset; min-width: 170px; }
  .provider-badge { min-width: 88px; }
  .table-scroll { overflow: visible; }
  .attack-table, .attack-table tbody, .attack-table tr, .attack-table td { display: block; width: 100%; }
  .attack-table thead { display: none; }
  .attack-table tr[data-attack-index] { position: relative; padding: 9px 12px; border-top: 1px solid var(--line); }
  .attack-table tr[data-attack-index]:hover { background: rgba(134,192,108,.15); }
  .attack-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
  .attack-table td::before { content: attr(data-label); color: var(--muted); text-align: left; font-size: 7px; font-weight: 700; }
  .attack-table td:first-child { padding-top: 4px; }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .notification-card .card-heading { align-items: start; }
  .poll-indicator { font-size: 5px; }
  .vpn-form { grid-template-columns: 1fr; }
  .vpn-form .pixel-button { justify-self: start; }
  .settings-grid { grid-template-columns: 1fr; gap: 12px; }
  .add-link-row { grid-template-columns: 1fr 1.3fr 31px; }
  .custom-link-entry { grid-template-columns: 1fr 1.25fr auto; }
}
@media (max-width: 430px) {
  .owner-auth { margin-top: 28px; padding: 35px 22px; }
  .owner-auth h1 { font-size: 14px; }
  .owner-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .owner-tab { flex-direction: row; justify-content: start; min-height: 43px; padding: 6px 8px; text-align: start; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card { min-height: 76px; }
  .summary-card strong { font-size: 15px; }
  .summary-card small { font-size: 6px; }
  .card-heading { padding: 12px; }
  .card-heading h2 { font-size: 8px; }
  .card-heading p { font-size: 8px; }
  .notification-item { grid-template-columns: 24px 1fr; }
  .notification-time { grid-column: 2; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .pixel-button { justify-content: center; }
  .attack-toolbar .dark-outline { min-width: 100%; }
  .provider-badge { min-width: 82px; }
  .custom-link-entry { grid-template-columns: 1fr auto; }
  .custom-link-entry a { grid-column: 1; }
  .custom-link-entry .remove-link { grid-column: 2; grid-row: 1 / span 2; }
}


/* JIElIl mobile owner form visibility fix */
@media (max-width: 680px) {
  .owner-main {
    width: calc(100% - 20px);
  }

  .owner-auth {
    display: block;
    width: 100%;
    max-width: 450px;
    margin: 24px auto 48px;
    padding: 30px 18px;
  }

  .owner-form {
    display: grid;
    gap: 14px;
  }

  .owner-form label {
    font-size: 12px;
  }

  .owner-form input {
    min-height: 48px;
    font-size: 16px;
  }

  .owner-form .pixel-button {
    width: 100%;
    min-height: 48px;
    justify-self: stretch;
  }
}

/* JIElIl API-only summary */
.summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (max-width:430px) { .summary-grid { grid-template-columns:1fr; } }
