:root {
    --gold: #d7b26c;
    --gold-dim: rgba(215, 178, 108, 0.32);
    --text: #f3ead7;
    --bg-dark: rgba(4, 5, 7, 0.92);
}

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

html, body {
    height: 100%;
    background: #050608;
    color: var(--text);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

/* ════════════════════════════════════════
   SHELL
════════════════════════════════════════ */
.desk-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #050608;
}

/* Área abaixo do header — tem a imagem de fundo */
.desk-body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-image: url('/images/homepage/bg-main.jpg');
    background-size: cover;
    background-position: center top;
}

.desk-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(4,5,7,0.28) 0%,
            rgba(4,5,7,0.20) 30%,
            rgba(4,5,7,0.26) 70%,
            rgba(4,5,7,0.44) 100%);
    pointer-events: none;
    z-index: 0;
}

.desk-body > * { position: relative; z-index: 1; }

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.desk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 68px;
    background: rgba(4, 5, 7, 0.78);
    border-bottom: 1px solid rgba(215, 178, 108, 0.16);
    backdrop-filter: blur(6px);
    flex-shrink: 0;
}

.desk-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.desk-brand-mark {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
    display: grid;
    place-items: center;
}

.desk-brand-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    color: var(--text);
    line-height: 1;
}

.desk-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.desk-nav a {
    padding: 7px 18px;
    color: rgba(243,234,215,0.65);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.desk-nav a:hover,
.desk-nav a.active {
    color: var(--gold);
    background: rgba(215,178,108,0.07);
    border-color: rgba(215,178,108,0.2);
}

.desk-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desk-nav-btn {
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.desk-nav-btn.outline {
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    background: transparent;
}

.desk-nav-btn.outline:hover {
    background: rgba(215,178,108,0.08);
}

.desk-nav-btn.filled {
    background: linear-gradient(180deg, #e0bb74, #bf8f3c);
    color: #1d1306;
    border: none;
}

.desk-nav-btn.filled:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(191,143,60,0.35);
}

/* ════════════════════════════════════════
   MAIN — texto + login juntos à direita
════════════════════════════════════════ */
.desk-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 5% 32px;
    gap: 48px;
    min-height: 0;
}

/* TEXTO */
.desk-hero-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-width: 0;
    max-width: 460px;
}

.desk-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(215,178,108,0.65);
    margin-bottom: 14px;
}

.desk-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.6rem, 3.8vw, 4.4rem);
    line-height: 0.9;
    color: var(--gold);
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
    word-break: break-word;
}

.desk-subtitle {
    font-family: "Cormorant Garamond", serif;
    font-size: 0.95rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(215,178,108,0.55);
    margin-bottom: 24px;
}

.desk-divider-line {
    width: 56px;
    height: 1px;
    background: rgba(215,178,108,0.35);
    margin-bottom: 22px;
}

.desk-desc {
    font-size: 0.96rem;
    line-height: 1.8;
    color: rgba(243,234,215,0.72);
}

/* LOGIN / FLIP CARD */
.desk-login-panel {
    flex-shrink: 0;
    perspective: 1200px;
}

/* Contentor que roda — largura fixa, altura gerida por JS */
.desk-card-flipper {
    width: 370px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1),
                height  0.4s ease;
}
.desk-card-flipper.flipped {
    transform: rotateY(180deg);
}

/* Faces comum */
.desk-card-face {
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
/* Face de trás — montada ao contrário */
.desk-card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: rotateY(180deg);
}

/* O card em si (usado em ambas as faces) */
.desk-login-card {
    background: linear-gradient(180deg, rgba(12,12,15,0.97), rgba(9,9,12,0.96));
    border: 1px solid rgba(215,178,108,0.2);
    border-radius: 22px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 28px 70px rgba(0,0,0,0.65);
}

/* Label da face de trás */
.desk-card-back-label {
    font-family: "Cormorant Garamond", serif;
    font-size: 0.82rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(215,178,108,0.55);
    text-align: center;
    margin: -6px 0 0;
}

.desk-login-logo {
    width: 56px;
    height: 56px;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    display: grid;
    place-items: center;
    align-self: center;
    margin-bottom: 4px;
}

.desk-login-card input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(215,178,108,0.2);
    border-radius: 12px;
    background: rgba(6,7,9,0.9);
    color: var(--text);
    font-size: 0.9rem;
    font-family: "Inter", sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.desk-login-card input::placeholder { color: rgba(243,234,215,0.35); }
.desk-login-card input:focus        { border-color: rgba(215,178,108,0.5); }

.desk-btn-gold {
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg, #e0bb74, #bf8f3c);
    color: #1d1306;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.desk-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(191,143,60,0.38);
}

.desk-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(215,178,108,0.4);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.desk-or-divider::before,
.desk-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(215,178,108,0.16);
}

.desk-btn-green {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg, #123425, #0d241a);
    color: #ebdebf;
    border: 1px solid rgba(215,178,108,0.26);
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s;
}

.desk-btn-green:hover {
    transform: translateY(-1px);
    color: #ebdebf;
}

/* ════════════════════════════════════════
   SERVIDORES (centrado)
════════════════════════════════════════ */
.desk-servers-section {
    display: flex;
    justify-content: center;
    padding: 0 48px 32px;
}

.desk-servers-card {
    width: 100%;
    max-width: 680px;
    background: rgba(8,9,12,0.88);
    border: 1px solid rgba(215,178,108,0.18);
    border-radius: 18px;
    padding: 28px 32px;
    backdrop-filter: blur(4px);
}

.desk-servers-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.desk-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

.desk-pill {
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.28);
    color: #4ade80;
    font-size: 0.76rem;
    font-weight: 600;
}

.desk-server-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.desk-server-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(215,178,108,0.07);
}

.desk-server-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.desk-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.desk-dot--green { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.7); }
.desk-dot--amber { background: #fbbf24; box-shadow: 0 0 6px rgba(251,191,36,0.7); }
.desk-dot--red   { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.6); }

.desk-server-name  { flex: 1; color: rgba(243,234,215,0.85); }

.desk-server-count { color: rgba(243,234,215,0.4); font-size: 0.8rem; }

.desk-server-status { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; min-width: 58px; text-align: right; }
.desk-server-status.online { color: #4ade80; }
.desk-server-status.medium { color: #fbbf24; }
.desk-server-status.low    { color: rgba(243,234,215,0.35); }

.desk-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px;
    border: 1px solid rgba(215,178,108,0.28);
    border-radius: 10px;
    color: rgba(215,178,108,0.8);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.desk-link-btn:hover {
    background: rgba(215,178,108,0.07);
    color: var(--gold);
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.desk-footer {
    background: rgba(4,5,7,0.88);
    border-top: 1px solid rgba(215,178,108,0.12);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 18px 48px;
    flex-shrink: 0;
}

.desk-footer a {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(243,234,215,0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.desk-footer a:hover { color: var(--gold); }

.desk-footer-sep {
    width: 1px;
    height: 16px;
    background: rgba(215,178,108,0.15);
}

.desk-footer-logo {
    width: 38px;
    height: 38px;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    display: grid;
    place-items: center;
}

/* Inputs usados na página /register standalone */
.desk-reg-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(215,178,108,0.2);
    border-radius: 12px;
    background: rgba(6,7,9,0.9);
    color: var(--text);
    font-size: 0.9rem;
    font-family: "Inter", sans-serif;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}
.desk-reg-input::placeholder { color: rgba(243,234,215,0.35); }
.desk-reg-input:focus        { border-color: rgba(215,178,108,0.5); }

/* ════════════════════════════════════════
   PÁGINAS PÚBLICAS — about / faq / support
════════════════════════════════════════ */
.desk-page-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 5% 40px;
    overflow-y: auto;
}

.desk-page-card {
    width: 100%;
    max-width: 820px;
    background: rgba(8,9,12,0.88);
    border: 1px solid rgba(215,178,108,0.18);
    border-radius: 18px;
    padding: 44px 48px;
    backdrop-filter: blur(4px);
}

.desk-page-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(215,178,108,0.65);
    margin-bottom: 10px;
}

.desk-page-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.6rem;
    line-height: 1.05;
    color: var(--gold);
    margin-bottom: 4px;
}

.desk-page-divider {
    width: 56px;
    height: 1px;
    background: rgba(215,178,108,0.35);
    margin: 20px 0 28px;
}

.desk-page-h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(215,178,108,0.12);
}

.desk-page-p {
    color: rgba(243,234,215,0.75);
    line-height: 1.85;
    font-size: 0.94rem;
    margin-bottom: 14px;
}

.desk-page-placeholder {
    display: block;
    color: rgba(243,234,215,0.2);
    font-style: italic;
    font-size: 0.88rem;
    padding: 14px 0;
    border: 1px dashed rgba(215,178,108,0.1);
    border-radius: 8px;
    text-align: center;
    margin-bottom: 12px;
}

/* FAQ */
.desk-faq-item {
    padding: 18px 20px;
    background: rgba(215,178,108,0.04);
    border: 1px solid rgba(215,178,108,0.1);
    border-radius: 10px;
    margin-bottom: 12px;
}

.desk-faq-q {
    color: var(--gold);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.desk-faq-a {
    color: rgba(243,234,215,0.65);
    font-size: 0.88rem;
    line-height: 1.75;
}

/* Suporte */
.desk-support-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: rgba(215,178,108,0.06);
    border: 1px solid rgba(215,178,108,0.22);
    border-radius: 12px;
    margin-top: 28px;
}

.desk-support-icon {
    width: 46px;
    height: 46px;
    border: 1px solid var(--gold-dim);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.desk-support-label {
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(215,178,108,0.5);
    margin-bottom: 5px;
}

.desk-support-value {
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.desk-support-value:hover { color: #fff; }
