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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #07090d;
    color: #f5f7fa;
    min-height: 100vh;
}


/* NAVBAR */

.navbar {
    width: 100%;
    border-bottom: 1px solid #1c2028;
    background: #090b10;
}

.nav-container {
    max-width: 1150px;
    margin: auto;
    padding: 20px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    color: #7c5cff;
    font-weight: 800;
}

.logo-accent {
    color: #7c5cff;
}

.back-link {
    color: #a7adb8;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.back-link:hover {
    color: white;
}


/* HERO */

.tool-hero {
    max-width: 900px;
    margin: auto;
    padding: 80px 24px 50px;
    text-align: center;
}

.tool-badge {
    display: inline-block;

    padding: 7px 12px;
    border: 1px solid #292e38;
    border-radius: 20px;

    color: #9d8cff;
    background: #10121a;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.tool-hero h1 {
    margin-top: 20px;

    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.1;
}

.tool-hero p {
    margin-top: 18px;

    color: #9299a6;
    font-size: 17px;
}


/* MAIN TOOL */

.url-wrapper {
    max-width: 1000px;
    margin: auto;
    padding: 0 24px 80px;

    display: flex;
    flex-direction: column;
    gap: 22px;
}


/* EDITOR */

.editor-panel {
    background: #0d1016;

    border: 1px solid #20252e;
    border-radius: 16px;

    overflow: hidden;
}

.panel-header {
    padding: 14px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #20252e;

    color: #d9dde5;
    font-size: 14px;
    font-weight: 600;
}

textarea {
    width: 100%;
    min-height: 220px;

    padding: 20px;

    border: none;
    outline: none;
    resize: vertical;

    background: #0a0d12;
    color: #e9ecf1;

    font-family: Consolas, Monaco, monospace;
    font-size: 15px;
    line-height: 1.6;
}

textarea::placeholder {
    color: #555c68;
}


/* BUTTONS */

.controls {
    display: flex;
    justify-content: center;
    gap: 12px;
}

button {
    cursor: pointer;
    font-family: inherit;
}

.action-btn,
.secondary-action-btn {
    padding: 13px 22px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.2s;
}

.action-btn {
    border: 1px solid #765cff;
    background: #765cff;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    background: #866fff;
}

.secondary-action-btn {
    border: 1px solid #303641;
    background: #151922;
    color: #dfe3ea;
}

.secondary-action-btn:hover {
    background: #1c222d;
}


/* SECONDARY BUTTON */

.secondary-btn {
    padding: 7px 12px;

    border: 1px solid #303641;
    border-radius: 7px;

    background: #141820;
    color: #aeb5c0;

    font-size: 12px;
}

.secondary-btn:hover {
    background: #1c222d;
    color: white;
}


/* OUTPUT */

pre {
    min-height: 220px;

    padding: 20px;

    background: #0a0d12;

    color: #e9ecf1;

    font-family: Consolas, Monaco, monospace;
    font-size: 15px;
    line-height: 1.6;

    white-space: pre-wrap;
    word-break: break-word;

    overflow-x: auto;
}

.placeholder {
    color: #555c68;
}


/* MESSAGE */

.message {
    min-height: 22px;

    text-align: center;

    color: #8f96a3;

    font-size: 14px;
}


/* FOOTER */

footer {
    padding: 25px;

    border-top: 1px solid #1c2028;

    text-align: center;

    color: #626975;

    font-size: 13px;
}


/* MOBILE */

@media (max-width: 700px) {

    .nav-container {
        padding: 17px;
    }

    .tool-hero {
        padding: 55px 18px 35px;
    }

    .tool-hero h1 {
        font-size: 36px;
    }

    .url-wrapper {
        padding: 0 16px 60px;
    }

    .controls {
        flex-direction: column;
    }

    .action-btn,
    .secondary-action-btn {
        width: 100%;
    }

}