@font-face {
    font-family: 'MultiLangFont';
    src: url('https://mu-newdawn.playpark.com/guild-event/font/SukhumvitSet/SukhumvitSet-Medium.woff2') format('woff2'),
        url('https://mu-newdawn.playpark.com/guild-event/font/SukhumvitSet/SukhumvitSet-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0E00-0E7F;
}

@font-face {
    font-family: 'Change';
    src: url('https://mu-newdawn.playpark.com/guild-event/font/Change/Change-Medium.woff2') format('woff2'),
        url('https://mu-newdawn.playpark.com/guild-event/font/Change/Change-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0020-007F;
}

body {
    font-family: 'Change', sans-serif;
    background: #0a0a12 url('../images/main-bg.png') no-repeat center top;
    background-size: cover;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
}

body.lang-th {
    font-family: 'MultiLangFont', sans-serif;
}

body.lang-cn {
    font-family: 'Change', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.page-wrapper > .footer-custom {
    margin-top: auto;
    flex-shrink: 0;
}

.navbar-custom {
    width: 100%;
    z-index: 1030;
}

.navbar-custom > .container-fluid,
.navbar-custom > .navbar-inner {
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
}

.lang-dropdown-toggle {
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(234, 159, 28, 0.35);
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    line-height: 1;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.lang-dropdown-toggle:hover,
.lang-dropdown-toggle:focus,
.lang-dropdown-toggle.show {
    color: #ea9f1c;
    border-color: rgba(234, 159, 28, 0.7);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: none;
}

.lang-dropdown-toggle::after {
    margin-left: 0.25em;
    vertical-align: middle;
    border-top-color: currentColor;
    opacity: 0.8;
}

.lang-flag {
    flex-shrink: 0;
    width: 1.25rem;
    line-height: 1rem;
    border-radius: 2px;
    overflow: hidden;
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 8rem;
    margin-top: 0.5rem !important;
    padding: 0.35rem;
    background: rgba(10, 10, 18, 0.95);
    border: 1px solid rgba(234, 159, 28, 0.25);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 1050;
}

.lang-dropdown-menu.show {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    inset: auto 0 auto auto !important;
}

.lang-dropdown-menu .dropdown-item {
    color: #fff;
    border-radius: 0.35rem;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.lang-dropdown-menu .dropdown-item:hover,
.lang-dropdown-menu .dropdown-item:focus {
    background: rgba(234, 159, 28, 0.15);
    color: #ea9f1c;
}

.lang-dropdown-menu .dropdown-item.active {
    background: rgba(234, 159, 28, 0.25);
    color: #ea9f1c;
}

.page-main {
    display: flex;
    align-items: center;
    padding: 2rem 1rem 3rem;
}

.thank-you-card {
    max-width: 720px;
    padding: 2.5rem 2rem;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(234, 159, 28, 0.25);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.thank-you-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.thank-you-icon {
    font-size: 3.5rem;
    color: #ea9f1c;
    line-height: 1;
}

.thank-you-title {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 2px 12px rgba(234, 159, 28, 0.25);
}

.thank-you-body {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.7;
}

.thank-you-body p + p {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .thank-you-body .single-line-p {
        white-space: nowrap;
        line-height: 1.5;
    }
}

.thank-you-closing {
    color: #ea9f1c;
    font-weight: 500;
}

.thank-you-actions .btn {
    min-width: 220px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.thank-you-actions .btn:hover {
    transform: translateY(-2px);
}

.btn-download {
    background: linear-gradient(180deg, #f0b030 0%, #c87a0a 100%);
    border: 1px solid #ea9f1c;
    color: #1a1000;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(234, 159, 28, 0.35);
}

.btn-download:hover,
.btn-download:focus {
    background: linear-gradient(180deg, #ffc040 0%, #d88a12 100%);
    border-color: #ffc040;
    color: #1a1000;
    box-shadow: 0 6px 24px rgba(234, 159, 28, 0.5);
}

.btn-official {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}

.btn-official:hover,
.btn-official:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(234, 159, 28, 0.6);
    color: #ea9f1c;
}

.footer-custom {
    padding: 1.5rem 1rem 2rem;
    background: rgba(0, 0, 0, 0.4);
}

.footer-logos-img {
    max-width: 320px;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.footer-copy {
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 575.98px) {
    .thank-you-card {
        padding: 2rem 1.25rem;
    }

    .thank-you-actions .btn {
        width: 100%;
        min-width: 0;
    }
}
