:root {
    --bg-dark: #0a0f1a;
    --bg-darker: #050811;
    --bg-card: #111827;
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-glow: rgba(14, 165, 233, 0.15);
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #8b5cf6;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border: #374151;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --critical: #ef4444;
    --high: #f59e0b;
    --medium: #3b82f6;
    --low: #10b981;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-lg: 16px;
    --game-bg: linear-gradient(135deg, #0a0f1a 0%, #111827 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--game-bg);
    min-height: 100vh;
    overflow-x: hidden;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

body::-webkit-scrollbar {
    display: none;
}

.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Game Navigation */
.game-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* Navigation Button */
.game-nav-btn {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Icon */
.game-nav-btn i {
    font-size: 0.85rem;
}

/* Hover */
.game-nav-btn:hover {
    background: rgba(14, 165, 233, 0.16);
    transform: translateY(-1px);
}

/* Active State */
.game-nav-btn.active {
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
}

/* Game Content */
.game-content {
    display: none;
    animation: fadeIn 0.5s ease;
    position: relative;
}

.game-content.active {
    display: block;
}

.demo-presentation {
    display: none;
    position: absolute;
    max-width: 350px;
    padding: 14px 16px;
    border-radius: 14px 4px 28px 14px;
    background: linear-gradient(135deg, #02486c, #014568);
    border-left: 3px solid #0ea5e9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 9999999999;
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    transition: opacity 1s ease, transform 1s ease;
    flex-direction: column;
}

/* Visible state */
.demo-presentation.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Title */
.demo-presentation h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Body text */
.demo-presentation p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.95);
}
.demo-top-right { top: 1%; right: 1%; }
.demo-top-left { top: 1%; left: 1%; }
.demo-bottom-right { bottom: 1%; right: 1%; }
.demo-center-left { top: 40%; left: 1%; }


/* Introduction Screen */
.intro-screen {
    text-align: center;
    padding: 40px 20px;
}

.intro-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    background: linear-gradient(to right, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.intro-description-setup {
    font-size: 1rem;
    color: var(--text-primary);
    max-width: 1000px;
    line-height: 1.8;
    text-align: left;
}

.intro-description-setup.action {
    /*font-size: 0.9rem;*/
    color: #a4cefe;
    margin-top: 4px;
}

.intro-description-setup.compromise {
    /*font-size: 0.9rem;*/
    color: #35ffbc;
    margin-top: 4px;
}


.start-game-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    margin-top: 15px;
}

.start-game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

/* Scanner Setup Specific Styles */
.scanner-setup-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .scanner-setup-container {
        grid-template-columns: 1fr;
    }
}

.policy-source-card, .policy-target-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(14, 165, 233, 0.2);
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.policy-source-card h3, .policy-target-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    position: relative;
}

.policy-item {
    background: var(--bg-card-light);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    cursor: grab;
    transition: all 0.3s;
    user-select: none;
    position: relative;
    font-size: 0.9rem;
}

.policy-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.policy-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.policy-item.dropped {
    opacity: 0.5;
    cursor: default;
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--secondary);
}

.policy-item-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    margin-right: 10px;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
}

.policy-drop-area {
    border: 3px dashed var(--border);
    border-radius: var(--radius);
    padding: 15px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: all 0.3s;
}

.policy-drop-area.drag-over {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.drop-instructions {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
}

.policy-icon-large {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.dropped-policies {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.policy-message {
    background: rgba(14, 165, 233, 0.1);
    border-left: 3px solid var(--primary);
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 4px;
    animation: messageAppear 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
    text-align: left;
}

@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Policy Messages Display */
.policy-messages-container {
    background: rgba(3, 30, 42, 1);
    border-radius: var(--radius);
    padding: 15px 20px;
    position: absolute;
    top: 1%;
    left: 1%;
    z-index: 999999;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 600;
}

.message-list {
    list-style: none;
}

.message-item {
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--text-secondary);
    animation: messageAppear 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
    font-size: 0.8rem;
}

/* Responsive Design for Iframe */
@media (max-width: 768px) {
    .scanner-setup-container {
        gap: 20px;
    }
    
    .policy-source-card, .policy-target-card {
        padding: 20px;
        min-height: 350px;
    }
    
    .policy-item {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .policy-drop-area {
        padding: 20px;
        min-height: 250px;
    }
    
    .policy-icon-large {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .policy-source-card h3, .policy-target-card h3 {
        font-size: 1.2rem;
    }
    
    .policy-item-number {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.8rem;
    }
    
    .policy-drop-area {
        padding: 15px;
        min-height: 200px;
    }
    
    .drop-instructions {
        font-size: 0.9rem;
    }
}

/* Game Dashboard */
.game-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .game-dashboard {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 25px 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.dashboard-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card h3 i {
    color: var(--primary);
    font-size: 1.4rem;
}

.policy-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    font-weight: bold;
}

.policy-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Employee Profiles */
.process-policies {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 20px;
    min-height: 200px;
}

.employee-profiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
    margin-bottom: 20px;
    min-height: 160px;
}

/* Card */
.employee-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(16, 185, 129, 0.04));
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid rgba(14, 165, 233, 0.18);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    animation: cardAppear 0.4s ease forwards;
}

.employee-card.disabled {
    pointer-events: none;
    opacity: 0.45;
    cursor: not-allowed;
}

.employee-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.employee-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 6px 14px rgba(14, 165, 233, 0.18);
}

/* Avatar */
.employee-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
}

/* Name & role */
.employee-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
    line-height: 1.2;
}

.employee-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* Risk meter */
.employee-risk-meter {
    height: 6px;
    background: rgba(239, 68, 68, 0.18);
    border-radius: 3px;
    margin-bottom: 6px;
    overflow: hidden;
}

.employee-risk-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Risk label */
.employee-risk-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Archetype badge */
.employee-archetype {
    display: inline-block;
    background: rgba(139, 92, 246, 0.18);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
}



/* Scan Status Cards */
.scan-status-container {
    position: relative;
    height: 150px;
}

.scan-status-card {
    position: absolute;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 15px 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(14, 165, 233, 0.3);
    max-width: 300px;
    z-index: 10;
    opacity: 0;
    transform: scale(0.9);
    animation: statusCardAppear 0.5s ease forwards;
}

.scan-status-card i {
    color: var(--primary);
    margin-right: 5px;
}

.scan-status-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.scan-status-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Scan Complete Message */
.scan-complete-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid var(--primary);
    border-radius: calc(var(--radius) - 2px);
    padding: 14px 18px;
    text-align: center;
    z-index: 20;
    backdrop-filter: blur(8px);
    display: none;
    max-width: 500px;
}

.scan-complete-message.show {
    display: block;
    animation: fadeInMessage 1s ease;
}
@keyframes fadeInMessage {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Icon */
.scan-complete-message i {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

/* Title */
.scan-complete-message h4 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
}

/* Description */
.scan-complete-message p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.scan-complete-message p b {
    font-weight: 600;
    color: var(--text-primary);
}


/* Vulnerability Scanner Visualization */
.scanner-visualization {
    height: 150px;
    position: relative;
    background: rgba(10, 15, 26, 0.5);
    border-radius: var(--radius);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scan 3s linear infinite;
    box-shadow: 0 0 20px var(--primary);
}

.scanner-complete .scan-line {
    animation: none;
    background: var(--success);
    opacity: 0.5;
}

.scan-point {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--secondary);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--secondary);
    animation: pointPulse 2s infinite;
}

.scanner-complete .scan-point {
    animation: none;
    background: var(--success);
}

/* Game Controls */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
    position: relative;
}

.game-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.game-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-btn.secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* Results Screen */
.results-screen {
    text-align: left;
    padding: 0 20px;
}

.results-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    background: linear-gradient(to right, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.metric-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(16, 185, 129, 0.05));
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.metric-value.risk {
    color: #ef4444;
}

.metric-value.improvement {
    color: #10b981;
}

.metric-value.neutral {
    color: var(--primary);
}

.metric-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Company Findings */
.company-findings {
    display: grid; /* required */
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0 0;
}
@media (max-width: 900px) { 
    .company-findings {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
.findings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(14, 165, 233, 0.05);
    border-radius: var(--radius);
}

.priority-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-options {
    display: flex;
    gap: 10px;
}
@media (max-width: 700px) { 
    .filter-options {
        flex-wrap: wrap;
    }
}

.filter-label, .results-count {
    font-size: 0.9rem;
}
.filter-option {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.filter-option.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.priority-dot.critical {
    background: var(--critical);
}

.priority-dot.high {
    background: var(--high);
}

.priority-dot.medium {
    background: var(--medium);
}

.priority-dot.low {
    background: var(--low);
}

.recommendation-company {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--high);
    position: relative;
    overflow: hidden;
}

.recommendation-company.critical {
    border-left-color: var(--critical);
}

.recommendation-company.high {
    border-left-color: var(--high);
}

.recommendation-company.medium {
    border-left-color: var(--medium);
}
.recommendation-company.medium-priority {
    border-left-color: var(--medium);
}
.recommendation-company.low {
    border-left-color: var(--low);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-badge.critical {
    background: rgba(239, 68, 68, 0.2);
    color: var(--critical);
}

.card-badge.high {
    background: rgba(245, 158, 11, 0.2);
    color: var(--high);
}

.card-badge.medium {
    background: rgba(59, 130, 246, 0.2);
    color: var(--medium);
}

.card-badge.low {
    background: rgba(16, 185, 129, 0.2);
    color: var(--low);
}

.recommendation-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.title-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.title-icon.critical {
    background: rgba(239, 68, 68, 0.2);
    color: var(--critical);
}

.title-icon.high {
    background: rgba(245, 158, 11, 0.2);
    color: var(--high);
}

.title-icon.medium {
    background: rgba(59, 130, 246, 0.2);
    color: var(--medium);
}

.title-icon.low {
    background: rgba(16, 185, 129, 0.2);
    color: var(--low);
}

.title-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.recommendation-impact {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.recommendation-desc {
    margin-bottom: 10px;
    line-height: 1.6;
    padding: 15px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.recommendation-desc.critical {
    border-left: 3px solid var(--critical);
}

.recommendation-desc.high {
    border-left: 3px solid var(--high);
}

.recommendation-desc.medium {
    border-left: 3px solid var(--medium);
}

.recommendation-desc.low {
    border-left: 3px solid var(--low);
}

.recommendation-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.meta-item i {
    color: var(--primary);
}

.priority {
    font-weight: 600;
}

.priority.critical {
    color: var(--critical);
}

.priority.high {
    color: var(--high);
}

.priority.medium {
    color: var(--medium);
}

.priority.low {
    color: var(--low);
}

.result-card-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(14, 165, 233, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.toggle-container.small {
    padding: 10px 13px;
}

.toggle-container.active {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
}

.toggle-label-recom {
    font-size: 0.9rem;
    flex: 1;
}

.toggle-label-recom.small {
    font-size: 0.8rem;
}

.toggle-switch-company,
.toggle-switch-user {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch-company input, 
.toggle-switch-user input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-recom {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151;
    transition: .4s;
    border-radius: 24px;
}

.slider-recom:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-recom {
    background-color: var(--primary);
}

input:checked + .slider-recom:before {
    transform: translateX(26px);
}



/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 30px;
    max-width: 52vw;
    width: 100%;
    max-height: 95vh;
    position: relative;
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

@media (max-width: 760px) { 
    .modal-content {
        max-width: 70vw;
    } 
}

@media (max-width: 480px) { 
    .modal-content {
        max-width: 90vw;
        max-height: 90vh;
    } 
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background-color: var(--border);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    padding-bottom: 10px;
}

.modal-tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: all 0.3s;
    position: relative;
}

.modal-tab-btn.active {
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
}

.modal-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.modal-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.modal-tab-content.active {
    display: block;
}


/* ================================
   User Detail Header (Compact)
================================ */

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Avatar */
.user-avatar-detail {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
}

/* Email */
.user-email {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

/* Risk Score */
.user-risk-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.risk-meter {
    width: 110px;
    height: 6px;
    background: rgba(239, 68, 68, 0.18);
    border-radius: 3px;
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    transition: width 0.4s ease;
}

.risk-fill.high-risk {
    background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.risk-fill.medium-risk {
    background: linear-gradient(90deg, #f59e0b, #3b82f6);
}

.risk-fill.low-risk {
    background: linear-gradient(90deg, #3b82f6, #10b981);
}

.risk-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Risk Indicators */
.risk-indicators {
    display: flex;
    gap: 6px;
}

.risk-tag {
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 600;
}

.risk-tag.critical {
    background: rgba(239, 68, 68, 0.18);
    color: var(--critical);
}

.risk-tag.high {
    background: rgba(245, 158, 11, 0.18);
    color: var(--high);
}

.risk-tag.medium {
    background: rgba(59, 130, 246, 0.18);
    color: var(--medium);
}

.risk-tag.low {
    background: rgba(16, 185, 129, 0.18);
    color: var(--low);
}

/* ================================
   Vulnerability Summary (Compact)
================================ */

.vulnerability-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin: 16px 0;
    padding: 14px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: var(--radius);
}

/* Individual Stat */
.vuln-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    line-height: 1.2;
    color: var(--text-secondary);
}

/* Icons */
.vuln-stat i {
    color: var(--primary);
    width: 16px;
    font-size: 0.8rem;
}

/* Text tightening */
.vuln-stat span {
    white-space: nowrap;
}


/* Issue Lists */
.issue-list-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.issue-list {
    list-style: none;
}

.issue-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem !important;
}

.issue-item:last-child {
    border-bottom: none;
}

.issue-item i {
    margin-top: 2px;
    flex-shrink: 0;
}

.issue-item.critical i {
    color: var(--critical);
}

.issue-item.warning i {
    color: var(--warning);
}

.issue-item.success i {
    color: var(--success);
}

.issue-item.info i {
    color: var(--primary);
}

/* Recommendations List */
.recommendations-list {
    list-style: none;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.recommendation-item:last-child {
    border-bottom: none;
}

.recomm-priority {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.recomm-priority.critical {
    background: rgba(239, 68, 68, 0.2);
    color: var(--critical);
}

.recomm-priority.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.recomm-text {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Interventions in Modal */
.interventions-container {
    margin: 10px 0 20px 0;
}

.intervention-progress-bar {
    height: 8px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 4px;
    margin-bottom: 5px;
    overflow: hidden;
}

.intervention-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

.habit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(14, 165, 233, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.habit-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.2);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.habit-name {
    flex: 1;
    font-size: 0.9rem;
}

.category-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.type-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.type-label.company {
    background: rgba(170, 170, 85, 0.2);
    color: #aaaa55;
}

.type-label.user {
    background: rgba(0, 199, 172, 0.2);
    color: #00c7ac;
}

.habit-state {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    font-size: 0.85rem;
}

.habit-state.completed {
    color: var(--success);
    font-weight: 600;
}

.habit-state.inprogress {
    color: var(--primary);
    font-weight: 600;
}

.habit-state.started {
    color: var(--text-muted);
    font-size: 0.8rem;
}


/* Overview Content Wrapper */
.overview-content {
    margin: 18px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.overview-content::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1100px) {
    .overview-content {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* Overview Section Card */
.overview-section {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.overview-section::-webkit-scrollbar {
    display: none;
}

/* Section Variants */
.overview-section.recomm {
    background: linear-gradient(135deg, rgba(234,179,8,0.12), rgba(249,115,22,0.12));
    border-color: rgba(234,179,8,0.25);
}

.overview-section.chart {
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(59,130,246,0.12));
    border-color: rgba(16,185,129,0.25);
}

.overview-section.details {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(236,72,153,0.12));
    border-color: rgba(99,102,241,0.25);
}

.overview-section.train {
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(20,184,166,0.12));
    border-color: rgba(139,92,246,0.25);
}

.overview-section.preference {
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(236,72,153,0.12));
    border-color: rgba(59,130,246,0.25);
}

.overview-section.analysis {
    background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(99,102,241,0.12));
    border-color: rgba(20,184,166,0.25);
}

.overview-section.insight {
    background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(236,72,153,0.12));
    border-color: rgba(249,115,22,0.25);
}

/* Section Title */
.overview-section-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

/* Section Content */
.overview-section-content {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
    font-size: 0.8rem;
}

/* Preferences Grid */
.preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.preference-item {
    background: rgba(14, 165, 233, 0.04);
    border-radius: 8px;
    padding: 10px;
}

.preference-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 3px;
    font-size: 0.75rem;
}

.preference-value {
    color: var(--text-secondary);
    font-size: 0.75rem;
}


/* Business Impact Visualization */
.business-impact {
    background: linear-gradient(
        135deg,
        rgba(14, 165, 233, 0.08),
        rgba(16, 185, 129, 0.08)
    );
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 0 0 30px;;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.impact-title {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.impact-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.impact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.impact-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.2rem;
    color: #fff;
}

.impact-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.impact-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.3;
}

.business-impact p {
    margin-top: 10px !important;
    font-size: 0.75rem !important;
    line-height: 1.4;
    color: var(--text-muted);
}

/* Progress Bar */
.game-progress {
    height: 6px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 3px;
    margin: 15px 0;
    overflow: hidden;
}

.game-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Tooltips */
.game-tooltip {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 15px;
    max-width: 300px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
}

.game-tooltip.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tooltip-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tabs */
.results-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Animations */
@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

@keyframes pointPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% {  box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes statusCardAppear {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


.completion-message {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    
    .intro-title, .results-title {
        font-size: 2rem;
    }
    
    .game-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .game-nav-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .game-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .employee-profiles, .process-policies {
        grid-template-columns: 1fr;
    }
    
    .findings-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .recommendation-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .vulnerability-summary {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-tabs {
        flex-direction: column;
    }
}

.pulse-indicator {
    position: absolute;
    width: 18px;
    height: 18px;
    background: rgba(36, 186, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(45, 184, 249, 0.7);
    animation: pulse-ring 1.6s infinite;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
}
.pulse-indicator.green {
    background: rgba(16, 185, 129, 0.9);
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-ring-green 1.6s infinite;
}

/* Position presets */
.pulse-0 {
    top: 18px;
    right: 120px;
}
.pulse-1 {
    top: 15px;
    right: -30px;
}
.pulse-2 {
    top: 5px;
    right: 10px;
}
.pulse-3 {
    top: 40px;
    right: 40px;
}
.pulse-4 {
    top: 85px;
    left: 40px;
}
.pulse-5 {
    top: 8px;
    right: -5px;
}
.pulse-6 {
    top: 15px;
    right: 23%;
}
.pulse-7 {
    top: 15px;
    right: 33%;
}
.pulse-8 {
    top: 15px;
    right: 32%;
}
.pulse-9 {
    top: 15px;
    right: 55%;
}

/* Active state */
.pulse-indicator.active {
    opacity: 1;
    visibility: visible;
}

/* Pulse animation */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 184, 249, 0.6);
        transform: scale(0.95);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(45, 184, 249, 0);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(45, 184, 249, 0);
        transform: scale(0.95);
    }
}

@keyframes pulse-ring-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
        transform: scale(0.95);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        transform: scale(0.95);
    }
}

/* Contact Modal specific styles (prefix: hvs-) */
.hvs-contact-modal .modal-content {
    max-width: 600px;
}

.hvs-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    overflow-y: auto;
}

.hvs-form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hvs-form-group {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 200px;
}

.hvs-form-group.full-width {
    flex: 1 1 100%;
}

.hvs-form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.hvs-required {
    color: var(--danger);
    margin-left: 2px;
}

.hvs-form-group input,
.hvs-form-group select,
.hvs-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.hvs-form-group input:focus,
.hvs-form-group select:focus,
.hvs-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.hvs-form-group input:hover,
.hvs-form-group select:hover,
.hvs-form-group textarea:hover {
    border-color: var(--primary-dark);
}

.hvs-form-group option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.hvs-form-actions {
    display: flex;
    justify-content: center;
    margin: 0 auto 0;
}

.hvs-submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
}

.hvs-submit-btn i {
    margin-right: 8px;
}

/* Wrapper for each button + description */
.hvs-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 260px;        /* matches typical button width */
    text-align: center;
}

/* Description text style */
.hvs-button-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
    padding: 0 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    background: rgba(14, 165, 233, 0.03);
    border-radius: 20px;
    padding: 4px 12px;
    border: 1px solid rgba(14, 165, 233, 0.15);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hvs-button-desc i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* Slight hover effect on description */
.hvs-button-wrapper:hover .hvs-button-desc {
    border-color: rgba(14, 165, 233, 0.4);
    color: var(--text-secondary);
    background: rgba(14, 165, 233, 0.08);
}

/* Game Controls */
.msp-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px 0 0;
    flex-wrap: wrap;
    position: relative;
}


/* Intro text wrapper */
.hvs-intro-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

/* Intro text style */
.hvs-intro-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Highlighted part */
.hvs-intro-highlight {
    color: var(--primary);
    font-weight: 600;
    background: rgba(14, 165, 233, 0.15);
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 1rem;
    white-space: nowrap;
}

/* Footnote container – full width, centered */
.hvs-footnote {
    width: 100%;
    margin-top: 30px;          /* space above the footnote */
    padding-top: 20px;
    border-top: 1px solid rgba(14, 165, 233, 0.2); /* subtle separator */
    text-align: center;
}

/* Inner content – flex row for details + badge, or stacked on mobile */
.hvs-footnote-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Partner details (company & email) */
.hvs-partner-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.05);
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid rgba(14, 165, 233, 0.15);
    color: var(--text-secondary);
}

.hvs-partner-details i {
    color: var(--primary);
}

/* Trust badge */
.hvs-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.05);
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--text-secondary);
}

.hvs-trust-badge i {
    color: var(--secondary);
}

/* Responsive adjustments */
@media (max-width: 700px) {
    .hvs-button-wrapper {
        max-width: 280px;     /* allow more width on smaller screens */
    }
    .hvs-button-desc {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .hvs-form-row {
        flex-direction: column;
        gap: 1rem;
    }
    .hvs-form-group {
        flex: 1 1 100%;
    }
    .hvs-intro-highlight {
        font-size: 1rem;
        white-space: normal;
    }
    .hvs-footnote-content {
        flex-direction: column;
        gap: 10px;
    }
}

.none-important {
    display: none !important;
}

/* Success Form */
.form-success {
    margin: -5px auto 0;
    padding: 10px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--secondary);
    background: rgba(16, 185, 129, 0.08);
    color: var(--text-secondary);
    display: flex;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items:center;
    max-width: fit-content;
}

.form-success i {
    color: var(--secondary);
    font-size: 1.5rem;
}

.form-success h3 {
    color: var(--text-primary);
    font-size: 1rem;
}


/* Privacy policy row */
.hvs-form-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -5px 0 5px;
    padding: 8px 12px;
    background: rgba(14, 165, 233, 0.03);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hvs-form-privacy i {
    color: var(--primary);
    font-size: 0.9rem;
}

.hvs-form-privacy a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.hvs-form-privacy a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.cta-button {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.cta-button i {
    margin-right: 6px;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}



/* Interactive Demo */
/* Iframe Modal Styles */

.privci-iframe-modal-predict {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999999;
    font-family: inherit;
}

.privci-iframe-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.privci-iframe-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    height: 98%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 40px var(--primary-glow);
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.privci-iframe-modal-predict.active .privci-iframe-modal-overlay {
    opacity: 1;
}

.privci-iframe-modal-predict.active .privci-iframe-modal-container {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.privci-iframe-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
}

.privci-iframe-modal-close {
    background: var(--bg-card-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.privci-iframe-modal-close:hover {
    background: var(--primary);
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.privci-iframe-modal-content {
    position: relative;
    width: 100%;
    height: calc(100% - 73px);
}

.privci-iframe-predict {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.privci-iframe-predict.loaded {
    opacity: 1;
}

.privci-iframe-loader-predict {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    z-index: 10;
    transition: opacity 0.3s ease;
}

.privci-iframe-loader-predict.hidden  {
    opacity: 0;
    pointer-events: none;
}

.privci-loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: privci-spin 1s linear infinite;
    margin-bottom: 20px;
}

.privci-loader-spinner:after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-glow);
    filter: blur(2px);
}

@keyframes privci-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.privci-iframe-loader-predict p {
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 16px;
}

/* Close Animation */
.privci-iframe-modal-predict.closing .privci-iframe-modal-overlay {
    opacity: 0;
}

.privci-iframe-modal-predict.closing .privci-iframe-modal-container {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
}

/* Prevent scrolling when modal is open */
body.privci-modal-open-predict {
    overflow: hidden;
}
.game-tagline {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin: auto;
}

.logo-privci {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 48px;
}


