:root {
    --tec-bg: #0a0e14;
    --tec-bg-deep: #05080d;
    --tec-surface: rgba(11, 19, 29, 0.9);
    --tec-surface-soft: rgba(14, 24, 36, 0.72);
    --tec-border: rgba(127, 170, 210, 0.18);
    --tec-border-strong: rgba(83, 217, 255, 0.42);
    --tec-accent: #53d9ff;
    --tec-accent-strong: #00cdec;
    --tec-accent-soft: rgba(83, 217, 255, 0.12);
    --tec-text: #f3faff;
    --tec-text-soft: #c7d6e5;
    --tec-muted: #8ea4ba;
    --tec-success: #62d6aa;
    --tec-danger: #ff7c87;
    --tec-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    --tec-display: 'Outfit', 'Segoe UI', sans-serif;
    --tec-body: 'DM Sans', 'Segoe UI', sans-serif;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body.tera-public-page,
body.tera-auth-page,
body.tera-panel-page {
    background: var(--tec-bg);
    color: var(--tec-text);
    font-family: var(--tec-body);
}

body.tera-public-page a,
body.tera-auth-page a,
body.tera-panel-page a {
    text-underline-offset: 0.22em;
}

body.tera-public-page :focus-visible,
body.tera-auth-page :focus-visible,
body.tera-panel-page :focus-visible {
    outline: 2px solid var(--tec-accent);
    outline-offset: 3px;
}

/* Public restoration landing page */
body.tera-restore-landing {
    min-height: 100vh;
    overflow-x: hidden;
}

body.tera-restore-landing::before {
    background:
        linear-gradient(90deg, rgba(4, 8, 13, 0.97) 0%, rgba(4, 8, 13, 0.78) 43%, rgba(4, 8, 13, 0.32) 76%, rgba(4, 8, 13, 0.78) 100%),
        linear-gradient(180deg, rgba(5, 9, 15, 0.08) 0%, rgba(5, 9, 15, 0.56) 72%, var(--tec-bg-deep) 100%),
        url('../assets/parallax-image.jpg') center 24% / cover no-repeat fixed;
    opacity: 1;
}

.tera-restore-landing::after {
    background:
        radial-gradient(circle at 72% 28%, rgba(83, 217, 255, 0.13), transparent 24rem),
        linear-gradient(90deg, rgba(83, 217, 255, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(83, 217, 255, 0.035) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
    content: '';
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.tera-restore-landing .topbar {
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 14, 20, 0.96), rgba(10, 14, 20, 0.74) 58%, rgba(10, 14, 20, 0));
    border: 0;
    display: flex;
    height: 86px;
    justify-content: space-between;
    padding: 0 clamp(1rem, 4vw, 3.5rem);
    position: fixed;
    width: 100%;
}

.tera-restore-landing .topbar-brand {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
}

.tera-restore-landing .topbar-logo {
    display: block;
    height: auto;
    max-height: 66px;
    object-fit: contain;
    width: clamp(168px, 15vw, 226px);
}

.tera-restore-landing .topbar-nav {
    align-items: center;
    display: flex;
    gap: clamp(0.55rem, 1.4vw, 1.4rem);
}

.tera-restore-landing .topbar-link,
.tera-restore-landing .language-link {
    color: var(--tec-text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tera-restore-landing .language-switcher {
    align-items: center;
    border-left: 1px solid var(--tec-border);
    display: flex;
    gap: 0.5rem;
    padding-left: clamp(0.65rem, 1.4vw, 1.25rem);
}

.tera-restore-landing .language-link.is-active,
.tera-restore-landing .topbar-link:hover,
.tera-restore-landing .language-link:hover {
    color: var(--tec-accent);
}

.tera-restore-landing .hero-section {
    align-items: center;
    min-height: auto;
    padding: 140px 0 82px;
    position: relative;
}

.tera-restore-landing .hero-section::after {
    background: linear-gradient(90deg, var(--tec-accent), rgba(83, 217, 255, 0));
    bottom: 0;
    content: '';
    height: 1px;
    left: max(1rem, calc((100vw - 1320px) / 2));
    opacity: 0.5;
    position: absolute;
    width: min(38vw, 520px);
}

.tera-restore-landing .hero-section .container,
.tera-restore-landing .section-band .container {
    max-width: 1320px;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.tera-restore-landing .hero-section .row {
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5.25rem);
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.72fr);
}


.tera-restore-landing .hero-eyebrow,
.tera-auth-page .auth-kicker {
    color: var(--tec-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.tera-restore-landing .status-pill {
    background: rgba(8, 17, 25, 0.66);
    border-color: var(--tec-border-strong);
    border-radius: 4px;
    color: #dff7ff;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    padding: 0.62rem 0.82rem;
    text-transform: uppercase;
}

.tera-restore-landing .status-pill i {
    color: var(--tec-accent);
}

.tera-restore-landing .hero-title {
    color: var(--tec-text);
    font-family: var(--tec-display);
    font-size: clamp(2.65rem, 5.5vw, 5.3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.98;
    max-width: 850px;
    text-wrap: balance;
}

.tera-restore-landing .hero-copy {
    color: var(--tec-text-soft);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.75;
    max-width: 680px;
}

.tera-restore-landing .hero-actions {
    align-items: center;
    gap: 0.85rem;
}

.tera-restore-landing .hero-cta {
    align-items: center;
    border: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    display: inline-flex;
    font-family: var(--tec-body);
    font-size: 0.77rem;
    font-weight: 800;
    isolation: isolate;
    letter-spacing: 0.105em;
    min-height: 56px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.tera-restore-landing .hero-cta::before {
    content: '';
    inset: 1px;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.tera-restore-landing .hero-cta-label {
    line-height: 1;
    padding: 0 1.25rem;
    white-space: nowrap;
}

.tera-restore-landing .hero-cta-icon {
    align-items: center;
    align-self: stretch;
    display: inline-flex;
    justify-content: center;
    min-width: 52px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tera-restore-landing .hero-cta-primary {
    background: linear-gradient(135deg, #c4f6ff 0%, #48d9f5 48%, #00abc9 100%);
    color: #041118;
    filter: drop-shadow(0 10px 18px rgba(0, 203, 235, 0.2));
    min-width: 204px;
}

.tera-restore-landing .hero-cta-primary::before {
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.18), transparent 52%);
}

.tera-restore-landing .hero-cta-primary .hero-cta-icon {
    background: rgba(4, 28, 38, 0.13);
    border-left: 1px solid rgba(3, 42, 54, 0.18);
}

.tera-restore-landing .hero-cta-secondary {
    background: linear-gradient(135deg, rgba(106, 188, 219, 0.48), rgba(106, 188, 219, 0.15));
    color: #e9f9ff;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.tera-restore-landing .hero-cta-secondary::before {
    background: linear-gradient(145deg, rgba(7, 17, 26, 0.96), rgba(9, 23, 34, 0.9));
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.tera-restore-landing .hero-cta-secondary .hero-cta-icon {
    color: var(--tec-accent);
    min-width: 44px;
}

.tera-restore-landing .hero-cta:hover {
    color: inherit;
    filter: drop-shadow(0 13px 22px rgba(0, 205, 237, 0.24)) brightness(1.06);
    transform: translateY(-2px);
}

.tera-restore-landing .hero-cta-primary:hover .hero-cta-icon {
    background: rgba(4, 28, 38, 0.2);
    transform: translateX(2px);
}

.tera-restore-landing .hero-cta-secondary:hover::before {
    background: linear-gradient(145deg, rgba(10, 27, 39, 0.98), rgba(10, 35, 48, 0.94));
}

.tera-restore-landing .hero-cta:active {
    filter: brightness(0.96);
    transform: translateY(0);
}

.tera-restore-landing .hero-cta:focus-visible {
    outline: 0;
    filter: drop-shadow(0 0 0.35rem rgba(83, 217, 255, 0.78));
}

.tera-restore-landing .hero-actions .btn,
.tera-restore-landing .restore-panel .btn {
    border-radius: 5px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    min-height: 50px;
    padding-inline: 1.35rem;
    text-transform: uppercase;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tera-restore-landing .btn-restore,
.tera-auth-page .btn-primary,
.tera-panel-page .btn-primary {
    background: linear-gradient(135deg, var(--tec-accent), var(--tec-accent-strong));
    border: 1px solid rgba(130, 235, 255, 0.82);
    box-shadow: 0 9px 28px rgba(0, 205, 237, 0.18);
    color: #061017;
}

.tera-restore-landing .btn-restore:hover,
.tera-auth-page .btn-primary:hover,
.tera-panel-page .btn-primary:hover {
    background: #8ae9ff;
    border-color: #b9f3ff;
    box-shadow: 0 11px 34px rgba(0, 205, 237, 0.28);
    color: #061017;
    transform: translateY(-1px);
}

.tera-restore-landing .btn-outline-restore {
    background: rgba(8, 14, 21, 0.48);
    border-color: rgba(174, 204, 236, 0.38);
    color: var(--tec-text);
}

.tera-restore-landing .btn-outline-restore:hover {
    background: var(--tec-accent-soft);
    border-color: var(--tec-accent);
}

.tera-restore-landing .trust-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
}

.tera-restore-landing .trust-list li {
    color: var(--tec-text-soft);
    font-size: 0.82rem;
}

.tera-restore-landing .trust-list i {
    color: var(--tec-accent);
}

.tera-restore-landing .restore-panel {
    background:
        linear-gradient(150deg, rgba(15, 27, 40, 0.96), rgba(7, 13, 21, 0.94)),
        radial-gradient(circle at top right, rgba(83, 217, 255, 0.14), transparent 45%);
    border: 1px solid var(--tec-border-strong);
    border-radius: 8px;
    box-shadow: var(--tec-shadow), inset 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.35rem);
    position: relative;
}

.tera-restore-landing .restore-panel::before {
    background: linear-gradient(90deg, var(--tec-accent), transparent);
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    top: 0;
    width: 65%;
}

.tera-restore-landing .panel-kicker {
    color: var(--tec-accent);
    letter-spacing: 0.15em;
}

.tera-restore-landing .restore-panel h2,
.tera-restore-landing .section-band h2,
.tera-restore-landing .info-box h3 {
    color: var(--tec-text);
    font-family: var(--tec-display);
}

.tera-restore-landing .restore-panel .form-control,
.tera-auth-page .form-control,
.tera-auth-page .form-select,
.tera-panel-page .form-control,
.tera-panel-page .form-select {
    background: rgba(4, 9, 15, 0.7);
    border: 1px solid rgba(142, 171, 199, 0.3);
    border-radius: 5px;
    color: var(--tec-text);
    min-height: 48px;
}

.tera-restore-landing .restore-panel .form-control:focus,
.tera-auth-page .form-control:focus,
.tera-auth-page .form-select:focus,
.tera-panel-page .form-control:focus,
.tera-panel-page .form-select:focus {
    background: rgba(4, 9, 15, 0.88);
    border-color: var(--tec-accent);
    box-shadow: 0 0 0 0.2rem rgba(83, 217, 255, 0.12);
    color: var(--tec-text);
}

.tera-restore-landing .section-band {
    background: var(--tec-bg-deep);
    padding: clamp(4rem, 6vw, 6rem) 0;
}

.tera-restore-landing .section-band + .section-band {
    background: linear-gradient(180deg, var(--tec-bg-deep), #080d14);
}

.tera-restore-landing .section-kicker {
    color: var(--tec-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.tera-restore-landing .info-box {
    background: linear-gradient(155deg, rgba(16, 26, 38, 0.86), rgba(8, 13, 20, 0.88));
    border-color: var(--tec-border);
    border-radius: 6px;
    box-shadow: none;
    padding: clamp(1.4rem, 2.5vw, 2rem);
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.tera-restore-landing .info-box:hover {
    border-color: var(--tec-border-strong);
    transform: translateY(-3px);
}

.tera-restore-landing .info-box i {
    color: var(--tec-accent);
    font-size: 1.45rem;
}

.tera-restore-landing .info-box p,
.tera-restore-landing .muted-copy {
    color: var(--tec-muted);
    line-height: 1.7;
}

.tera-restore-landing footer {
    background: #04070b;
    border-top: 1px solid var(--tec-border);
    color: var(--tec-muted);
}

.tera-restore-landing .site-footer {
    padding: 2.35rem 0 2rem;
    text-align: center;
}

.tera-restore-landing .site-footer .container {
    display: grid;
    gap: 0.7rem;
    justify-items: center;
}

.tera-restore-landing .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.15rem;
    justify-content: center;
}

.tera-restore-landing .footer-links a {
    color: var(--tec-text-soft);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
}

.tera-restore-landing .footer-links a:hover {
    color: var(--tec-accent);
}

.tera-restore-landing .footer-project,
.tera-restore-landing .footer-trademark {
    margin: 0;
    max-width: 900px;
}

.tera-restore-landing .footer-project {
    font-size: 0.72rem;
}

.tera-restore-landing .footer-trademark,
.tera-restore-landing .site-footer small {
    color: rgba(142, 164, 186, 0.78);
    font-size: 0.65rem;
}

/* Login and registration */
body.tera-auth-page {
    align-items: center;
    background: var(--tec-bg-deep);
    display: flex;
    justify-content: center;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: clamp(1rem, 4vw, 3.5rem);
    position: relative;
}

body.tera-auth-page::before {
    background:
        linear-gradient(90deg, rgba(4, 8, 13, 0.95), rgba(4, 8, 13, 0.56) 55%, rgba(4, 8, 13, 0.86)),
        linear-gradient(180deg, rgba(4, 8, 13, 0.25), rgba(4, 8, 13, 0.9)),
        url('../assets/background.jpg') center / cover no-repeat;
    content: '';
    inset: 0;
    position: fixed;
    z-index: -2;
}

body.tera-auth-page .background-overlay {
    background:
        radial-gradient(circle at 20% 25%, rgba(83, 217, 255, 0.12), transparent 27rem),
        linear-gradient(90deg, rgba(83, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(83, 217, 255, 0.03) 1px, transparent 1px);
    background-size: auto, 52px 52px, 52px 52px;
    backdrop-filter: none;
}

.tera-auth-page .login-container {
    background: linear-gradient(155deg, rgba(13, 23, 35, 0.97), rgba(7, 12, 19, 0.96));
    border: 1px solid var(--tec-border-strong);
    border-radius: 8px;
    box-shadow: var(--tec-shadow);
    color: var(--tec-text);
    margin: auto;
    max-width: 460px;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    width: 100%;
}

.tera-register-page .login-container {
    max-width: 610px;
}

.tera-auth-page .login-container::before {
    background: linear-gradient(90deg, var(--tec-accent), transparent 70%);
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    top: 0;
    width: 72%;
}

.tera-auth-page .auth-brand {
    display: inline-flex;
    margin: 0 auto 1.1rem;
}

.tera-auth-page .auth-brand img {
    height: auto;
    max-height: 86px;
    object-fit: contain;
    width: min(72vw, 240px);
}

.tera-auth-page h2,
.tera-auth-page h3 {
    color: var(--tec-text);
    font-family: var(--tec-display);
}

.tera-auth-page .form-label {
    color: var(--tec-text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tera-auth-page .form-control::placeholder {
    color: #6f8498;
}

.tera-auth-page .btn {
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    min-height: 46px;
    text-transform: uppercase;
}

.tera-auth-page .btn-secondary,
.tera-auth-page .btn-outline-secondary,
.tera-auth-page .btn-success {
    background: rgba(83, 217, 255, 0.08);
    border: 1px solid var(--tec-border);
    color: var(--tec-text);
}

.tera-auth-page .btn-secondary:hover,
.tera-auth-page .btn-outline-secondary:hover,
.tera-auth-page .btn-success:hover {
    background: var(--tec-accent-soft);
    border-color: var(--tec-accent);
    color: var(--tec-text);
}

.tera-auth-page .auth-utility {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tera-auth-page .auth-utility a {
    color: var(--tec-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.tera-auth-page .auth-utility a:hover {
    color: var(--tec-accent);
}

.tera-auth-page .alert {
    background: rgba(255, 124, 135, 0.1);
    border-color: rgba(255, 124, 135, 0.34);
    color: #ffd8dc;
}

.tera-auth-page #loadingOverlay {
    background: rgba(4, 8, 13, 0.86);
    backdrop-filter: blur(7px);
}

.tera-auth-page .modal-content {
    background: #0c141e;
    border: 1px solid var(--tec-border);
    color: var(--tec-text);
}

/* Authenticated panel */
body.tera-panel-page {
    background:
        linear-gradient(180deg, rgba(5, 9, 14, 0.76), rgba(5, 9, 14, 0.96)),
        url('../assets/thumb-1920-235569.jpg') center top / cover fixed no-repeat;
    min-height: 100vh;
}

.tera-panel-page .glass-nav {
    background: rgba(8, 13, 20, 0.92) !important;
    border-bottom: 1px solid var(--tec-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    min-height: 70px;
    padding: 0.6rem clamp(0.8rem, 3vw, 2.5rem);
}

.tera-panel-page .navbar-brand {
    align-items: center;
    color: var(--tec-text) !important;
    display: inline-flex;
    font-family: var(--tec-display);
    gap: 0.8rem;
    letter-spacing: 0.02em;
}

.tera-panel-page .navbar-brand img {
    height: 42px;
    object-fit: contain;
    width: 116px;
}

.tera-panel-page .navbar-brand span {
    border-left: 1px solid var(--tec-border);
    color: var(--tec-muted);
    font-size: 0.7rem;
    letter-spacing: 0.11em;
    padding-left: 0.8rem;
    text-transform: uppercase;
}

.tera-panel-page .navbar-nav .nav-link {
    border-radius: 4px;
    color: var(--tec-text-soft) !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.tera-panel-page .navbar-nav .nav-link:hover {
    background: var(--tec-accent-soft);
    color: var(--tec-accent) !important;
    text-decoration: none;
}

.tera-panel-page .main-container {
    gap: 1.25rem;
    max-width: 1440px;
    padding: 2rem clamp(1rem, 3vw, 2.25rem) 3.5rem;
}

.tera-panel-page .glass-section,
.tera-panel-page .card-glass {
    background: linear-gradient(155deg, rgba(14, 24, 36, 0.91), rgba(7, 13, 20, 0.88));
    border: 1px solid var(--tec-border);
    border-radius: 7px;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.24);
    color: var(--tec-text);
}

.tera-panel-page .glass-section {
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.tera-panel-page .card-glass:hover,
.tera-panel-page .badge-tile:hover {
    border-color: var(--tec-border-strong);
    box-shadow: 0 18px 42px rgba(0, 205, 237, 0.08);
    transform: translateY(-3px);
}

.tera-panel-page .section-title,
.tera-panel-page h1,
.tera-panel-page h2,
.tera-panel-page h3,
.tera-panel-page h4,
.tera-panel-page h5 {
    color: var(--tec-text);
    font-family: var(--tec-display);
}

.tera-panel-page .section-title {
    letter-spacing: -0.015em;
}

.tera-panel-page .text-muted {
    color: var(--tec-muted) !important;
}

.tera-panel-page .btn-glass {
    background: rgba(83, 217, 255, 0.08);
    border: 1px solid var(--tec-border);
    border-radius: 5px;
    color: var(--tec-text);
}

.tera-panel-page .btn-glass:hover {
    background: var(--tec-accent-soft);
    border-color: var(--tec-accent);
    box-shadow: none;
    color: var(--tec-text);
    transform: translateY(-1px);
}

.tera-panel-page .tip-box,
.tera-panel-page .quest-card {
    background: rgba(83, 217, 255, 0.07);
    border-left-color: var(--tec-accent);
    border-radius: 4px;
}

.tera-panel-page .modal-content,
.tera-panel-page .list-group-item {
    background: #0c141e !important;
    border-color: var(--tec-border);
    color: var(--tec-text) !important;
}

.tera-panel-page .bottom {
    background: rgba(4, 7, 11, 0.94);
    border-top: 1px solid var(--tec-border);
    color: var(--tec-muted);
    padding: 1.1rem;
    text-align: center;
}

.tera-panel-page .bottom h6 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin: 0;
}

@media (max-width: 991px) {
    .tera-restore-landing .topbar {
        height: 64px;
        padding-inline: 1rem;
    }

    .tera-restore-landing .topbar-logo {
        max-height: 42px;
        width: 130px;
    }

    .tera-restore-landing .topbar-link {
        display: none;
    }

    .tera-restore-landing .hero-section {
        padding-top: 96px;
    }

    .tera-restore-landing .hero-section .row {
        grid-template-columns: 1fr;
    }

    .tera-restore-landing .hero-section .col-lg-7 {
        max-width: 760px;
    }

    .tera-panel-page .navbar-brand span {
        display: none;
    }
}

@media (max-width: 767px) {
    body.tera-restore-landing::before {
        background:
            linear-gradient(180deg, rgba(4, 8, 13, 0.7), rgba(4, 8, 13, 0.93)),
            url('../assets/parallax-image.jpg') 62% center / cover no-repeat;
    }

    .tera-restore-landing .hero-title {
        font-size: clamp(2.45rem, 13vw, 4rem);
    }

    .tera-restore-landing .trust-list {
        grid-template-columns: 1fr;
    }

    .tera-restore-landing .hero-actions .btn,
    .tera-restore-landing .hero-actions .hero-cta {
        justify-content: space-between;
        width: 100%;
    }

    .tera-auth-page .input-group {
        align-items: stretch;
        flex-direction: column;
        gap: 0.55rem;
    }

    .tera-auth-page .input-group > .form-control,
    .tera-auth-page .input-group > .btn {
        border-radius: 5px !important;
        width: 100%;
    }

    .tera-panel-page .main-container {
        padding-top: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Compact public service layout — follows the parent site's restrained header. */
body.tera-restore-landing::before {
    background:
        linear-gradient(90deg, rgba(5, 8, 13, 0.96), rgba(5, 8, 13, 0.82)),
        url('../assets/parallax-image.jpg') center / cover no-repeat fixed;
}

.tera-restore-landing::after {
    display: none;
}

.tera-restore-landing .topbar {
    background: rgba(10, 14, 20, 0.94);
    border-bottom: 1px solid rgba(127, 170, 210, 0.1);
    height: 70px;
    padding: 0 max(16px, calc((100vw - 1100px) / 2));
}

.tera-restore-landing .topbar-logo {
    height: auto;
    max-height: 51px;
    width: 169px;
}

.tera-restore-landing .topbar-nav {
    gap: 16px;
}

.tera-restore-landing .topbar-link,
.tera-restore-landing .language-link {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.tera-restore-landing .hero-section {
    min-height: auto;
    padding: 118px 0 48px;
}

.tera-restore-landing .hero-section::after {
    display: none;
}

.tera-restore-landing .hero-section .container {
    max-width: 1100px;
    padding-inline: 16px;
}

.tera-restore-landing .landing-layout {
    align-items: center;
    display: grid;
    gap: clamp(36px, 6vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
}

.tera-restore-landing .hero-title {
    font-size: clamp(2.35rem, 5vw, 4rem);
    line-height: 1.02;
    max-width: 650px;
}

.tera-restore-landing .hero-copy {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0 !important;
    max-width: 580px;
}

.tera-restore-landing .restore-panel {
    background: rgba(10, 16, 24, 0.94);
    border: 1px solid rgba(127, 170, 210, 0.2);
    border-radius: 6px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
    padding: 26px;
}

.tera-restore-landing .restore-panel h2 {
    font-size: 1.45rem;
}

.tera-restore-landing .restore-panel .muted-copy {
    font-size: 0.94rem;
    line-height: 1.55;
}

.tera-restore-landing .form-control {
    border-radius: 6px;
    min-height: 48px;
}

.tera-restore-landing .btn-restore {
    background: var(--tec-accent);
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    clip-path: none;
    color: #061018;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    min-height: 48px;
    text-transform: none;
}

.tera-restore-landing .btn-restore:hover,
.tera-restore-landing .btn-restore:focus {
    background: #8ae9ff;
    color: #061018;
    transform: none;
}

.tera-restore-landing .site-footer {
    padding: 18px 0;
}

.tera-restore-landing .site-footer .container {
    gap: 0.4rem;
    max-width: 1100px;
}

.tera-restore-landing .footer-project,
.tera-restore-landing .footer-trademark {
    font-size: 0.66rem;
    line-height: 1.35;
}

.tera-restore-landing .site-footer small {
    font-size: 0.62rem;
}

.tera-panel-page .navbar-brand img {
    height: 34px;
    width: auto;
}

.tera-panel-page .navbar-brand span {
    display: none;
}

@media (max-width: 800px) {
    .tera-restore-landing .topbar {
        height: 44px;
        padding-inline: 12px;
    }

    .tera-restore-landing .topbar-logo {
        max-height: 28px;
        width: 92px;
    }

    .tera-restore-landing .hero-section {
        padding: 76px 0 32px;
    }

    .tera-restore-landing .landing-layout {
        gap: 28px;
        grid-template-columns: 1fr;
    }

    .tera-restore-landing .landing-intro {
        max-width: 620px;
    }

    .tera-restore-landing .hero-title {
        font-size: clamp(2.1rem, 10vw, 3.2rem);
    }

    .tera-restore-landing .restore-panel {
        padding: 20px;
    }
}

/* Keep the compact footer compact and restore the TERA product identity. */
body.tera-restore-landing {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

.tera-restore-landing main {
    display: flex;
    flex: 1 0 auto;
}

.tera-restore-landing .hero-section {
    display: flex;
    flex: 1 0 auto;
    width: 100%;
}

.tera-restore-landing .hero-tera-logo {
    display: block;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
    height: auto;
    margin: 0 0 18px;
    width: clamp(280px, 20vw, 340px);
}

.tera-restore-landing .site-footer {
    flex: 0 0 auto;
}

@media (max-width: 800px) {
    .tera-restore-landing .hero-tera-logo {
        width: 220px;
    }
}
