/* Release polish: alerts, legacy forms, donation helpers */
.alert {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-success {
    color: #bbf7d0;
    background: rgba(22, 101, 52, 0.35);
    border-color: rgba(74, 222, 128, 0.35);
}

.alert-danger,
.alert-error {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.35);
    border-color: rgba(248, 113, 113, 0.35);
}

.alert-warning {
    color: #fde68a;
    background: rgba(120, 53, 15, 0.35);
    border-color: rgba(251, 191, 36, 0.35);
}

.alert-info {
    color: #bae6fd;
    background: rgba(12, 74, 110, 0.35);
    border-color: rgba(56, 189, 248, 0.35);
}

.login-modal-submit.is-disabled,
.nav-section-button.is-disabled,
.login-modal-submit:disabled,
.nav-section-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    filter: grayscale(0.25);
}

.login-modal-submit.is-disabled:hover,
.nav-section-button.is-disabled:hover,
.login-modal-submit:disabled:hover,
.nav-section-button:disabled:hover {
    background: var(--ft-gold) !important;
    color: #050505 !important;
    border-color: var(--ft-gold) !important;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.28);
    opacity: 0.55;
    filter: grayscale(0.25);
}

.ft-login-page .login-modal-submit.is-disabled,
.ft-login-page .login-modal-submit:disabled,
.ft-login-page .login-modal-submit.is-disabled:hover,
.ft-login-page .login-modal-submit:disabled:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.48) !important;
    color: #e6c65a !important;
    box-shadow: none;
    opacity: 0.55;
    filter: grayscale(0.25);
}

.login-modal-header {
    align-items: flex-start;
}

.login-modal-heading {
    min-width: 0;
}

.menu-dropdown {
    position: relative;
}

.menu-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.6rem;
}

.menu-dropdown__content {
    display: none;
    gap: 0.35rem;
    justify-items: center;
    margin: 0.35rem 0 0;
    padding: 0.45rem;
    list-style: none;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 0.85rem;
    background: rgba(0, 0, 0, 0.72);
}

.menu-dropdown__content li {
    margin: 0;
}

.menu-dropdown__content a {
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.menu-dropdown:hover .menu-dropdown__content,
.menu-dropdown:focus-within .menu-dropdown__content {
    display: grid;
}

@media (min-width: 1024px) {
    .menu-dropdown__content {
        position: absolute;
        top: calc(100% - 1px);
        left: 50%;
        z-index: 60;
        min-width: 170px;
        margin-top: 0;
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, 0);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .menu-dropdown:hover .menu-dropdown__content,
    .menu-dropdown:focus-within .menu-dropdown__content {
        display: grid;
        opacity: 1;
        pointer-events: auto;
    }
}

.form-control,
select.form-control,
textarea.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(10, 10, 10, 0.85);
    color: #f5f5f4;
}

.form-control:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.btn-primary,
.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: linear-gradient(180deg, #d4af37, #b8941f);
    color: #111;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.crypto-donation-panel {
    display: grid;
    gap: 1rem;
}

.crypto-donation-card {
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(0, 0, 0, 0.45);
}

.crypto-wallet-address code {
    display: block;
    margin: 0.75rem 0;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(10, 10, 10, 0.85);
    color: #d4af37;
    word-break: break-all;
}

.crypto-pack-list,
.crypto-steps {
    margin: 0.5rem 0 0 1.1rem;
    color: #d6d3d1;
}

.crypto-copy-btn {
    margin-top: 0.5rem;
}

.form-horizontal .form-group {
    margin-bottom: 1rem;
}

.form-horizontal .control-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #d6d3d1;
}

.col-xs-4,
.col-sm-4,
.col-sm-8,
.col-xs-8,
.col-xs-offset-2 {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .form-horizontal .form-group {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 1rem;
        align-items: center;
    }

    .col-xs-4 {
        width: 33.333%;
    }

    .row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* VIP membership cards */
.engine-content:has(.vip-membership) > .alert {
    margin: 0 0 20px;
    padding: 12px 18px;
    border-radius: 999px;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.engine-content:has(.vip-membership) > .alert.alert-info {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #e6c65a;
}

.engine-content:has(.vip-membership) > .alert.alert-warning,
.engine-content:has(.vip-membership) > .alert.alert-danger,
.engine-content:has(.vip-membership) > .alert.alert-error {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.58);
    color: #ffaaa5;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.16);
}

.engine-content:has(.vip-membership) > .alert.alert-success {
    background: transparent;
    border-color: transparent;
    color: #22c55e;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
}

.vip-membership {
    display: grid;
    gap: 24px;
}

.vip-membership__intro {
    padding: 24px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.48);
}

.vip-membership__intro h2,
.vip-membership__intro p {
    margin: 0;
}

.vip-membership__intro h2 {
    color: #d4af37;
    font-family: Cinzel, Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.7px;
    line-height: 1.35;
    text-transform: uppercase;
}

.vip-membership__intro p:last-child {
    margin-top: 8px;
    color: #b9ad94;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 22px;
    text-transform: none;
}

.vip-membership__eyebrow {
    margin-bottom: 8px !important;
    color: #d4af37;
    font-family: Cinzel, Georgia, serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.vip-period-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.vip-period-option {
    min-width: 92px;
    padding: 7px 14px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 999px;
    background: transparent;
    color: #d4af37;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
}

.vip-period-option.active {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.48);
    color: #e6c65a;
}

.vip-period-option:hover,
.vip-period-option:focus-visible {
    border-color: #d4af37;
    background: #d4af37;
    color: #050505;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.24);
    outline: none;
}

.vip-details-toggle-wrap {
    display: flex;
    justify-content: center;
}

.vip-details-toggle {
    padding: 7px 14px;
    border: 1px solid rgba(212, 175, 55, 0.48);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.1);
    color: #e6c65a;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
}

.vip-details-toggle:hover,
.vip-details-toggle:focus-visible {
    border-color: #d4af37;
    background: #d4af37;
    color: #050505;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.24);
    outline: none;
}

.vip-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.panel-vip.vip-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    margin-bottom: 0;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 20px;
    color: #e7e5e4;
    background-color: rgba(255, 255, 255, 0.035);
    background-image: none;
    box-shadow: none;
}

.panel-vip.vip-card::before {
    content: none;
}

.panel-vip.vip-card > .panel-heading,
.panel-vip.vip-card > .panel-body {
    position: relative;
    z-index: 1;
}

.panel-vip.vip-card > .panel-heading {
    padding: 18px 18px 0;
}

.panel-vip.vip-card > .panel-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    padding: 8px 18px 18px;
}

.panel-vip.vip-card > .panel-heading > .panel-title {
    margin: 0;
    color: #d4af37;
    font-family: Cinzel, Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.7px;
    line-height: 1.35;
    text-transform: uppercase;
    text-shadow: none;
}

.vip-card__badge {
    display: inline-flex;
    margin-bottom: 0.65rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #f8e7b0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vip-card__tagline {
    margin: 8px 0 0;
    color: #b9ad94;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.vip-card__price {
    display: grid;
    gap: 4px;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 0;
    background: transparent;
}

.vip-card__price span {
    color: #f5efe2;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
}

.vip-card__price small {
    color: #b9ad94;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.vip-card__form {
    width: 100%;
    min-width: 0;
    margin: auto 0 0;
}

.panel-vip.vip-card .btn-vip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    min-width: 0;
    white-space: normal;
}

.btn-vip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 7px 14px;
    border: 1px solid rgba(212, 175, 55, 0.48);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.1);
    color: #e6c65a;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    line-height: 16px;
    text-transform: uppercase;
    white-space: normal;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-vip:hover,
.btn-vip:focus-visible {
    border-color: #d4af37;
    background: #d4af37;
    color: #050505;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.24);
    outline: none;
    text-decoration: none;
}

.btn-vip:active {
    color: #050505;
    text-decoration: none;
}

.btn-vip [data-vip-button-price] {
    margin: 0 0.35rem;
}

.panel-vip.type1,
.panel-vip.type2,
.panel-vip.type3 {
    background-image: none;
}

.panel-vip.type1 > .panel-heading > .panel-title,
.panel-vip.type2 > .panel-heading > .panel-title,
.panel-vip.type3 > .panel-heading > .panel-title {
    color: #d4af37;
}

.vip-comparison {
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.48);
}

.vip-comparison__header {
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.vip-comparison__header h3,
.vip-comparison__header p {
    margin: 0;
}

.vip-comparison__header h3 {
    color: #d4af37;
    font-family: Cinzel, Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.7px;
    line-height: 1.35;
    text-transform: uppercase;
}

.vip-comparison__header p {
    margin-top: 8px;
    color: #b9ad94;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.vip-comparison__scroll {
    overflow-x: auto;
}

.vip-comparison-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
}

.vip-comparison-table th,
.vip-comparison-table td {
    padding: 16px 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    text-align: center;
    vertical-align: middle;
}

.vip-comparison-table th:first-child,
.vip-comparison-table td:first-child {
    width: 34%;
    padding-left: 0;
    text-align: left;
}

.vip-comparison-table th:nth-child(2),
.vip-comparison-table td:nth-child(2),
.vip-comparison-table th:nth-child(5),
.vip-comparison-table td:nth-child(5) {
    width: 13%;
}

.vip-comparison-table th:nth-child(3),
.vip-comparison-table td:nth-child(3) {
    width: 18%;
}

.vip-comparison-table th:nth-child(4),
.vip-comparison-table td:nth-child(4) {
    width: 22%;
}

.vip-comparison-table thead th {
    color: #e7e5e4;
    background: transparent;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 18px;
    text-transform: none;
}

.vip-comparison-table tbody th {
    color: #e7e5e4;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    text-align: left;
}

.vip-comparison-table td {
    color: #f5efe2;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
}

.vip-comparison-table__base {
    color: #b9ad94 !important;
    background: transparent;
    font-weight: 600;
}

.vip-comparison-table__boost {
    color: #e6c65a;
    font-weight: 600;
}

.shop-extra-sections {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.shop-extra-section {
    padding: 24px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.48);
}

.shop-extra-section__header h2,
.shop-extra-section__header p {
    margin: 0;
}

.shop-extra-section__header h2 {
    color: #d4af37;
    font-family: Cinzel, Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.7px;
    line-height: 1.35;
    text-transform: uppercase;
}

.shop-extra-section__header p {
    margin-top: 8px;
    color: #b9ad94;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.shop-extra-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.shop-extra-card {
    padding: 18px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.shop-extra-card h3,
.shop-extra-card p {
    margin: 0;
}

.shop-extra-card h3 {
    color: #d4af37;
    font-family: Cinzel, Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.7px;
    line-height: 1.35;
    text-transform: uppercase;
}

.shop-extra-card p {
    margin-top: 8px;
    color: #b9ad94;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.shop-class-select {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.85rem;
}

.shop-class-select--section {
    max-width: 320px;
}

.shop-class-select span {
    color: #d4af37;
    font-family: Cinzel, Georgia, serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.shop-class-select select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.68);
    color: #f5efe2;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
}

.shop-class-select select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.24);
}

.shop-pack-items {
    display: grid;
    gap: 0.4rem;
    margin: 0.85rem 0 1.1rem;
    padding: 0;
    list-style: none;
}

.shop-pack-items li {
    position: relative;
    padding: 8px 0 8px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    color: #e7e5e4;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.shop-pack-items li:last-child {
    border-bottom: 0;
}

.shop-pack-items li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #d4af37;
}

.shop-extra-card__status {
    display: inline-flex;
    margin-top: 16px;
    padding: 7px 14px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    color: #e6c65a;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.shop-extra-card__form {
    margin-top: 1.1rem;
}

@media (max-width: 767px) {
    .vip-comparison-table {
        min-width: 460px;
        table-layout: auto;
    }

    .vip-comparison-table th:first-child,
    .vip-comparison-table td:first-child,
    .vip-comparison-table th:nth-child(2),
    .vip-comparison-table td:nth-child(2),
    .vip-comparison-table th:nth-child(3),
    .vip-comparison-table td:nth-child(3),
    .vip-comparison-table th:nth-child(4),
    .vip-comparison-table td:nth-child(4),
    .vip-comparison-table th:nth-child(5),
    .vip-comparison-table td:nth-child(5) {
        width: auto;
    }

    .vip-comparison-table thead th {
        white-space: nowrap;
    }

    .vip-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 768px) {
    .shop-extra-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.engine-content .ft-rename-stack {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.engine-content .ft-rename-stack > .alert {
    width: 100%;
    box-sizing: border-box;
}

.engine-content .ft-rename-page {
    width: 100%;
    max-width: 100%;
}

.engine-content .ft-rename-page .ft-characters-table-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.engine-content .ft-rename-page .general-table-ui.ft-exchange-characters-table {
    display: table;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    table-layout: fixed;
}

.engine-content .ft-rename-page .general-table-ui.ft-exchange-characters-table td {
    vertical-align: middle;
}

.engine-content .ft-rename-page .ft-rename-col-avatar {
    width: 4.5rem;
}

.engine-content .ft-rename-page .ft-rename-form {
    min-width: 36rem;
}

.engine-content .ft-rename-page .ft-rename-form .ft-rename-col-name {
    width: 11rem;
}

.engine-content .ft-rename-page .ft-rename-col-action {
    width: 6.75rem;
}

.engine-content .ft-rename-page .general-table-ui.ft-exchange-characters-table td:not(:first-child):not(.ft-exchange-action-cell) {
    text-align: left;
}

.engine-content .ft-rename-page .general-table-ui.ft-exchange-characters-table.ft-rename-list td:nth-child(2):not(.ft-exchange-action-cell) {
    text-align: center;
}

.engine-content .ft-rename-page .ft-exchange-action-cell {
    width: 6.75rem;
    text-align: right;
    white-space: nowrap;
}

.engine-content .ft-rename-page .ft-account-form-button.ft-exchange-table-btn {
    width: auto;
    min-width: 0;
    min-height: 1.65rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    box-shadow: none;
}

.engine-content .ft-rename-page input[name="new_name"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Change Class: agreement checkbox shares the form's left edge with its label */
.engine-content .checkbox {
    margin: 0 0 0.7rem;
}

.engine-content .checkbox:last-child {
    margin-bottom: 0;
}

.engine-content .checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    cursor: pointer;
    color: #f5efe2;
    font-weight: 400;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: normal;
}

.engine-content .checkbox input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    min-width: 1.05rem;
    max-width: 1.05rem;
    margin: 0.15rem 0 0;
    padding: 0;
    flex: 0 0 1.05rem;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 0.2rem;
    background: rgba(0, 0, 0, 0.42);
    accent-color: var(--ft-gold, #d4af37);
    cursor: pointer;
}

/* Change Class: label stays with its control; agreements sit below the requirements */
.engine-content form[action*="changeclass"] > .row:has(select) {
    margin-bottom: 1.35rem;
}

.engine-content form[action*="changeclass"] h3 {
    margin-bottom: 0.4rem;
}

.engine-content form[action*="changeclass"] ul {
    margin: 0;
    padding: 0;
}

.engine-content form[action*="changeclass"] ul li + li {
    margin-top: 0.2rem;
}

.engine-content form[action*="changeclass"] > .row:has(ul) {
    margin-bottom: 2rem;
}

.engine-content form[action*="changeclass"] button[name="change_class_submit"]:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    filter: grayscale(0.35);
    box-shadow: none;
}

.engine-content form[action*="changeclass"] button[name="change_class_submit"]:hover:not(:disabled),
.engine-content form[action*="changeclass"] button[name="change_class_submit"]:focus:not(:disabled),
.engine-content form[action*="changeclass"] button[name="change_class_submit"]:active:not(:disabled) {
    background: #000 !important;
    border: 1px solid #b8941f !important;
    color: #b8941f !important;
}

/* User CP content matches the My Account action pill and style tokens. */
.engine-content.ft-usercp-content .btn-primary,
.engine-content.ft-usercp-content .btn-success,
.engine-content.ft-usercp-content .ft-account-form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.45rem 0.9rem !important;
    border: 1px solid rgba(212, 175, 55, 0.48) !important;
    border-radius: 999px !important;
    background: rgba(212, 175, 55, 0.1) !important;
    background-image: none !important;
    color: #e6c65a !important;
    font-family: Inter, sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    line-height: 1;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.engine-content.ft-usercp-content .btn-primary:hover,
.engine-content.ft-usercp-content .btn-primary:focus-visible,
.engine-content.ft-usercp-content .btn-success:hover,
.engine-content.ft-usercp-content .btn-success:focus-visible,
.engine-content.ft-usercp-content .ft-account-form-button:hover,
.engine-content.ft-usercp-content .ft-account-form-button:focus-visible,
.engine-content.ft-usercp-content form[action*="changeclass"] button[name="change_class_submit"]:hover:not(:disabled),
.engine-content.ft-usercp-content form[action*="changeclass"] button[name="change_class_submit"]:focus:not(:disabled),
.engine-content.ft-usercp-content form[action*="changeclass"] button[name="change_class_submit"]:active:not(:disabled) {
    border-color: #d4af37 !important;
    background: #d4af37 !important;
    background-image: none !important;
    color: #050505 !important;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.24) !important;
}

.engine-content.ft-usercp-content .btn-primary:disabled,
.engine-content.ft-usercp-content button:disabled.btn-primary,
.engine-content.ft-usercp-content form[action*="changeclass"] button[name="change_class_submit"]:disabled {
    opacity: 0.45;
    filter: none;
    cursor: not-allowed;
    background: rgba(212, 175, 55, 0.1) !important;
    background-image: none !important;
    color: #e6c65a !important;
    box-shadow: none !important;
}

.engine-content.ft-usercp-content .market-v2 .btn-primary,
.engine-content.ft-usercp-content .market-v2 button.btn:not(.market-filter-chip) {
    border: 1px solid rgba(212, 175, 55, 0.48) !important;
    border-radius: 999px !important;
    background: rgba(212, 175, 55, 0.1) !important;
    background-image: none !important;
    color: #e6c65a !important;
    font-family: Inter, sans-serif !important;
    box-shadow: none !important;
}

.engine-content.ft-usercp-content .market-v2 .btn-primary:hover,
.engine-content.ft-usercp-content .market-v2 .btn-primary:focus-visible,
.engine-content.ft-usercp-content .market-v2 button.btn:not(.market-filter-chip):hover,
.engine-content.ft-usercp-content .market-v2 button.btn:not(.market-filter-chip):focus-visible {
    border-color: #d4af37 !important;
    background: #d4af37 !important;
    background-image: none !important;
    color: #050505 !important;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.24) !important;
}

.engine-content.ft-usercp-content .market-v2 .market-filter-chip:hover:not(.is-active):not(.market-filter-chip--luck):not(.market-filter-chip--skill):not(.market-filter-chip--exe):not(.market-filter-chip--anc),
.engine-content.ft-usercp-content .market-v2 .market-filter-chip:focus-visible:not(.is-active):not(.market-filter-chip--luck):not(.market-filter-chip--skill):not(.market-filter-chip--exe):not(.market-filter-chip--anc) {
    border-color: #d4af37;
    background: #d4af37;
    background-image: none;
    color: #050505;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.24);
}

.engine-content.ft-usercp-content .market-warehouse-pill-btn {
    border-color: rgba(212, 175, 55, 0.48) !important;
    background: rgba(212, 175, 55, 0.1) !important;
    color: #e6c65a !important;
    font-family: Inter, sans-serif !important;
}

.engine-content.ft-usercp-content > .page-title + .table.general-table-ui,
.engine-content.ft-usercp-content .usercp-page > .page-title + .table.general-table-ui {
    display: table;
    width: 100%;
    max-width: min(100%, 34rem);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 24px;
    overflow: hidden;
    table-layout: auto;
}

.engine-content.ft-usercp-content .ft-characters-table-wrap,
.engine-content.ft-usercp-content .ft-exchange-table-wrap {
    width: 100%;
    max-width: min(100%, 34rem);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    border-radius: 24px;
    overflow: hidden;
}

.engine-content.ft-usercp-content .ft-characters-table-wrap > .general-table-ui,
.engine-content.ft-usercp-content .ft-exchange-table-wrap > .general-table-ui {
    display: table;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    overflow: hidden;
}

.engine-content.ft-usercp-content .general-table-ui tr:first-child td,
.engine-content.ft-usercp-content .market-listings-table thead th,
.engine-content.ft-usercp-content .market-bank-deposits thead th {
    color: #fff !important;
    font-family: Inter, sans-serif !important;
    font-weight: 400 !important;
    background: transparent !important;
}

.engine-content.ft-usercp-content .market-filters,
.engine-content.ft-usercp-content .market-warehouse-panel,
.engine-content.ft-usercp-content .market-listings-panel,
.engine-content.ft-usercp-content .market-bank-panel {
    border-radius: 24px;
}

.engine-content.ft-usercp-content .ft-addstats-label,
.engine-content.ft-usercp-content .ft-addstats-kicker,
.engine-content.ft-usercp-content .form-horizontal .control-label,
.engine-content.ft-usercp-content form[action*="changeclass"] h3 {
    color: #d4af37;
    font-family: Cinzel, serif;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.engine-content.ft-usercp-content .ft-addstats-label,
.engine-content.ft-usercp-content .ft-addstats-kicker {
    font-size: 12.5px;
}

.engine-content.ft-usercp-content form[action*="changeclass"] h3 {
    font-size: 15px;
}

.engine-content.ft-usercp-content form[action*="changeclass"],
.engine-content.ft-usercp-content .ft-usercp-form,
.engine-content.ft-usercp-content .panel-general {
    width: min(100%, 34rem);
    margin: 0 auto 1.25rem;
    padding: 1.35rem 1.25rem 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.48);
    color: #e7e5e4;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.engine-content.ft-usercp-content .panel-general:hover {
    background: rgba(0, 0, 0, 0.48);
}

.engine-content.ft-usercp-content .ft-addstats-card {
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
}

.top-block-sidebar > .top-title,
.top-block-sidebar > .top-list {
    column-gap: 0.2rem;
}

.top-block-sidebar .top-rank-with-flag .top-flag {
    display: none;
}

.top-block-sidebar .top-rank-with-flag .top-number {
    width: auto;
}

.top-block-sidebar > .top-title:has(> .top-lvl),
.top-block-sidebar > .top-list:has(> .top-lvl),
.top-block-sidebar > .top-list:has(> .top-lvl):hover {
    padding-right: 0;
}

.top-block-sidebar > .top-title > span.top-lvl:not(.top-name),
.top-block-sidebar > .top-list > span.top-lvl:not(.top-name) {
    display: grid;
    grid-template-columns: max-content 1.3rem;
    justify-content: end;
    align-items: baseline;
    column-gap: 0.15rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.top-block-sidebar .top-lvl sup {
    margin-left: 0;
    width: 1.3rem;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

header #mainNavigation .menu > li.is-header-collapsed,
.header-actions .is-header-collapsed {
    display: none !important;
}

.header-overflow[hidden] {
    display: none !important;
}

@media (max-width: 1023.98px) {
    .header-overflow {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    header #mainNavigation .menu {
        flex-wrap: nowrap;
    }

    .header-overflow:not([hidden]) {
        position: relative;
        display: flex;
        align-items: center;
        flex: 0 0 auto;
    }

    .header-overflow__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 0 12px;
        border: 1px solid rgba(212, 175, 55, 0.48);
        border-radius: 999px;
        background: rgba(212, 175, 55, 0.1);
        color: #e6c65a;
        font-family: Inter, sans-serif;
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: normal;
        cursor: pointer;
    }

    .header-overflow__toggle:hover,
    .header-overflow__toggle:focus-visible {
        border-color: #d4af37;
        background: rgba(212, 175, 55, 0.15);
        outline: none;
    }

    .header-overflow__menu {
        display: none;
        position: absolute;
        top: calc(100% - 1px);
        right: 0;
        z-index: 60;
        min-width: 170px;
        margin: 0;
        padding: 0.45rem;
        list-style: none;
        justify-items: center;
        gap: 0.35rem;
        border: 1px solid rgba(212, 175, 55, 0.22);
        border-radius: 0.85rem;
        background: rgba(0, 0, 0, 0.72);
    }

    .header-overflow.is-open .header-overflow__menu {
        display: grid;
    }

    header #mainNavigation .menu .header-overflow__menu a,
    header #mainNavigation .menu .header-overflow__menu button,
    .header-overflow__menu a,
    .header-overflow__menu button {
        display: block;
        width: 100%;
        margin: 0;
        padding: 11px 18px;
        border: 1px solid transparent;
        border-radius: 999px;
        background: transparent;
        color: var(--ft-text);
        font-family: Inter, sans-serif;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.11em;
        line-height: 1.2;
        text-align: center;
        text-transform: uppercase;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

    header #mainNavigation .menu .header-overflow__menu a:hover,
    header #mainNavigation .menu .header-overflow__menu button:hover,
    header #mainNavigation .menu .header-overflow__menu a:focus-visible,
    header #mainNavigation .menu .header-overflow__menu button:focus-visible,
    .header-overflow__menu a:hover,
    .header-overflow__menu button:hover,
    .header-overflow__menu a:focus-visible,
    .header-overflow__menu button:focus-visible {
        border-color: var(--ft-border);
        background: var(--ft-gold-soft);
        color: var(--ft-gold);
        outline: none;
    }
}

.guides-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guides-nav {
    padding: 16px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 24px;
    background: rgba(10, 10, 10, 0.68);
}

.guides-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guides-nav__list li {
    margin: 0;
}

.guides-nav__item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #a79376;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: none;
    cursor: pointer;
}

.guides-nav__item:hover {
    background: rgba(212, 175, 55, 0.12);
    color: #e6c65a;
}

.guides-nav__item[aria-current="true"] {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.48);
    color: #e6c65a;
}

.guides-nav__item:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: -2px;
}

.guides-main {
    min-width: 0;
    flex: 1;
}

.guides-section h2 {
    margin: 0 0 12px;
    color: #d4af37;
    font-family: Cinzel, serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.6px;
    line-height: 1.3;
    text-transform: uppercase;
}

.guides-section p {
    margin: 0;
    color: #e7e5e4;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.guides-section[hidden],
.guides-center[hidden],
.guide-group[hidden],
.guide-recipe__panel[hidden] {
    display: none;
}

.guide-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.guide-tab,
.guide-recipe {
    margin: 0;
    border: 1px solid rgba(212, 175, 55, 0.48);
    background: rgba(212, 175, 55, 0.1);
    color: #e6c65a;
    font-family: Inter, sans-serif;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
}

.guide-tab {
    min-height: 44px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 22px;
}

.guide-tab[aria-current="true"],
.guide-tab:hover,
.guide-recipe:hover,
.guide-recipe[aria-expanded="true"] {
    background: rgba(212, 175, 55, 0.12);
    color: #e6c65a;
}

.guide-tab:focus-visible,
.guide-recipe:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

.guide-group {
    margin-top: 20px;
}

.guide-group h3,
.guide-jewel-block h3 {
    margin: 0 0 8px;
    color: #d4af37;
    font-family: Cinzel, serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: 1.3;
    text-transform: uppercase;
}

.guide-recipe {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    background: transparent;
    box-shadow: none;
    color: #f5efe2;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 22px;
    text-align: left;
    text-transform: none;
}

.guide-recipe__panel {
    padding: 8px 20px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.guide-recipe__row {
    padding: 8px 0;
}

.guide-recipe__label,
.guide-jewel dt {
    color: #d4af37;
    font-family: Cinzel, serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 2.2px;
    line-height: 1.3;
    text-transform: uppercase;
}

.guide-recipe__value,
.guide-jewel dd {
    margin: 4px 0 0;
    color: #f5efe2;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
}

.guide-jewel-block + .guide-jewel-block {
    margin-top: 24px;
}

.guide-jewel {
    position: relative;
    margin: 0;
    padding: 16px 20px 16px 64px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.guide-jewel__icon {
    position: absolute;
    left: 20px;
    top: 50%;
    width: 32px;
    height: 32px;
    margin: 0;
    transform: translateY(-50%);
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
    pointer-events: none;
}

.guide-jewel dd {
    font-weight: 400;
    color: #e7e5e4;
}

@media (min-width: 1024px) {
    .web-container.ft-guides-page {
        grid-template-columns: var(--ft-sidebar-rail) minmax(0, 1fr);
    }

    .web-container.ft-guides-page > main.ft-main-col {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        justify-self: stretch;
        margin-top: calc(-1 * var(--ft-triple-overlap));
    }

    .ft-guides-page .guides-layout {
        display: grid;
        grid-template-columns: var(--ft-sidebar-rail) minmax(0, 1fr);
        column-gap: 1.25rem;
        align-items: start;
    }

    .ft-guides-page .guides-nav {
        width: auto;
        flex: none;
    }
}

@media (min-width: 1280px) {
    .ft-guides-page .guides-layout {
        column-gap: 0.75rem;
    }
}

/* Wide layout keeps sidebars stacked. These wrappers must not add a box. */
@media (min-width: 1024px) {
    .ft-rank-row,
    .ft-side-follow {
        display: contents;
    }

    .ft-fold-toggle {
        display: none;
    }
}

@media (max-width: 1023.98px) {
    .web-container.ft-triple-layout > aside.ft-sidebar-col {
        display: contents;
    }

    .ft-account-widget {
        order: 1;
        margin-bottom: 0;
    }

    .live-balance-block {
        order: 2;
        margin-bottom: 0;
    }

    .web-container.ft-triple-layout > main.ft-main-col {
        order: 3;
    }

    .ft-rank-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 16px;
        align-items: start;
        order: 4;
        width: 100%;
        min-width: 0;
    }

    .ft-rank-row > .widget {
        width: 100%;
        min-width: 0;
        margin-bottom: 0;
        padding: 12px;
    }

    .ft-rank-row .widget-title {
        margin-bottom: 12px;
        font-size: 12px;
        letter-spacing: 0.08em;
    }

    .ft-rank-row .top-block-sidebar > .top-title,
    .ft-rank-row .top-block-sidebar > .top-list {
        column-gap: 4px;
        padding-right: 0;
    }

    .ft-side-follow {
        order: 5;
        width: 100%;
        min-width: 0;
    }

    .ft-fold.is-collapsed > .ft-fold-body {
        display: none;
    }

    .ft-account-widget.ft-fold.is-collapsed .ft-account-widget-head,
    .live-balance-block.ft-fold.is-collapsed .live-balance-heading {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .ft-account-widget .ft-account-widget-head {
        gap: 8px;
    }

    .ft-account-widget .ft-account-name-badge {
        min-width: 0;
    }

    .live-balance-heading > span:first-child {
        min-width: 0;
    }

    .ft-fold-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(212, 175, 55, 0.48);
        border-radius: 999px;
        background: rgba(212, 175, 55, 0.1);
        color: #e6c65a;
        cursor: pointer;
    }

    .live-balance-heading .ft-fold-toggle {
        margin-left: 8px;
    }

    .ft-fold-toggle::before {
        content: "";
        display: block;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-top: -4px;
    }

    .ft-fold:not(.is-collapsed) .ft-fold-toggle::before {
        transform: rotate(-135deg);
        margin-top: 4px;
    }

    .ft-fold-toggle:hover,
    .ft-fold-toggle:focus-visible {
        border-color: #d4af37;
        background: rgba(212, 175, 55, 0.15);
        outline: 2px solid #d4af37;
        outline-offset: 2px;
    }
}

.ft-spinner {
	width: 32px;
	height: 32px;
	border: 2px solid rgba(212, 175, 55, 0.24);
	border-top-color: #d4af37;
	border-radius: 50%;
	animation: ft-spin 0.8s linear infinite;
}

.ft-block-loading,
.ft-load-sentinel {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 48px;
	padding: 24px 0;
}

@keyframes ft-spin {
	to { transform: rotate(360deg); }
}
