/* Override password-container width for wide demo layout */
.password-container { max-width: 1040px; }

h1 { text-align: center; }

.hw-techniques {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 10px;
}
.hw-technique-card {
    background: var(--bg-card);
    border: 1px solid rgba(51, 153, 255, 0.2);
    border-radius: 14px;
    padding: 20px 22px;
    transition: border-color 0.2s;
}
.hw-technique-card:hover { border-color: rgba(51, 153, 255, 0.45); }
.hw-technique-icon { font-size: 1.8rem; margin-bottom: 10px; }
.hw-technique-card h4 {
    margin: 0 0 8px; font-size: 0.97rem;
    background: linear-gradient(135deg, #3399ff, #66d9ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hw-technique-card p { margin: 0; font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.55; }

/* O.MG Demo – Cable Scene (full width top row) */
.omg-cable-scene {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(51,153,255,0.12);
    border-radius: 14px;
    padding: 28px 32px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
}
@media (max-width: 680px) { .omg-cable-scene { flex-wrap: wrap; row-gap: 16px; } }
.omg-scene-end {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    flex-shrink: 0; min-width: 90px; text-align: center;
}
.omg-scene-icon { font-size: 2.2rem; line-height: 1; }
.omg-scene-label { font-size: 0.75rem; color: rgba(255,255,255,0.65); font-weight: 600; }
.omg-scene-sub { font-size: 0.67rem; color: rgba(255,255,255,0.28); }

.omg-cable-wire-wrap {
    flex: 1; min-width: 90px; max-width: 200px;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.omg-cable-wire {
    height: 8px; width: 100%;
    background: linear-gradient(90deg, rgba(51,153,255,0.2), rgba(239,68,68,0.45) 50%, rgba(51,153,255,0.2));
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
}
.omg-cable-chip {
    background: #0d1117;
    border: 1px solid rgba(239,68,68,0.6);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em;
    color: #f87171; white-space: nowrap;
}
.omg-cable-note {
    font-size: 0.67rem; color: rgba(255,255,255,0.27); text-align: center;
}

.omg-scene-remote {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    border-left: 1px dashed rgba(239,68,68,0.22);
    padding-left: 20px; margin-left: 10px;
    flex-shrink: 0; text-align: center;
}
.omg-wifi-waves {
    display: flex; align-items: center;
    color: #f87171; font-size: 2rem; line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: -10px;
    opacity: 0.18; transition: opacity 0.4s;
    margin-bottom: 2px;
}
.omg-wifi-waves span:nth-child(1) { opacity: 0.3; }
.omg-wifi-waves span:nth-child(2) { opacity: 0.6; }
.omg-wifi-waves span:nth-child(3) { opacity: 1; }
.omg-wifi-waves.active { opacity: 1; animation: omg-pulse 0.9s ease-in-out infinite; }

/* O.MG Demo – Bottom Grid (attacker panel | terminal) */
.omg-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 14px;
}
@media (max-width: 768px) { .omg-bottom-grid { grid-template-columns: 1fr; } }

.omg-attacker-box {
    background: var(--bg-card);
    border: 1px solid rgba(51,153,255,0.15);
    border-radius: 14px;
    padding: 20px;
    display: flex; flex-direction: column;
}
.omg-attacker-box h4 {
    margin: 0 0 12px; font-size: 0.95rem;
    background: linear-gradient(135deg, #3399ff, #66d9ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.omg-cable-badge {
    display: inline-block; padding: 2px 10px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 700; margin-top: 6px;
}
.omg-cable-badge.charging { background: rgba(34,197,94,0.15); color: #86efac; }
.omg-cable-badge.active { background: rgba(239,68,68,0.2); color: #f87171; animation: omg-pulse 1s ease-in-out infinite; }
@keyframes omg-pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

.omg-attacker-panel {
    background: #0d1117;
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 10px; padding: 14px; margin-bottom: 12px;
}
.omg-attacker-label {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: #f87171; margin-bottom: 10px;
}
.omg-cmd-display {
    background: rgba(255,255,255,0.04); border-radius: 6px;
    padding: 8px 12px; font-family: 'Courier New', monospace;
    font-size: 0.8rem; color: #e2e8f0; margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}
.omg-trigger-btn {
    width: 100%; padding: 9px; border-radius: 7px; border: none;
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff; font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: opacity 0.2s;
}
.omg-trigger-btn:hover:not(:disabled) { opacity: 0.88; }
.omg-trigger-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Terminal */
.omg-terminal {
    background: #0d1117;
    border: 1px solid rgba(51,153,255,0.2);
    border-radius: 14px; overflow: hidden;
    font-family: 'Courier New', monospace;
}
.omg-terminal-bar {
    background: rgba(255,255,255,0.05); padding: 8px 14px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.omg-terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.omg-terminal-dot:nth-child(1) { background: #ef4444; }
.omg-terminal-dot:nth-child(2) { background: #f59e0b; }
.omg-terminal-dot:nth-child(3) { background: #22c55e; }
.omg-terminal-title { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-left: 4px; }
.omg-terminal-body {
    padding: 14px 16px; min-height: 200px; max-height: 260px;
    overflow-y: auto; font-size: 0.82rem; line-height: 1.7;
}
.omg-terminal-body::-webkit-scrollbar { width: 4px; }
.omg-terminal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.omg-line-prompt { color: #3399ff; }
.omg-line-cmd { color: #e2e8f0; }
.omg-line-output { color: rgba(255,255,255,0.45); }
.omg-line-danger { color: #f87171; }
.omg-line-success { color: #86efac; }
.omg-cursor {
    display: inline-block; width: 8px; height: 14px;
    background: #3399ff; vertical-align: middle;
    animation: omg-blink 0.8s step-end infinite;
}
@keyframes omg-blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.omg-result-banner {
    display: none; margin-top: 14px; padding: 12px 16px;
    border-radius: 10px; font-size: 0.88rem; font-weight: 600;
}
.omg-result-banner.danger { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.35); color: #f87171; }
.hw-demo-btns { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
