/* ===============================
   General Layout + Container
================================= */
.heroic-search-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Limit width for search bar only */
.heroic-search-bar-wrapper {
    margin: 0 auto 30px;
    max-width: 800px;
}

@media (max-width: 480px) {
    .heroic-search-bar-wrapper {
        padding: 0 10px;
    }

    .heroic-progress-popup {
        padding: 20px;
    }

    .secure-popup-inner {
        padding: 20px;
    }
}

/* Let grid/results breathe */
.heroic-search-results {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #d3d0d0;
}

.heroic-search-results > .breach-count-display {
    display: none;
}

/* Privacy notice under the main search form */
.heroic-privacy-notice {
    font-size: 14px;
    color: #777;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 20px;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.heroic-privacy-notice a {
    color: #0073aa;
    text-decoration: underline;
}

.heroic-privacy-notice a:hover {
    color: #005f8c;
}



/* ===============================
   Input & Button (Search Bar)
================================= */

@media only screen and (max-width: 768px) {

    .heroic-search-bar {
        flex-wrap: wrap;
    }

    .heroic-input {
        width: 40px;
        width: calc(100% - 40px) !important;
        border-radius: 0px 5px 5px 0px !important;
    }
    .heroic-search-btn {
        width: 100%;
        border-radius: 5px !important;
        margin-top: 10px !important;
    }
}

.heroic-search-bar {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin-bottom: 16px;
}


.heroic-input {
    width: 100%;
    padding: 14px 16px !important;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px 0 0 8px;
    outline: none;
    transition: border-color 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.heroic-input:focus {
    border-color: #0073aa!important;
}

.heroic-search-btn {
    padding: 14px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.heroic-search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}


.heroic-search-btn:hover {
    background: #005f8c;
}

/* ===============================
   Progress Overlay + Popup Modal
================================= */
.heroic-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.heroic-progress-popup {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    text-align: left;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: fadeIn 0.3s ease-out;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.4s ease-out forwards;
}

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

.scan-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #111827;
    font-weight: 700;
}

.scan-tasks {
    list-style: none;
    padding: 0px !important;
    margin: 0 0 25px 0;
}

.scan-tasks li {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.scan-tasks li:hover {
    background: #f3f4f6;
}

.scan-confirmation {
    text-align: center;
    padding: 20px 0;
}

.confirm-title {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #111827;
}

.confirm-text {
    font-size: 16px;
    margin-bottom: 25px;
    color: #4b5563;
    line-height: 1.6;
}

.confirm-checkbox {
    display: block;
    font-size: 15px;
    color: #374151;
    margin-bottom: 10px;
    text-align: center;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.confirm-checkbox:hover {
    background: #f3f4f6;
}

.confirm-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.confirm-continue-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.confirm-continue-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.confirm-continue-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.confirm-continue-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ===============================
   Loading Spinner & Checkmark
================================= */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



/* ===============================
   Progress Bar
================================= */
.progress-bar {
    height: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar .bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.progress-bar-search-notice {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* ===============================
   Data Stream Container
================================= */
.data-stream-container {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    height: 120px;
    overflow: hidden;
}

.data-stream {
    font-family: 'Courier New', monospace;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    font-size: 14px;
    line-height: 1.5;
}

.stream-line {
    margin-bottom: 8px;
    opacity: 0.8;
}

/* ===============================
   Disable Scroll During Modal
   ================================= */

body.no-scroll {
    overflow: hidden !important;
    overflow-Y: hidden !important;
    position: fixed;
    width: 100%;
}

body.no-scroll-secure {
    overflow: hidden !important;
    overflow-Y: hidden !important;
    position: fixed;
    width: 100%;
}

/* ===============================
   Scan Text Animation
================================= */
.scan-text {
    font-size: 15px;
    margin-top: 10px;
    color: #555;
    animation: pulseText 1.5s infinite;
}

@keyframes pulseText {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Mobile Responsive Styles for Progress Popup */
@media (max-width: 768px) {
    .heroic-progress-popup {
        padding: 30px 20px;
        width: 95%;
    }
    
    .confirm-title {
        font-size: 24px;
    }
    
    .confirm-text {
        font-size: 15px;
    }
    
    .scan-tasks li {
        font-size: 15px;
        padding: 10px 14px;
    }
    
    .data-stream-container {
        height: 100px;
    }
    
    .data-stream {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .heroic-progress-popup {
        padding: 25px 15px;
        width: 100%;
        border-radius: 0;
    }
    
    .confirm-title {
        font-size: 22px;
    }
    
    .scan-title {
        font-size: 20px;
    }
    
    .scan-tasks li {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .confirm-continue-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* ===============================
   Breach Cards Grid
================================= */
.heroic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 equal columns */
    gap: 20px;
    margin-top: 30px;
    position: relative;
    padding-bottom: 100px; /* Space for the fade effect */
    animation: slideUp 0.5s ease-in-out;
}

.heroic-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Hide the fade effect when there are no breaches or less than 30 breaches */
.heroic-grid:empty::after,
.heroic-grid.few-breaches::after {
    display: none;
}

@media (max-width: 1024px) {
    .heroic-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .heroic-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}


.heroic-card {
    border: 1px solid #e2e2e2;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    position: relative;
    transition: transform 0.2s ease;
    text-align: left;
    cursor: pointer;
}

.heroic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.breach-severity, .breach-date  {
    text-align: left;

}

.heroic-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #f9fafb;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.heroic-card h4 {
    font-size: 18px;
    margin: 10px 0 5px;
    border-bottom: 1px solid #f0f0f0;
}

.breach-date {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}


.heroic-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: left;
    margin-top: 10px;
    font-size: 16px;
}

/*Add in text right before the icons*/
.heroic-icons:before {
    content: 'Exposed Data';
    font-size: 15px;
    margin-top: -3px;
    font-weight: 400;
}

/* Badge for breach type */
.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e9e9e9;
    color: #353535;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
}

/* ===============================
   Result Header Notices
================================= */

/* Header text block inside result header */

.image-header-wrapper {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    justify-content: center;
}

.image-header-wrapper .img{
    height: 45px;
    width: 45px;
    
}

@media only screen and (max-width: 768px) {
    .image-header-wrapper .img {
        margin-bottom: 15px;
    }
}



@media only screen and (min-width: 768px) {

    .result-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

}

@media only screen and (max-width: 768px) {


    .header-title {
        margin-top: 10px;
    }

    .header-subtitle {
        width: 100%;
        text-align: center;
        font-size: 18px;
        margin-bottom: 15px;
    }

    .image-header-wrapper img {
        display: none;
    }

    .result-header .secure-btn {
        width: 100%;
        margin-top: 15px;
    }
}

.result-header {
    width: 100%;
    padding: 16px 20px;
    margin: 30px 0 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}


/* Main title (h3) */
.result-header .header-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 5px;
}

.result-header .header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Subtitle (breach count or no breach text) */
.result-header .header-subtitle {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: inherit;
}



/* Red for breached */
.result-header.breach-found {
    background-color: #ffe6e6;
    color: #b30000;
    border: 1px solid #ff9999;
    animation: fadeBorder 2.5s ease-in-out infinite;
}

/*animation for the "danger" */
@keyframes fadeBorder {
    0%, 100% {
      border-color: transparent;
    }
    50% {
      border-color: #d90429;
    }
  }

/* Green for clean result */
.result-header.no-breach {
    background-color: #e6ffee;
    color: #006633;
    border: 1px solid #66cc99;
}

.result-header .secure-btn {
    background: #b30000;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.secure-action-btn:hover {
    background-color: #084ec0;
}

.result-header .secure-btn:hover {
    background: #8c0000;
}

a.secure-btn {
    text-decoration: none;
    color: white !important;
    display: inline-block;
}


/* ===============================
   Bottom Grid Notice (more results)
================================= */

.more-results {
    text-align: center;
    margin-top: -80px; /* Pull up to overlap with the fade */
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
}

.more-results p {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 500;
}

.more-results-header {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0px 0;
    line-height: 1.2;
}

.breach-count {
    color: #dc2626;
    font-weight: 800;
}

.more-results-subheader {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 25px;
    font-weight: 400;
}

.more-results-btn {
    display: inline-block;
    margin-top: 15px;
    background: linear-gradient(135deg, #0073aa 0%, #005f8c 100%);
    color: white !important;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,115,170,0.2);
}

.more-results-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,115,170,0.3);
    background: linear-gradient(135deg, #005f8c 0%, #004d73 100%);
}

/* ===============================
   Special styling for each cards severity
================================= */

.heroic-card.severity-high {
    border-left: 6px solid #d32f2f;
    background-color: #fff5f5;
}

.heroic-card.severity-medium {
    border-left: 6px solid #d32f2f;
    background-color: #fff5f5;
}



/* ===============================
   Verify Loader For results
================================= */
.verifying-loader {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #555;
    animation: fadeIn 0.3s ease-in;
}

.verifying-loader .spinner-circle {
    margin: 0 auto 12px;
    width: 32px;
    height: 32px;
    border: 4px solid #ccc;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.popup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.popup-close-btn:hover {
    color: #333;
}



/*HEROIC Custom popup for when a person clicks on the "secure my information" button*/
.heroic-secure-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.heroic-secure-info-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.secure-popup-inner {
    display: flex;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.4s ease-out forwards;
}

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

.secure-popup-inner-left {
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.secure-popup-inner-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0) 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.qr-code-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.qr-code-container img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
    filter: invert(1);
    background-color: black;
}

.qr-code-container img:hover {
    transform: scale(1.05);
}

.qr-text {
    margin-top: 16px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
}

.security-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.stat-item i {
    font-size: 22px;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.stat-item span {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.secure-popup-inner-right {
    flex: 1.2;
    padding: 40px;
    position: relative;
    overflow-y: auto;
    background: #fff;
}

.secure-popup-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    transition: all 0.2s;
    z-index: 10;
}

.secure-popup-close-btn:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.secure-content {
    max-width: 480px;
    margin: 0 auto;
}

.warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fee2e2;
    color: #dc2626;
    padding: 10px 18px;
    border-radius: 30px;
    margin-bottom: 24px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}


.warning-badge i {
    font-size: 18px;
}

.secure-content h3 {
    font-size: 30px !important;
    color: #111827;
    margin-bottom: 5px;
    line-height: 1;
    font-weight: 700;
}

.exposure-text {
    color: #4b5563;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.exposure-list {
    list-style: none;
    padding: 0px !important;
    margin: 0 0 32px 0;
}

.exposure-list li {
    display: flex;
    align-items: center;
    font-size: 18px;
    gap: 12px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}

.exposure-list li:hover {
    background: #f3f4f6;
}

.exposure-list li i {
    color: #dc2626;
    font-size: 20px !important;;
    background: rgba(220, 38, 38, 0.1);
    padding: 8px;
    border-radius: 8px;
}

.secure-signup-form {
    margin-bottom: 5px;
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px !important;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.2s;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.secure-action-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.secure-action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.secure-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.secure-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 14px;
    background: #f0fdf4;
    padding: 12px 16px !important;
    border-radius: 10px;
    border: 1px solid #d1fae5;
}

.secure-guarantee i {
    color: #059669;
    font-size: 18px;
}



@media (max-width: 768px) {
    .secure-popup-inner {
        flex-direction: column;
        width: 95%;
        max-height: 95vh;
    }

    .secure-popup-inner-left {
        padding: 30px 24px;
        display: none;
    }

    .secure-popup-inner-right {
        padding: 30px 24px;
    }

    .qr-code-container img {
        width: 160px;
        height: 160px;
    }
    
    .secure-content h3 {
        font-size: 24px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-item i {
        font-size: 18px;
        padding: 8px;
    }
} 



/* =============================== */


@media (min-width: 768px) {
    .secure-popup-inner-left,
    .secure-popup-inner-right {
        width: 50%;
    }
}

.heroic-icon-wrapper {
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 18px;
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.heroic-search-bar .heroic-input {
    border-radius: 0;
}

/*force hide the lastpass icon stuff */
input.heroic-input::-ms-reveal,
input.heroic-input::-ms-clear,
input.heroic-input::-webkit-credentials-auto-fill-button {
    display: none !important;
}

input.heroic-input::after,
input.heroic-input + div[data-lastpass-icon-root] {
    display: none !important;
}

/* Security features section */
.security-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.security-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 14px;
}

.security-feature i {
    color: #059669;
    font-size: 18px;
}

/* New elements for more-results section */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fee2e2;
    color: #dc2626;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.urgency-badge i {
    font-size: 16px;
}

.breach-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.breach-stat {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-width: 120px;
    transition: transform 0.3s ease;
}

@media only screen and (max-width: 768px) {
    .breach-stat {
        width: 100% !important;
    }

    .more-results-btn {
        width: 100% !important;
    }
    
}

.breach-stat:hover {
    transform: translateY(-5px);
}

.breach-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 5px;
}

.breach-stat-label {
    font-size: 13px;
    color: #4b5563;
}

/* ===============================
   Breach Details Modal
================================= */
.breach-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
}


.breach-details-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
}

.breach-details-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    margin: 20px auto;
}

.breach-details-header-left {
    display: flex;
    gap: 10px;
}

.breach-details-header {
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.breach-details-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.breach-details-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #f9fafb;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.breach-details-title {
    flex: 1;
}

.breach-details-title h2 {
    margin: 0 0 -5px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
}

.breach-details-badge {
    display: inline-block;
    background: #e5e7eb;
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.breach-details-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
}

.breach-details-close-btn:hover {
    color: #4b5563;
}

.breach-details-body {
    padding: 20px;
}

.breach-details-section {
    margin-bottom: 25px;
}

.breach-details-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.breach-description {
    background: #f9fafb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.breach-description-text {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 12px;
}

.breach-description-text:last-child {
    margin-bottom: 0;
}

.breach-description-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breach-description-text a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.breach-details-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.breach-details-info-item {
    flex: 1;
    min-width: 150px;
    background: #f9fafb;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
}

.severity-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.severity-badge.severity-high {
    background: #fee2e2;
    color: #dc2626;
}

.severity-badge.severity-medium {
    background: #fef3c7;
    color: #d97706;
}

.severity-badge.severity-low {
    background: #e0f2fe;
    color: #0284c7;
}

.exposed-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.exposed-data-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    padding: 12px 15px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exposed-data-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.exposed-data-item i {
    font-size: 18px;
    color: #3b82f6;
}

.exposed-data-item span {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.risk-level {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.risk-level.high {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
}

.risk-level.medium {
    background: #fef3c7;
    border-left: 4px solid #d97706;
}

.risk-level.low {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
}

.risk-icon {
    font-size: 24px;
    color: #1f2937;
}

.risk-level.high .risk-icon {
    color: #dc2626;
}

.risk-level.medium .risk-icon {
    color: #d97706;
}

.risk-level.low .risk-icon {
    color: #0284c7;
}

.risk-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.risk-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.recommended-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    padding: 12px 15px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.action-item i {
    font-size: 18px;
    color: #059669;
}

.action-item span {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.breach-details-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.security-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fee2e2;
    color: #dc2626;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
}

.security-alert i {
    font-size: 20px;
}

.secure-now-btn {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white !important;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.secure-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

@media (max-width: 768px) {
    .breach-details-content {
        width: 95%;
        margin: 10px auto;
    }
    
    .breach-details-info-item {
        border: 1px solid #f0f0f0;
    }
    
    .breach-details-logo {
        margin: 0 0 15px 0;
    }
    
    .breach-details-info {
        flex-direction: column;
    }
    
    .breach-details-info-item {
        width: 100%;
    }
    
    .exposed-data-grid {
        grid-template-columns: 1fr;
    }
    .breach-count-display {
        font-size: 20px !important;
    }
}

/* Breach count display */
.breach-count-display {
    text-align: center;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 25px;
    font-weight: 400;
    color: #ffffff;
}


.breach-count-display .breach-count-text {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.breach-count-display.loaded .breach-count-text {
    opacity: 1;
}

#breach-count-number {
    font-weight: bold;
    color: #ffffff;
}

.top-button-secure-btn {
    border-radius: 5px !important;
    padding: 8px 14px !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0) !important;
}

.secure-top-button-container {
    width: 100%;
    margin-top: 15px;
}

.breach-count-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    gap: 8px;
    font-weight: 400;
    font-size: 20px;
    margin: 0px;
    padding: 0px;
    color: #ffffff;
    font-style: italic;
}

.breach-count-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Maintenance Notice */
.heroic-maintenance-notice {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e65100;
    font-size: 14px;
    animation: fadeIn 0.3s ease-in-out;
}

.heroic-maintenance-notice i {
    font-size: 18px;
    color: #e65100;
}

.heroic-maintenance-notice span {
    flex: 1;
    line-height: 1.4;
}

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