/* ==========================================================================
   STRATEGY DESK & CANARY TRAP STYLES (Confidential Core Module)
   ========================================================================== */

/* Navigation item styling */
.nav-item.strategy-nav-item {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(79, 70, 229, 0.16));
    border: 1.5px solid rgba(124, 58, 237, 0.4);
    color: #5b21b6;
    font-weight: 700;
}
.nav-item.strategy-nav-item:hover,
.nav-item.strategy-nav-item.active {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #ffffff !important;
    border-color: #6d28d9;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.nav-item.strategy-nav-item .nav-sec-badge {
    background: #6d28d9;
    color: #ffffff;
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: 6px;
    letter-spacing: 0.5px;
}

/* Strategy Container */
.strategy-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 12px 60px;
}

/* Authentic Top Banner */
.strategy-header-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 10px 25px -5px rgba(30, 27, 75, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}
.strategy-header-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 220px; height: 100%;
    background: radial-gradient(circle at top right, rgba(238, 242, 255, 0.12), transparent 70%);
    pointer-events: none;
}
.strategy-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.22);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fecaca;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
}
.strategy-header-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.3;
}
.strategy-header-sub {
    font-size: 0.88rem;
    color: #c7d2fe;
    margin: 0 0 16px;
}
.strategy-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(199, 210, 254, 0.2);
    font-size: 0.82rem;
}
.strategy-pill {
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

/* Metric Cards Grid */
.strategy-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.strategy-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.strategy-stat-card.swing-highlight {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1.5px solid #f59e0b;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}
.strategy-stat-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
}
.strategy-stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
}
.strategy-stat-card.swing-highlight .strategy-stat-val {
    color: #b45309;
}

/* AUTHENTIC SUSPENSE NOTIFICATION CARD (Phase 1 Bait) */
.strategy-notice-card {
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #e0e7ff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(30, 27, 75, 0.08);
    margin-bottom: 30px;
    position: relative;
}
.strategy-notice-topbar {
    background: linear-gradient(135deg, #312e81, #4338ca);
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.strategy-notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.25);
    border: 1px solid #fbbf24;
    color: #fef3c7;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.4px;
}
.strategy-notice-content {
    padding: 24px 20px;
}
.strategy-notice-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
}
.strategy-notice-desc {
    font-size: 0.96rem;
    line-height: 1.65;
    color: #334155;
    margin: 0 0 20px;
}
.strategy-pending-status {
    background: #f8fafc;
    border: 1.5px dashed #94a3b8;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.pulse-indicator {
    width: 14px;
    height: 14px;
    background: #f59e0b;
    border-radius: 50%;
    margin-top: 4px;
    box-shadow: 0 0 0 rgba(245, 158, 11, 0.4);
    animation: pulseRing 1.8s infinite;
    flex-shrink: 0;
}
@keyframes pulseRing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.strategy-pending-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}
.strategy-notice-footer {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 12px 20px;
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* High Value Bait Section (Phase 2) */
.strategy-bait-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1.5px solid #cbd5e1;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}
.strategy-bait-header {
    background: #f8fafc;
    padding: 14px 18px;
    border-bottom: 1.5px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.strategy-bait-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.strategy-alert-tag {
    background: #dc2626;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    animation: pulseAlert 2s infinite;
}
@keyframes pulseAlert {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}
.strategy-bait-body {
    padding: 20px 18px;
}
.strategy-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 0.92rem;
}
.strategy-detail-table th {
    background: #f1f5f9;
    padding: 10px 12px;
    text-align: left;
    color: #475569;
    font-weight: 700;
    width: 32%;
    border-bottom: 1px solid #e2e8f0;
}
.strategy-detail-table td {
    padding: 10px 12px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}
.strategy-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    border-radius: 10px;
    padding: 14px 16px;
}
.strategy-action-text {
    flex: 1;
    min-width: 240px;
    font-size: 0.86rem;
    color: #831843;
}
.strategy-pdf-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
    transition: transform 0.15s, background 0.15s;
}
.strategy-pdf-btn:hover {
    background: #991b1b;
    transform: translateY(-1px);
}

/* ==========================================================================
   ADMIN COCKPIT STYLES (Leak Surveillance & Master Controls)
   ========================================================================== */
.admin-cockpit {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 16px;
    padding: 24px 20px;
    margin-top: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.admin-cockpit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid #334155;
    padding-bottom: 16px;
    margin-bottom: 20px;
}
.admin-cockpit-title {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #38bdf8;
}

/* Flashing Breach Banner */
.breach-alert-banner {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    border: 2px solid #ef4444;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    animation: alertGlow 1.5s infinite alternate;
}
@keyframes alertGlow {
    from { box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
    to { box-shadow: 0 0 24px rgba(239, 68, 68, 0.7); }
}
.breach-alert-icon {
    font-size: 2rem;
    line-height: 1;
}
.breach-alert-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fecaca;
    margin-bottom: 4px;
}
.breach-alert-desc {
    font-size: 0.88rem;
    color: #ffffff;
    line-height: 1.4;
}

/* Accounts Table in Cockpit */
.cockpit-table-container {
    overflow-x: auto;
    margin-bottom: 24px;
    border-radius: 10px;
    border: 1px solid #334155;
}
.cockpit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    text-align: left;
}
.cockpit-table th {
    background: #1e293b;
    padding: 12px 14px;
    color: #94a3b8;
    font-weight: 700;
    border-bottom: 1px solid #334155;
    white-space: nowrap;
}
.cockpit-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #1e293b;
    color: #e2e8f0;
    vertical-align: middle;
}
.cockpit-table tr:hover td {
    background: rgba(255,255,255,0.03);
}
.status-pill-safe {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-block;
}
.status-pill-compromised {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border: 1.5px solid #ef4444;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    display: inline-block;
    animation: blinkRed 1s infinite alternate;
}
@keyframes blinkRed {
    from { opacity: 0.8; }
    to { opacity: 1; filter: brightness(1.2); }
}

/* Scalable Add Account Form */
.add-account-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 24px;
}
.add-account-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 12px;
}
.add-account-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.add-account-input {
    background: #0f172a;
    border: 1px solid #475569;
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.88rem;
    flex: 1;
    min-width: 140px;
}
.add-account-input:focus {
    outline: none;
    border-color: #38bdf8;
}
.add-account-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.15s;
}
.add-account-btn:hover {
    background: #0369a1;
}

/* Audit Incident Timeline */
.audit-log-box {
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 16px;
    max-height: 280px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.82rem;
    color: #94a3b8;
}
.audit-entry {
    padding: 6px 0;
    border-bottom: 1px solid #1e293b;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.audit-entry.breach {
    color: #f87171;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.08);
}
.audit-entry-time {
    color: #64748b;
    min-width: 80px;
}

/* Mobile Responsiveness for Strategy Desk & Cockpit */
@media (max-width: 640px) {
    .strategy-container {
        padding: 12px 8px 40px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .strategy-header-card {
        padding: 16px 14px;
        border-radius: 12px;
    }
    .strategy-header-title {
        font-size: 1.2rem;
    }
    .strategy-header-sub {
        font-size: 0.8rem;
    }
    .strategy-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .strategy-notice-content {
        padding: 16px 14px;
    }
    .strategy-notice-heading {
        font-size: 1.05rem;
    }
    .strategy-pending-status {
        padding: 12px 14px;
    }
    .strategy-detail-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    .strategy-detail-table th, .strategy-detail-table td {
        padding: 8px 10px;
        font-size: 0.82rem;
    }
    .strategy-action-row {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    .strategy-action-text {
        min-width: 0;
        font-size: 0.82rem;
    }
    .strategy-pdf-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    .admin-cockpit {
        padding: 16px 12px;
        border-radius: 12px;
    }
    .admin-cockpit-title {
        font-size: 1.1rem;
    }
    .add-account-row {
        flex-direction: column;
        align-items: stretch;
    }
    .add-account-input {
        width: 100%;
        box-sizing: border-box;
    }
    .add-account-btn {
        width: 100%;
    }
}

/* ==========================================================================
   STRATEGY PORTAL STANDALONE MODE (Zero Pongal / Festival Content)
   ========================================================================== */
body.strategy-portal-mode {
    background: #090d16 !important;
    color: #f8fafc !important;
    overflow-x: hidden !important;
}

body.strategy-portal-mode .main-header,
body.strategy-portal-mode .header-toranam,
body.strategy-portal-mode .header-muggu-bg,
body.strategy-portal-mode .corner-muggu,
body.strategy-portal-mode .nav-bar,
body.strategy-portal-mode .toranam-garland,
body.strategy-portal-mode .festival-pulse-bar,
body.strategy-portal-mode footer,
body.strategy-portal-mode .main-footer,
body.strategy-portal-mode .footer-inner,
body.strategy-portal-mode .footer-brand-text,
body.strategy-portal-mode .footer-sub-text,
body.strategy-portal-mode .stealth-trigger,
body.strategy-portal-mode .celebration-overlay,
body.strategy-portal-mode #emergency-banner,
body.strategy-portal-mode .election-exclusive-footer,
body.strategy-portal-mode #family-portal-lock-overlay {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

body.strategy-portal-mode .app-layout {
    padding: 0 !important;
    max-width: 100% !important;
    background: transparent !important;
}

body.strategy-portal-mode .content-container {
    padding: 16px 10px 60px !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

body.strategy-portal-mode .tab-pane:not(#tab-content-strategy) {
    display: none !important;
}

body.strategy-portal-mode #tab-content-strategy {
    display: block !important;
}

/* ==========================================================================
   FAMILY PORTAL COMPLETE PRIVACY LOCK OVERLAY (Option 1 • PIN 4427)
   ========================================================================== */
.family-lock-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: radial-gradient(circle at center, #3b0712 0%, #1c0308 65%, #0a0103 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
}
.family-lock-overlay.hidden {
    display: none !important;
}
.family-lock-card {
    background: linear-gradient(135deg, #2b040c 0%, #460614 50%, #2b040c 100%);
    border: 2px solid #f59e0b;
    border-radius: 18px;
    padding: 32px 24px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.35);
    box-sizing: border-box;
    position: relative;
    animation: lockCardPop 0.3s ease-out;
}
@keyframes lockCardPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.family-lock-crest {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.5));
}
.family-lock-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #facc15;
    margin: 0 0 6px;
    line-height: 1.3;
    font-family: 'Noto Sans Telugu', sans-serif;
}
.family-lock-sub {
    font-size: 0.84rem;
    color: #fef08a;
    margin: 0 0 16px;
    letter-spacing: 0.5px;
}
.family-lock-msg {
    font-size: 0.86rem;
    line-height: 1.5;
    color: #fecaca;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 22px;
}
.family-lock-input-group {
    margin-bottom: 18px;
}
.family-lock-input {
    width: 100%;
    max-width: 260px;
    background: #0f0205;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 6px;
    text-align: center;
    padding: 10px 14px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}
.family-lock-input:focus {
    border-color: #facc15;
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.4);
}
.family-lock-error {
    color: #f87171;
    font-size: 0.8rem;
    font-weight: 700;
    min-height: 20px;
    margin-top: 8px;
}
.family-lock-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #450a0a;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    max-width: 260px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.family-lock-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.family-lock-btn:active {
    transform: translateY(0);
}

