@font-face {
    font-family: "Manjari";
    src: url("../fonts/Manjari-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand-blue: #4A67FF;
    --bg-dark: #040B16;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, .66);
    --text-soft: rgba(255, 255, 255, .42);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(74, 103, 255, .24), transparent 26%),
        radial-gradient(circle at 12% 85%, rgba(20, 81, 173, .24), transparent 24%),
        linear-gradient(135deg, #040B16 0%, #061428 56%, #030812 100%);
    font-family: "Manjari", "Segoe UI", Arial, sans-serif;
    color: var(--text-main);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(74, 103, 255, .055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(74, 103, 255, .045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 92%);
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, rgba(74, 103, 255, .08) 45%, transparent 46%),
        linear-gradient(30deg, transparent 0%, rgba(255, 255, 255, .035) 72%, transparent 73%);
    pointer-events: none;
}

.ms-page {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ms-header {
    padding: 26px 0px 15px 0px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(4, 11, 22, .72);
    backdrop-filter: blur(18px);
}

.ms-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ms-logo {
    width: 315px;
    max-width: 72vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 16px 35px rgba(74, 103, 255, .18));
}

.ms-header-status {
    font-family: "Victor Mono", Consolas, Monaco, monospace;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .86);
    border: 1px solid var(--border-color);
    padding: 11px 15px;
    background: rgba(255, 255, 255, .035);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--brand-blue);
    margin-right: 8px;
    box-shadow: 0 0 0 4px rgba(74, 103, 255, .16), 0 0 22px rgba(74, 103, 255, .85);
}

.ms-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 58px 0;
}

.ms-hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
    border: 1px solid var(--border-color);
    min-height: 560px;
    padding: 56px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .34);
    overflow: hidden;
}

.ms-hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 7px;
    height: 100%;
    background: linear-gradient(180deg, var(--brand-blue), rgba(74, 103, 255, .14));
}

.ms-hero::after {
    content: "";
    position: absolute;
    right: -170px;
    top: -170px;
    width: 480px;
    height: 480px;
    background: linear-gradient(135deg, rgba(74, 103, 255, .34), rgba(74, 103, 255, .03));
    transform: rotate(35deg);
}

.ms-grid-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 68% 30%, rgba(74, 103, 255, .14), transparent 28%),
        linear-gradient(90deg, transparent 0%, rgba(74, 103, 255, .035) 100%);
    pointer-events: none;
}

.ms-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Victor Mono", Consolas, Monaco, monospace;
    font-weight: 700;
    color: var(--brand-blue);
    font-size: 13px;
    letter-spacing: .06em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.ms-kicker i {
    font-size: 18px;
}

.ms-hero h1 {
    font-size: clamp(42px, 5vw, 74px);
    line-height: .96;
    letter-spacing: -0.015em;
    color: #fff;
    margin: 0 0 26px;
    max-width: 780px;
}

.ms-description {
    font-size: 21px;
    line-height: 1.45;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 34px;
}

.ms-terminal {
    max-width: 680px;
    border: 1px solid rgba(74, 103, 255, .24);
    background: rgba(0, 0, 0, .34);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.terminal-top {
    height: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
}

.terminal-top span {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, .22);
}

.terminal-top span:nth-child(1) {
    background: #4A67FF;
}

.terminal-top span:nth-child(2) {
    background: rgba(74, 103, 255, .65);
}

.terminal-top span:nth-child(3) {
    background: rgba(255, 255, 255, .34);
}

.terminal-top strong {
    margin-left: 8px;
    font-family: "Victor Mono", Consolas, Monaco, monospace;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .54);
}

.terminal-body {
    font-family: "Victor Mono", Consolas, Monaco, monospace;
    font-weight: 700;
    font-size: 13px;
    color: #dce5ff;
    padding: 17px 18px;
    min-height: 58px;
}

.terminal-prefix {
    color: var(--brand-blue);
    margin-right: 8px;
}

.terminal-cursor {
    color: var(--brand-blue);
    animation: blink .8s infinite;
}

@keyframes blink {

    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

.ms-actions {
    display: grid;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.ms-action-card {
    position: relative;
    grid-template-columns: 52px 1fr;
    column-gap: 20px;
    text-decoration: none;
    color: var(--text-main);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--brand-blue);
    padding: 28px 30px;
    min-height: 154px;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ms-action-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(74, 103, 255, .20), transparent 33%);
    opacity: 0;
    transition: opacity .2s ease;
}

.ms-action-card:hover {
    color: var(--text-main);
    transform: translateX(8px);
    border-color: rgba(74, 103, 255, .42);
    background: rgba(255, 255, 255, .055);
    box-shadow: 0 24px 65px rgba(0, 0, 0, .28);
}

.ms-action-card:hover .badge-internal {
    background-color: red;
}

.ms-action-card:hover::before {
    opacity: 1;
}

.ms-action-index {
    position: absolute;
    right: 24px;
    top: 20px;
    z-index: 2;
    font-family: "Victor Mono", Consolas, Monaco, monospace;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .28);
}

.ms-icon-box {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(74, 103, 255, .34);
    background: rgba(74, 103, 255, .12);
    display: grid;
    place-items: center;
    color: var(--brand-blue);
    font-size: 33px;
    padding-top: 6px;
    margin-bottom: 10px;
}
.badge-internal {
    background-color: rgba(255, 150, 161, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 150, 161, 0.15);
    font-size: 1rem;
    border-radius: 2px;
    padding: 0.3em 0.6em;
    font-weight: 700;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.ms-action-card strong {
    position: relative;
    z-index: 2;
    display: block;
    font-size: 31px;
    color: #fff;
    margin: 1px 0 8px;
}

.ms-action-card small {
    position: relative;
    z-index: 2;
    display: block;
    font-size: 17px;
    line-height: 1.45;
    color: var(--text-muted);
}

.ms-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(4, 11, 22, .72);
    backdrop-filter: blur(18px);
    padding: 18px 0;
}

.ms-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-family: "Victor Mono", Consolas, Monaco, monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
}

@media (max-width: 991px) {
    .ms-main {
        padding: 34px 0;
    }

    .ms-hero {
        padding: 36px 26px;
    }

    .ms-actions {
        margin-top: 20px;
    }

    .ms-action-card:hover {
        transform: translateY(-4px);
    }

    .ms-footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .ms-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .ms-logo {
        width: 215px;
    }

    .ms-header-status {
        width: 100%;
    }

    .ms-hero h1 {
        font-size: 47px;
    }

    .ms-description {
        font-size: 18px;
    }

    .ms-action-card {
        grid-template-columns: 1fr;
        padding: 26px 22px;
    }

    .ms-icon-box {
        margin-bottom: 18px;
    }

    .ms-action-card strong {
        font-size: 24px;
    }
}
/* Console de Resposta do Webhook */
.ms-response-console {
    background: #02050a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-bottom: 1rem;
    padding: 0.75rem;
    font-family: 'Victor Mono', monospace;
    font-size: 0.75rem;
    color: #a1a1aa;
    display: none;
    /* Oculto por padrão */
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 150px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* Cores de status do console */
.ms-response-console.waiting {
    border-color: rgba(241, 196, 15, 0.3);
    color: #f1c40f;
    /* Amarelo */
}

.ms-response-console.success {
    border-color: rgba(40, 167, 69, 0.3);
    color: #28a745;
    /* Verde */
}

.ms-response-console.error {
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
    /* Vermelho */
}

/* Scrollbar personalizada para o mini-console */
.ms-response-console::-webkit-scrollbar {
    width: 4px;
}

.ms-response-console::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.ms-response-console::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.inioao {
    width: 100%;
    padding: 15px;
    font-size: 17px;
    text-transform:uppercase;
    font-weight:bold;
    background: transparent;
    border: 1px solid var(--border-color);
    color: rgba(255, 255, 255, 0.805);
    border-radius: 0px;
    caret-color: rgba(255, 255, 255, 0.805);
    caret-shape: underscore;
}
.inioao::placeholder {
    color: rgba(255, 255, 255, 0.805);
    opacity: 1;
}
