/**
 * ELFER — ۋاكالەتچىلەر + ۋاكالەتچى تىزىملىتىش (luxury public)
 */

.lux-agents-page .lux-agents-hero,
.lux-agent-register-page .lux-agents-hero {
    text-align: center;
    margin-bottom: clamp(28px, 4vw, 40px);
    padding-bottom: clamp(20px, 3vw, 32px);
    border-bottom: 1px solid var(--lux-line, rgba(201, 164, 92, 0.2));
}

.lux-agents-page .lux-page-sub,
.lux-agent-register-page .lux-page-sub {
    max-width: 560px;
    margin-inline: auto;
}

.lux-agents-wrap {
    max-width: 920px;
    margin-inline: auto;
}

.lux-agents-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
    align-items: end;
}

@media (max-width: 720px) {
    .lux-agents-podium {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.lux-agents-podium-card {
    text-align: center;
    padding: 22px 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--lux-line);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.lux-agents-podium-card:hover {
    transform: translateY(-2px);
}

.lux-agents-podium-card.is-first {
    order: 2;
    padding-top: 28px;
    border-color: rgba(255, 215, 120, 0.45);
    background: linear-gradient(180deg, rgba(255, 215, 120, 0.12), rgba(255, 255, 255, 0.02));
    box-shadow: 0 12px 36px rgba(255, 215, 120, 0.08);
}

.lux-agents-podium-card.is-second {
    order: 1;
    border-color: rgba(192, 192, 192, 0.35);
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.08), rgba(255, 255, 255, 0.02));
}

.lux-agents-podium-card.is-third {
    order: 3;
    border-color: rgba(205, 127, 50, 0.35);
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.1), rgba(255, 255, 255, 0.02));
}

@media (max-width: 720px) {
    .lux-agents-podium-card.is-first,
    .lux-agents-podium-card.is-second,
    .lux-agents-podium-card.is-third {
        order: unset;
    }
}

.lux-agents-podium-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1208;
    background: linear-gradient(135deg, #f0d19a, #b9823f);
}

.lux-agents-podium-card.is-second .lux-agents-podium-rank {
    background: linear-gradient(135deg, #e8e8e8, #a8a8a8);
}

.lux-agents-podium-card.is-third .lux-agents-podium-rank {
    background: linear-gradient(135deg, #e8b48a, #b87333);
}

.lux-agents-podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 2px solid rgba(216, 173, 106, 0.35);
}

.lux-agents-podium-card.is-first .lux-agents-podium-avatar {
    width: 76px;
    height: 76px;
}

.lux-agents-podium-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--lux-heading);
    margin-bottom: 4px;
}

.lux-agents-podium-total {
    display: block;
    font-size: 13px;
    color: var(--lux-gold);
    font-weight: 500;
}

.lux-agents-page .agents-empty-panel {
    text-align: center;
    padding: 56px 24px;
    border-radius: 16px;
    border: 1px dashed rgba(201, 164, 92, 0.25);
    background: rgba(255, 255, 255, 0.02);
}

.lux-agents-page .agents-empty-panel i {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    color: var(--lux-gold);
    opacity: 0.4;
}

.lux-agents-page .agents-empty-panel p {
    color: var(--lux-muted);
    margin-bottom: 16px;
}

.lux-agents-page .agent-rank-board {
    border-radius: 16px;
    border: 1px solid var(--lux-line);
    background: rgba(255, 255, 255, 0.015);
    padding: 8px;
}

.lux-agents-page .agent-rank-head {
    padding: 10px 16px 6px;
}

.lux-agents-page .agent-rank-row {
    border-radius: 10px;
    margin-bottom: 6px;
}

.lux-agents-page .agent-rank-row:last-child {
    margin-bottom: 0;
}

/* Register page */
.lux-agent-register-page .lux-register-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: 960px;
    margin-inline: auto;
}

@media (min-width: 960px) {
    .lux-agent-register-page .lux-register-layout.has-levels {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
        align-items: start;
    }
}

.lux-register-card {
    border-radius: 16px;
    border: 1px solid var(--lux-line);
    background: linear-gradient(165deg, rgba(28, 22, 16, 0.92), rgba(12, 10, 8, 0.96));
    padding: clamp(22px, 3vw, 32px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

body.elfer-day:not(.elfer-admin-ug) .lux-register-card {
    background: var(--lux-panel);
    box-shadow: 0 12px 32px rgba(42, 36, 28, 0.08);
}

.lux-register-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    border: 1px solid rgba(220, 80, 80, 0.35);
    background: rgba(220, 80, 80, 0.1);
    color: #ffb4b4;
}

.lux-register-form .lux-form-row {
    margin-bottom: 16px;
}

.lux-register-form label {
    display: block;
    font-size: 12px;
    color: var(--lux-muted);
    margin-bottom: 6px;
}

.lux-register-form input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(216, 173, 106, 0.22);
    background: rgba(0, 0, 0, 0.28);
    color: var(--lux-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

body.elfer-day:not(.elfer-admin-ug) .lux-register-form input {
    background: rgba(255, 255, 255, 0.92);
    color: var(--lux-text);
}

.lux-register-form input:focus {
    border-color: rgba(216, 173, 106, 0.5);
    box-shadow: 0 0 0 3px rgba(216, 173, 106, 0.12);
}

.lux-register-form .lux-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 16px;
}

@media (min-width: 640px) {
    .lux-register-form .lux-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lux-register-form .lux-form-row--full {
        grid-column: 1 / -1;
    }
}

.lux-register-form .lux-form-hint {
    font-size: 11px;
    color: var(--lux-muted);
    margin-top: 6px;
    opacity: 0.85;
}

.lux-register-form .lux-form-actions {
    margin-top: 8px;
}

.lux-register-foot {
    margin-top: 20px;
    font-size: 13px;
    color: var(--lux-muted);
}

.lux-register-foot a {
    color: var(--lux-gold);
    font-weight: 600;
    text-decoration: none;
}

.lux-register-foot a:hover {
    text-decoration: underline;
}

.lux-levels-card {
    border-radius: 16px;
    border: 1px solid rgba(216, 173, 106, 0.22);
    background: rgba(216, 173, 106, 0.06);
    padding: 22px 20px;
}

.lux-levels-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--lux-heading);
}

.lux-levels-card > p {
    margin: 0 0 16px;
    font-size: 12px;
    color: var(--lux-muted);
    line-height: 1.55;
}

.lux-levels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lux-level-item {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(216, 173, 106, 0.18);
    background: rgba(0, 0, 0, 0.18);
}

body.elfer-day:not(.elfer-admin-ug) .lux-level-item {
    background: rgba(255, 255, 255, 0.6);
}

.lux-level-item strong {
    display: block;
    font-size: 13px;
    color: var(--lux-heading);
    margin-bottom: 4px;
}

.lux-level-item span {
    display: block;
    font-size: 11px;
    color: var(--lux-muted);
    line-height: 1.45;
}

body.elfer-day:not(.elfer-admin-ug) .lux-agents-page .agents-empty-panel,
body.elfer-day:not(.elfer-admin-ug) .lux-agents-page .agent-rank-board {
    background: var(--lux-panel);
    border-color: var(--lux-line);
}

[dir="rtl"] .lux-agents-podium {
    direction: rtl;
}

/* Public agent join page */
.lux-agent-join-page .lux-container {
    max-width: 1180px;
}

.agent-join-hero {
    display: grid;
    grid-template-columns: minmax(480px, 1.05fr) minmax(380px, .95fr);
    gap: clamp(22px, 4vw, 46px);
    align-items: stretch;
}

.agent-join-hero--single {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}

.agent-join-hero--single .agent-join-form-card {
    width: 100%;
}

.agent-join-copy,
.agent-join-form-card,
.agent-join-login-card,
.agent-join-levels {
    border: 1px solid rgba(216, 173, 106, .2);
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 0%, rgba(216, 173, 106, .12), transparent 34%),
        linear-gradient(165deg, rgba(26, 22, 17, .95), rgba(8, 7, 6, .98));
    box-shadow: 0 24px 56px rgba(0, 0, 0, .28);
}

.agent-join-copy {
    padding: clamp(34px, 5vw, 58px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.agent-join-copy h1 {
    margin: 0 0 16px;
    color: var(--lux-heading);
    font-family: Georgia, serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.22;
}

.agent-join-copy p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--lux-muted);
    line-height: 1.9;
}

.agent-join-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.agent-join-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(216, 173, 106, .22);
    border-radius: 999px;
    color: rgba(246, 232, 207, .82);
    background: rgba(216, 173, 106, .06);
    font-size: 12px;
}

.agent-join-form-card {
    padding: clamp(24px, 3vw, 34px);
}

.agent-join-login-card {
    padding: clamp(34px, 5vw, 58px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.agent-join-login-card h1 {
    margin: 0 0 14px;
    color: var(--lux-heading);
    font-family: Georgia, serif;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.25;
}

.agent-join-login-card > p {
    max-width: 520px;
    margin: 0 auto 24px;
    color: var(--lux-muted);
    line-height: 1.9;
    font-size: 14px;
}

.agent-login-form {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    text-align: start;
}

.agent-join-form-card h2 {
    margin: 0 0 8px;
    color: var(--lux-heading);
    font-size: 24px;
    text-align: center;
}

.agent-join-form-card > p {
    margin: 0 auto 20px;
    max-width: 460px;
    color: var(--lux-muted);
    font-size: 12px;
    line-height: 1.65;
    text-align: center;
}

.agent-code-input {
    font-family: Consolas, monospace !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    font-size: 17px !important;
}

.agent-join-submit {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    margin-top: 6px;
}

.agent-join-levels {
    margin-top: 34px;
    padding: clamp(22px, 3vw, 30px);
}

.agent-join-level-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.agent-join-level-card {
    padding: 18px 16px;
    border: 1px solid rgba(216, 173, 106, .18);
    border-radius: 10px;
    background: rgba(0, 0, 0, .18);
    text-align: center;
}

.agent-join-level-card strong,
.agent-join-level-card span,
.agent-join-level-card em {
    display: block;
}

.agent-join-level-card strong {
    color: var(--lux-heading);
    margin-bottom: 8px;
}

.agent-join-level-card span {
    color: var(--lux-muted);
    font-size: 12px;
}

.agent-join-level-card em {
    margin-top: 8px;
    color: var(--lux-gold);
    font-style: normal;
    font-size: 20px;
    font-weight: 800;
}

@media (max-width: 960px) {
    .agent-join-hero {
        grid-template-columns: 1fr;
    }

    .agent-join-level-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .agent-join-level-grid {
        grid-template-columns: 1fr;
    }
}
