﻿html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    color: #333;
    min-height: 100vh;
    overflow-y: auto;
}

/* === COMPACT LOGO BLOCK === */
.logo-banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 520px;
    width: 100%;
    margin: 10px auto 10px;
    padding: 0 10px;
}

.logo-left img {
    height: 90px;
}

.logo-center img {
    height: 130px;
}

.logo-right {
    text-align: right;
    flex-shrink: 0;
    padding-right: 10px;
}

    .logo-right .implemented {
        font-size: 13px;
        color: #444;
        margin-bottom: 3px;
        display: inline-block;
    }

    .logo-right img {
        height: 75px;
    }

@media (max-width: 600px) {
    .logo-banner {
        max-width: 520px;
        padding: 0 8px;
    }
}

/* === MAIN CONTENT === */
.main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 40px;
    text-align: center;
}

.hero-image {
    width: 100%;
    max-width: 520px;
    margin: 30px auto 20px;
}

    .hero-image img {
        width: 100%;
        height: auto;
    }

h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0 25px;
}

.connect-btn {
    background: #3B82F6;
    color: #ffffff;
    border: none;
    padding: 16px 60px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    width: 340px;
    max-width: 90%;
}

.terms {
    margin-top: 14px;
    font-size: 16px;
}

    .terms a {
        color: #2563EB;
        text-decoration: none;
    }

.footer-text {
    margin-top: 35px;
    font-size: 17px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
    color: #444;
}

/* === MODERN ERROR DIALOG === */

.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .dialog-overlay.open {
        display: flex;
    }

.dialog-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 24px;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    text-align: center;
    animation: dialog-pop 0.18s ease-out;
    position: relative;
    margin: 0 auto;
}

.dialog-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.dialog-message {
    margin: 0 0 18px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.4;
}

.dialog-button {
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #2563EB;
    color: #ffffff;
    transition: background 0.15s ease, transform 0.1s ease;
}

    .dialog-button:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
    }

    .dialog-button:active {
        transform: translateY(0);
    }

/* === Parameters table container === */
.params-box {
    margin-top: 24px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

    /* Optional title */
    .params-box h3 {
        margin: 0 0 12px 0;
        font-size: 15px;
        font-weight: 600;
        color: #333;
    }

/* === Table === */
.params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    /* Header */
    .params-table thead th {
        text-align: left;
        padding: 10px 12px;
        background: #f5f6f8;
        color: #444;
        font-weight: 600;
        border-bottom: 1px solid #dcdcdc;
    }

    /* Rows */
    .params-table tbody tr {
        border-bottom: 1px solid #eeeeee;
    }

    /* Cells */
    .params-table td {
        padding: 8px 12px;
        vertical-align: top;
        color: #333;
        word-break: break-all;
    }

        /* Parameter column */
        .params-table td:first-child {
            width: 35%;
            font-weight: 500;
            color: #555;
        }

        /* Value column */
        .params-table td:last-child {
            width: 65%;
            color: #111;
        }

    /* Zebra striping */
    .params-table tbody tr:nth-child(even) {
        background: #fafafa;
    }

    /* Hover effect */
    .params-table tbody tr:hover {
        background: #f0f6ff;
    }

    /* URL highlight */
    .params-table td a,
    .params-table td:last-child {
        color: #0b63c7;
    }


@keyframes dialog-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* === MOBILE: dialog with side padding === */
@media (max-width: 480px) {
    .dialog-card {
        width: calc(100% - 40px); /* 20px margin left/right */
        max-width: none;
        margin: 0 20px;
    }
}
