:root {
    --primary: #18569C;
    --primary-dark: #103E73;
    --background: #F1F5FA;
    --text: #23344B;
    --muted: #65758A;
    --border: #DCE5EF;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 25px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
}

.container {
    width: 100%;
    max-width: 750px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(20, 45, 75, .10);
}

.header {
    padding: 27px 40px;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-main {
    font-size: 29px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
}

.brand-city {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 3px;
}

.header-line {
    width: 65px;
    height: 4px;
    background: var(--primary);
    margin-top: 18px;
    border-radius: 4px;
}

.content {
    padding: 35px 45px 45px;
    text-align: center;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: #E7F0FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}

.icon {
    font-size: 32px;
    color: var(--primary);
}

h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
    color: var(--primary-dark);
}

h2 {
    margin: 12px 0 0;
    font-size: 19px;
    font-weight: 400;
    color: var(--muted);
}

.separator {
    width: 55px;
    height: 2px;
    background: var(--border);
    margin: 25px auto;
}

.message p {
    font-size: 16px;
    line-height: 1.7;
    margin: 12px 0;
}

.english {
    color: var(--muted);
}

.new-address {
    padding: 23px 15px;
    margin: 30px 0;
    background: #EFF5FC;
    border: 1px solid #DAE7F6;
    border-radius: 9px;
}

.address-label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 11px;
}

.address {
    font-size: 21px;
    font-weight: 700;
    color: var(--primary);
    overflow-wrap: anywhere;
}

.redirect {
    margin: 20px 0 25px;
}

.redirect p {
    font-size: 14px;
    line-height: 1.5;
    margin: 7px 0;
}

.progress {
    height: 5px;
    background: #E3EAF2;
    border-radius: 5px;
    margin: 20px auto;
    overflow: hidden;
    max-width: 370px;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: countdown-bar 10s linear forwards;
    transform-origin: left;
}

@keyframes countdown-bar {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

.button {
    display: inline-block;
    padding: 15px 23px;
    border-radius: 7px;
    background: var(--primary);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.button:hover,
.button:focus-visible {
    background: var(--primary-dark);
}

.bookmark {
    font-size: 13px;
    color: var(--muted);
    margin-top: 28px;
    line-height: 1.8;
}

.bookmark span {
    display: block;
}

footer {
    padding: 20px 30px;
    background: #F7F9FC;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    .header {
        padding: 20px;
    }

    .content {
        padding: 28px 20px;
    }

    h1 {
        font-size: 23px;
    }

    h2 {
        font-size: 17px;
    }

    .address {
        font-size: 17px;
    }

    .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .progress-bar {
        animation: none;
    }
}
