.app-logo-img,
.logo-mark-img {
    display: block;
    object-fit: contain;
    width: auto;
}



.logo-mark-img {
    display: block;
    height: clamp(40px, 5vw, 60px);
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    display: block;
    height: clamp(60px, 7vw, 80px);
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.logo-mark {
    align-items: center;
    background: var(--primary-color);
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    width: 48px;
}

.logo-text,
.footer-brand {
    color: #101828;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
}

.logo-text {
    color: var(--primary-color);
}

footer .footer-brand {
    color: #fff;
}

header .header-inner > .de-flex {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto minmax(170px, 1fr);
    gap: 24px;
}

header .header-inner .header-logo-col {
    justify-content: flex-start;
    min-width: 0;
}

header .header-inner .header-menu-col,
header .header-inner .header-col-mid {
    justify-content: center;
}

header .header-inner .header-action-col {
    justify-content: flex-end;
}

header .header-inner .header-action-col > .btn-main {
    min-width: 132px;
    width: auto !important;
}

#mainmenu a.active {
    color: var(--primary-color);
}

.hero-detector {
    min-height: 760px;
}

.hero-main-row {
    min-height: 760px;
    padding: 120px 0 116px;
}

.hero-copy-wrap {
    max-width: 820px;
}

.hero-shade {
    background: linear-gradient(90deg, rgba(8, 25, 40, .72), rgba(8, 25, 40, .28));
    inset: 0;
    position: absolute;
    z-index: 1;
}

.hero-copy {
    max-width: 640px;
    margin-top: 26px;
}

.hero-url-form {
    max-width: 720px;
}

.hero-url-form .input-group {
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 45px rgba(16, 24, 40, .12);
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    padding: 8px;
}

.hero-url-form .form-control {
    background: #fff;
    border: 0;
    box-shadow: none;
    color: #101828;
    flex: 1 1 auto;
    font-size: 16px;
    height: 54px;
    line-height: 54px;
    min-width: 0;
    padding-left: 16px;
    width: 100%;
}

.hero-url-form .form-control::placeholder {
    color: #667085;
    opacity: 1;
}

.hero-url-form .form-control::-webkit-input-placeholder {
    color: #667085;
    opacity: 1;
}

.hero-url-form .btn-main {
    align-items: center;
    border: 0;
    border-radius: 6px;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    min-width: 132px;
}

.hero-url-form small {
    color: rgba(255, 255, 255, .78);
    display: block;
    margin-top: 10px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-badges span {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
}

.hero-info-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    max-width: 520px;
}

.hero-info-list div {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
}

.hero-info-list span {
    color: rgba(255, 255, 255, .72);
}

.hero-info-list strong {
    color: #fff;
    font-weight: 800;
    text-align: right;
}

.status-panel,
.hero-form-panel,
.tool-panel,
.result-panel,
.result-placeholder,
.signals-panel,
.history-empty,
.history-wrap,
.model-status-box,
.metric-box,
.process-box {
    background: #fff;
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(16, 24, 40, .08);
}

.status-panel {
    color: #364152;
    margin-top: 92px;
    padding: 32px;
}

.hero-form-panel {
    color: #364152;
    margin-left: auto;
    max-width: 520px;
    padding: 28px;
}

.status-panel h3,
.hero-form-panel h3,
.status-panel p,
.hero-form-panel p,
.status-panel strong {
    color: #101828;
}

.status-panel h3 {
    margin-bottom: 12px;
}

.hero-form-panel h3 {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero-form-panel p {
    margin-bottom: 0;
}

.hero-form-panel .hero-url-form {
    max-width: none;
}

.hero-form-panel .hero-url-form .input-group {
    align-items: center;
    border: 1px solid rgba(16, 24, 40, .08);
    box-shadow: none;
    margin-top: 16px;
    padding: 6px;
}

.hero-form-panel .hero-url-form .form-control {
    height: 48px;
    line-height: 48px;
}

.hero-form-panel .hero-url-form .btn-main {
    height: 48px;
    min-width: 116px;
    padding-left: 18px;
    padding-right: 18px;
}

.hero-form-panel .hero-url-form small {
    color: #667085;
    margin-top: 8px;
}

.form-disclaimer {
    background: #f8fafc;
    border-radius: 8px;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 14px;
    padding: 10px 12px;
}

.status-label {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.status-line {
    align-items: center;
    border-top: 1px solid rgba(16, 24, 40, .08);
    display: flex;
    justify-content: space-between;
    padding: 14px 0 0;
    margin-top: 14px;
}

.mini-feature {
    align-items: center;
    background: #f6fbfb;
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
}

.mini-feature i {
    color: var(--primary-color);
    font-size: 24px;
}

.tool-panel,
.result-panel,
.signals-panel,
.history-wrap {
    padding: 32px;
}

.detect-message {
    border-radius: 8px;
    margin-top: 18px;
    padding: 12px 14px;
}

.detect-message.error {
    background: #fff1f0;
    color: #b42318;
}

.detect-message.info {
    background: #eff8ff;
    color: #175cd3;
}

.result-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.result-badge {
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 12px;
}

.result-badge.safe {
    background: #027a48;
}

.result-badge.phishing {
    background: #b42318;
}

.probability-wrap {
    margin: 24px 0;
}

.probability-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.probability-track {
    background: #edf2f7;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}

.probability-bar {
    background: #12b76a;
    height: 100%;
    transition: width .25s ease;
    width: 0;
}

.probability-bar.phishing {
    background: #f04438;
}

.result-meta {
    display: grid;
    gap: 14px;
}

.result-meta div {
    border-top: 1px solid rgba(16, 24, 40, .08);
    padding-top: 14px;
}

.result-meta span {
    color: #667085;
    display: block;
    font-size: 13px;
}

.result-meta strong {
    overflow-wrap: anywhere;
}

.result-placeholder,
.history-empty {
    padding: 44px 32px;
    text-align: center;
}

.result-placeholder i,
.history-empty i {
    color: var(--primary-color);
    font-size: 48px;
}

.signals-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 16px;
}

.signal-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.signal-item span {
    color: #667085;
    display: block;
    font-size: 13px;
}

.signal-item strong {
    color: #101828;
    font-size: 20px;
}

.history-table {
    margin-bottom: 0;
}

.history-table td,
.history-table th {
    vertical-align: middle;
}

.history-url {
    max-width: 420px;
    overflow-wrap: anywhere;
}

.history-badge {
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

.history-badge.safe {
    background: #027a48;
}

.history-badge.phishing {
    background: #b42318;
}

.history-delete-btn {
    align-items: center;
    background: #b42318;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    justify-content: center;
    line-height: 1;
    padding: 6px 10px;
    transition: background .15s ease;
}

.history-delete-btn:hover {
    background: #912018;
}

.history-delete-btn:active {
    background: #7a1b14;
}

.model-status-box,
.metric-box,
.process-box {
    padding: 24px;
}

.model-status-box span,
.metric-box span {
    color: #667085;
    display: block;
    font-size: 14px;
}

.model-status-box strong,
.metric-box strong {
    color: #101828;
    display: block;
    font-size: 34px;
    line-height: 1.15;
    margin: 6px 0;
}

.metric-box small {
    color: #667085;
}

@media (max-width: 991px) {
    header .header-inner > .de-flex {
        display: flex;
        gap: 12px;
        justify-content: space-between;
    }

    header .header-inner .header-logo-col {
        flex: 1 1 auto;
    }

    header .header-inner .header-menu-col {
        display: none;
    }

    header.menu-open .header-inner .header-menu-col {
        display: block;
    }

    header .header-inner .header-action-col {
        flex: 0 0 auto;
        justify-content: flex-end;
        min-width: 0;
    }

    header .header-inner .header-action-col > .btn-main {
        display: none;
    }

    .hero-detector {
        min-height: auto;
    }

    .hero-main-row {
        min-height: auto;
        padding: 118px 0 82px;
    }

    .hero-copy-wrap {
        max-width: 720px;
    }

    .status-panel {
        margin-top: 0;
    }

    .hero-form-panel {
        margin-left: 0;
        margin-top: 0;
        max-width: 100%;
    }

    .signals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .hero-main-row {
        padding: 104px 0 64px;
    }

    .hero-copy {
        margin-top: 18px;
    }

    .hero-form-panel {
        padding: 22px;
    }

    .hero-form-panel h3 {
        font-size: 28px;
    }

    .hero-url-form .input-group {
        display: grid;
        gap: 8px;
    }

    .hero-url-form .btn-main {
        height: 50px;
        width: 100%;
    }

    .signals-grid {
        grid-template-columns: 1fr;
    }

    .tool-panel,
    .result-panel,
    .signals-panel,
    .history-wrap {
        padding: 22px;
    }
}
