:root {
    --c9-night: #080d15;
    --c9-panel: rgba(11, 17, 27, .88);
    --c9-line: rgba(203, 165, 96, .35);
    --c9-gold: #d8b477;
    --c9-ice: #91d7f1;
    --c9-text: #edf2f8;
    --c9-muted: #b8c1ce;
}

.c9-login-page {
    min-height: 100vh;
    margin: 0;
    color: var(--c9-text);
    background-color: #080d15;
    background-image:
        linear-gradient(90deg, rgba(5, 8, 14, .54), rgba(5, 9, 16, .74) 48%, rgba(5, 9, 16, .79)),
        linear-gradient(0deg, rgba(5, 8, 14, .55), transparent 46%, rgba(5, 8, 14, .26)),
        url("../image/c9-community-background.jpg");
    background-repeat: no-repeat;
    background-size: cover, cover, auto 100vh;
    background-position: center, center, center;
    background-attachment: fixed;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.c9-login-page *,
.c9-modern-site * {
    box-sizing: border-box;
}

.c9-login-shell {
    display: flex;
    width: min(100% - 52px, 1320px);
    min-height: 100vh;
    margin: 0 auto;
    flex-direction: column;
}

.c9-login-header,
.c9-login-header-actions,
.c9-login-brand,
.c9-download-link,
.c9-login-footer,
.c9-login-features,
.c9-create-account-prompt {
    display: flex;
    align-items: center;
}

.c9-login-header {
    min-height: 92px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.c9-login-header-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.c9-server-status {
    --c9-status-color: #d8b477;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid rgba(216, 180, 119, .38);
    border-radius: 999px;
    color: #e9dfce;
    background: rgba(12, 19, 29, .88);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .025em;
    line-height: 1;
    white-space: nowrap;
}

.c9-server-status-dot {
    position: relative;
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #d8b477;
    box-shadow: 0 0 10px rgba(216, 180, 119, .42);
}

.c9-server-status[data-status="online"] .c9-server-status-dot {
    background: #49d17d;
    box-shadow: 0 0 10px rgba(73, 209, 125, .5);
}

.c9-server-status[data-status="offline"] .c9-server-status-dot {
    background: #f05b5b;
    box-shadow: 0 0 10px rgba(240, 91, 91, .48);
}

.c9-server-status[data-status="online"] .c9-server-status-dot {
    animation: c9-server-pulse 2s ease-out infinite;
}

@keyframes c9-server-pulse {
    0% { box-shadow: 0 0 0 0 rgba(73, 209, 125, .52); }
    70% { box-shadow: 0 0 0 7px rgba(73, 209, 125, 0); }
    100% { box-shadow: 0 0 0 0 rgba(73, 209, 125, 0); }
}

.c9-login-brand {
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

.c9-login-brand:hover,
.c9-login-brand:focus {
    color: #fff;
    text-decoration: none;
}

.c9-login-brand-mark,
.c9-card-emblem,
.c9-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #101722;
    background: linear-gradient(145deg, #f0d5a2, #bd9252);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
    letter-spacing: -.08em;
}

.c9-login-brand-mark {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: 14px 5px 14px 5px;
}

.c9-login-brand-mark svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: #101722;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.c9-login-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.c9-login-brand-copy strong {
    font-size: 13px;
    letter-spacing: .15em;
}

.c9-login-brand-copy small {
    color: var(--c9-gold);
    font-size: 10px;
    letter-spacing: .23em;
}

.c9-download-link {
    min-height: 44px;
    gap: 10px;
    padding: 0 17px;
    border: 1px solid rgba(216, 180, 119, .7);
    border-radius: 8px;
    color: #f8ead0;
    background: rgba(8, 13, 21, .5);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.c9-download-link:hover,
.c9-download-link:focus {
    border-color: var(--c9-gold);
    color: #fff;
    background: rgba(216, 180, 119, .16);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Briefly draw attention to the How to Play guide when the portal opens. */
.c9-guide-link {
    animation: c9-guide-arrival .9s ease-in-out .3s 6 both;
}

@keyframes c9-guide-arrival {
    0%, 100% {
        border-color: rgba(216, 180, 119, .7);
        box-shadow: 0 0 0 0 rgba(216, 180, 119, 0);
        background-color: rgba(8, 13, 21, .5);
        color: #f8ead0;
        transform: scale(1);
    }

    50% {
        border-color: #fff1cf;
        box-shadow: 0 0 0 4px rgba(216, 180, 119, .3), 0 0 30px rgba(240, 213, 162, .9);
        background-color: #d8b477;
        color: #101722;
        transform: scale(1.045);
    }
}

.c9-download-icon,
.c9-nav-icon,
.c9-home-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.c9-download-icon svg,
.c9-nav-icon svg,
.c9-home-action-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.c9-login-layout {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    align-items: center;
    gap: clamp(38px, 7vw, 110px);
    padding: 48px 0;
}

.c9-login-intro {
    max-width: 720px;
    padding: 14px 0;
}

.c9-login-kicker {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 22px;
    color: var(--c9-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
}

.c9-login-kicker span {
    width: 29px;
    height: 1px;
    background: var(--c9-gold);
}

.c9-login-intro h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6.5vw, 88px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: .98;
    text-shadow: 0 5px 28px rgba(0, 0, 0, .48);
}

.c9-login-intro h1 span {
    display: block;
    color: var(--c9-gold);
}

.c9-login-description {
    max-width: 520px;
    margin: 24px 0 28px;
    color: #e1e7ee;
    font-size: clamp(16px, 1.65vw, 20px);
    line-height: 1.65;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}

.c9-login-features {
    flex-wrap: wrap;
    gap: 12px 22px;
    color: #eef3f8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
}

.c9-login-features > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.c9-feature-mark {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    color: var(--c9-gold);
    font-size: 16px;
    font-style: normal;
}

.c9-feature-mark svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.c9-login-card {
    width: 100%;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-top: 2px solid var(--c9-gold);
    border-radius: 13px;
    background: rgba(9, 15, 24, .84);
    box-shadow: 0 28px 75px rgba(0, 0, 0, .42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.c9-card-topline {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 22px;
    color: var(--c9-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
}

.c9-card-emblem {
    width: 34px;
    height: 34px;
    border-radius: 9px 3px 9px 3px;
    font-size: 17px;
}

.c9-login-card h2 {
    margin: 0 0 7px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.25;
}

.c9-login-card-copy {
    margin: 0 0 23px;
    color: var(--c9-muted);
    font-size: 14px;
}

.c9-login-field {
    margin-bottom: 17px;
}

.c9-field-label {
    display: block;
    margin-bottom: 8px;
    color: #e0e5eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
}

.c9-login-input.form-control {
    height: 46px;
    padding: 10px 13px;
    border: 1px solid rgba(214, 224, 236, .23);
    border-radius: 7px;
    color: #f7f9fc;
    background: rgba(255, 255, 255, .07);
    box-shadow: none;
    font-size: 15px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.c9-login-input.form-control:focus {
    border-color: var(--c9-ice);
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 0 0 3px rgba(145, 215, 241, .12);
}

.c9-login-input.form-control:-webkit-autofill,
.c9-login-input.form-control:-webkit-autofill:hover,
.c9-login-input.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #f7f9fc;
    transition: background-color 9999s ease-out 0s;
}

.c9-captcha-wrap {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: center;
    margin: 2px 0 15px;
    overflow: hidden;
}

.c9-login-submit.btn,
.c9-modal-submit.btn {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid #b0e8fb;
    border-radius: 7px;
    color: #07131b;
    background: linear-gradient(110deg, #a6e8fa, #71c6e4);
    box-shadow: 0 8px 24px rgba(45, 140, 177, .2);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.c9-login-submit.btn:hover,
.c9-login-submit.btn:focus,
.c9-modal-submit.btn:hover,
.c9-modal-submit.btn:focus {
    color: #07131b;
    background: linear-gradient(110deg, #c0f1ff, #8bdaf2);
    box-shadow: 0 11px 30px rgba(45, 140, 177, .32);
    transform: translateY(-1px);
}

.c9-create-account-area {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.c9-create-account-prompt {
    justify-content: space-between;
    gap: 12px;
    color: var(--c9-muted);
    font-size: 12px;
}

.c9-create-account-prompt a {
    color: var(--c9-gold);
    font-weight: 700;
}

.c9-create-account-prompt a:hover,
.c9-create-account-prompt a:focus {
    color: #f4d6a0;
    text-decoration: none;
}

.c9-login-footnote {
    margin: 18px 0 0;
    color: #9ca8b6;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.c9-login-footer {
    min-height: 56px;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, .13);
    color: rgba(235, 240, 246, .68);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
}

.c9-account-modal {
    border: 1px solid var(--c9-line);
    border-radius: 12px;
    color: var(--c9-text);
    background: #101722;
    box-shadow: 0 22px 65px rgba(0, 0, 0, .6);
}

.c9-account-modal .modal-header,
.c9-account-modal .modal-footer {
    border-color: rgba(255, 255, 255, .12);
}

.c9-account-modal .modal-title {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
}

.c9-account-modal .close {
    color: #f0d5a2;
    opacity: .8;
    text-shadow: none;
}

.c9-account-modal .close:hover,
.c9-account-modal .close:focus {
    color: #fff;
    opacity: 1;
}

.c9-account-modal .control-label {
    color: #c7d0da;
}

.c9-account-modal .form-control {
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 7px;
    color: #e8edf4;
    background: #18212b;
}

.c9-account-modal .form-control:focus {
    border-color: rgba(216, 180, 119, .8);
    box-shadow: 0 0 0 3px rgba(216, 180, 119, .15);
}

.c9-account-modal .modal-body .form-group {
    margin-bottom: 17px;
}

.c9-modal-submit.btn {
    display: inline-flex;
    width: auto;
    min-width: 155px;
    min-height: 44px;
    padding: 0 18px;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 180, 119, .5);
    border-radius: 7px;
    color: #101722;
    background: linear-gradient(135deg, #e2c48c, #bc9353);
    font-weight: 700;
}

.c9-modal-submit.btn:hover,
.c9-modal-submit.btn:focus {
    color: #07111d;
    background: linear-gradient(135deg, #f0d5a2, #d1a76a);
}

.c9-referral-copy {
    display: block;
    margin-bottom: 12px;
    line-height: 1.6;
}

.c9-referral-message {
    display: none;
    margin: 12px 0 0;
    color: #f0d5a2;
    font-weight: 600;
}

.c9-referral-message:not(:empty) {
    display: block;
}

.c9-modal-cancel.btn {
    min-height: 44px;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 7px;
    color: #d5dde6;
    background: transparent;
}

.c9-modern-site {
    min-height: 100vh;
    margin: 0;
    color: #e8edf4;
    background:
        radial-gradient(ellipse at 52% -25%, rgba(45, 69, 91, .38), transparent 58%),
        linear-gradient(180deg, #0b1119 0%, #101822 42%, #0b1118 100%);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.c9-site-nav.navbar-inverse {
    min-height: 70px;
    margin: 0 0 24px;
    border: 1px solid rgba(216, 180, 119, .23);
    border-radius: 0 0 13px 13px;
    background: rgba(8, 13, 21, .96);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .23);
}

.c9-site-nav ul.navbar-nav,
.c9-site-nav ul.navbar-nav > li {
    list-style: none;
}

.c9-site-nav ul.navbar-nav {
    padding-left: 0;
}

.c9-brand.navbar-brand {
    display: flex;
    height: 68px;
    align-items: center;
    gap: 11px;
    padding: 9px 18px;
    color: #fff;
}

.c9-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px 3px 11px 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
}

.c9-brand-caption {
    color: #c7d0da;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .025em;
    line-height: 1.2;
}

.c9-site-nav.navbar-inverse .navbar-nav > li > a {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    color: #c7d0da;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .025em;
    transition: color .18s ease, background .18s ease;
}

.c9-site-nav.navbar-inverse .navbar-nav > li > a:hover,
.c9-site-nav.navbar-inverse .navbar-nav > li > a:focus {
    color: #fff;
    background: rgba(216, 180, 119, .1);
}

.c9-nav-icon {
    color: var(--c9-gold);
}

.c9-nav-icon svg {
    width: 18px;
    height: 18px;
}

.c9-costume-shop {
    color: #263548;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.c9-costume-shop p,
.c9-costume-shop b,
.c9-costume-shop strong,
.c9-costume-shop label,
.c9-costume-shop .table {
    color: #263548;
}

.c9-costume-shop .mGrid td {
    color: #4b5868;
}

.c9-costume-shop .mGrid .pgr td {
    color: #fff;
}

.c9-costume-shop .mGrid .pgr a {
    color: #f4e4c7;
}

.c9-costume-shop .mGrid .pgr a:hover {
    color: #fff;
}

.c9-costume-shop .c9-costume-intro {
    margin: 12px 0 16px;
    padding: 14px 17px;
    border: 1px solid #e1d1b2;
    border-left: 4px solid #b88b4c;
    border-radius: 7px;
    color: #263548;
    background: #f7f4ed;
    font-size: 15px;
    line-height: 1.6;
}

.c9-costume-shop .c9-costume-intro strong {
    color: #172638;
    font-weight: 750;
}

.c9-shop-page input[type="submit"],
.c9-shop-page .btn {
    border: 1px solid #a98249;
    border-radius: 7px;
    color: #111923;
    background: linear-gradient(135deg, #f0d9a7, #c69b5c);
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(9, 15, 23, .16);
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.c9-shop-page input[type="submit"]:hover,
.c9-shop-page input[type="submit"]:focus,
.c9-shop-page .btn:hover,
.c9-shop-page .btn:focus {
    border-color: #e1c184;
    color: #080d15;
    background: linear-gradient(135deg, #f8e6bd, #d8b477);
    box-shadow: 0 5px 14px rgba(9, 15, 23, .22);
    transform: translateY(-1px);
}

.c9-shop-page input[type="submit"]:disabled,
.c9-shop-page .btn:disabled {
    opacity: .58;
    cursor: not-allowed;
    box-shadow: none;
}

.c9-shop-page select,
.c9-shop-page input[type="text"] {
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #9b7848;
    border-radius: 6px;
    color: #f4ead8;
    background: #111923;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .22);
}

.c9-shop-page select:focus,
.c9-shop-page input[type="text"]:focus {
    border-color: #e0c184;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(216, 180, 119, .2);
}

.c9-shop-page select option {
    color: #f4ead8;
    background: #111923;
}

.c9-costume-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.c9-shop-page .mGrid tr:not(.pgr) td > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 4px 10px;
    border: 1px solid #aa844e;
    border-radius: 5px;
    color: #f0d8a7;
    background: #141d28;
    font-weight: 700;
    text-decoration: none;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.c9-shop-page .mGrid tr:not(.pgr) td > a:hover,
.c9-shop-page .mGrid tr:not(.pgr) td > a:focus {
    border-color: #e1c184;
    color: #101722;
    background: #d8b477;
}

.c9-shop-page .mGrid .pgr a {
    color: #f0d8a7;
    background: transparent;
    box-shadow: none;
}

.c9-shop-page .mGrid .pgr a:hover,
.c9-shop-page .mGrid .pgr a:focus {
    color: #fff;
    background: rgba(216, 180, 119, .16);
    transform: none;
}

.c9-ajax-loading {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 11px;
    padding: 6px 11px;
    border: 1px solid rgba(184, 139, 76, .32);
    border-radius: 7px;
    color: #263548;
    background: #f7f4ed;
    font-weight: 600;
}

.c9-ajax-spinner {
    display: inline-block;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border: 3px solid rgba(184, 139, 76, .24);
    border-top-color: #a98249;
    border-right-color: #e0c184;
    border-radius: 50%;
    animation: c9-gold-spin .78s linear infinite;
}

@keyframes c9-gold-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .c9-shop-page input[type="submit"],
    .c9-shop-page .btn,
    .c9-shop-page .mGrid tr:not(.pgr) td > a {
        transition: none;
    }

    .c9-ajax-spinner {
        animation-duration: 1.8s;
    }
}

/* Item Shop content sits inside one shared white workspace panel. */
.c9-item-shop.container-fluid {
    width: min(calc(100% - 28px), 1740px);
    margin: 14px auto 34px;
    padding: 12px 16px 20px;
    border: 1px solid #d8c6a6;
    border-radius: 11px;
    color: #263548;
    background: #fff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
}

.c9-item-shop .panel.panel-default {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.c9-item-shop .panel-heading {
    border: 0;
    border-bottom: 1px solid #e4dac9;
    color: #263548;
    background: #f7f4ed;
}

.c9-item-shop .panel-heading .panel-title,
.c9-item-shop .panel-heading h3 {
    color: #172638;
}

.c9-item-shop .panel-body,
.c9-item-shop p,
.c9-item-shop label,
.c9-item-shop b,
.c9-item-shop strong,
.c9-item-shop .table,
.c9-item-shop .table th,
.c9-item-shop .table td {
    color: #263548;
}

.c9-item-shop select,
.c9-item-shop input[type="text"] {
    border-color: #cbb995;
    color: #263548;
    background: #fff;
}

.c9-item-shop select option {
    color: #263548;
    background: #fff;
}

.c9-item-shop .mGrid tr:not(.pgr) td {
    color: #3f4f62;
    background: #fff;
}

.c9-item-shop .mGrid tr.alt:not(.pgr) td {
    color: #3f4f62;
    background: #f4f6f8;
}

.c9-item-shop .table > thead > tr > th,
.c9-item-shop .table > tbody > tr > td {
    border-color: #d9dde3;
}

/* Keep legacy GridView alternate rows opaque so the old white stripe cannot show through. */
.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid > tbody > tr:not(.pgr) {
    color: #e9eef5;
    background: #111923;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid > tbody > tr.alt:not(.pgr) {
    color: #e9eef5;
    background: #192535;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid > tbody > tr:not(.pgr) > td {
    color: #e9eef5;
    background: #111923;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid > tbody > tr.alt:not(.pgr) > td {
    color: #e9eef5;
    background: #192535;
}

.c9-ranking-filter-select {
    width: 275px;
    max-width: calc(100vw - 130px);
    color-scheme: dark;
}

@media (max-width: 767px) {
    .c9-item-shop.container-fluid {
        width: calc(100% - 20px);
        margin: 10px auto 24px;
        padding: 10px 8px 14px;
    }

    .c9-ranking-filter-select {
        width: 100%;
        max-width: none;
    }
}

/* PvP Set: one parchment-colored panel containing the full selection workflow. */
.c9-pvp-set {
    width: min(calc(100% - 36px), 1420px);
    margin: 22px auto 34px;
    padding: 18px 20px 22px;
    border: 1px solid #b88b4c;
    border-radius: 11px;
    color: #263548;
    background: #f7f4ed;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .25);
}

.c9-pvp-set > .row {
    margin-right: 0;
    margin-left: 0;
}

.c9-pvp-set > .row > .col-md-12 {
    padding-right: 0;
    padding-left: 0;
}

.c9-pvp-set,
.c9-pvp-set p,
.c9-pvp-set label,
.c9-pvp-set strong,
.c9-pvp-set .table {
    color: #263548;
}

.c9-pvp-set .panel.panel-default {
    margin-bottom: 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.c9-pvp-set .panel-heading {
    padding: 9px 0 12px;
    border: 0;
    border-bottom: 1px solid #dfd4c2;
    background: transparent;
}

.c9-pvp-set .panel-heading .panel-title,
.c9-pvp-set .panel-heading h3 {
    margin: 0;
    color: #172638;
    font-size: 22px;
    font-weight: 700;
}

.c9-pvp-set .table {
    background: transparent;
}

.c9-pvp-set .table > tbody > tr.success > td,
.c9-pvp-set .table > tbody > tr.active > td {
    border: 0;
    background: transparent;
}

.c9-pvp-set .table > tbody > tr > td {
    border-top-color: #e4dac9;
}

@media (max-width: 767px) {
    .c9-pvp-set {
        width: calc(100% - 20px);
        margin: 12px auto 22px;
        padding: 12px;
    }
}

.c9-site-nav .navbar-toggle {
    margin-top: 17px;
    border-color: rgba(216, 180, 119, .45);
}

.c9-site-nav .navbar-toggle:hover,
.c9-site-nav .navbar-toggle:focus {
    background: rgba(216, 180, 119, .12);
}

.c9-site-nav.navbar-inverse .navbar-toggle .icon-bar {
    background: var(--c9-gold);
}

.c9-site-nav .c9-logout-link {
    color: #f0d5a2 !important;
}

.c9-site-nav .c9-logout-link:before {
    content: "↪";
    margin-right: 8px;
    color: var(--c9-gold);
    font-size: 17px;
}

.c9-site-nav .c9-server-status-nav {
    display: flex;
    min-height: 68px;
    align-items: center;
    padding: 0 8px;
}

.c9-site-nav .c9-server-status {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
}

.c9-home-shell {
    margin: 0 auto 28px;
    padding: 0 10px;
}

.c9-home-account {
    padding-left: 12px;
}

.c9-home-account .tabbable {
    min-height: 350px;
    padding: 17px;
    border: 1px solid var(--c9-line);
    border-radius: 12px;
    color: #e7edf4;
    background: rgba(10, 16, 25, .9);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
}

.c9-home-account .nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.c9-home-account .nav-tabs > li > a {
    margin-right: 5px;
    border: 1px solid transparent;
    border-radius: 7px 7px 0 0;
    color: #c1cad4;
    font-size: 13px;
}

.c9-home-account .nav-tabs > li > a:hover,
.c9-home-account .nav-tabs > li > a:focus {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.c9-home-account .nav-tabs > li.active > a,
.c9-home-account .nav-tabs > li.active > a:hover,
.c9-home-account .nav-tabs > li.active > a:focus {
    border-color: rgba(216, 180, 119, .4);
    border-bottom-color: #101722;
    color: #fff;
    background: #101722;
}

.c9-home-account .tab-content {
    padding-top: 13px;
}

.c9-home-account .c9-welcome-message {
    min-height: 215px;
    padding: 19px 17px;
    border-left: 2px solid var(--c9-gold);
    color: #d9e1e9;
    background: linear-gradient(140deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
}

.c9-home-account .c9-welcome-message h3 {
    margin: 5px 0 12px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
}

.c9-home-account .c9-welcome-name {
    margin-left: 4px;
    color: var(--c9-gold);
}

.c9-home-account .c9-welcome-message p {
    color: #c1cad4;
    font-size: 14px;
    line-height: 1.7;
}

.c9-home-account #panel-542124,
.c9-home-account #panel-invitations {
    color: #e7edf4;
}

.c9-home-account #panel-542124 > img {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    border-radius: 7px;
}

.c9-home-account #panel-542124 .btn,
.c9-home-account #panel-invitations .btn {
    border: 1px solid rgba(216, 180, 119, .46);
    border-radius: 6px;
    color: #f0d5a2;
    background: rgba(216, 180, 119, .08);
}

.c9-home-account #panel-542124 .btn:hover,
.c9-home-account #panel-542124 .btn:focus,
.c9-home-account #panel-invitations .btn:hover,
.c9-home-account #panel-invitations .btn:focus {
    color: #fff;
    background: rgba(216, 180, 119, .18);
}

.c9-home-shell > .row:last-child .panel {
    overflow: hidden;
    border: 1px solid rgba(216, 180, 119, .3);
    border-radius: 11px;
    background: rgba(250, 251, 252, .97);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.c9-home-shell > .row:last-child .panel-heading {
    border-bottom: 1px solid rgba(216, 180, 119, .28);
    color: #f6f2ea;
    background: linear-gradient(110deg, #152131, #202b38);
}

.c9-home-shell > .row:last-child .panel-title {
    font-weight: 700;
    letter-spacing: .025em;
}

.c9-home-shell > .row:last-child .panel-body {
    color: #34404d;
}

.c9-home-shell > .row:last-child .panel-footer {
    border-top: 1px solid #e6e9ed;
    color: #687484;
    background: #f4f6f8;
}

.c9-home-rankings {
    margin-top: 4px;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel {
    overflow: hidden;
    border: 1px solid rgba(216, 180, 119, .42);
    border-radius: 13px;
    color: #e9eef5;
    background: linear-gradient(145deg, rgba(17, 26, 38, .98), rgba(8, 13, 21, .98));
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel > .panel-heading {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 17px 21px;
    border: 0;
    border-bottom: 1px solid rgba(216, 180, 119, .28);
    color: #f5ead7;
    background: linear-gradient(105deg, rgba(216, 180, 119, .15), rgba(15, 24, 36, .94) 56%);
}

.c9-ranking-heading {
    min-width: 0;
}

.c9-ranking-kicker {
    margin: 0 0 5px;
    color: #e2c58f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .19em;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .panel-title {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    letter-spacing: .01em;
}

.c9-ranking-filter-wrap {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.c9-ranking-filter-label {
    color: #e3e8ef;
    font-size: 13px;
    font-weight: 700;
}

.c9-ranking-filter-select {
    min-width: 190px;
    min-height: 39px;
    padding: 7px 32px 7px 11px;
    border: 1px solid #b28b50;
    border-radius: 7px;
    color: #f7edda;
    background: #101824;
    font: inherit;
    font-size: 13px;
}

.c9-ranking-filter-select:focus {
    border-color: #e5c98f;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(216, 180, 119, .2);
}

.c9-ranking-filter-select option {
    color: #f7edda;
    background: #101824;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel > .panel-body {
    padding: 16px 20px;
    color: #e1e7ef;
    background: transparent;
}

.c9-ranking-table-wrap {
    overflow-x: auto;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid {
    width: 100%;
    min-width: 570px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0 3px;
    background: transparent;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid th {
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid rgba(216, 180, 119, .45);
    color: #edd9b1;
    background: #172332;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid td {
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: #dce4ed;
    background: rgba(255, 255, 255, .025);
    font-size: 14px;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid .alt td {
    background: rgba(255, 255, 255, .055);
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid td:first-child {
    color: #e2c58f;
    font-weight: 800;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid .pgr,
.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid .pgr td {
    border: 0;
    background: transparent;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid .pgr td {
    padding: 8px 4px 2px;
    color: #dce4ed;
    text-align: left;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid .pgr table {
    width: auto;
    margin: 0;
    border-collapse: separate;
    border-spacing: 4px 0;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid .pgr a,
.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid .pgr span {
    display: inline-block;
    min-width: 30px;
    padding: 6px 8px;
    border: 1px solid rgba(216, 180, 119, .45);
    border-radius: 5px;
    color: #f0d8a7;
    background: #111923;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid .pgr span {
    border-color: #d8b477;
    color: #111923;
    background: #d8b477;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid .pgr a:hover,
.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel .mGrid .pgr a:focus {
    border-color: #f0d8a7;
    color: #101722;
    background: #f0d8a7;
}

.c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel > .panel-footer {
    padding: 12px 20px;
    border: 0;
    border-top: 1px solid rgba(216, 180, 119, .18);
    color: #c3ccd7;
    background: rgba(0, 0, 0, .12);
    font-size: 12px;
}

@media (max-width: 767px) {
    .c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel > .panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .c9-ranking-filter-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .c9-ranking-filter-select {
        min-width: 0;
        flex: 1 1 auto;
    }

    .c9-home-shell .c9-home-rankings > .col-md-12 .c9-pvp-ranking-panel > .panel-body {
        padding: 10px;
    }
}

@media (max-width: 991px) {
    .c9-login-shell {
        width: min(100% - 34px, 760px);
    }

    .c9-login-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
        gap: 28px;
    }

    .c9-login-card {
        padding: 26px 23px;
    }

    .c9-home-shell {
        padding: 0;
    }

    .c9-home-account {
        margin-top: 18px;
        padding-left: 15px;
    }
}

@media (max-width: 767px) {
    .c9-login-page {
        background-size: cover, cover, auto 100%;
        background-position: center, center, center;
        background-attachment: scroll;
    }

    .c9-login-shell {
        width: min(100% - 28px, 560px);
    }

    .c9-login-header {
        min-height: 78px;
        flex-wrap: wrap;
        row-gap: 10px;
        padding: 12px 0;
    }

    .c9-login-header-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }

    .c9-login-header-actions .c9-server-status {
        min-height: 34px;
        padding: 0 10px;
        font-size: 10px;
    }

    .c9-login-brand-mark {
        width: 41px;
        height: 41px;
        font-size: 20px;
    }

    .c9-login-brand-copy strong {
        max-width: 185px;
        font-size: 9px;
        letter-spacing: .12em;
    }

    .c9-login-brand-copy small {
        font-size: 8px;
    }

    .c9-download-link {
        min-height: 40px;
        gap: 6px;
        padding: 0 10px;
        font-size: 10px;
    }

    .c9-login-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 27px;
        padding: 36px 0;
    }

    .c9-login-intro {
        padding: 5px 0;
    }

    .c9-login-kicker {
        margin-bottom: 14px;
        font-size: 9px;
    }

    .c9-login-intro h1 {
        font-size: clamp(42px, 12vw, 63px);
    }

    .c9-login-description {
        max-width: 410px;
        margin: 15px 0 18px;
        font-size: 15px;
    }

    .c9-login-features {
        gap: 8px 14px;
        font-size: 9px;
    }

    .c9-login-card {
        padding: 25px 20px;
    }

    .c9-login-card h2 {
        font-size: 22px;
    }

    .c9-login-footer {
        min-height: 46px;
        font-size: 8px;
    }

    .c9-site-nav.navbar-inverse {
        margin-bottom: 15px;
        border-radius: 0 0 10px 10px;
    }

    .c9-site-nav .navbar-collapse {
        border-color: rgba(216, 180, 119, .18);
    }

    .c9-site-nav .c9-server-status-nav {
        min-height: 44px;
        padding: 5px 15px;
    }

    .c9-site-nav.navbar-inverse .navbar-nav > li > a {
        min-height: 47px;
        padding: 0 15px;
    }

    .c9-brand.navbar-brand {
        height: 58px;
    }

    .c9-site-nav .navbar-toggle {
        margin-top: 12px;
    }

    .c9-home-account .tabbable {
        padding: 13px;
    }

    .c9-home-shell > .row:last-child > div {
        margin-bottom: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c9-guide-link {
        animation: none;
        border-color: #f0d5a2;
        box-shadow: 0 0 0 3px rgba(216, 180, 119, .2), 0 0 18px rgba(216, 180, 119, .48);
    }

    .c9-download-link,
    .c9-login-input.form-control,
    .c9-login-submit.btn,
    .c9-home-action,
    .c9-site-nav.navbar-inverse .navbar-nav > li > a {
        transition: none;
    }
}

/* Compact change-password modal with a crisp gold close mark. */
.c9-account-modal .modal-header {
    position: relative;
    padding-right: 54px;
}

.c9-account-modal .c9-modal-close.close {
    position: absolute;
    top: 11px;
    right: 13px;
    float: none;
    display: inline-flex;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 180, 119, .52);
    border-radius: 50%;
    color: transparent;
    background: rgba(216, 180, 119, .08);
    font-size: 0;
    opacity: 1;
    text-shadow: none;
}

.c9-account-modal .c9-modal-close.close:hover,
.c9-account-modal .c9-modal-close.close:focus {
    border-color: #e2c48c;
    background: rgba(216, 180, 119, .18);
}

.c9-close-mark {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
}

.c9-close-mark::before,
.c9-close-mark::after {
    position: absolute;
    top: 1px;
    left: 7px;
    width: 2px;
    height: 14px;
    border-radius: 2px;
    background: #e2c48c;
    content: "";
}

.c9-close-mark::before { transform: rotate(45deg); }
.c9-close-mark::after { transform: rotate(-45deg); }

#modal-container-527307 .modal-dialog {
    width: min(440px, calc(100% - 28px));
    margin: 8vh auto;
}

#modal-container-527307 .modal-header {
    padding: 14px 54px 12px 20px;
}

#modal-container-527307 .modal-body {
    padding: 20px 22px 22px;
}

#modal-container-527307 .form-group {
    margin: 0 0 16px;
}

#modal-container-527307 .control-label {
    display: block;
    margin: 0 0 7px;
    color: #c7d0da;
    font-size: 13px;
}

#modal-container-527307 .form-control {
    width: 100%;
    min-height: 42px;
}

#modal-container-527307 .c9-security-setup-inline {
    margin: -7px 0 15px;
    font-size: 13px;
}

#modal-container-527307 .c9-security-setup-inline a {
    color: #e4bc75;
    text-decoration: underline;
}

#modal-container-527307 .c9-security-setup-inline a:hover,
#modal-container-527307 .c9-security-setup-inline a:focus {
    color: #f5dca7;
}

#modal-container-527307 .c9-password-actions {
    display: flex;
    margin-top: 20px;
    justify-content: flex-end;
}

#modal-container-527307 .c9-modal-submit.btn {
    min-height: 40px;
    padding: 0 16px;
}

.c9-referral-copy {
    max-width: 440px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

#modal-container-invitation-code .modal-dialog {
    width: min(460px, calc(100% - 28px));
    margin: 8vh auto;
}

#modal-container-invitation-code .modal-header {
    padding: 14px 54px 12px 20px;
}

#modal-container-invitation-code .modal-body {
    padding: 18px 22px 22px;
}

.c9-invitation-help {
    margin: 0 0 18px;
    color: #c7d0da;
    font-size: 14px;
    line-height: 1.55;
}

#modal-container-invitation-code .form-group {
    margin: 0 0 16px;
}

#modal-container-invitation-code .control-label {
    display: block;
    margin: 0 0 7px;
    color: #c7d0da;
    font-size: 13px;
}

#modal-container-invitation-code .form-control {
    width: 100%;
    min-height: 42px;
    letter-spacing: .12em;
}

/* Clear, bilingual guidance for the one-time account security question. */
#modal-container-security-question .c9-security-guidance {
    margin: 0 0 18px;
    padding: 13px 15px;
    border: 1px solid rgba(216, 180, 119, .32);
    border-radius: 8px;
    color: #cbd4de;
    background: rgba(216, 180, 119, .06);
    font-size: 13px;
    line-height: 1.55;
}

#modal-container-security-question .c9-security-guidance-title {
    display: block;
    margin: 0 0 8px;
    color: #e2c48c;
    font-size: 14px;
}

#modal-container-security-question .c9-security-guidance ul {
    margin: 0;
    padding-left: 19px;
}

#modal-container-security-question .c9-security-guidance li + li {
    margin-top: 6px;
}

#modal-container-security-question .modal-dialog {
    width: 600px;
    max-width: calc(100% - 24px);
    margin: 7vh auto;
}

#modal-container-security-question .modal-body {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.c9-home-account .c9-invitation-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 14px;
}

.c9-home-account .c9-invitation-tools .btn {
    margin: 0;
}

.c9-invitation-actions {
    display: flex;
    margin: 18px 0 12px;
    justify-content: flex-end;
}

.c9-referral-message {
    display: block;
    margin: 10px 0 0;
    color: #e2c48c;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    #modal-container-527307 .modal-dialog {
        width: calc(100% - 24px);
        margin: 10vh auto;
    }

    #modal-container-invitation-code .modal-dialog {
        width: calc(100% - 24px);
        margin: 10vh auto;
    }
}


/* C9 character selector: dark portal surface with original class emblems. */
.c9-character-list {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    margin: 8px 0;
    overflow: hidden;
    border: 1px solid #715a37;
    border-radius: 7px;
    border-collapse: separate;
    border-spacing: 0;
    background: #151b24;
    color: #eee4d2;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.c9-character-list th {
    padding: 9px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #9b7848 !important;
    color: #f3dfb8 !important;
    background: linear-gradient(135deg, #303039, #202630) !important;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.c9-character-list td {
    padding: 8px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(190, 153, 93, .18) !important;
    color: #eee7dc !important;
    background: #171e28 !important;
    vertical-align: middle;
}
.c9-character-list tr.alt td { background: #1d2631 !important; }
.c9-character-list tr:not(.pgr):hover td { background: #2a3039 !important; }
.c9-character-list tr:last-child td { border-bottom: 0 !important; }
.c9-character-list th,
.c9-character-list td {
    overflow-wrap: anywhere;
    word-wrap: break-word;
}
.c9-character-list .c9-character-name { overflow-wrap: anywhere; word-break: break-word; }
.c9-character-class-cell { white-space: normal; color: #d9bd89 !important; }
.c9-character-class-icon {
    width: 26px;
    height: 26px;
    margin: -5px 8px -5px 0;
    border: 1px solid rgba(205, 169, 111, .6);
    border-radius: 5px;
    background: #111923;
    object-fit: contain;
    vertical-align: middle;
}
.c9-pvp-set .c9-character-class-icon { width: 22px; height: 22px; margin-right: 5px; }
.c9-character-list .pgr td { background: #171e28 !important; }

/* Unified dark and gold shop surfaces. */
.c9-item-shop.container-fluid,
.c9-costume-page.container-fluid {
    width: min(100% - 24px, 1480px);
    margin: 18px auto 32px;
    padding: 18px;
    border: 1px solid #705833;
    border-radius: 10px;
    color: #e9edf2;
    background: linear-gradient(145deg, #171d26, #111720 72%);
    box-shadow: 0 12px 32px rgba(0,0,0,.24);
}
.c9-item-shop .panel,
.c9-costume-page .panel,
.c9-costume-shop {
    color: #e9edf2;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.c9-item-shop .panel-heading,
.c9-costume-page .panel-heading {
    padding: 12px 16px;
    color: #f0d8a9 !important;
    background: #242b35 !important;
    border: 1px solid #705833 !important;
    border-radius: 8px;
}
.c9-item-shop h2,
.c9-item-shop h3,
.c9-costume-page h2,
.c9-costume-page h3,
.c9-shop-section-title {
    margin: 4px 0 14px;
    color: #f0d8a9;
}
.c9-item-shop label,
.c9-item-shop .control-label,
.c9-costume-page label,
.c9-costume-page b,
.c9-costume-shop strong {
    color: #e8d3ab;
}
.c9-item-shop input:not([type=submit]):not([type=button]),
.c9-item-shop select,
.c9-costume-page input:not([type=submit]):not([type=button]),
.c9-costume-page select {
    min-height: 38px;
    padding: 7px 10px;
    color: #edf1f5;
    background: #171e28;
    border: 1px solid #80683e;
    border-radius: 6px;
}
.c9-item-shop .mGrid,
.c9-costume-page .mGrid {
    width: 100%;
    color: #e9edf2;
    background: #171e28;
    border-color: #3c4652;
}
.c9-item-shop .mGrid th,
.c9-costume-page .mGrid th {
    padding: 9px 10px !important;
    color: #f2dfbb !important;
    background: #303640 !important;
    border-color: #515762 !important;
}
.c9-item-shop .mGrid td,
.c9-costume-page .mGrid td {
    padding: 7px 9px !important;
    color: #e3e8ee !important;
    background: #1a222d !important;
    border-color: #3a434e !important;
    vertical-align: middle;
    overflow-wrap: anywhere;
}
.c9-item-shop .mGrid tr.alt td,
.c9-costume-page .mGrid tr.alt td { background: #222b36 !important; }
.c9-item-shop .mGrid tr:hover td,
.c9-costume-page .mGrid tr:hover td { background: #2c3540 !important; }
.c9-item-shop .mGrid a,
.c9-costume-page .mGrid a { color: #e8c47f !important; }
.c9-item-shop .table,
.c9-costume-page .table {
    margin: 10px 0 14px;
    color: #e7ebf0;
    background: #1a222d;
    border: 1px solid #414a56;
}
.c9-item-shop .table th,
.c9-item-shop .table td,
.c9-costume-page .table th,
.c9-costume-page .table td {
    color: #e7ebf0;
    border-color: #414a56;
}
.c9-item-shop .table th,
.c9-costume-page .table th { color: #f0d8a9; background: #282f39; }
.c9-item-shop #searchItem,
.c9-item-shop #searchItem2,
.c9-costume-page #searchItem {
    max-width: 100%;
    overflow: auto !important;
    border: 1px solid #4c535d;
    border-radius: 7px;
    background: #151c25;
}
.c9-costume-page .c9-costume-intro {
    margin: 0 0 16px;
    padding: 13px 16px;
    color: #e8edf2;
    background: #232a34;
    border: 1px solid #705833;
    border-radius: 8px;
    line-height: 1.6;
}
.c9-costume-page .c9-costume-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px;
    background: #202732;
    border: 1px solid #3e4854;
    border-radius: 8px;
}
.c9-costume-page .c9-costume-filters input[type=submit],
.c9-costume-page .c9-costume-filters input[type=button] { min-height: 34px; padding: 6px 12px; }
.c9-item-shop .c9-item-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #e8edf2;
}
.c9-item-shop .c9-item-toolbar h2 { flex: 0 0 100%; }
.c9-costume-page .c9-item-data-grid td { line-height: 1.45; }
.c9-item-shop .col-md-3,
.c9-item-shop .col-md-4,
.c9-item-shop .col-md-5,
.c9-costume-page .col-md-3,
.c9-costume-page .col-md-6 { min-width: 0; }
@media (max-width: 767px) {
    .c9-item-shop.container-fluid,
    .c9-costume-page.container-fluid { width: 100%; margin: 0 auto 20px; padding: 10px; border-radius: 0; }
    .c9-item-shop .mGrid,
    .c9-costume-page .mGrid { font-size: 13px; }
    .c9-costume-page .c9-costume-filters { gap: 6px; }
}

/* PvP Set layout: one connected character and rewards workspace. */
.c9-pvp-set .c9-pvp-layout {
    overflow: hidden;
    border: 1px solid #d6c6aa;
    border-radius: 9px;
    background: rgba(255,255,255,.34);
}
.c9-pvp-set .c9-pvp-layout > .col-md-12 { padding: 0; }
.c9-pvp-set .c9-pvp-layout > .col-md-12 > .row { margin: 0; }
.c9-pvp-set .c9-pvp-character-pane,
.c9-pvp-set .c9-pvp-content-pane { padding: 14px; }
.c9-pvp-set .c9-pvp-character-pane { border-right: 1px solid #d6c6aa; }
.c9-pvp-set .c9-pvp-character-pane .panel { margin-bottom: 0; }
.c9-pvp-set .c9-pvp-character-pane #searchItem { max-height: 470px; overflow: auto !important; }
.c9-pvp-set .c9-character-list { margin-top: 0; }
.c9-pvp-set .c9-pvp-details {
    display: flex;
    align-items: stretch;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d6c6aa;
    border-radius: 8px;
    background: rgba(255,255,255,.48);
}
.c9-pvp-set .c9-pvp-selected-pane,
.c9-pvp-set .c9-pvp-actions-pane { float: none; padding: 16px; }
.c9-pvp-set .c9-pvp-selected-pane { border-right: 1px solid #e2d7c7; }
.c9-pvp-set .c9-pvp-selected-pane .table { margin: 0 0 12px; }
.c9-pvp-set .c9-pvp-selected-pane .table th { color: #263548; font-size: 15px; }
.c9-pvp-set .c9-pvp-instructions {
    min-height: 118px;
    padding: 12px 14px;
    color: #344256;
    background: #f7f4ed;
    border: 1px solid #e0d4c1;
    border-radius: 7px;
    line-height: 1.7;
}
.c9-pvp-set .c9-pvp-action-table { width: 100%; margin: 12px 0 0; table-layout: fixed; }
.c9-pvp-set .c9-pvp-action-table td { padding: 5px 0 !important; border: 0 !important; }
.c9-pvp-set .c9-pvp-action-table .btn {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 12px;
    white-space: normal;
    line-height: 1.35;
    text-align: center;
    font-size: 14px;
}
@media (max-width: 767px) {
    .c9-pvp-set .c9-pvp-character-pane { border-right: 0; border-bottom: 1px solid #d6c6aa; }
    .c9-pvp-set .c9-pvp-details { display: block; }
    .c9-pvp-set .c9-pvp-selected-pane { border-right: 0; border-bottom: 1px solid #e2d7c7; }
}


/* Subtle selected-character indicator and responsive PvP layout. */
.c9-pvp-set .c9-character-list tr.c9-character-selected > td {
    color: #fff4d5 !important;
    background: #393322 !important;
    box-shadow: inset 0 1px 0 rgba(232, 199, 122, .23), inset 0 -1px 0 rgba(232, 199, 122, .23);
}
.c9-pvp-set .c9-character-list tr.c9-character-selected > td:first-child {
    box-shadow: inset 3px 0 0 #d4b15e, inset 0 1px 0 rgba(232, 199, 122, .23), inset 0 -1px 0 rgba(232, 199, 122, .23);
}
.c9-pvp-set .c9-pvp-character-list-wrap { max-height: 470px; overflow: auto; }
.c9-pvp-set .c9-pvp-character-list-wrap { padding: 0; }
.c9-pvp-set .c9-pvp-select-hint { display: none; }
.c9-pvp-set .c9-pvp-details { display: block; width: 100%; }
.c9-pvp-set .c9-pvp-actions-pane { width: 100%; }
.c9-pvp-set .c9-pvp-feedback { min-height: 0; margin-top: 10px; }
.c9-pvp-set .c9-pvp-result {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 8px;
    padding: 9px 13px;
    border: 1px solid rgba(70, 190, 120, .42);
    border-radius: 8px;
    color: #d8f4df;
    background: rgba(31, 102, 61, .22);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.c9-pvp-set .c9-pvp-result-icon {
    display: inline-flex;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #102019;
    background: #6fe39a;
    box-shadow: 0 0 10px rgba(93, 224, 142, .35);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}
.c9-pvp-set .c9-pvp-result.is-error {
    border-color: rgba(240, 110, 100, .45);
    color: #ffe2de;
    background: rgba(126, 47, 43, .22);
}
.c9-pvp-set .c9-pvp-result.is-error .c9-pvp-result-icon {
    color: #fff;
    background: #dc6e63;
    box-shadow: none;
}
@media (max-width: 767px) {
    .c9-pvp-set { width: calc(100% - 16px); margin: 8px auto 18px; padding: 10px; }
    .c9-pvp-set .c9-pvp-layout > .col-md-12 > .row { display: block; }
    .c9-pvp-set .c9-pvp-character-pane,
    .c9-pvp-set .c9-pvp-content-pane { width: 100%; padding: 10px; }
    .c9-pvp-set .c9-pvp-character-pane { border-right: 0; border-bottom: 1px solid #d6c6aa; }
    .c9-pvp-set .c9-pvp-instructions { min-height: 0; font-size: 14px; }
    .c9-pvp-set .c9-character-list th,
    .c9-pvp-set .c9-character-list td { padding: 7px !important; }
}

/* Item shop redesign: one continuous page flow with responsive product cards. */
.c9-item-shop > .row,
.c9-item-shop .row {
    display: flex;
    flex-direction: column;
}
.c9-item-shop .row > [class*="col-md-"] {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
}
.c9-item-shop .panel { margin-bottom: 12px; }
.c9-item-shop .panel-heading h3 { margin: 0; }
.c9-item-shop .panel-group { margin: 0 0 18px; }
.c9-item-shop .panel-group .panel-body { padding: 12px 16px; }
.c9-item-shop .panel-group ul { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 8px 0 0; }
.c9-item-shop .panel-group li { margin: 0; }
.c9-item-shop .panel > div[style*="overflow"] {
    height: auto !important;
    max-height: 190px;
    overflow: auto !important;
    padding: 8px;
    border: 1px solid #3a434e;
    border-radius: 0 0 8px 8px;
    background: #151c25;
}
.c9-item-shop .c9-character-list { margin: 0; }
.c9-item-shop .c9-item-toolbar {
    padding: 14px;
    background: #202732;
    border: 1px solid #414a56;
    border-radius: 8px;
}
.c9-item-shop .c9-item-toolbar h2 { margin: 0 0 4px; }
.c9-item-shop #searchItem,
.c9-item-shop #searchItem2 {
    height: auto !important;
    max-height: min(68vh, 650px);
    padding: 8px;
}
.c9-item-shop .c9-item-data-grid {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
}
.c9-item-shop .c9-item-data-grid > thead { display: none; }
.c9-item-shop .c9-item-data-grid > tbody {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 10px;
}
.c9-item-shop .c9-item-data-grid > tbody > tr:not(.pgr) {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name price" "type action";
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #675535;
    border-radius: 8px;
    background: linear-gradient(145deg, #232a34, #191f28);
    box-shadow: 0 3px 10px rgba(0,0,0,.16);
    transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.c9-item-shop .c9-item-data-grid > tbody > tr:not(.pgr):hover {
    border-color: #c49d59;
    background: #2a3039;
    transform: translateY(-1px);
}
/* Hover must not cover the selected item's gold background. */
.c9-item-shop .c9-item-data-grid > tbody > tr.c9-item-selected:not(.pgr):hover {
    border-color: #ffe09a !important;
    background: linear-gradient(100deg, #655127, #443a27 58%, #332f27) !important;
    box-shadow: 0 0 0 2px rgba(255, 225, 155, .26), 0 0 20px rgba(255, 213, 125, .36), inset 0 0 18px rgba(255, 225, 155, .12) !important;
    transform: translateY(-1px);
}
.c9-item-shop .c9-item-data-grid > tbody > tr:not(.pgr) > td {
    min-width: 0;
    padding: 5px 7px !important;
    border: 0 !important;
    background: transparent !important;
}
.c9-item-shop .c9-item-data-grid > tbody > tr:not(.pgr) > td:first-child { display: none; }
.c9-item-shop .c9-general-items-grid > tbody > tr:not(.pgr) > td:nth-child(2) {
    grid-area: name;
    color: #f2dfbb !important;
    font-size: 15px;
    font-weight: 700;
}
.c9-item-shop .c9-general-items-grid > tbody > tr:not(.pgr) > td:nth-child(3) {
    grid-area: type;
    color: #aab6c4 !important;
    font-size: 12px;
}
.c9-item-shop .c9-general-items-grid > tbody > tr:not(.pgr) > td:nth-child(4) {
    grid-area: price;
    color: #e8c47f !important;
    align-self: center;
    white-space: nowrap;
}
.c9-item-shop .c9-general-items-grid > tbody > tr:not(.pgr) {
    grid-template-areas: "name name" "type type" "price action";
}
.c9-item-shop .c9-general-items-grid > tbody > tr:not(.pgr) > td:nth-child(5) {
    grid-area: action;
    justify-self: end;
}
.c9-item-shop .c9-item-buy-button { min-width: 96px; min-height: 34px; }
.c9-item-shop .c9-item-order-panel h3 {
    margin: 0 0 12px;
    color: #f0d8a9;
    font-size: 18px;
}
.c9-item-shop .c9-item-credit-balance {
    margin: 0 0 16px;
    color: #dce4ee;
}
.c9-item-shop .c9-item-credit-balance strong {
    color: #ffe0a0;
    font-size: 20px;
}
.c9-item-shop .c9-item-quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}
.c9-item-shop .c9-item-quantity-control label {
    margin: 0;
    color: #e8edf2;
}
.c9-item-shop .c9-item-quantity-control select { min-width: 88px; }
.c9-item-shop .c9-item-order-hint { color: #aab6c4; font-size: 13px; }
.c9-item-shop .c9-item-order-message { display: block; margin-top: 10px; color: #ffe0a0; }
.c9-item-shop .c9-special-items-grid > tbody > tr:not(.pgr) {
    grid-template-areas: "name price" "about action";
}
.c9-item-shop .c9-special-items-grid > tbody > tr:not(.pgr) > td:nth-child(2) {
    grid-area: name;
    color: #f2dfbb !important;
    font-size: 15px;
    font-weight: 700;
}
.c9-item-shop .c9-special-items-grid > tbody > tr:not(.pgr) > td:nth-child(3) {
    grid-area: about;
    color: #aab6c4 !important;
    font-size: 12px;
}
.c9-item-shop .c9-special-items-grid > tbody > tr:not(.pgr) > td:nth-child(4) {
    grid-area: price;
    color: #e8c47f !important;
    white-space: nowrap;
}
.c9-item-shop .c9-special-items-grid > tbody > tr:not(.pgr) > td:nth-child(5) { grid-area: action; }
.c9-item-shop .c9-item-data-grid .pgr { grid-column: 1 / -1; display: table-row; }
.c9-item-shop .c9-item-data-grid .pgr td { display: table-cell; }
.c9-item-shop .table { overflow-wrap: anywhere; }
.c9-item-shop .btn-primary { min-height: 42px; }
.c9-item-shop .panel-heading .panel-title,
.c9-item-shop .panel-heading .panel-title:hover,
.c9-item-shop .panel-heading h3,
.c9-item-shop .panel-group .panel-heading a {
    color: #f0d8a9 !important;
}
.c9-item-shop .panel-group .panel-body,
.c9-item-shop .panel-group .panel-body p,
.c9-item-shop .panel-body {
    color: #e9edf2 !important;
}
.c9-item-shop .c9-item-data-grid > tbody > tr:has(> th) { display: none !important; }
@media (max-width: 767px) {
    .c9-item-shop .panel > div[style*="overflow"] { max-height: 155px; }
    .c9-item-shop .panel-group ul { display: block; }
    .c9-item-shop .c9-item-toolbar { align-items: stretch; }
    .c9-item-shop .c9-item-toolbar > * { max-width: 100%; }
    .c9-item-shop .c9-item-data-grid > tbody { grid-template-columns: minmax(0, 1fr); }
    .c9-item-shop .c9-item-data-grid > tbody > tr:not(.pgr) { padding: 8px; }
    .c9-item-shop #searchItem,
    .c9-item-shop #searchItem2 { max-height: 62vh; }
}

/* Wide desktop fit for the common 1920×1080 portal display. */
@media (min-width: 1600px) {
    .c9-item-shop.container-fluid {
        width: min(calc(100% - 48px), 1840px);
        margin-top: 18px;
    }

    .c9-pvp-set {
        width: min(calc(100% - 48px), 1760px);
        margin-top: 18px;
    }

    .c9-item-shop .c9-item-data-grid > tbody {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 12px;
    }

    .c9-pvp-set .c9-pvp-character-pane {
        width: 30%;
    }

    .c9-pvp-set .c9-pvp-content-pane {
        width: 70%;
    }
}

/* Make the selected character unmistakable and keep its class icon beside its name. */
.c9-pvp-set .c9-character-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}
.c9-pvp-set .c9-character-select-link,
.c9-pvp-set .c9-character-select-link:hover,
.c9-pvp-set .c9-character-select-link:focus {
    color: inherit !important;
    text-decoration: none !important;
}
.c9-shop-page .c9-character-select-link,
.c9-shop-page .c9-character-select-link:hover,
.c9-shop-page .c9-character-select-link:focus {
    color: inherit !important;
    text-decoration: none !important;
}
.c9-costume-page .c9-costume-select-link,
.c9-costume-page .c9-costume-select-link:hover,
.c9-costume-page .c9-costume-select-link:focus {
    color: inherit !important;
    text-decoration: none !important;
}
.c9-pvp-set .c9-character-name-icon {
    width: 30px;
    height: 30px;
    margin: 0;
    flex: 0 0 30px;
    border-color: rgba(216, 180, 119, .76);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.c9-pvp-set .c9-character-name-text {
    min-width: 0;
    overflow-wrap: anywhere;
}
.c9-pvp-set .c9-character-selected-badge {
    display: none;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 1px solid #fff0c4;
    border-radius: 50%;
    color: #18202a;
    background: linear-gradient(145deg, #ffedbd, #d8b477);
    box-shadow: 0 0 11px rgba(255, 218, 139, .78);
    font-size: 13px;
    font-weight: 900;
}
.c9-pvp-set .c9-character-list tr.c9-character-selected > td {
    color: #fff9e9 !important;
    background: linear-gradient(100deg, #655127, #443a27 58%, #332f27) !important;
    box-shadow: inset 0 1px 0 rgba(255, 230, 174, .68), inset 0 -1px 0 rgba(255, 230, 174, .68);
}
.c9-pvp-set .c9-character-list tr.c9-character-selected > td:first-child {
    box-shadow: inset 5px 0 0 #ffe09a, inset 0 1px 0 rgba(255, 230, 174, .68), inset 0 -1px 0 rgba(255, 230, 174, .68);
}
.c9-pvp-set .c9-character-list tr.c9-character-selected .c9-character-selected-badge {
    display: inline-flex;
}
.c9-pvp-set .c9-character-list tr.c9-character-selected .c9-character-name-icon {
    border-color: #ffe5a6;
    box-shadow: 0 0 0 2px rgba(255, 225, 155, .25), 0 0 14px rgba(255, 215, 130, .58);
}

/* Simplify the item shop's repeated title and guide panels. */
.c9-item-shop .c9-shop-character-panel > .panel-heading {
    padding: 5px 10px !important;
    border: 0 !important;
    background: transparent !important;
}
.c9-item-shop .c9-shop-character-panel > .panel-heading h3 {
    margin: 0;
    color: #d8c19a !important;
    font-size: 14px;
    font-weight: 700;
}
.c9-item-shop .c9-shop-character-panel > div[style*="overflow"] {
    max-height: min(65vh, 460px);
    padding: 4px !important;
    border-color: #394552;
    background: #171e28;
}
.c9-item-shop .c9-credit-guide {
    margin: 6px 0 14px !important;
    padding: 5px 12px;
    border: 1px solid #3b4652;
    border-radius: 8px;
    background: #1a212b;
}
.c9-item-shop .c9-credit-guide > .panel {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 !important;
}
.c9-item-shop .c9-credit-guide .panel-heading {
    flex: 0 0 auto;
    padding: 4px 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.c9-item-shop .c9-credit-guide .panel-heading .panel-title {
    color: #d8c19a !important;
    font-size: 13px;
    font-weight: 700;
}
.c9-item-shop .c9-credit-guide .panel-collapse { flex: 1 1 auto; min-width: 0; }
.c9-item-shop .c9-credit-guide .panel-body {
    padding: 4px 0 !important;
    color: #bfc8d3 !important;
    font-size: 12px;
    line-height: 1.45;
}
.c9-item-shop .c9-credit-guide .panel-body ul {
    gap: 2px 18px;
    margin: 4px 0 0;
    color: #d9dee6;
    font-size: 12px;
}

/* Character tables on the shops use the same icon, check and glow as PvP Set. */
.c9-item-shop .c9-character-identity,
.c9-costume-page .c9-character-identity {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.c9-item-shop .c9-character-name-icon,
.c9-costume-page .c9-character-name-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0;
    border-color: rgba(216, 180, 119, .76);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.c9-item-shop .c9-character-name-text,
.c9-costume-page .c9-character-name-text {
    min-width: 0;
    overflow-wrap: anywhere;
}
.c9-item-shop .c9-character-selected-badge,
.c9-costume-page .c9-character-selected-badge {
    display: none;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: auto;
    border: 1px solid #fff0c4;
    border-radius: 50%;
    color: #18202a;
    background: linear-gradient(145deg, #ffedbd, #d8b477);
    box-shadow: 0 0 11px rgba(255, 218, 139, .78);
    font-size: 13px;
    font-weight: 900;
}
.c9-item-shop .c9-character-list tr.c9-character-selected .c9-character-selected-badge,
.c9-costume-page .c9-character-list tr.c9-character-selected .c9-character-selected-badge {
    display: inline-flex;
}
.c9-item-shop .c9-character-list tr.c9-character-selected .c9-character-name-icon,
.c9-costume-page .c9-character-list tr.c9-character-selected .c9-character-name-icon {
    border-color: #ffe5a6;
    box-shadow: 0 0 0 2px rgba(255, 225, 155, .25), 0 0 14px rgba(255, 215, 130, .58);
}
.c9-item-shop .c9-character-list th:last-child,
.c9-costume-page .c9-character-list th:last-child { width: 38%; }
.c9-item-shop .c9-character-list td:last-child,
.c9-costume-page .c9-character-list td:last-child { white-space: nowrap; }
.c9-costume-page .c9-costume-character-pane > div[style*="overflow"] {
    max-height: min(65vh, 460px);
}
.c9-item-shop .c9-item-toolbar {
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
}
.c9-item-shop .c9-item-toolbar h2 {
    margin: 0 0 2px;
    font-size: 22px;
}

/* Costume selection uses whole-row clicks and a persistent selected state. */
.c9-costume-page .c9-character-list tr.c9-character-selected > td,
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected > td {
    color: #fff8e7 !important;
    background: linear-gradient(100deg, #5e4a25, #3d372b) !important;
    box-shadow: inset 0 1px 0 rgba(255, 225, 155, .58), inset 0 -1px 0 rgba(255, 225, 155, .58);
}
.c9-costume-page .c9-character-list tr.c9-character-selected > td:first-child,
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected > td:first-child {
    box-shadow: inset 5px 0 0 #ffe09a, inset 0 1px 0 rgba(255, 225, 155, .58), inset 0 -1px 0 rgba(255, 225, 155, .58);
}
.c9-costume-page .c9-character-list tr.c9-character-selected .c9-character-class-icon {
    border-color: #ffe5a6;
    box-shadow: 0 0 0 2px rgba(255, 225, 155, .24), 0 0 12px rgba(255, 215, 130, .52);
}
.c9-costume-page .c9-character-list tr:not(.pgr),
.c9-costume-page .c9-item-data-grid tr:not(.pgr) { cursor: pointer; }
.c9-costume-page .c9-item-data-grid tr:not(.pgr):hover > td,
.c9-costume-page .c9-character-list tr:not(.pgr):hover > td {
    background: #303a46 !important;
}
.c9-costume-page .c9-character-list tr.c9-character-selected:hover > td,
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected:hover > td {
    background: linear-gradient(100deg, #6b552c, #47402f) !important;
}

/* Keep all three selectors consistent: chosen character and chosen item glow. */
.c9-item-shop .c9-item-data-grid tr.c9-item-selected > td,
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected > td {
    color: #fff8e7 !important;
    background: linear-gradient(100deg, #5e4a25, #3d372b) !important;
    box-shadow: inset 0 1px 0 rgba(255, 225, 155, .58), inset 0 -1px 0 rgba(255, 225, 155, .58);
}
.c9-item-shop .c9-item-data-grid tr.c9-item-selected {
    border-color: #ffe09a !important;
    background: linear-gradient(135deg, rgba(111, 86, 39, .48), rgba(37, 43, 52, .98)) !important;
    box-shadow: 0 0 0 2px rgba(255, 225, 155, .26), 0 0 20px rgba(255, 213, 125, .32), inset 0 0 18px rgba(255, 225, 155, .1) !important;
}
.c9-item-shop .c9-item-data-grid tr.c9-item-selected::after {
    content: "✓";
    position: absolute;
    z-index: 2;
    top: 7px;
    right: 8px;
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff0c4;
    border-radius: 50%;
    color: #18202a;
    background: linear-gradient(145deg, #ffedbd, #d8b477);
    box-shadow: 0 0 12px rgba(255, 218, 139, .8);
    font-size: 14px;
    font-weight: 900;
    pointer-events: none;
}
.c9-item-shop .c9-item-data-grid tr.c9-item-selected > td:first-child,
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected > td:nth-child(2) {
    box-shadow: inset 5px 0 0 #ffe09a, inset 0 1px 0 rgba(255, 225, 155, .58), inset 0 -1px 0 rgba(255, 225, 155, .58);
}
.c9-item-shop .c9-item-data-grid tr.c9-item-selected > td:nth-child(2) {
    box-shadow: inset 5px 0 0 #ffe09a, inset 0 1px 0 rgba(255, 225, 155, .58), inset 0 -1px 0 rgba(255, 225, 155, .58);
}
.c9-item-shop .c9-item-data-grid tr.c9-item-selected:hover > td,
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected:hover > td {
    background: linear-gradient(100deg, #6b552c, #47402f) !important;
}

/* Apply the item shop's two-pane layout to the costume catalog. */
@media (min-width: 1001px) {
    .c9-costume-page.container-fluid {
        width: min(calc(100% - 48px), 1840px);
        margin: 18px auto 24px;
    }
    .c9-costume-page > .row > .col-md-1 { display: none; }
    .c9-costume-page > .row > .col-md-10 { width: 100%; }
    .c9-costume-page .c9-costume-main-layout {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }
    .c9-costume-page .c9-costume-main-layout > .c9-costume-character-pane {
        flex: 0 0 27%;
        width: 27%;
    }
    .c9-costume-page .c9-costume-main-layout > .c9-costume-catalog-pane {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }
}
.c9-costume-page .c9-costume-character-pane > div[style*="overflow"] {
    height: auto !important;
    max-height: 72vh;
    padding: 10px;
    border: 1px solid #414a56;
    border-radius: 8px;
    background: #171e28;
}
.c9-costume-page .c9-costume-character-pane .c9-character-list td:nth-child(2) {
    white-space: nowrap;
}
.c9-costume-page .c9-costume-intro strong {
    color: #ffe2a3 !important;
}
.c9-costume-page .c9-costume-checkout-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 16px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #414a56;
    border-radius: 8px;
    background: #1a212b;
}
.c9-costume-page .c9-costume-checkout-panel h3 {
    grid-column: 1 / -1;
    margin: 0;
    color: #f0d8a9;
    font-size: 18px;
}
.c9-costume-page .c9-costume-checkout-panel .table {
    grid-column: 1 / -1;
    margin: 0;
}
.c9-costume-page .c9-costume-checkout-panel > p { margin: 0; }
.c9-costume-page .c9-costume-checkout-panel .btn { min-width: 220px; }
@media (max-width: 1000px) {
    .c9-costume-page .c9-costume-main-layout { display: block; }
    .c9-costume-page .c9-costume-character-pane,
    .c9-costume-page .c9-costume-catalog-pane { width: 100%; }
    .c9-costume-page .c9-costume-character-pane > div[style*="overflow"] { max-height: 32vh; }
}
@media (max-width: 600px) {
    .c9-costume-page .c9-costume-checkout-panel { display: block; }
    .c9-costume-page .c9-costume-checkout-panel > * { margin-bottom: 8px !important; }
    .c9-costume-page .c9-costume-checkout-panel .btn { width: 100%; }
}

@media (max-width: 767px) {
    .c9-item-shop .c9-credit-guide > .panel { display: block; }
    .c9-item-shop .c9-credit-guide .panel-body ul { display: block; }
}

/* Item shop: keep character selection beside the general catalog. */
.c9-item-shop .c9-item-main-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 16px;
}
.c9-item-shop .c9-item-main-layout > .c9-item-character-pane {
    flex: 0 0 27%;
    width: 27% !important;
    max-width: 27%;
}
.c9-item-shop .c9-item-main-layout > .c9-item-store-pane {
    flex: 1 1 0;
    width: auto !important;
    max-width: none;
}
.c9-item-shop .c9-general-shop-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 12px;
}
.c9-item-shop .c9-general-shop-layout > .c9-general-items-pane {
    flex: 1 1 0;
    width: auto !important;
    max-width: none;
}
.c9-item-shop .c9-general-shop-layout > .c9-item-purchase-pane {
    flex: 0 0 31%;
    width: 31% !important;
    max-width: 31%;
    padding: 12px;
    border: 1px solid #414a56;
    border-radius: 8px;
    background: #1a212b;
}
.c9-item-shop .c9-character-list tr.c9-character-selected > td {
    color: #fff8e7 !important;
    background: linear-gradient(100deg, #5e4a25, #3d372b) !important;
    box-shadow: inset 0 1px 0 rgba(255, 225, 155, .55), inset 0 -1px 0 rgba(255, 225, 155, .55);
}
.c9-item-shop .c9-character-list tr.c9-character-selected > td:first-child {
    box-shadow: inset 5px 0 0 #ffe09a, inset 0 1px 0 rgba(255, 225, 155, .55), inset 0 -1px 0 rgba(255, 225, 155, .55);
}
.c9-item-shop .c9-special-shop-area { display: none !important; }

/* Compact catalog ordering: quantity and result live beside each product's purchase action. */
.c9-item-shop .c9-item-toolbar h2 { flex: 0 0 auto; margin: 0 12px 0 0; }
.c9-item-shop .c9-item-toolbar .c9-item-credit-balance {
    order: 1;
    margin: 0 auto 0 0;
    white-space: nowrap;
}
.c9-item-shop .c9-item-toolbar > label { margin-left: auto; }
.c9-item-shop .c9-general-shop-layout > .c9-general-items-pane { flex-basis: 100%; }
.c9-item-shop .c9-general-shop-layout > .c9-item-purchase-pane { display: none !important; }
.c9-item-shop .c9-general-items-grid > tbody > tr:not(.pgr) { grid-template-areas: "name name" "type type" "price action"; }
.c9-item-shop .c9-general-items-grid > tbody > tr:not(.pgr) > td:nth-child(5) { grid-area: action; justify-self: end; }
.c9-item-shop .c9-item-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.c9-item-shop .c9-item-quantity-label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #aab6c4; font-size: 12px; font-weight: 600; }
.c9-item-shop .c9-item-quantity-select { min-width: 62px !important; width: 66px; min-height: 34px; padding: 4px 8px; }
.c9-item-shop .c9-item-row-result { display: block; min-height: 0; margin: 4px 7px 0; font-size: 12px; line-height: 1.35; }
.c9-item-shop .c9-item-row-result:empty { display: none; }
.c9-item-shop .c9-item-row-result.is-success { color: #76d79a; }
.c9-item-shop .c9-item-row-result.is-error { color: #ffb1a8; }
.c9-item-shop .c9-item-data-grid tr.c9-item-selected > td,
.c9-item-shop .c9-item-data-grid tr.c9-item-selected > td:first-child,
.c9-item-shop .c9-item-data-grid tr.c9-item-selected > td:nth-child(2) { box-shadow: none !important; }
.c9-item-shop .c9-item-data-grid tr.c9-item-selected > td:nth-child(2) { border-left: 4px solid #ffe09a !important; }
@media (max-width: 767px) {
    .c9-item-shop .c9-item-toolbar h2 { flex-basis: 100%; }
    .c9-item-shop .c9-item-toolbar .c9-item-credit-balance { order: 0; margin: 0; }
    .c9-item-shop .c9-item-toolbar > label { margin-left: 0; }
    .c9-item-shop .c9-general-items-grid > tbody > tr:not(.pgr) { grid-template-areas: "name name" "type type" "price action"; }
}
@media (max-width: 1000px) {
    .c9-item-shop .c9-item-main-layout,
    .c9-item-shop .c9-general-shop-layout {
        flex-direction: column !important;
    }
    .c9-item-shop .c9-item-main-layout > .c9-item-character-pane,
    .c9-item-shop .c9-item-main-layout > .c9-item-store-pane,
    .c9-item-shop .c9-general-shop-layout > .c9-general-items-pane,
    .c9-item-shop .c9-general-shop-layout > .c9-item-purchase-pane {
        flex: 1 1 auto;
        width: 100% !important;
        max-width: 100%;
    }
}

/* Match the PvP yellow selection glow and checkmark on the other two shops. */
.c9-item-shop .c9-character-list tr.c9-character-selected > td,
.c9-costume-page .c9-character-list tr.c9-character-selected > td,
.c9-pvp-set .c9-character-list tr.c9-character-selected > td {
    color: #fff9e9 !important;
    background-color: #51452e !important;
    background-image: linear-gradient(100deg, #655127, #443a27 58%, #332f27) !important;
    box-shadow: inset 0 1px 0 rgba(255, 230, 174, .68), inset 0 -1px 0 rgba(255, 230, 174, .68) !important;
}
.c9-item-shop .c9-character-list tr.c9-character-selected > td:first-child,
.c9-costume-page .c9-character-list tr.c9-character-selected > td:first-child,
.c9-pvp-set .c9-character-list tr.c9-character-selected > td:first-child {
    box-shadow: inset 5px 0 0 #ffe09a, inset 0 1px 0 rgba(255, 230, 174, .68), inset 0 -1px 0 rgba(255, 230, 174, .68) !important;
}
.c9-item-shop .c9-character-list tr.c9-character-selected .c9-character-selected-badge,
.c9-costume-page .c9-character-list tr.c9-character-selected .c9-character-selected-badge,
.c9-pvp-set .c9-character-list tr.c9-character-selected .c9-character-selected-badge { display: inline-flex !important; }
.c9-item-shop .c9-character-list tr.c9-character-selected .c9-character-name-icon,
.c9-costume-page .c9-character-list tr.c9-character-selected .c9-character-name-icon,
.c9-pvp-set .c9-character-list tr.c9-character-selected .c9-character-name-icon {
    border-color: #ffe5a6 !important;
    box-shadow: 0 0 0 2px rgba(255, 225, 155, .25), 0 0 14px rgba(255, 215, 130, .58) !important;
}
.c9-item-shop .c9-item-data-grid tr.c9-item-selected,
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected {
    position: relative;
    border-color: #ffe09a !important;
    outline: 1px solid rgba(255, 224, 154, .45);
    background: linear-gradient(135deg, rgba(111, 86, 39, .48), rgba(37, 43, 52, .98)) !important;
    box-shadow: 0 0 0 2px rgba(255, 225, 155, .26), 0 0 18px rgba(255, 213, 125, .3), inset 0 0 16px rgba(255, 225, 155, .1) !important;
}
.c9-item-shop .c9-item-data-grid tr.c9-item-selected > td,
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected > td {
    color: #fff9e9 !important;
    background: linear-gradient(100deg, #655127, #443a27 58%, #332f27) !important;
    box-shadow: inset 0 1px 0 rgba(255, 230, 174, .5), inset 0 -1px 0 rgba(255, 230, 174, .5) !important;
}
.c9-item-shop .c9-item-data-grid tr.c9-item-selected::after,
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected::after {
    content: "✓";
    position: absolute;
    z-index: 4;
    top: 7px;
    right: 8px;
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff0c4;
    border-radius: 50%;
    color: #18202a;
    background: linear-gradient(145deg, #ffedbd, #d8b477);
    box-shadow: 0 0 12px rgba(255, 218, 139, .8);
    font-size: 14px;
    font-weight: 900;
    pointer-events: none;
}
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected > td:nth-child(2) {
    border-left: 5px solid #ffe09a !important;
}
.c9-costume-page .c9-costume-purchase-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 14px 0 4px;
    padding: 12px 14px;
    border: 1px solid #675535;
    border-radius: 8px;
    background: linear-gradient(145deg, #202732, #191f28);
}
.c9-costume-page .c9-costume-transaction-button { min-width: 220px; }
.c9-costume-page .c9-costume-purchase-message { color: #ffcf84; }
.c9-costume-page .c9-costume-selection-state { display: none !important; }
.c9-costume-page .c9-costume-grid-wrap { max-height: min(68vh, 650px); }

/* Keep selected shop items clear without the busy gold sweep/glow treatment. */
.c9-item-shop .c9-item-data-grid tr.c9-item-selected,
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected {
    outline: 1px solid rgba(216, 180, 119, .72) !important;
    border-color: #ffe09a !important;
    background: linear-gradient(135deg, rgba(111, 86, 39, .48), rgba(37, 43, 52, .98)) !important;
    box-shadow: 0 0 0 2px rgba(255, 225, 155, .26), 0 0 18px rgba(255, 213, 125, .3), inset 0 0 16px rgba(255, 225, 155, .1) !important;
}
.c9-item-shop .c9-item-data-grid tr.c9-item-selected > td,
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected > td {
    background: linear-gradient(100deg, #655127, #443a27 58%, #332f27) !important;
    box-shadow: none !important;
}
.c9-item-shop .c9-item-data-grid tr.c9-item-selected > td:first-child,
.c9-item-shop .c9-item-data-grid tr.c9-item-selected > td:nth-child(2),
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected > td:nth-child(2) {
    border-left: 0 !important;
    box-shadow: none !important;
}
.c9-item-shop .c9-item-data-grid tr.c9-item-selected::after,
.c9-costume-page .c9-item-data-grid tr.c9-costume-selected::after {
    box-shadow: 0 0 12px rgba(255, 218, 139, .8) !important;
}
.c9-pvp-set .c9-character-list .c9-character-identity,
.c9-item-shop .c9-character-list .c9-character-identity,
.c9-costume-page .c9-character-list .c9-character-identity {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 38px;
    padding: 4px 8px;
    border: 1px solid rgba(216, 180, 119, .72);
    border-radius: 6px;
    background: rgba(17, 25, 35, .72);
    box-shadow: 0 2px 7px rgba(0, 0, 0, .22);
    text-decoration: none !important;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.c9-pvp-set .c9-character-list .c9-character-identity:hover,
.c9-item-shop .c9-character-list .c9-character-identity:hover,
.c9-costume-page .c9-character-list .c9-character-identity:hover,
.c9-pvp-set .c9-character-list .c9-character-identity:focus,
.c9-item-shop .c9-character-list .c9-character-identity:focus,
.c9-costume-page .c9-character-list .c9-character-identity:focus {
    border-color: #f0d08b;
    background: rgba(66, 55, 35, .9);
    box-shadow: 0 0 0 2px rgba(255, 225, 155, .16), 0 3px 10px rgba(0, 0, 0, .24);
    text-decoration: none !important;
}
.c9-pvp-set .c9-character-list tr.c9-character-selected .c9-character-identity,
.c9-item-shop .c9-character-list tr.c9-character-selected .c9-character-identity,
.c9-costume-page .c9-character-list tr.c9-character-selected .c9-character-identity {
    border-color: #ffe09a;
    background: rgba(75, 61, 36, .94);
    box-shadow: 0 0 0 2px rgba(255, 225, 155, .22), 0 0 12px rgba(255, 215, 130, .3);
}

/* Dark category menu with a gold selected option, matching the portal palette. */
.c9-item-shop .c9-item-toolbar select,
.c9-item-shop .c9-item-toolbar select option {
    color: #fff !important;
    background-color: #111923 !important;
}
.c9-item-shop .c9-item-toolbar select option:checked,
.c9-item-shop .c9-item-toolbar select option:hover {
    color: #fff !important;
    background-color: #c9a263 !important;
}

/* PvP-style parchment character sidebar for the item shop. */
.c9-item-shop .c9-item-character-pane {
    box-sizing: border-box;
    padding: 12px !important;
    border: 1px solid #d8b477;
    border-radius: 10px;
    background: #f7f3ec;
    box-shadow: 0 5px 18px rgba(8, 13, 21, .18);
}
.c9-item-shop .c9-shop-character-panel {
    margin: 0 0 10px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.c9-item-shop .c9-shop-character-panel > .panel-heading { display: none !important; }
.c9-item-shop .c9-shop-character-panel > div[style*="overflow"] {
    height: auto !important;
    max-height: min(65vh, 460px);
    overflow: auto !important;
    padding: 0 !important;
    border: 1px solid #cbb995 !important;
    border-radius: 9px;
    background: #171e28 !important;
}
.c9-item-shop .c9-shop-character-panel .c9-character-list {
    overflow: hidden;
    border: 0 !important;
    border-radius: 8px;
}
.c9-item-shop .c9-credit-guide {
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 1px solid #d8c6a8 !important;
    border-radius: 9px;
    background: #f2ebdf !important;
    color: #233044 !important;
}
.c9-item-shop .c9-credit-guide .panel-title,
.c9-item-shop .c9-credit-guide .panel-body,
.c9-item-shop .c9-credit-guide .panel-body ul {
    color: #233044 !important;
}
.c9-item-shop .c9-character-list tr.c9-character-selected > td {
    background-color: #735a2c !important;
    background-image: linear-gradient(100deg, #b28a43, #816633 58%, #63532f) !important;
}
@media (max-width: 1000px) {
    .c9-item-shop .c9-item-main-layout > .c9-item-character-pane { width: 100% !important; max-width: 100%; }
}
@media (max-width: 767px) {
    .c9-costume-page .c9-costume-purchase-bar { align-items: stretch; flex-direction: column; }
    .c9-costume-page .c9-costume-transaction-button { width: 100%; }
}
