/* ================================================================
   CHARACTER AUCTION SYSTEM - CSS
   Dodaj ten blok na koniec layout/style.css
================================================================ */

/* ── Paginator ── */
.auction-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.auction-pagination a,
.auction-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 28px;
    padding: 0 6px;
    background: #c8b99a;
    border: 1px solid #9e8c72;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #3d2b10;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.auction-pagination a:hover {
    background: #b8a68a;
    color: #1a0e00;
}
.auction-pagination span.current {
    background: #7a5c32;
    color: #f5e6c8;
    border-color: #5a3d1e;
}

/* ── Search bar ── */
.auction-search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    align-items: center;
}
.auction-search-bar input[type=text] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #9e8c72;
    background: #f5ead5;
    border-radius: 3px;
    font-size: 13px;
    color: #3d2b10;
}
.auction-search-bar select {
    padding: 6px 8px;
    border: 1px solid #9e8c72;
    background: #f5ead5;
    border-radius: 3px;
    font-size: 12px;
    color: #3d2b10;
}
.auction-search-bar button,
.auction-search-btn {
    padding: 6px 16px;
    background: linear-gradient(to bottom, #7a5c32, #5a3d1e);
    border: 1px solid #3d2610;
    border-radius: 3px;
    color: #f5e6c8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.auction-search-bar button:hover { background: linear-gradient(to bottom, #8a6c42, #6a4d2e); }

/* ── Character Card ── */
.auction-card {
    background: linear-gradient(to bottom, #e8d9b8, #d6c49a);
    border: 2px solid #9e8060;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}

.auction-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: linear-gradient(to bottom, #e0cfa0, #cabb88);
    border-bottom: 1px solid #b0996a;
}
.auction-card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.auction-char-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a6a9a;
    text-decoration: none;
}
.auction-char-name:hover { color: #0d4a72; text-decoration: underline; }

.auction-badge-name {
    font-size: 11px;
    font-weight: 700;
    color: #1a7a2a;
    background: rgba(0,200,50,0.12);
    border: 1px solid #2aaa3a;
    border-radius: 3px;
    padding: 1px 6px;
}
.auction-badge-sold {
    font-size: 11px;
    font-weight: 700;
    color: #8a1a1a;
    background: rgba(200,0,0,0.10);
    border: 1px solid #cc3333;
    border-radius: 3px;
    padding: 1px 6px;
}
.auction-char-meta {
    font-size: 12px;
    color: #5a4020;
}
.auction-char-meta strong { color: #3a2810; }

.auction-show-btn {
    padding: 4px 14px;
    background: linear-gradient(to bottom, #6a5030, #4a3018);
    border: 1px solid #2a1a08;
    border-radius: 3px;
    color: #f5e6c8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.auction-show-btn:hover { background: linear-gradient(to bottom, #7a6040, #5a4028); color: #fff; }

/* ── Card Body ── */
.auction-card-body {
    display: flex;
    padding: 10px 12px;
    gap: 12px;
    align-items: flex-start;
}

/* Left: outfit + equipment */
.auction-char-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 82px;
}
.auction-outfit-img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
}
.auction-outfit-placeholder {
    width: 64px;
    height: 64px;
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a7050;
    font-size: 10px;
}

/* Equipment grid - 3 columns x rows */
.auction-equip-grid {
    display: grid;
    grid-template-columns: repeat(3, 28px);
    gap: 2px;
}
.auction-equip-slot {
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.auction-equip-slot img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    object-fit: contain;
}
.auction-equip-slot.empty {
    background: rgba(0,0,0,0.10);
}
.auction-equip-slot .slot-count {
    position: absolute;
    bottom: 0;
    right: 1px;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 0 #000, -1px 0 0 #000;
    line-height: 1;
}

/* Right side: stats table */
.auction-stats-table {
    flex: 1;
    border-collapse: collapse;
    font-size: 12px;
}
.auction-stats-table td {
    padding: 3px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    color: #3a2810;
    vertical-align: middle;
}
.auction-stats-table td:first-child {
    font-weight: 600;
    color: #5a4020;
    white-space: nowrap;
    width: 130px;
}
.auction-stats-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
}
.auction-stats-table tr:last-child td { border-bottom: none; }

.auction-quest-ok    { color: #1a7a2a; font-weight: 700; }
.auction-quest-fail  { color: #cc2222; font-weight: 700; }
.auction-time-left   { color: #cc2222; font-weight: 700; }
.auction-time-ended  { color: #888; font-style: italic; }

/* ── Expanded detail section ── */
.auction-detail {
    border-top: 1px solid #b0996a;
    padding: 10px 14px;
    background: rgba(255,255,255,0.15);
}
.auction-detail h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 700;
    color: #4a3010;
    text-align: center;
    background: rgba(0,0,0,0.07);
    padding: 4px;
    border-radius: 2px;
}
.auction-items-section { margin-bottom: 10px; }
.auction-items-section h5 {
    margin: 0 0 5px 0;
    font-size: 12px;
    font-weight: 600;
    color: #5a3a10;
}
.auction-items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.auction-item-box {
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: help;
}
.auction-item-box img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    object-fit: contain;
}
.auction-item-box .item-count {
    position: absolute;
    bottom: 1px;
    right: 2px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 0 #000, -1px 0 0 #000;
    line-height: 1;
}

/* ── Skills table in detail view ── */
.auction-skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 8px;
}
.auction-skill-box {
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 3px;
    padding: 4px 6px;
    text-align: center;
    font-size: 11px;
}
.auction-skill-box .skill-name {
    color: #6a4a20;
    font-weight: 600;
    display: block;
    font-size: 10px;
    text-transform: capitalize;
}
.auction-skill-box .skill-val {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
}

/* ── Bid form in detail ── */
.auction-bid-section {
    background: rgba(255,255,255,0.2);
    border: 1px solid #c0a870;
    border-radius: 4px;
    padding: 10px 14px;
    margin-top: 10px;
}
.auction-bid-section p { margin: 4px 0; font-size: 12px; color: #3a2810; }
.auction-bid-section strong { color: #1a1a1a; }
.auction-bid-section input[type=number] {
    padding: 5px 8px;
    border: 1px solid #9e8c72;
    background: #f5ead5;
    border-radius: 3px;
    font-size: 13px;
    color: #3d2b10;
    width: 120px;
}
.auction-bid-section input[type=submit],
.auction-bid-section button {
    padding: 5px 16px;
    background: linear-gradient(to bottom, #1a6a1a, #0e4e0e);
    border: 1px solid #0a380a;
    border-radius: 3px;
    color: #d4ffd4;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 6px;
}
.auction-bid-section input[type=submit]:hover { background: linear-gradient(to bottom, #2a7a2a, #1a5e1a); }

/* "Add to auction" link button */
.auction-add-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 18px;
    background: linear-gradient(to bottom, #1a5a9a, #0e3a6e);
    border: 1px solid #0a2a54;
    border-radius: 3px;
    color: #d4e8ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.auction-add-btn:hover { background: linear-gradient(to bottom, #2a6aaa, #1a4a7e); color: #fff; }

/* ── Create/Sell form ── */
.auction-form-box {
    background: linear-gradient(to bottom, #e8d9b8, #d6c49a);
    border: 2px solid #9e8060;
    border-radius: 4px;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.auction-form-box h3 { margin: 0 0 12px 0; font-size: 15px; color: #3a2810; }
.auction-form-box label { display: block; font-size: 12px; font-weight: 600; color: #5a3a10; margin-bottom: 3px; }
.auction-form-box select,
.auction-form-box input[type=number],
.auction-form-box input[type=password],
.auction-form-box input[type=text] {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #9e8c72;
    background: #f5ead5;
    border-radius: 3px;
    font-size: 13px;
    color: #3d2b10;
    margin-bottom: 10px;
}
.auction-form-box .form-info {
    background: rgba(255,200,0,0.15);
    border: 1px solid #c8a840;
    border-radius: 3px;
    padding: 8px 10px;
    font-size: 12px;
    color: #4a3010;
    margin-bottom: 10px;
}
.auction-form-box input[type=submit] {
    width: auto;
    padding: 6px 20px;
    background: linear-gradient(to bottom, #1a5a9a, #0e3a6e);
    border: 1px solid #0a2a54;
    border-radius: 3px;
    color: #d4e8ff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.auction-form-box input[type=submit]:hover { background: linear-gradient(to bottom, #2a6aaa, #1a4a7e); }

/* ── Claim form ── */
.auction-claim-box {
    background: linear-gradient(to bottom, #d8f0d8, #b8e0b8);
    border: 2px solid #4a9a4a;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.auction-claim-box h3 { margin: 0 0 8px 0; font-size: 14px; color: #1a4a1a; }
.auction-claim-box input[type=text] {
    padding: 6px 10px;
    border: 1px solid #4a9a4a;
    background: #f0fff0;
    border-radius: 3px;
    font-size: 13px;
    color: #1a3a1a;
    margin-right: 8px;
    width: 200px;
}
.auction-claim-box input[type=submit] {
    padding: 6px 16px;
    background: linear-gradient(to bottom, #1a7a1a, #0e5e0e);
    border: 1px solid #0a4a0a;
    border-radius: 3px;
    color: #d4ffd4;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* ── Error/success messages ── */
.auction-msg-ok {
    background: rgba(0,180,0,0.1);
    border: 1px solid #0a8a0a;
    border-radius: 3px;
    padding: 8px 12px;
    color: #0a5a0a;
    font-size: 13px;
    margin-bottom: 10px;
}
.auction-msg-err {
    background: rgba(180,0,0,0.1);
    border: 1px solid #cc2222;
    border-radius: 3px;
    padding: 8px 12px;
    color: #8a1a1a;
    font-size: 13px;
    margin-bottom: 10px;
}
.auction-empty {
    padding: 20px;
    text-align: center;
    color: #7a6040;
    font-style: italic;
    font-size: 14px;
}

/* =================================================================
   CHAR BAZAAR — DETAIL PAGE STYLES
================================================================= */

/* Page title bar */
.cb-page-title {
    font-size: 17px;
    font-weight: 700;
    color: #2a1a08;
    text-align: center;
    padding: 8px 12px;
    background: linear-gradient(to bottom, #d4c090, #b8a060);
    border: 2px solid #8a6a30;
    border-radius: 4px 4px 0 0;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}
.cb-back {
    margin: 6px 0 10px 0;
    font-size: 12px;
}
.cb-back a { color: #1a5a9a; }
.cb-back a:hover { text-decoration: underline; }

/* Wrapper */
.cb-detail-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Generic section box */
.cb-section {
    background: linear-gradient(to bottom, #f0e8cc, #e4d8b0);
    border: 1px solid #b8a060;
    border-top: none;
    padding: 12px 10px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}
.cb-section:first-of-type { border-top: 1px solid #b8a060; }

.cb-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #5a3a10;
    text-align: center;
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}

/* ── OVERVIEW ── */
.cb-overview-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.cb-overview-left { flex: 1; min-width: 300px; }

.cb-char-nameline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.cb-char-realname {
    font-size: 16px;
    font-weight: 700;
    color: #1a4a8a;
}
.cb-badge-name {
    font-size: 12px;
    font-weight: 700;
    color: #1a7a2a;
    background: rgba(0,200,50,0.10);
    border: 1px solid #2aaa3a;
    border-radius: 3px;
    padding: 1px 7px;
}
.cb-char-meta {
    font-size: 12px;
    color: #5a4020;
    margin-bottom: 10px;
}
.cb-char-meta strong { color: #2a1a08; }

/* Equipment horizontal strip */
.cb-equip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cb-outfit-sm {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    background: rgba(0,0,0,0.08);
    border-radius: 2px;
    flex-shrink: 0;
}
.cb-outfit-placeholder {
    width: 64px; height: 64px;
    background: rgba(0,0,0,0.12);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    color: #9a8060; font-size: 18px;
}
.cb-equip-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    max-width: 320px;
}
.cb-strip-slot {
    width: 30px; height: 30px;
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
}
.cb-strip-slot.empty { background: rgba(0,0,0,0.07); }
.cb-strip-slot img { width: 26px; height: 26px; image-rendering: pixelated; object-fit: contain; }
.cb-cnt {
    position: absolute; bottom: 0; right: 1px;
    font-size: 8px; font-weight: 700; color: #fff;
    text-shadow: 1px 1px 0 #000, -1px 0 0 #000; line-height: 1;
}

/* Stats table (right side) */
.cb-stats-table {
    border-collapse: collapse;
    font-size: 13px;
    min-width: 260px;
    flex-shrink: 0;
}
.cb-stats-table td {
    padding: 4px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    color: #3a2810;
    vertical-align: middle;
}
.cb-stats-table td:first-child {
    font-weight: 600;
    color: #5a4020;
    white-space: nowrap;
}
.cb-stats-table td:last-child { text-align: right; font-weight: 600; }
.cb-stats-table tr:last-child td { border-bottom: none; }
.cb-time-red  { color: #cc2222; font-weight: 700; }
.cb-time-grey { color: #888; font-style: italic; }
.cb-val-r     { color: #1a1a1a; }

/* Bid area */
.cb-bid-area {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.cb-bid-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #3a2810;
}
.cb-bid-form input[type=number] {
    padding: 5px 8px;
    border: 1px solid #9e8c72;
    background: #f5ead5;
    border-radius: 3px;
    font-size: 13px;
    color: #3d2b10;
    width: 100px;
}
.cb-bid-form input[type=submit] {
    padding: 6px 18px;
    background: linear-gradient(to bottom, #1a6a1a, #0e4e0e);
    border: 1px solid #0a380a;
    border-radius: 3px;
    color: #d4ffd4;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.cb-bid-form input[type=submit]:hover { background: linear-gradient(to bottom, #2a7a2a, #1a5e1a); }

.cb-seller-panel { font-size: 13px; color: #3a2810; }
.cb-seller-panel p { margin: 4px 0; }
.cb-seller-panel a { color: #1a5a9a; }
.cb-reclaim-btn {
    padding: 5px 14px;
    background: linear-gradient(to bottom, #8a4a1a, #6a3010);
    border: 1px solid #4a2008;
    border-radius: 3px;
    color: #ffe0c0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}

/* ── APPEARANCE ── */
.cb-appearance-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}
.cb-appear-cell {
    width: 68px; height: 90px;
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.cb-appear-cell img {
    width: 64px;
    height: 86px;
    image-rendering: pixelated;
    object-fit: contain;
}
.cb-shader-info {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: #5a4020;
    line-height: 1.6;
}

/* ── SKILLS ── */
.cb-skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cb-skill-badge {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 6px;
    min-width: 76px;
    flex: 0 0 auto;
}
.cb-skill-badge .cb-skill-name {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 4px 8px;
}
.cb-skill-badge .cb-skill-val {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    padding: 5px 8px;
}
.skill-attackspeed .cb-skill-name   { background: #5b6470; color: #e7e9ec; }
.skill-attackspeed .cb-skill-val    { background: #3a4048; color: #dfe2e6; }
.skill-strength .cb-skill-name      { background: #c1440e; color: #ffe9db; }
.skill-strength .cb-skill-val       { background: #7a2b09; color: #ffe0cc; }
.skill-sword .cb-skill-name         { background: #4a6fa5; color: #e4ecf7; }
.skill-sword .cb-skill-val          { background: #2e4568; color: #d7e3f3; }
.skill-kicritical .cb-skill-name    { background: #d4a017; color: #3a2900; }
.skill-kicritical .cb-skill-val     { background: #8c6a0f; color: #fff4d6; }
.skill-kiblasting .cb-skill-name    { background: #e0521a; color: #fff1e8; }
.skill-kiblasting .cb-skill-val     { background: #8f3410; color: #ffe2d2; }
.skill-defense .cb-skill-name       { background: #2f6fa8; color: #e6f1fb; }
.skill-defense .cb-skill-val        { background: #1d466b; color: #cfe4f5; }
.skill-meleecritical .cb-skill-name { background: #a83232; color: #ffe9e9; }
.skill-meleecritical .cb-skill-val  { background: #6b1f1f; color: #ffd6d6; }
.skill-kilevel .cb-skill-name       { background: #2e8b7a; color: #e2f6f1; }
.skill-kilevel .cb-skill-val        { background: #1c584c; color: #cdeee5; }

/* ── QUESTS ── */
.cb-quest-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cb-quest-row {
    display: grid;
    grid-template-columns: 1fr 24px 1fr 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.cb-quest-row:last-child { border-bottom: none; }
.cb-quest-name {
    padding: 4px 8px;
    font-size: 12px;
    color: #3a2810;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(0,0,0,0.06);
}
.cb-quest-status {
    padding: 4px 4px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0,0,0,0.06);
}
.cb-quest-status:last-child { border-right: none; }
.cb-ok   { color: #1a7a2a; }
.cb-fail { color: #cc2222; }

/* Alternating row tint for quests */
.cb-quest-row:nth-child(odd) { background: rgba(255,255,255,0.2); }

/* ── Skill icon ── */
.cb-skill-icon {
    width: 32px;
    height: 32px;
    display: block;
    margin: 0 auto 4px auto;
    image-rendering: pixelated;
    object-fit: contain;
}

/* ── Items section (Inventory/Depot/Inbox) ── */
.cb-items-wrap { padding: 10px 18px; }
.cb-items-label {
    font-size: 13px;
    font-weight: 700;
    color: #5a3a10;
    margin: 10px 0 5px 0;
}
.cb-items-label:first-child { margin-top: 0; }

/* Override item box to match screenshot style */
.auction-item-box {
    width: 38px;
    height: 38px;
    background: rgba(200,185,150,0.35);
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 3px;
}
.auction-item-box img {
    width: 32px;
    height: 32px;
}

/* ── Skill icon updated style ── */
.cb-skill-icon {
    width: 36px !important;
    height: 36px !important;
    display: block;
    margin: 0 auto 5px auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
.cb-skill-box {
    min-width: 68px !important;
    padding: 8px 6px !important;
}

/* ══════════════════════════════════════════
   QUEST TABLE — replaces broken CSS grid
══════════════════════════════════════════ */
.cb-quest-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.cb-qrow:nth-child(odd) { background: rgba(255,255,255,0.18); }
.cb-qname {
    padding: 3px 6px;
    font-size: 11px;
    color: #3a2810;
    width: 43%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-right: 1px solid rgba(0,0,0,0.06);
}
.cb-qico {
    padding: 3px 4px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    width: 7%;
    border-right: 1px solid rgba(0,0,0,0.06);
}
.cb-qico:last-child { border-right: none; }

/* ══════════════════════════════════════════
   MASTER FIX — all containers stay in col-mid
══════════════════════════════════════════ */
.cb-overview-inner {
    display: table !important;
    width: 100% !important;
}
.cb-overview-equip {
    display: table-cell !important;
    vertical-align: top !important;
    width: 175px !important;
    padding-right: 10px !important;
}
.cb-overview-right {
    display: table-cell !important;
    vertical-align: top !important;
}
.cb-stats-table {
    width: 100% !important;
}

/* ══════════════════════════════════════════
   WIDTH CONSTRAINTS — safe, no overflow:hidden
   .box-content-mid is 608px, inner padding 8px each side = 592px usable
══════════════════════════════════════════ */
.cb-page-title,
.cb-detail-wrap,
.cb-section,
.af-wrap,
.auction-card,
.auction-pagination {
    width: 100%;
    box-sizing: border-box;
}

/* Overview: table layout, fixed widths */
.cb-overview-inner {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
}
.cb-overview-equip {
    display: table-cell !important;
    vertical-align: top !important;
    width: 165px !important;
    padding-right: 8px !important;
}
.cb-overview-right {
    display: table-cell !important;
    vertical-align: top !important;
}

/* Stats table full width */
.cb-stats-table { width: 100% !important; min-width: 0 !important; }
.cb-stats-table td:first-child { width: 55% !important; }

/* Quest table — pure HTML table, no CSS grid issues */
.cb-quest-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.cb-qrow:nth-child(odd) { background: rgba(255,255,255,0.18); }
.cb-qname {
    padding: 3px 6px;
    font-size: 11px;
    color: #3a2810;
    width: 43%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-right: 1px solid rgba(0,0,0,0.06);
}
.cb-qico {
    padding: 3px 4px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    width: 7%;
    border-right: 1px solid rgba(0,0,0,0.06);
}
.cb-qico:last-child { border-right: none; }

/* ── Char Bazaar sub-pages ── */
.cb-page-h {
    font-size: 20px; font-weight: 700; color: #2a1a08;
    margin: 0 0 12px 0;
    font-family: 'Palatino Linotype', Palatino, serif;
}
.cb-empty { font-size: 13px; color: #888; font-style: italic; text-align: center; padding: 20px 0; }
.cb-hist-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cb-hist-table th {
    background: linear-gradient(to bottom, #c8a860, #a88040);
    color: #fff; font-weight: 700; padding: 6px 10px;
    text-align: left; border: 1px solid #907030;
}
.cb-hist-table td {
    padding: 5px 10px; border-bottom: 1px solid rgba(0,0,0,.07);
    color: #3a2810; vertical-align: middle;
}
.cb-hist-table tr:nth-child(odd) td { background: rgba(255,255,255,.25); }
.cb-hist-table tr:hover td { background: rgba(200,160,60,.15); }
.cb-show-link {
    padding: 3px 10px;
    background: linear-gradient(to bottom, #3a3a4a, #22222e);
    border: 1px solid #111; border-radius: 3px;
    color: #e8e8f0; font-size: 11px; font-weight: 700;
    text-decoration: none; display: inline-block;
}
.cb-show-link:hover { background: linear-gradient(to bottom, #4a4a5a, #32323e); color: #fff; }

/* ══════════════════════════════════════════
   AUCTION FILTER FORM
══════════════════════════════════════════ */
.af-box {
    background: linear-gradient(to bottom, #e8ddb8, #d4c898);
    border: 1px solid #b8a060;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.af-title {
    font-size: 13px; font-weight: 700; color: #fff;
    background: linear-gradient(to bottom, #9a8050, #7a6030);
    margin: -12px -14px 10px -14px;
    padding: 6px 14px;
    border-radius: 3px 3px 0 0;
}
.af-row {
    display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end;
}
.af-col { display: flex; flex-direction: column; gap: 4px; }
.af-col-wide { flex: 1; min-width: 140px; }
.af-label { font-size: 11px; font-weight: 700; color: #5a3a10; text-transform: uppercase; letter-spacing: .3px; }
.af-select {
    padding: 6px 8px; border: 1px solid #b09070;
    background: #faf3e0; border-radius: 3px;
    font-size: 12px; color: #3d2b10; min-width: 130px;
}
.af-select:disabled { opacity: .6; }
.af-input-name {
    padding: 6px 10px; border: 1px solid #b09070;
    background: #faf3e0; border-radius: 3px;
    font-size: 12px; color: #3d2b10; width: 100%;
    box-sizing: border-box;
}

/* Level Range / DBReunion Points get their own visually separated row so they
   read as a deliberate section instead of an accidental line-wrap. */
.af-row-ranges {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,.15);
}
.af-col-range {
    flex: 1 1 220px;
}
.af-col-range .af-range {
    width: 100%;
}
.af-range { display: flex; align-items: center; gap: 6px; }
.af-input-sm {
    padding: 6px 8px; border: 1px solid #b09070;
    background: #faf3e0; border-radius: 3px;
    font-size: 12px; color: #3d2b10;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
}
.af-dash { color: #7a5a30; font-weight: 700; flex: 0 0 auto; }
.af-btn-search {
    padding: 7px 18px;
    background: linear-gradient(to bottom, #4a4a5a, #22222e);
    border: 1px solid #111; border-radius: 3px;
    color: #e8e8f0; font-size: 13px; font-weight: 700; cursor: pointer;
}
.af-btn-search:hover { background: linear-gradient(to bottom, #5a5a6a, #32323e); }
.af-btn-clear {
    padding: 7px 14px;
    background: linear-gradient(to bottom, #7a3a3a, #5a1a1a);
    border: 1px solid #3a0a0a; border-radius: 3px;
    color: #ffe0c0; font-size: 13px; font-weight: 700;
    text-decoration: none; display: inline-block;
}
.af-btn-clear:hover { background: linear-gradient(to bottom, #8a4a4a, #6a2a2a); }
.af-count { font-size: 12px; color: #7a5a30; align-self: center; margin-left: 6px; }