/* ============================================================
   CRAXCAT FORUM - Tema principal
   ============================================================ */

:root {
    --cc-bg: #161616;
    --cc-panel: #1f1f1f;
    --cc-panel-2: #242424;
    --cc-panel-3: #2a2a2a;
    --cc-border: #2d2d2d;
    --cc-border-light: #3a3a3a;
    --cc-text: #c7c7c7;
    --cc-text-strong: #e8e8e8;
    --cc-muted: #8a8a8a;
    --cc-accent: #4a8fb9;
    --cc-accent-dark: #2c526b;
    --cc-green: #40ae70;
    --cc-red: #d9534f;
    --cc-yellow: #d6a33a;
    --cc-premium: #42a7a7;
    --cc-infinity: #c67a8c;
    --cc-supreme: #40ae70;
    --cc-radius: 6px;
}

html {
    font-size: 66%;
    color-scheme: dark;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* Scrollbar global: delgada y acorde al tema */
* {
    scrollbar-width: thin;
    scrollbar-color: #4a8fb9 #151515;
}
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
*::-webkit-scrollbar-track {
    background: #151515;
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
    min-height: 34px;
    border: 2px solid #151515;
    border-radius: 999px;
    background: linear-gradient(180deg, #5a9ec5, #356b8c);
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7cc2e7, #4a8fb9);
}
*::-webkit-scrollbar-corner {
    background: #151515;
}

body {
    background: var(--cc-bg);
    color: var(--cc-text);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.55;
    margin: 0;
}

body ::selection {
    background: var(--cc-accent);
    color: #fff;
}

a,
a:link,
a:visited {
    color: #cfd8dc;
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
}

a:hover {
    color: var(--cc-accent);
}

img {
    max-width: 100%;
}

h1, h2, h3, h4, h5 {
    color: var(--cc-text-strong);
    margin: 0 0 12px;
    line-height: 1.25;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }

p { margin: 0 0 10px; }

.cc-shell {
    max-width: 88%;
    margin: 0 auto;
    padding: 0 14px 30px;
}

.cc-hidden { display: none !important; }

/* ---------------- Header ---------------- */

.cc-header {
    background: #1b1b1b;
    border-bottom: 1px solid #2b2b2b;
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.cc-nav {
    max-width: 1580px;
    margin: 0 auto;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
}

.cc-brand {
    display: flex;
    align-items: center;
    margin-right: 6px;
    flex-shrink: 0;
}

.cc-brand img {
    height: 30px;
    width: auto;
}

.cc-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.cc-nav-links::-webkit-scrollbar { display: none; }

.cc-nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 3px;
    color: #cfcfcf;
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
}

.cc-nav-links a:hover {
    background: #272727;
    color: var(--cc-accent);
}

.cc-nav-links .cc-nav-admin {
    color: #f0a53a;
}

.cc-nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.cc-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #cfcfcf;
    font-size: 1.7rem;
}

.cc-icon-btn:hover { background: #292929; }

.cc-count {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--cc-red);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.cc-nav-toggle {
    display: none;
    background: #272727;
    border: 1px solid #353535;
    color: #ddd;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
}

.cc-usermenu { position: relative; }
.cc-panel.cc-panel-menu-open,
.cc-panel:has(.cc-usermenu[open]) {
    overflow: visible;
    position: relative;
    z-index: 90;
}

.cc-usermenu summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #ddd;
    font-size: 1.25rem;
    font-weight: 600;
    user-select: none;
}

.cc-usermenu summary::-webkit-details-marker { display: none; }
.cc-usermenu summary:hover { background: #292929; }

.cc-mini-avatar {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #3a3a3a;
}

.cc-usermenu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 7px);
    width: 320px;
    max-width: calc(100vw - 24px);
    background: #232323;
    border: 1px solid #363636;
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .55);
    overflow: hidden;
    z-index: 80;
}

.cc-usermenu-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: #1b1b1b;
    border-bottom: 1px solid #303030;
}

.cc-usermenu-head img {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #3b3b3b;
}

.cc-usermenu-head strong { font-size: 1.45rem; }
.cc-usermenu-meta { display: flex; gap: 12px; color: #999; font-size: 1.15rem; margin-top: 3px; }

.cc-usermenu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #303030;
}

.cc-usermenu-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 13px 8px;
    color: #ccc;
    font-size: 1.15rem;
    border-right: 1px solid #303030;
}

.cc-usermenu-grid a:nth-child(2n) { border-right: 0; }
.cc-usermenu-grid a:hover { background: #2b2b2b; color: var(--cc-accent); }
.cc-usermenu-grid i { font-size: 1.8rem; }

.cc-usermenu-wide {
    display: block;
    text-align: center;
    padding: 12px;
    border-bottom: 1px solid #303030;
    font-size: 1.25rem;
    color: #ddd;
}

.cc-usermenu-wide:hover { background: #2b2b2b; }

.cc-usermenu-logout button {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 0;
    color: #ddd;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
}

.cc-usermenu-logout button:hover { background: #a83232; color: #fff; }

/* ---------------- Panels ---------------- */

.cc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 322px;
    gap: 14px;
    align-items: start;
}

.cc-panel {
    background: var(--cc-panel);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}

.cc-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(90deg, var(--cc-accent), var(--cc-accent-dark));
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .2px;
    border-bottom: 1px solid rgba(0, 0, 0, .35);
}

.cc-panel-head a { color: #fff; font-weight: 600; font-size: 1.15rem; }
.cc-panel-head a:hover { text-decoration: underline; }
.cc-panel-body { padding: 14px; }
.cc-panel-body.flush { padding: 0; }

.cc-thread-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
    .cc-panel-head { flex-wrap: wrap; }
    .cc-thread-actions { width: 100%; justify-content: flex-start; }
}

.cc-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.cc-muted { color: var(--cc-muted); }
.cc-small { font-size: 1.15rem; }
.cc-right { text-align: right; }
.cc-center { text-align: center; }
.cc-nowrap { white-space: nowrap; }
.inline-form { display: inline; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* ---------------- Breadcrumbs ---------------- */

.cc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 9px 14px;
    background: #1c1c1c;
    border: 1px solid #2b2b2b;
    border-radius: var(--cc-radius);
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #888;
}

.cc-breadcrumbs a { color: #b9b9b9; }
.cc-breadcrumbs i { font-size: .9rem; color: #666; }

/* ---------------- Buttons ---------------- */

.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--cc-border-light);
    border-radius: 4px;
    background: #2a2a2a;
    color: #ddd;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease;
}

.cc-btn:hover { background: #353535; color: #fff; }
.cc-btn:disabled { opacity: .5; cursor: not-allowed; }

.cc-btn-primary {
    background: var(--cc-accent);
    border-color: var(--cc-accent);
    color: #fff;
}
.cc-btn-primary:hover { background: #5aa0ca; border-color: #5aa0ca; color: #fff; }

.cc-btn-green { background: var(--cc-green); border-color: var(--cc-green); color: #fff; }
.cc-btn-green:hover { background: #4cc07f; color: #fff; }
.cc-btn-danger { background: #a83232; border-color: #a83232; color: #fff; }
.cc-btn-danger:hover { background: #c03939; color: #fff; }
.cc-btn-ghost { background: transparent; }
.cc-btn-sm { padding: 5px 9px; font-size: 1.1rem; }
.cc-btn-lg { padding: 12px 22px; font-size: 1.45rem; }
.cc-btn-block { display: flex; width: 100%; }

.cc-link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------------- Alerts ---------------- */

.cc-alert {
    --cc-alert-accent: #4a8fb9;
    --cc-alert-text: #cfe8f7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-left: 4px solid var(--cc-alert-accent);
    font-size: 1.22rem;
    line-height: 1.55;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    background: linear-gradient(135deg, rgba(74,143,185,.16), rgba(20,20,20,.82));
    color: var(--cc-alert-text);
    animation: cc-alert-in .22s ease-out;
}

.cc-alert > span:not(.cc-alert-icon) { flex: 1; min-width: 0; }
.cc-alert-success {
    --cc-alert-accent: #49d17d;
    --cc-alert-text: #b9f0cc;
    background: linear-gradient(135deg, rgba(73,209,125,.16), rgba(18,43,29,.88));
}
.cc-alert-error {
    --cc-alert-accent: #f07c7c;
    --cc-alert-text: #ffc8c8;
    background: linear-gradient(135deg, rgba(240,124,124,.16), rgba(59,27,27,.88));
}
.cc-alert-info {
    --cc-alert-accent: #6ec8f0;
    --cc-alert-text: #c7ecff;
    background: linear-gradient(135deg, rgba(110,200,240,.16), rgba(27,47,59,.88));
}
.cc-alert-warning {
    --cc-alert-accent: #e7bd5b;
    --cc-alert-text: #ffe9b3;
    background: linear-gradient(135deg, rgba(231,189,91,.17), rgba(59,50,27,.88));
}

.cc-alert-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,.09);
    color: var(--cc-alert-accent);
    font-size: 1.45rem;
}
.cc-alert-copy { flex: 1; min-width: 0; }
.cc-alert-copy strong {
    display: block;
    color: #fff;
    font-size: 1.24rem;
    margin-bottom: 2px;
}
.cc-alert-copy span { display: block; color: var(--cc-alert-text); }

.cc-alert-close {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    color: inherit;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
    transition: background .18s ease, opacity .18s ease, transform .18s ease;
}
.cc-alert-close i { color: inherit; }
.cc-alert-close:hover { background: rgba(255,255,255,.13); opacity: 1; transform: rotate(90deg); }

@keyframes cc-alert-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Avisos flotantes para acciones del cliente */
.cc-toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(390px, calc(100vw - 36px));
    pointer-events: none;
}
.cc-toast {
    margin: 0;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transition: opacity .2s ease, transform .2s ease;
}
.cc-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
@media (max-width: 640px) {
    .cc-toast-stack { top: 10px; right: 10px; width: calc(100vw - 20px); }
}

/* ---------------- Confirmacion global ---------------- */

body.cc-confirm-open { overflow: hidden; }
.cc-confirm[hidden] { display: none; }
.cc-confirm {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
}
.cc-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5,8,12,.74);
    backdrop-filter: blur(6px);
}
.cc-confirm-card {
    position: relative;
    width: min(440px, 100%);
    padding: 24px;
    border: 1px solid #3b3b3b;
    border-radius: 16px;
    background: linear-gradient(160deg, #262626, #171717);
    box-shadow: 0 28px 70px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
    animation: cc-confirm-in .2s ease-out;
}
.cc-confirm-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: rgba(240,124,124,.14);
    color: #f08b8b;
    font-size: 2rem;
}
.cc-confirm-card h3 { margin: 0 0 6px; color: #fff; font-size: 2rem; }
.cc-confirm-card p { margin: 0; color: #b5b5b5; font-size: 1.25rem; line-height: 1.6; }
.cc-confirm-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; flex-wrap: wrap; }
.cc-confirm-actions .cc-btn { min-width: 108px; }

@keyframes cc-confirm-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cc-banner {
    max-width: 1580px;
    margin: 10px auto 0;
    padding: 9px 14px;
    border-radius: 4px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cc-banner-warn {
    background: linear-gradient(135deg, rgba(231,189,91,.17), rgba(59,50,27,.9));
    color: #ffe9b3;
    border: 1px solid rgba(231,189,91,.3);
    border-left: 4px solid #e7bd5b;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
}
.cc-banner-danger {
    background: linear-gradient(135deg, rgba(240,124,124,.16), rgba(59,27,27,.9));
    color: #ffc8c8;
    border: 1px solid rgba(240,124,124,.3);
    border-left: 4px solid #f07c7c;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
}

/* ---------------- Forms ---------------- */

.cc-form-row { margin-bottom: 13px; }

.cc-label {
    display: block;
    margin-bottom: 5px;
    color: #bdbdbd;
    font-size: 1.2rem;
    font-weight: 600;
}

.cc-input,
.cc-select,
.cc-textarea {
    width: 100%;
    background: #242424;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #ddd;
    padding: 9px 11px;
    font-size: 1.35rem;
    font-family: inherit;
    box-sizing: border-box;
}

.cc-input:focus,
.cc-select:focus,
.cc-textarea:focus {
    outline: none;
    border-color: var(--cc-accent);
    box-shadow: 0 0 0 2px rgba(74, 143, 185, .15);
}

.cc-textarea { min-height: 110px; resize: vertical; }
.cc-textarea.mono { font-family: Consolas, Monaco, monospace; font-size: 1.25rem; }

.cc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 9px;
    color: #bbb;
    font-size: 1.3rem;
    cursor: pointer;
}

.cc-checkbox input { margin-top: 3px; accent-color: var(--cc-accent); }

.cc-help { color: #888; font-size: 1.15rem; margin-top: 4px; }
.cc-error { color: #ef8f8f; font-size: 1.15rem; margin-top: 4px; }

.cc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

.cc-form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* ---------------- Auth ---------------- */

.cc-auth {
    max-width: 470px;
    margin: 25px auto;
}

.cc-auth-wide { max-width: 560px; }

.cc-auth .cc-panel-head {
    justify-content: center;
    font-size: 1.5rem;
    padding: 13px;
}

.cc-auth-footer {
    text-align: center;
    color: #888;
    font-size: 1.2rem;
    padding: 12px;
    border-top: 1px solid #2b2b2b;
}

.cc-2fa-box {
    background: #141414;
    border: 1px dashed #3a3a3a;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

.cc-2fa-secret {
    font-family: Consolas, monospace;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #8fd7b0;
    word-break: break-all;
}

/* ---------------- Forum index ---------------- */

.cc-forums-category { margin-bottom: 14px; }

.cc-forum-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 82px 82px 250px;
    gap: 10px;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid #292929;
    transition: background .12s ease;
}

.cc-forum-row:last-child { border-bottom: 0; }
.cc-forum-row:hover { background: #242424; }

.cc-forum-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    border: 1px solid #363636;
    border-radius: 4px;
    color: var(--cc-accent);
    font-size: 1.5rem;
}

.cc-forum-title { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.cc-forum-title a { color: #e5e5e5; font-weight: 700; font-size: 1.42rem; }
.cc-forum-title a:hover { color: var(--cc-accent); }
.cc-forum-desc { color: #8c8c8c; font-size: 1.2rem; margin-top: 2px; }

.cc-forum-count {
    text-align: center;
    color: #c3c3c3;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.15;
}

.cc-forum-count span {
    display: block;
    color: #777;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
}

.cc-forum-last {
    border-left: 1px solid #2c2c2c;
    padding-left: 14px;
    font-size: 1.12rem;
    color: #888;
    min-width: 0;
}

.cc-forum-last a { color: #cfcfcf; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-forum-last .last-meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.cc-forum-last img { width: 18px; height: 18px; border-radius: 2px; object-fit: cover; }

.cc-subforums {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px 10px 66px;
    border-bottom: 1px solid #292929;
    background: #1c1c1c;
}

.cc-subforum-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: #262626;
    border: 1px solid #333;
    border-radius: 3px;
    font-size: 1.1rem;
    color: #bbb;
}

.cc-subforum-pill:hover { border-color: var(--cc-accent); color: var(--cc-accent); }

.cc-category-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #181818;
    border-bottom: 1px solid #2a2a2a;
    color: #cfcfcf;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.cc-category-head i { color: var(--cc-accent); }

/* ---------------- Shoutbox ---------------- */

.cc-shoutbox-tabs {
    display: flex;
    background: #181818;
    border-bottom: 1px solid #2a2a2a;
}

.cc-shoutbox-tab {
    padding: 8px 16px;
    color: #999;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    background: transparent;
    border-bottom: 2px solid transparent;
}

.cc-shoutbox-tab.active { color: var(--cc-accent); border-bottom-color: var(--cc-accent); background: #1f1f1f; }

.cc-shoutbox-window {
    height: 230px;
    overflow-y: auto;
    padding: 6px 10px;
    background: #181818;
}

.cc-shout {
    display: flex;
    gap: 8px;
    padding: 6px 6px;
    border-bottom: 1px solid #212121;
}

.cc-shout:last-child { border-bottom: 0; }
.cc-shout-avatar img { width: 24px; height: 24px; border-radius: 3px; object-fit: cover; border: 1px solid #333; }
.cc-shout-body { min-width: 0; flex: 1; }
.cc-shout-meta { display: flex; align-items: center; gap: 7px; font-size: 1.15rem; color: #8f8f8f; }
.cc-shout-meta .rank-name { font-weight: 700; }
.cc-shout-text { color: #bdbdbd; font-size: 1.25rem; word-wrap: break-word; overflow-wrap: anywhere; }
.cc-shout-text .smilie { max-width: 24px; max-height: 24px; vertical-align: middle; }

.cc-shout-delete {
    margin-left: auto;
    background: none;
    border: 0;
    color: #a55;
    cursor: pointer;
    font-size: 1.4rem;
    padding: 0 3px;
}
.cc-shout-delete:hover { color: #f66; }

.cc-shout-form {
    display: flex;
    gap: 7px;
    padding: 9px;
    background: #1c1c1c;
    border-top: 1px solid #2a2a2a;
}

.cc-shout-form .cc-input { padding: 7px 9px; font-size: 1.25rem; }
.cc-shout-notice { padding: 9px 12px; background: #1c1c1c; color: #d0a75a; font-size: 1.15rem; border-top: 1px solid #2a2a2a; }

/* ---------------- Sidebar ---------------- */

.cc-sidebar .cc-panel { margin-bottom: 12px; }

.cc-sidebar-user {
    text-align: center;
    padding: 16px;
    background: linear-gradient(160deg, #232323, #1b1b1b);
}

.cc-sidebar-user img.cc-avatar-md {
    width: 76px;
    height: 76px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid #3a3a3a;
    margin-bottom: 8px;
}

.cc-sidebar-user h3 { margin-bottom: 2px; font-size: 1.6rem; }
.cc-sidebar-stats { display: flex; justify-content: center; gap: 18px; margin-top: 10px; }
.cc-sidebar-stats div { font-size: 1.1rem; color: #888; }
.cc-sidebar-stats strong { display: block; color: #ddd; font-size: 1.5rem; }

.cc-online-list { display: flex; flex-wrap: wrap; gap: 5px; }
.cc-online-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    background: #262626;
    border-radius: 3px;
    font-size: 1.1rem;
}
.cc-online-pill img { width: 16px; height: 16px; border-radius: 2px; object-fit: cover; }

.cc-list-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-bottom: 1px solid #292929;
    font-size: 1.2rem;
}
.cc-list-row:last-child { border-bottom: 0; }
.cc-list-row img { width: 28px; height: 28px; border-radius: 3px; object-fit: cover; }
.cc-list-row .grow { flex: 1; min-width: 0; }
.cc-list-row .title { color: #ccc; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-list-row .meta { color: #777; font-size: 1.05rem; }
.cc-list-row time { color: #777; font-size: 1.05rem; white-space: nowrap; }

.cc-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #2b2b2b; }
.cc-stat-cell { background: #1f1f1f; padding: 12px; text-align: center; }
.cc-stat-cell strong { display: block; color: #e0e0e0; font-size: 1.8rem; }
.cc-stat-cell span { color: #888; font-size: 1.1rem; }

.cc-crypto { display: flex; gap: 10px; justify-content: space-around; padding: 12px; }
.cc-crypto .crypto-item { display: flex; align-items: center; gap: 7px; }

/* ---------------- Thread list ---------------- */

.cc-thread-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 76px 76px 210px;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #292929;
}

.cc-thread-row:hover { background: #242424; }
.cc-thread-row:last-child { border-bottom: 0; }
.cc-thread-icon { color: var(--cc-accent); font-size: 1.5rem; text-align: center; }
.cc-thread-title { font-weight: 700; color: #dedede; font-size: 1.35rem; }
.cc-thread-title:hover { color: var(--cc-accent); }
.cc-thread-meta { font-size: 1.1rem; color: #858585; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 8px; }
.cc-thread-last { border-left: 1px solid #2c2c2c; padding-left: 12px; font-size: 1.1rem; color: #888; }

.cc-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    vertical-align: middle;
}

.cc-tag-pinned { background: #2b4f3a; color: #8fe0b1; }
.cc-tag-locked { background: #4a3a27; color: #e0b98f; }
.cc-tag-premium { background: #274a4a; color: #8fdada; }
.cc-tag-hidden { background: #4a2727; color: #e08f8f; }

/* ---------------- Thread / posts ---------------- */

.cc-post {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    background: var(--cc-panel);
    border: 1px solid #2c2c2c;
    border-radius: var(--cc-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.cc-post-side {
    background-color: #232323;
    background-size: cover;
    background-position: center;
    border-right: 1px solid #2d2d2d;
    padding: 14px;
    text-align: center;
    font-size: 1.15rem;
    color: #999;
}

.cc-post-avatar img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #3d3d3d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.cc-post-username { font-size: 1.55rem; font-weight: 700; margin: 9px 0 1px; line-height: 1.2; }
.cc-post-usertitle { color: #8f8f8f; font-size: 1.05rem; margin-bottom: 5px; }
.cc-userbar-img { max-width: 100%; margin: 5px 0; }

.cc-post-stats { margin-top: 10px; text-align: left; }
.cc-post-stats span {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px dotted #353535;
    font-size: 1.05rem;
    color: #888;
}
.cc-post-stats b { color: #c9c9c9; font-weight: 600; }
.cc-post-joined { margin-top: 9px; font-size: 1.02rem; color: #777; text-align: left; }
.cc-status-online { color: #40c070; font-weight: 700; }
.cc-status-offline { color: #a55; font-weight: 700; }

.cc-post-main {
    padding: 13px 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cc-post-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #2d2d2d;
    padding-bottom: 7px;
    margin-bottom: 11px;
    color: #858585;
    font-size: 1.1rem;
}

.cc-post-content {
    color: #c9c9c9;
    font-size: 1.36rem;
    line-height: 1.65;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    flex: 1;
}

.cc-post-content img { max-width: 100%; }
.cc-post-content p:last-child { margin-bottom: 0; }

.cc-post-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #2d2d2d;
    padding-top: 8px;
    margin-top: 12px;
    font-size: 1.1rem;
}

.cc-post-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 3px;
    background: #272727;
    border: 1px solid #333;
    color: #aaa;
    font-size: 1.08rem;
    cursor: pointer;
}

.cc-post-action:hover { color: #fff; border-color: #4a4a4a; }
.cc-post-action.liked { color: #6fc48f; border-color: #2f5f42; }

.cc-signature {
    margin-top: 14px;
    padding-top: 9px;
    border-top: 1px dashed #353535;
    color: #888;
    font-size: 1.15rem;
    max-height: 160px;
    overflow: hidden;
}

.cc-reply-box { margin-top: 4px; }

/* ---------------- BBCode ---------------- */

.bb-quote {
    margin: 10px 0;
    padding: 9px 12px;
    background: #191919;
    border-left: 3px solid var(--cc-accent);
    border-radius: 0 3px 3px 0;
    color: #aaa;
}

.bb-quote-author { color: #9bb; font-size: 1.15rem; margin-bottom: 4px; font-weight: 700; }
.bb-code { background: #121212; border: 1px solid #303030; border-radius: 4px; padding: 10px 12px; overflow-x: auto; color: #9fd3a8; font-family: Consolas, monospace; font-size: 1.2rem; }
.bb-image { max-width: 100%; border-radius: 3px; margin: 5px 0; }
.bb-spoiler { background: #191919; border: 1px solid #303030; border-radius: 4px; padding: 7px 10px; margin: 8px 0; }
.bb-spoiler summary { cursor: pointer; color: #bcd; }
.bb-hidden { background: #2a2317; border: 1px dashed #6b5a2a; color: #e0c98f; padding: 9px 12px; border-radius: 4px; margin: 8px 0; }
.bb-hidden-label { display: block; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .5px; color: #b99a4d; margin-bottom: 4px; }
.bb-underline { text-decoration: underline; }
.bb-strike { text-decoration: line-through; }
.mention { color: #7ec8e3 !important; font-weight: 600; }
.smilie { max-width: 30px; max-height: 30px; vertical-align: middle; }

/* ---------------- Editor ---------------- */

.cc-editor { border: 1px solid #3a3a3a; border-radius: 5px; overflow: hidden; background: #242424; }
.cc-editor-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 5px; background: #1d1d1d; border-bottom: 1px solid #333; }
.cc-editor-toolbar button {
    min-width: 30px;
    height: 28px;
    background: #2a2a2a;
    border: 1px solid #383838;
    color: #bbb;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1.15rem;
}
.cc-editor-toolbar button:hover { background: #383838; color: #fff; }
.cc-editor-toolbar .cc-editor-preview-btn { padding: 0 9px; }
.cc-editor textarea {
    width: 100%;
    min-height: 180px;
    background: #242424;
    border: 0;
    color: #ddd;
    padding: 12px;
    font-family: Consolas, Monaco, monospace;
    font-size: 1.3rem;
    box-sizing: border-box;
    resize: vertical;
}
.cc-editor textarea:focus { outline: none; }
.cc-editor-preview { padding: 12px; border-top: 1px solid #333; background: #1d1d1d; color: #ccc; min-height: 60px; }
.cc-editor-help { padding: 6px 10px; background: #1d1d1d; border-top: 1px solid #2c2c2c; color: #777; font-size: 1.05rem; }

/* ---------------- Profile ---------------- */

.cc-profile-cover {
    height: 210px;
    background-color: #1c1c1c;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: var(--cc-radius) var(--cc-radius) 0 0;
    overflow: hidden;
}

.cc-profile-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(18,18,18,.92));
}

.cc-profile-head {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 0 24px 16px;
    margin-top: -58px;
    position: relative;
    z-index: 2;
}

.cc-profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    border: 3px solid #1f1f1f;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
}

.cc-profile-identity { flex: 1; min-width: 0; padding-bottom: 4px; }
.cc-profile-identity h1 { margin: 0; font-size: 2.5rem; text-shadow: 0 2px 6px #000; }
.cc-profile-identity .sub { color: #aaa; font-size: 1.2rem; }

.cc-profile-actions { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 4px; }

.cc-profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #2b2b2b; }
.cc-profile-stat { background: #1f1f1f; padding: 14px; text-align: center; }
.cc-profile-stat strong { display: block; font-size: 2rem; color: #e4e4e4; }
.cc-profile-stat span { color: #888; font-size: 1.1rem; }

.cc-profile-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 14px; align-items: start; }

.cc-info-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.cc-info-table td { padding: 7px 12px; border-bottom: 1px solid #2b2b2b; }
.cc-info-table td:first-child { color: #888; width: 45%; }
.cc-info-table td:last-child { text-align: right; color: #ccc; }

.cc-award-grid { display: flex; flex-wrap: wrap; gap: 9px; padding: 12px; }
.cc-award {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #252525;
    border: 1px solid #363636;
    border-radius: 4px;
}
.cc-award img { max-width: 30px; max-height: 30px; object-fit: contain; }

.cc-tabs { display: flex; gap: 0; border-bottom: 1px solid #2c2c2c; background: #1b1b1b; overflow-x: auto; }
.cc-tab { padding: 9px 16px; color: #999; font-size: 1.2rem; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.cc-tab.active, .cc-tab:hover { color: var(--cc-accent); border-bottom-color: var(--cc-accent); background: #202020; }

/* ---------------- Settings ---------------- */

.cc-settings { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 14px; align-items: start; }
.cc-settings-nav { background: #1f1f1f; border: 1px solid #2c2c2c; border-radius: var(--cc-radius); overflow: hidden; }
.cc-settings-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: #b5b5b5; font-size: 1.18rem; border-bottom: 1px solid #272727; }
.cc-settings-nav a:hover { background: #262626; color: #fff; }
.cc-settings-nav a.active { background: var(--cc-accent); color: #fff; }
.cc-settings-nav a i { width: 16px; text-align: center; font-size: 1.2rem; }
.cc-settings-group { padding: 8px 12px; background: #181818; color: #777; font-size: 1rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; border-bottom: 1px solid #272727; }
.cc-settings-body { min-width: 0; }

.cc-settings-nav a.is-locked { color: #8d8d8d; }
.cc-settings-nav a.is-locked:hover { color: #e7c76b; }
.cc-settings-lock {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 5px;
    border: 1px solid rgba(231,189,91,.28);
    border-radius: 999px;
    background: rgba(231,189,91,.08);
    color: #e7bd5b;
    font-size: .92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.cc-settings-lock i { width: auto !important; font-size: .88rem !important; }

.cc-upgrade-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    margin-bottom: 14px;
    border: 1px solid rgba(231,189,91,.28);
    border-radius: 11px;
    background:
        radial-gradient(circle at 6% 20%, rgba(231,189,91,.16), transparent 30%),
        linear-gradient(135deg, #292316, #1b1b1b);
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
}
.cc-upgrade-note-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(231,189,91,.12);
    color: #e7bd5b;
    font-size: 1.7rem;
}
.cc-upgrade-note-copy { flex: 1; min-width: 0; }
.cc-upgrade-note-copy strong { display: block; color: #ffe7a6; font-size: 1.25rem; }
.cc-upgrade-note-copy span { display: block; color: #bcb08f; font-size: 1.08rem; line-height: 1.45; }
.cc-upgrade-note .cc-btn { flex: 0 0 auto; }

.cc-reset-summary {
    display: flex;
    gap: 16px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid #343434;
    border-radius: 12px;
    background:
        radial-gradient(circle at 7% 15%, rgba(74,143,185,.13), transparent 34%),
        linear-gradient(145deg, #202020, #191919);
}
.cc-reset-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(74,143,185,.13);
    color: #8fd2f4;
    font-size: 2rem;
}
.cc-reset-copy { flex: 1; min-width: 0; }
.cc-reset-copy strong { display: block; color: #fff; font-size: 1.45rem; margin-bottom: 4px; }
.cc-reset-copy p { margin: 0 0 10px; color: #a9a9a9; font-size: 1.12rem; line-height: 1.55; }
.cc-reset-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cc-reset-list span { color: #b9d9c3; font-size: 1.05rem; }
.cc-reset-list i { color: #49d17d; font-size: .92rem; }
@media (max-width: 640px) {
    .cc-reset-summary { flex-direction: column; padding: 15px; }
}

.cc-upgrade-gate {
    display: flex;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(231,189,91,.28);
    border-radius: 14px;
    background:
        radial-gradient(circle at 8% 12%, rgba(231,189,91,.16), transparent 32%),
        linear-gradient(145deg, #242016, #181818 70%);
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.cc-upgrade-gate-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    border: 1px solid rgba(231,189,91,.25);
    background: rgba(231,189,91,.12);
    color: #e7bd5b;
    font-size: 2.2rem;
}
.cc-upgrade-gate-copy { flex: 1; min-width: 0; }
.cc-upgrade-gate-kicker { display: block; color: #b9a46a; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.cc-upgrade-gate-copy h2 { margin: 3px 0 6px; color: #fff; font-size: 1.85rem; }
.cc-upgrade-gate-copy p { margin: 0 0 12px; color: #b8b8b8; font-size: 1.18rem; line-height: 1.55; }
.cc-upgrade-gate-features { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; }
.cc-upgrade-gate-features span { color: #a9d8b7; font-size: 1.05rem; }
.cc-upgrade-gate-features i { color: #49d17d; font-size: .95rem; }
.cc-upgrade-gate-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
    .cc-upgrade-note { align-items: flex-start; flex-wrap: wrap; }
    .cc-upgrade-note .cc-btn { margin-left: 52px; }
    .cc-upgrade-gate { flex-direction: column; padding: 18px; }
    .cc-upgrade-gate-copy h2 { font-size: 1.6rem; }
}

/* ---------------- Upgrade / payments ---------------- */

.cc-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.cc-plan { background: #1f1f1f; border: 1px solid #2e2e2e; border-radius: var(--cc-radius); overflow: hidden; display: flex; flex-direction: column; }
.cc-plan-head { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 700; font-size: 1.5rem; }
.cc-plan-head .price { font-size: 1.4rem; background: rgba(0,0,0,.28); padding: 2px 9px; border-radius: 3px; }
.cc-plan-premium .cc-plan-head { background: #42a7a7; }
.cc-plan-infinity .cc-plan-head { background: #c67a8c; }
.cc-plan-supreme .cc-plan-head { background: #40ae70; }
.cc-plan-default .cc-plan-head { background: var(--cc-accent); }
.cc-plan-body { padding: 0; flex: 1; }
.cc-plan-row { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px; border-bottom: 1px solid #292929; color: #a5a5a5; font-size: 1.18rem; }
.cc-plan-row strong { color: #ddd; }
.cc-plan-row .yes { color: #5fc98a; }
.cc-plan-row .no { color: #d06a6a; }
.cc-plan-badge { text-align: center; padding: 8px 12px; background: transparent; }
.cc-plan-badge img { max-height: 40px; max-width: 100%; }
.cc-plan-foot { padding: 12px; display: flex; gap: 8px; border-top: 1px solid #2c2c2c; }
.cc-plan-foot .cc-btn { flex: 1; }

/* Comparador de planes */
.cc-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid #2d2d2d;
}
.cc-compare-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1.12rem;
}
.cc-compare-table th,
.cc-compare-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #2b2b2b;
    text-align: center;
    vertical-align: middle;
}
.cc-compare-table thead th {
    padding: 15px 14px 13px;
    background: #181818;
    color: #ddd;
    font-size: 1.13rem;
    border-bottom: 1px solid #353535;
}
.cc-compare-table thead th + th { border-left: 1px solid #2b2b2b; }
.cc-compare-table thead th img {
    display: block;
    width: auto;
    height: 30px;
    max-width: 150px;
    margin: 0 auto 6px;
    object-fit: contain;
}
.cc-compare-table thead th strong { display: block; color: #f2f2f2; font-size: 1.3rem; }
.cc-compare-table thead th small { display: block; margin-top: 2px; color: #8f8f8f; font-size: 1.02rem; font-weight: 500; }
.cc-compare-table tbody th {
    text-align: left;
    color: #bdbdbd;
    font-weight: 600;
    background: #1b1b1b;
    white-space: nowrap;
}
.cc-compare-table tbody tr:nth-child(even) th,
.cc-compare-table tbody tr:nth-child(even) td { background: #191919; }
.cc-compare-table tbody tr:hover th,
.cc-compare-table tbody tr:hover td { background: #242424; }
.cc-compare-table th:first-child,
.cc-compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: left;
    border-right: 1px solid #303030;
}
.cc-compare-table thead th:first-child { z-index: 3; background: #181818; }
.cc-compare-yes { display: inline-flex; align-items: center; gap: 4px; color: #7fe0a3; font-weight: 700; }
.cc-compare-no { display: inline-flex; align-items: center; gap: 4px; color: #e58e8e; font-weight: 700; }
.cc-compare-yes i { color: #49d17d; }
.cc-compare-no i { color: #f07c7c; }
.cc-compare-note { padding: 11px 14px; color: #8f8f8f; font-size: 1.05rem; border-top: 1px solid #2a2a2a; }
.cc-compare-note i { color: var(--cc-accent); }

.cc-order-box { background: #1c1c1c; border: 1px solid #303030; border-radius: 5px; padding: 16px; }
.cc-pay-amount {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
    line-height: 1.1;
    word-break: break-all;
}
.cc-pay-amount small { font-size: 1.4rem; color: #888; font-weight: 400; letter-spacing: 0; }
.cc-address {
    font-family: Consolas, Monaco, monospace;
    background: #141414;
    padding: 10px;
    border: 1px dashed #3d3d3d;
    border-radius: 4px;
    word-break: break-all;
    color: #b8e0b8;
    font-size: 1.2rem;
}
.cc-pay-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 3px; font-size: 1.15rem; font-weight: 700; text-transform: uppercase; }
.cc-pay-pending { background: #3b321b; color: #e0c06a; }
.cc-pay-review { background: #1b2f3b; color: #a9d8f0; }
.cc-pay-paid { background: #173824; color: #83d8a4; }
.cc-pay-expired, .cc-pay-cancelled { background: #3b1b1b; color: #e58e8e; }
.cc-qr { background: #fff; padding: 8px; border-radius: 5px; display: inline-block; }
.cc-qr img { display: block; width: 190px; height: 190px; }

/* Checkout renovado */
.cc-pay-page { display: flex; flex-direction: column; gap: 14px; }
.cc-pay-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid #303030;
    border-radius: 14px;
    background:
        radial-gradient(circle at 12% 15%, rgba(74,143,185,.20), transparent 32%),
        linear-gradient(135deg, #222 0%, #191919 65%);
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.cc-pay-hero-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: rgba(74,143,185,.16);
    border: 1px solid rgba(74,143,185,.32);
    color: #8fd2f4;
    font-size: 2.1rem;
}
.cc-pay-hero-copy { flex: 1; min-width: 0; }
.cc-pay-kicker { display: block; color: #8b8b8b; font-size: 1.08rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.cc-pay-hero-copy h1 { margin: 0; color: #fff; font-size: 2.35rem; line-height: 1.2; }
.cc-pay-hero-copy p { margin: 4px 0 0; color: #b0b0b0; font-size: 1.2rem; line-height: 1.55; }
.cc-pay-hero .cc-pay-status { flex: 0 0 auto; font-size: 1.1rem; padding: 6px 11px; }

.cc-pay-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.cc-pay-step {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    background: #1a1a1a;
    color: #7f7f7f;
}
.cc-pay-step > span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #292929;
    color: #999;
    font-size: 1.15rem;
    font-weight: 700;
}
.cc-pay-step strong { display: block; color: #c5c5c5; font-size: 1.15rem; }
.cc-pay-step small { display: block; color: #777; font-size: 1.02rem; }
.cc-pay-step.is-active { border-color: rgba(74,143,185,.48); background: rgba(74,143,185,.08); }
.cc-pay-step.is-active > span { background: var(--cc-accent); color: #fff; box-shadow: 0 0 0 4px rgba(74,143,185,.12); }
.cc-pay-step.is-active strong { color: #fff; }
.cc-pay-step.is-done { border-color: rgba(73,209,125,.34); background: rgba(73,209,125,.06); }
.cc-pay-step.is-done > span { background: #2f9b5c; color: #fff; }
.cc-pay-step.is-done strong { color: #b9f0cc; }

.cc-pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; align-items: start; }
.cc-pay-main, .cc-pay-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cc-pay-card {
    position: relative;
    padding: 18px;
    border: 1px solid #303030;
    border-radius: 13px;
    background: linear-gradient(160deg, #202020, #191919);
    box-shadow: 0 10px 26px rgba(0,0,0,.16);
    overflow: hidden;
}
.cc-pay-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cc-pay-card-head h2 { margin: 0; color: #f0f0f0; font-size: 1.55rem; display: flex; align-items: center; gap: 7px; }
.cc-pay-card-head i { color: var(--cc-accent); }
.cc-pay-card-eyebrow { color: #999; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.cc-pay-amount-card {
    background:
        radial-gradient(circle at 8% 5%, rgba(74,143,185,.16), transparent 36%),
        linear-gradient(160deg, #232323, #181818);
}
.cc-pay-amount { margin: 4px 0 3px; color: #fff; font-size: clamp(3.1rem, 7vw, 4.6rem); font-weight: 800; line-height: 1.05; letter-spacing: .02em; word-break: break-all; }
.cc-pay-amount small { color: #9cd8f5; font-size: 1.45rem; font-weight: 600; letter-spacing: 0; }
.cc-pay-hint { margin: 0 0 14px; color: #9f9f9f; font-size: 1.12rem; line-height: 1.55; }
.cc-pay-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.cc-pay-meta-item { padding: 9px 11px; border: 1px solid #2e2e2e; border-radius: 8px; background: rgba(0,0,0,.18); }
.cc-pay-meta-item span { display: block; color: #818181; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em; }
.cc-pay-meta-item strong { color: #e2e2e2; font-size: 1.2rem; }
.cc-pay-id-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    margin-bottom: 9px;
    border: 1px solid rgba(74,143,185,.30);
    border-radius: 9px;
    background: rgba(74,143,185,.07);
}
.cc-pay-id-box > div { min-width: 0; }
.cc-pay-id-box span { display: block; color: #8fb9cf; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em; }
.cc-pay-id-box code { display: block; margin-top: 2px; color: #d9f2ff; font-family: Consolas, Monaco, monospace; font-size: 1.35rem; word-break: break-all; }
.cc-pay-id-box .cc-btn { flex: 0 0 auto; }
.cc-pay-inline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-pay-auto-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid rgba(73,209,125,.28);
    border-radius: 999px;
    background: rgba(73,209,125,.09);
    color: #9fe0b9;
    font-size: 1.03rem;
    font-weight: 600;
}
.cc-pay-confirmations { margin-top: 12px; color: #999; font-size: 1.1rem; }
.cc-pay-confirmations strong { color: #ddd; }
.cc-pay-countdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #2d2d2d;
    color: #999;
    font-size: 1.1rem;
}
.cc-pay-countdown strong { color: #f0d28b; font-size: 1.25rem; }

.cc-pay-instructions { background: linear-gradient(160deg, #1e2327, #181818); }
.cc-pay-callout {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(73,209,125,.25);
    border-radius: 9px;
    background: rgba(73,209,125,.08);
    color: #b9f0cc;
    font-size: 1.12rem;
    line-height: 1.55;
}
.cc-pay-callout i { color: #49d17d; margin-top: 2px; }
.cc-pay-callout.is-warning { border-color: rgba(231,189,91,.3); background: rgba(231,189,91,.08); color: #ffe9b3; }
.cc-pay-callout.is-warning i { color: #e7bd5b; }
.cc-pay-steps-list { margin: 0 0 14px; padding-left: 20px; color: #b8b8b8; font-size: 1.18rem; line-height: 1.75; }
.cc-pay-steps-list li::marker { color: var(--cc-accent); font-weight: 700; }
.cc-pay-steps-list strong { color: #f1f1f1; }
.cc-pay-main-action { margin-top: 4px; }
.cc-btn-lg { padding: 13px 20px; font-size: 1.35rem; border-radius: 8px; }
.cc-btn-ghost { background: transparent; border-color: #3a3a3a; color: #bdbdbd; }
.cc-btn-ghost:hover { background: rgba(255,255,255,.06); border-color: #555; color: #fff; }

.cc-pay-plan-card { display: flex; align-items: center; gap: 12px; }
.cc-pay-plan-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(231,189,91,.12);
    color: #e7bd5b;
    font-size: 1.6rem;
}
.cc-pay-plan-copy { flex: 1; min-width: 0; }
.cc-pay-plan-copy span { display: block; color: #888; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em; }
.cc-pay-plan-copy strong { display: block; color: #fff; font-size: 1.45rem; }
.cc-pay-plan-copy small { display: block; color: #999; font-size: 1.05rem; }
.cc-pay-plan-price { color: #f0d28b; font-size: 1.4rem; white-space: nowrap; }

.cc-pay-qr-card { text-align: center; }
.cc-pay-qr-card .cc-pay-card-head { text-align: left; }
.cc-pay-qr-card .cc-qr { margin: 4px auto 10px; }
.cc-pay-qr-card .cc-qr img { width: 220px; height: 220px; }
.cc-pay-qr-card p { margin: 0 0 11px; color: #9d9d9d; font-size: 1.1rem; line-height: 1.55; }
.cc-pay-small-note { display: block; margin-top: 8px; color: #777; font-size: 1.02rem; line-height: 1.45; }
.cc-pay-help-card { background: linear-gradient(160deg, #1b1b1b, #181818); }
.cc-pay-help-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cc-pay-help-list li { display: flex; align-items: flex-start; gap: 7px; color: #a6a6a6; font-size: 1.1rem; line-height: 1.45; }
.cc-pay-help-list i { color: #49d17d; margin-top: 3px; }

@media (max-width: 900px) {
    .cc-pay-layout { grid-template-columns: minmax(0, 1fr); }
    .cc-pay-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .cc-pay-hero { align-items: flex-start; flex-wrap: wrap; padding: 15px; }
    .cc-pay-hero .cc-pay-status { margin-left: 66px; }
    .cc-pay-hero-copy h1 { font-size: 2rem; }
    .cc-pay-steps { grid-template-columns: 1fr; }
    .cc-pay-step { padding: 8px 10px; }
    .cc-pay-card { padding: 14px; }
    .cc-pay-meta-grid { grid-template-columns: 1fr; }
    .cc-pay-id-box { align-items: flex-start; flex-direction: column; }
    .cc-pay-id-box .cc-btn { width: 100%; }
    .cc-pay-side { grid-template-columns: 1fr; }
    .cc-pay-plan-card { flex-wrap: wrap; }
    .cc-pay-plan-price { margin-left: 54px; }
    .cc-confirm-card { padding: 20px; }
    .cc-confirm-actions .cc-btn { flex: 1; }
}

/* ---------------- Messages / notifications ---------------- */

.cc-messages { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; align-items: start; }
.cc-convo { display: flex; gap: 9px; padding: 10px 12px; border-bottom: 1px solid #292929; color: #bbb; }
.cc-convo:hover { background: #252525; }
.cc-convo.unread { border-left: 3px solid var(--cc-accent); background: #222; }
.cc-convo .grow { min-width: 0; flex: 1; }
.cc-convo .subject { color: #ddd; font-weight: 600; font-size: 1.2rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-convo .preview { color: #777; font-size: 1.08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.cc-convo .unread-badge { background: var(--cc-accent); color: #fff; border-radius: 9px; padding: 1px 6px; font-size: 1rem; height: 17px; }

.cc-pm-message { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #2a2a2a; }
.cc-pm-message img { width: 38px; height: 38px; border-radius: 3px; object-fit: cover; }
.cc-pm-message .who { font-size: 1.2rem; }
.cc-pm-message time { color: #777; font-size: 1.05rem; }
.cc-pm-message .body { color: #c3c3c3; margin-top: 4px; word-wrap: break-word; overflow-wrap: anywhere; }
.cc-pm-message .grow { flex: 1; min-width: 0; }

.cc-notification .cc-notif-icon { width: 34px; text-align: center; color: #888; padding-top: 2px; flex: 0 0 34px; }
.cc-notification .cc-notif-icon img { width: 34px; height: 34px; border-radius: 3px; object-fit: cover; }

.cc-notification { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #292929; }
.cc-notification.unread { background: #232b31; border-left: 3px solid var(--cc-accent); }
.cc-notification img { width: 34px; height: 34px; border-radius: 3px; object-fit: cover; }
.cc-notification .grow { flex: 1; min-width: 0; }
.cc-notification .subject { color: #ccc; font-size: 1.2rem; }
.cc-notification time { color: #777; font-size: 1.05rem; }

/* ---------------- Tables ---------------- */

.cc-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.cc-table th {
    background: #1b1b1b;
    color: #999;
    text-align: left;
    padding: 8px 10px;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-bottom: 1px solid #303030;
}
.cc-table td { padding: 8px 10px; border-bottom: 1px solid #2b2b2b; color: #bdbdbd; vertical-align: middle; }
.cc-table tr:hover td { background: #232323; }
.cc-table .actions { display: flex; gap: 5px; flex-wrap: wrap; }

/* ---------------- Edit options / misc ---------------- */

.cc-option-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #2b2b2b; }
.cc-option-row:last-child { border-bottom: 0; }
.cc-option-row .text strong { display: block; color: #d0d0d0; font-size: 1.25rem; }
.cc-option-row .text span { color: #888; font-size: 1.12rem; }

.cc-theme-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.cc-swatch { width: 34px; height: 34px; border-radius: 4px; border: 2px solid #3a3a3a; cursor: pointer; }
.cc-swatch:hover, .cc-swatch.active { border-color: #fff; }

/* ---------------- Pagination ---------------- */

.cc-pagination { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 0; }
.cc-pagination a, .cc-pagination span {
    min-width: 33px;
    height: 32px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    background: #222;
    color: #bbb;
    border-radius: 3px;
    font-size: 1.15rem;
}
.cc-pagination a:hover { background: #2d2d2d; color: #fff; }
.cc-pagination .current { background: var(--cc-accent); border-color: var(--cc-accent); color: #fff; }
.cc-pagination .dots { border: 0; background: transparent; }

/* ---------------- Admin ---------------- */

.cc-admin-nav { display: flex; flex-wrap: wrap; gap: 3px; padding: 6px; background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: var(--cc-radius); margin-bottom: 14px; }
.cc-admin-nav a { padding: 6px 10px; border-radius: 3px; color: #aaa; font-size: 1.15rem; font-weight: 600; }
.cc-admin-nav a:hover, .cc-admin-nav a.active { background: #2c2c2c; color: #fff; }

.cc-admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.cc-admin-stat { background: #1f1f1f; border: 1px solid #2c2c2c; border-radius: var(--cc-radius); padding: 14px; }
.cc-admin-stat span { color: #888; font-size: 1.1rem; display: block; }
.cc-admin-stat strong { color: #e4e4e4; font-size: 2.2rem; line-height: 1.2; }
.cc-admin-stat small { color: #777; font-size: 1rem; }

.cc-permissions { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; min-height: 0; }

/* ---------------- Footer ---------------- */

.cc-footer { border-top: 1px solid #2a2a2a; background: #181818; margin-top: 20px; padding: 16px 14px; }
.cc-footer-inner { max-width: 1580px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #777; font-size: 1.15rem; }
.cc-footer-inner p { margin: 0; }
.cc-footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.cc-footer-links a { color: #888; }
.cc-footer-links a:hover { color: var(--cc-accent); }

/* ---------------- Empty / errors ---------------- */

.cc-empty { padding: 24px; text-align: center; color: #777; font-size: 1.25rem; }
.cc-error-page { text-align: center; padding: 60px 20px; }
.cc-error-page .code { font-size: 7rem; font-weight: 800; color: #2d2d2d; line-height: 1; }
.cc-error-page h1 { margin-top: 8px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1200px) {
    .cc-layout { grid-template-columns: minmax(0, 1fr) 290px; }
    .cc-profile-grid { grid-template-columns: 270px minmax(0, 1fr); }
    .cc-profile-grid > :nth-child(3) { grid-column: 1 / -1; }
    .cc-forum-row { grid-template-columns: 40px minmax(0, 1fr) 70px 70px 200px; }
}

@media (max-width: 980px) {
    .cc-layout { grid-template-columns: 1fr; }
    .cc-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
    .cc-sidebar .cc-panel { margin-bottom: 0; }
    .cc-profile-grid { grid-template-columns: 1fr; }
    .cc-profile-grid > :nth-child(3) { grid-column: auto; }
    .cc-settings { grid-template-columns: 210px minmax(0, 1fr); }
    .cc-plans { grid-template-columns: 1fr; }
    .cc-messages { grid-template-columns: 270px minmax(0, 1fr); }
    .cc-admin-stats { grid-template-columns: 1fr 1fr; }
    .cc-nav-links { position: absolute; top: 52px; left: 0; right: 0; background: #1b1b1b; border-bottom: 1px solid #333; flex-direction: column; align-items: stretch; padding: 8px; display: none; z-index: 70; max-height: 70vh; overflow-y: auto; }
    .cc-nav-links.open { display: flex; }
    .cc-nav-links a { padding: 10px 12px; }
    .cc-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .cc-usermenu-name { display: none; }
}

@media (max-width: 720px) {
    .cc-forum-row { grid-template-columns: 34px minmax(0, 1fr) 60px 60px; padding: 11px 12px; }
    .cc-forum-last { display: none; }
    .cc-thread-row { grid-template-columns: 28px minmax(0, 1fr) 58px 58px; padding: 10px 12px; }
    .cc-thread-last { display: none; }
    .cc-subforums { padding-left: 50px; }
    .cc-post { grid-template-columns: 1fr; }
    .cc-post-side { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; text-align: left; align-items: center; border-right: 0; border-bottom: 1px solid #2d2d2d; padding: 10px 12px; }
    .cc-post-avatar img { width: 50px; height: 50px; }
    .cc-post-username { margin: 0; font-size: 1.35rem; }
    .cc-post-stats { display: flex; gap: 10px; margin-top: 3px; grid-column: 1 / -1; flex-wrap: wrap; }
    .cc-post-stats span { border: 0; padding: 0; gap: 4px; }
    .cc-post-joined { display: none; }
    .cc-post-main { padding: 12px; }
    .cc-profile-head { flex-wrap: wrap; margin-top: -40px; padding: 0 14px 14px; }
    .cc-profile-avatar img { width: 86px; height: 86px; }
    .cc-profile-identity h1 { font-size: 2rem; }
    .cc-profile-stats { grid-template-columns: 1fr 1fr; }
    .cc-settings { grid-template-columns: 1fr; }
    .cc-settings-nav { display: flex; overflow-x: auto; }
    .cc-settings-nav a { white-space: nowrap; border-bottom: 0; border-right: 1px solid #272727; }
    .cc-settings-group { display: none; }
    .cc-sidebar { grid-template-columns: 1fr; }
    .cc-messages { grid-template-columns: 1fr; }
    .cc-form-grid { grid-template-columns: 1fr; }
    .cc-admin-stats { grid-template-columns: 1fr 1fr; }
    .cc-pay-amount { font-size: 2.4rem; }
    .cc-footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
    .cc-shell { padding: 0 8px 20px; }
    .cc-forum-row { grid-template-columns: 28px minmax(0, 1fr); }
    .cc-forum-count { display: none; }
    .cc-thread-row { grid-template-columns: 24px minmax(0, 1fr); }
    .cc-thread-row .cc-forum-count { display: none; }
    .cc-brand img { height: 24px; }
    .cc-nav { padding: 0 8px; height: 48px; }
    .cc-nav-links { top: 48px; }
    .cc-icon-btn { width: 32px; }
    .cc-usermenu summary { padding: 4px; }
    .cc-usermenu-panel { width: 290px; }
    .cc-admin-stats { grid-template-columns: 1fr; }
    .cc-profile-actions { width: 100%; }
}

/* Videos de YouTube en el perfil */
.cc-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}
.cc-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid #333;
    border-radius: 5px;
    overflow: hidden;
}
.cc-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.cc-plan-head .cc-plan-name {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
    letter-spacing: .2px;
}


.cc-count[hidden] { display: none !important; }


.cc-profile-video {
    margin-bottom: 14px;
}
.cc-profile-video .cc-video {
    border-radius: var(--cc-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}


/* Perfil estilo portada grande */
.cc-profile-cover {
    height: 270px;
}
.cc-profile-cover::after {
    background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(18,18,18,.72));
}
.cc-profile-head {
    margin-top: -92px;
    align-items: flex-end;
    gap: 20px;
    padding: 0 26px 20px;
}
.cc-profile-avatar img {
    width: 158px;
    height: 158px;
    border-radius: 6px;
    border: 4px solid rgba(20,20,20,.92);
}
.cc-profile-identity h1 {
    font-size: 2.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cc-profile-rank-icon {
    font-size: 1.35rem;
    opacity: .95;
}
.cc-profile-tagline {
    color: #e9e9e9;
    font-size: 1.45rem;
    margin-top: 2px;
    text-shadow: 0 2px 6px #000;
}
.cc-profile-meta {
    color: #9a9a9a;
    font-size: 1.1rem;
    margin-top: 3px;
}
.cc-profile-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #2b2b2b;
    border: 1px solid #2b2b2b;
    border-radius: var(--cc-radius);
    overflow: hidden;
    margin-bottom: 14px;
}
.cc-mini-stat {
    background: #1f1f1f;
    text-align: center;
    padding: 18px 10px;
}
.cc-mini-stat strong {
    display: block;
    font-size: 2rem;
    color: #5fc98a;
    font-weight: 700;
}
.cc-mini-stat span {
    color: #8f8f8f;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.cc-profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #2b2b2b;
}
.cc-profile-stat-grid > div {
    background: #1f1f1f;
    padding: 20px 10px;
    text-align: center;
}
.cc-profile-stat-grid strong {
    display: block;
    font-size: 1.9rem;
    color: #ddd;
}
.cc-profile-stat-grid span {
    color: #888;
    font-size: 1.05rem;
}
.cc-profile-social { min-width: 0; overflow: hidden; }
.cc-profile-social .cc-panel-head {
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-wrap: wrap;
    gap: 4px 8px;
}
.cc-social-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 12px 0;
    background: #161616;
    border-bottom: 1px solid #2d2d2d;
    box-sizing: border-box;
}
.cc-social-tab {
    flex: 1 1 0%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px 7px 0 0;
    background: #222;
    color: #9b9b9b;
    font: inherit;
    font-size: 1.18rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.cc-social-tab:hover { background: #2a2a2a; color: #ddd; }
.cc-social-tab.active { background: var(--cc-accent); color: #fff; }
.cc-social-count {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(0,0,0,.22);
    color: inherit;
    font-size: 1.02rem;
}
.cc-social-total {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    border-top: 1px solid #292929;
    color: #9a9a9a;
    font-size: 1.08rem;
}
.cc-social-total i { color: var(--cc-accent); }
.cc-social-total strong { color: #fff; }
@media (max-width: 640px) {
    .cc-social-tabs { padding: 6px 8px 0; gap: 3px; }
    .cc-social-tab { min-height: 34px; padding: 7px 7px; font-size: 1.06rem; gap: 4px; }
    .cc-social-count { min-width: 18px; padding: 0 5px; font-size: .98rem; }
    .cc-social-total { padding: 10px 12px; flex-wrap: wrap; }
}
@media (max-width: 380px) {
    .cc-social-tab { font-size: 1rem; padding: 7px 4px; }
    .cc-social-count { display: none; }
}

.cc-group-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cc-group-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #1b1b1b;
    font-weight: 700;
    font-size: 1.15rem;
}
.cc-group-badge img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.cc-group-badge.has-image {
    padding: 0;
    border: 0;
    background: transparent;
}
.cc-group-badge.has-image img {
    width: auto;
    height: 34px;
    max-width: 190px;
    object-fit: contain;
    flex: 0 0 auto;
}
.cc-group-badge i {
    font-size: 1.05rem;
}
@media (max-width: 640px) {
    .cc-group-badge.has-image img {
        height: 24px;
        max-width: 130px;
    }
}
@media (max-width: 900px) {
    .cc-profile-head {
        margin-top: -60px;
        padding: 0 14px 14px;
        gap: 12px;
    }
    .cc-profile-avatar img {
        width: 108px;
        height: 108px;
    }
    .cc-profile-identity h1 {
        font-size: 2rem;
    }
    .cc-profile-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cc-profile-cover {
    background-color: #161616;
    background-image:
        radial-gradient(circle at 18% 28%, rgba(66,167,167,.38), transparent 42%),
        radial-gradient(circle at 82% 18%, rgba(198,122,140,.38), transparent 46%),
        radial-gradient(circle at 62% 82%, rgba(74,143,185,.34), transparent 52%);
}


/* Portada centrada estilo tarjeta */
.cc-profile-cover {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
}
.cc-profile-cover::after {
    background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.78));
    z-index: 0;
}
.cc-profile-head {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 980px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}
.cc-profile-avatar img {
    width: 170px;
    height: 170px;
    border-radius: 6px;
    border: 3px solid rgba(255,255,255,.12);
    box-shadow: 0 10px 30px rgba(0,0,0,.55);
}
.cc-profile-identity {
    flex: 0 1 auto;
    text-align: left;
    padding: 0;
}
.cc-profile-identity h1 {
    font-size: 3rem;
    justify-content: flex-start;
}
.cc-profile-actions {
    position: absolute;
    right: 22px;
    bottom: 18px;
    z-index: 2;
    padding: 0;
}
@media (max-width: 700px) {
    .cc-profile-cover {
        height: 360px;
        padding: 22px 14px 64px;
    }
    .cc-profile-head {
        flex-direction: column;
        gap: 12px;
    }
    .cc-profile-avatar img {
        width: 126px;
        height: 126px;
    }
    .cc-profile-identity {
        text-align: center;
    }
    .cc-profile-identity h1 {
        justify-content: center;
        font-size: 2.2rem;
    }
    .cc-profile-actions {
        left: 0;
        right: 0;
        bottom: 14px;
        justify-content: center;
    }
}

/* Portada con avatar/nombre a la izquierda y acciones arriba a la derecha */
.cc-profile-cover {
    justify-content: flex-start;
    padding: 28px 30px;
}
.cc-profile-head {
    justify-content: flex-start;
    max-width: 100%;
}
.cc-profile-actions {
    top: 18px;
    right: 20px;
    bottom: auto;
    padding: 6px;
    border-radius: 6px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(4px);
}
@media (max-width: 700px) {
    .cc-profile-cover {
        padding: 22px 14px 70px;
        height: 380px;
    }
    .cc-profile-head {
        justify-content: center;
        text-align: center;
    }
    .cc-profile-actions {
        top: auto;
        bottom: 12px;
        left: 12px;
        right: 12px;
        justify-content: center;
    }
}

/* Hero restaurado */
.cc-hero {
    height: 165px;
    background-color: #1c1c1c;
    background-position: center 35%;
    background-size: cover;
    position: relative;
    margin-bottom: 14px;
}
.cc-hero-inner {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.cc-hero img {
    max-height: 105px;
    width: auto;
    max-width: 92%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
}
@media (max-width: 720px) {
    .cc-hero { height: 120px; }
    .cc-hero img { max-height: 70px; }
}
@media (max-width: 480px) {
    .cc-hero { height: 95px; margin-bottom: 8px; }
}

/* Selector de emoticonos del chat */
.cc-smiley-wrap {
    position: relative;
    display: flex;
    flex-shrink: 0;
}
.cc-smiley-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    width: 310px;
    max-height: 230px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 8px;
    background: #191919;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 10px 26px rgba(0,0,0,.45);
    z-index: 90;
}
.cc-smiley-panel[hidden] {
    display: none;
}
.cc-smiley-item {
    background: transparent;
    border: 0;
    padding: 3px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 0;
}
.cc-smiley-item:hover {
    background: #2a2a2a;
}
.cc-smiley-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}
@media (max-width: 480px) {
    .cc-smiley-panel {
        width: 250px;
        grid-template-columns: repeat(5, 1fr);
    }
}

.cc-name-preview {
    padding: 22px;
    background: #151515;
    border: 1px solid #2f2f2f;
    border-radius: 5px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
}


.cc-input[type="color"] {
    height: 46px;
    padding: 4px;
    cursor: pointer;
}

/* Navegacion de ajustes en movil */
.cc-settings-toggle {
    display: none;
}
@media (max-width: 900px) {
    .cc-settings-nav {
        display: block;
        overflow: visible;
    }
    .js .cc-settings-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
        background: #181818;
        color: #ddd;
        border: 0;
        border-bottom: 1px solid #2a2a2a;
        font-size: 1.2rem;
        font-weight: 700;
        cursor: pointer;
        text-align: left;
    }
    .cc-settings-toggle .fa-chevron-down {
        transition: transform .18s ease;
    }
    .cc-settings-toggle[aria-expanded="true"] .fa-chevron-down {
        transform: rotate(180deg);
    }
    .js .cc-settings-links {
        display: none;
    }
    .js .cc-settings-links.open {
        display: block;
    }
    .cc-settings-nav a {
        white-space: normal;
        border-right: 0;
        border-bottom: 1px solid #272727;
        padding: 10px 14px;
    }
    .cc-settings-group {
        display: block;
    }
}

/* Listados largos con scroll interno */
.cc-list-scroll {
    max-height: 620px;
    overflow-y: auto;
}
.cc-table-wrap.cc-list-scroll {
    overflow-x: auto;
}

/* Guia rapida */
.cc-help-page h2 {
    margin: 24px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #2b2b2b;
    font-size: 1.5rem;
    color: #ddd;
}
.cc-help-page p,
.cc-help-page li {
    color: #b5b5b5;
    line-height: 1.7;
}
.cc-help-page ol,
.cc-help-page ul {
    padding-left: 20px;
}
.cc-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin: 10px 0;
}
.cc-help-grid > div {
    background: #1b1b1b;
    border: 1px solid #2c2c2c;
    border-radius: 4px;
    padding: 8px 10px;
}
.cc-help-grid code {
    display: block;
    color: #8fd7b0;
    word-break: break-all;
}
.cc-help-grid span {
    color: #888;
    font-size: 1.05rem;
}

.cc-shout-form .cc-input {
    flex: 1;
    min-width: 0;
}


/* Conversacion privada estilo chat */
.cc-pm-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 620px;
    overflow-y: auto;
    padding: 12px;
    margin-bottom: 14px;
    background: #141414;
    border: 1px solid #2c2c2c;
    border-radius: var(--cc-radius);
}
.cc-pm-thread .cc-pm-message {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: #1f1f1f;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
}
.cc-pm-thread .cc-pm-message.mine {
    background: #20282c;
    border-color: #2d3a40;
}
.cc-pm-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cc-pm-meta time {
    margin-left: auto;
    color: #777;
    font-size: 1.05rem;
    white-space: nowrap;
}
.cc-pm-participant {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px 0;
    border-bottom: 1px solid #272727;
}
.cc-pm-participant:last-child {
    border-bottom: 0;
}
.cc-pm-participant .cc-online-pill {
    flex: 1;
    min-width: 0;
}
.cc-tag-danger {
    background: #4a1f1f;
    color: #ffb3b3;
}
.cc-shout-meta time {
    margin-left: auto;
    padding-left: 8px;
}

.cc-pm-reply-form {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.cc-pm-reply-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}
.cc-pm-reply-form .grow {
    flex: 1;
    min-width: 0;
}
.cc-pm-reply-form .cc-form-actions {
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}


/* El menu de usuario nunca debe salir de la pantalla */
.cc-usermenu-panel {
    width: min(320px, calc(100vw - 18px));
    max-width: calc(100vw - 18px);
    box-sizing: border-box;
}
.cc-usermenu-logout,
.cc-usermenu-logout button {
    max-width: 100%;
    box-sizing: border-box;
}
.cc-usermenu-logout button {
    overflow-wrap: anywhere;
}
@media (max-width: 420px) {
    .cc-usermenu-panel {
        width: calc(100vw - 18px);
        right: -4px;
    }
}

.cc-shout-meta .cc-shout-delete {
    margin-left: 0;
}


.bb-list {
    margin: 8px 0 8px 22px;
    padding: 0;
}
.bb-list li {
    margin: 3px 0;
}
.bb-hr {
    border: 0;
    border-top: 1px solid #3a3a3a;
    margin: 14px 0;
}
.bb-video {
    position: relative;
    width: 100%;
    max-width: 760px;
    aspect-ratio: 16 / 9;
    margin: 10px 0;
    background: #000;
    border-radius: 5px;
    overflow: hidden;
}
.bb-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Editor completo */
.cc-editor {
    position: relative;
}
.cc-editor-toolbar {
    align-items: center;
}
.cc-editor-group {
    display: flex;
    align-items: center;
    gap: 2px;
}
.cc-editor-sep {
    width: 1px;
    height: 22px;
    background: #3a3a3a;
    margin: 0 3px;
}
.cc-editor-select {
    height: 28px;
    max-width: 118px;
    background: #2a2a2a;
    color: #ccc;
    border: 1px solid #383838;
    border-radius: 3px;
    font-size: 1.05rem;
    padding: 0 4px;
}
.cc-editor-color {
    width: 36px;
    height: 28px;
    padding: 2px;
    background: #2a2a2a;
    border: 1px solid #383838;
    border-radius: 3px;
    cursor: pointer;
}
.cc-editor-smiley-panel {
    position: absolute;
    top: 38px;
    right: 8px;
    z-index: 95;
    width: 320px;
    max-height: 230px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 8px;
    background: #191919;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 10px 26px rgba(0,0,0,.45);
}
.cc-editor-smiley-panel[hidden] {
    display: none;
}
.cc-editor-smiley-panel button {
    background: transparent;
    border: 0;
    padding: 3px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 0;
}
.cc-editor-smiley-panel button:hover {
    background: #2a2a2a;
}
.cc-editor-smiley-panel img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
@media (max-width: 600px) {
    .cc-editor-smiley-panel {
        width: 250px;
        grid-template-columns: repeat(5, 1fr);
    }
    .cc-editor-select {
        max-width: 92px;
    }
}

/* Compra exitosa + espera automatica */
.cc-pay-waiting {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 4px 0 14px;
    padding: 13px 14px;
    border: 1px solid rgba(74,143,185,.32);
    border-radius: 10px;
    background: rgba(74,143,185,.08);
}
.cc-pay-waiting-dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border-radius: 50%;
    background: #6ec8f0;
    box-shadow: 0 0 0 0 rgba(110,200,240,.55);
    animation: cc-pay-pulse 1.6s infinite;
}
.cc-pay-waiting strong { display: block; color: #d9f2ff; font-size: 1.18rem; }
.cc-pay-waiting span:not(.cc-pay-waiting-dot) { display: block; margin-top: 2px; color: #a7c9da; font-size: 1.08rem; line-height: 1.5; }
@keyframes cc-pay-pulse {
    0% { box-shadow: 0 0 0 0 rgba(110,200,240,.5); }
    70% { box-shadow: 0 0 0 11px rgba(110,200,240,0); }
    100% { box-shadow: 0 0 0 0 rgba(110,200,240,0); }
}

.cc-pay-success {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(73,209,125,.35);
    border-radius: 16px;
    background:
        radial-gradient(circle at 8% 0%, rgba(73,209,125,.20), transparent 38%),
        radial-gradient(circle at 100% 100%, rgba(231,189,91,.10), transparent 40%),
        linear-gradient(160deg, #1d2a22, #181818 62%);
    box-shadow: 0 18px 44px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
    animation: cc-alert-in .28s ease-out;
}
.cc-pay-success::after {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(73,209,125,.18), transparent 68%);
    pointer-events: none;
}
.cc-pay-success-head { position: relative; display: flex; align-items: center; gap: 15px; z-index: 1; }
.cc-pay-success-check {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(160deg, #49d17d, #2f9b5c);
    color: #fff;
    font-size: 2.3rem;
    box-shadow: 0 0 0 7px rgba(73,209,125,.12), 0 10px 26px rgba(47,155,92,.35);
}
.cc-pay-success-copy h2 { margin: 0; color: #fff; font-size: 2.2rem; line-height: 1.2; }
.cc-pay-success-copy p { margin: 5px 0 0; color: #b9e6c9; font-size: 1.15rem; line-height: 1.5; }
.cc-pay-success-amount {
    position: relative;
    z-index: 1;
    margin: 20px 0 16px;
    padding: 16px 18px;
    border: 1px solid rgba(73,209,125,.22);
    border-radius: 12px;
    background: rgba(0,0,0,.22);
    text-align: center;
}
.cc-pay-success-amount span { display: block; color: #8fcfa6; font-size: 1.08rem; text-transform: uppercase; letter-spacing: .06em; }
.cc-pay-success-amount strong { display: block; margin-top: 3px; color: #fff; font-size: clamp(2.8rem, 7vw, 4rem); font-weight: 800; line-height: 1.05; word-break: break-all; }
.cc-pay-success-amount small { color: #9fe0b9; font-size: 1.35rem; font-weight: 600; letter-spacing: 0; }
.cc-pay-success-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}
.cc-pay-success-item {
    padding: 11px 12px;
    border: 1px solid #2f3a32;
    border-radius: 9px;
    background: rgba(0,0,0,.16);
}
.cc-pay-success-item span { display: flex; align-items: center; gap: 5px; color: #8fae9a; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em; }
.cc-pay-success-item span i { color: #49d17d; }
.cc-pay-success-item strong { display: block; margin-top: 3px; color: #f1f1f1; font-size: 1.3rem; word-break: break-word; }
.cc-pay-success-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cc-pay-success-actions .cc-btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 760px) {
    .cc-pay-success-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .cc-pay-success { padding: 17px; }
    .cc-pay-success-head { align-items: flex-start; }
    .cc-pay-success-copy h2 { font-size: 1.8rem; }
    .cc-pay-success-grid { grid-template-columns: 1fr; }
    .cc-pay-success-actions .cc-btn { flex-basis: 100%; }
}

.cc-pay-qr-actions { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.cc-qr-admin-current {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 11px;
    padding: 10px;
    border: 1px solid #303030;
    border-radius: 10px;
    background: rgba(0,0,0,.18);
    flex-wrap: wrap;
}
.cc-qr-admin-current img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    padding: 6px;
    border-radius: 8px;
    background: #fff;
}
.cc-check { display: inline-flex; align-items: center; gap: 7px; color: #d8a0a0; font-size: 1.12rem; cursor: pointer; }
.cc-check input { width: auto; }
.cc-binance-test { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2px 0 16px; }
.cc-binance-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 1.08rem;
    font-weight: 600;
}
.cc-binance-status.is-ok { background: rgba(73,209,125,.12); border: 1px solid rgba(73,209,125,.3); color: #9fe0b9; }
.cc-binance-status.is-bad { background: rgba(240,124,124,.12); border: 1px solid rgba(240,124,124,.3); color: #f0a0a0; }
.cc-binance-test .cc-help { flex-basis: 100%; margin: 0; }

/* Ajustes perfil: acciones dentro de la portada en movil */
@media (max-width: 700px) {
    .cc-profile-actions {
        width: auto;
        max-width: calc(100% - 24px);
        left: 12px;
        right: 12px;
        box-sizing: border-box;
    }
}
@media (max-width: 480px) {
    .cc-profile-actions {
        width: auto;
        max-width: calc(100% - 24px);
    }
}

/* Chat privado: estilo y responsive */
.cc-pm-thread {
    background: #181818;
    border-color: var(--cc-border);
    max-height: min(62vh, 620px);
    scroll-behavior: smooth;
}
.cc-pm-thread .cc-pm-message {
    border-radius: var(--cc-radius);
}
.cc-pm-thread .cc-pm-message.mine {
    background: rgba(74,143,185,.12);
    border-color: rgba(74,143,185,.35);
}
.cc-pm-thread .cc-pm-message.mine .cc-pm-meta time {
    color: #9cc5dc;
}
@media (max-width: 700px) {
    .cc-pm-thread {
        max-height: 58vh;
        padding: 8px;
        gap: 8px;
    }
    .cc-pm-thread .cc-pm-message {
        padding: 10px;
        gap: 8px;
    }
    .cc-pm-thread .cc-pm-message img {
        width: 32px;
        height: 32px;
    }
    .cc-pm-reply-form {
        flex-direction: column;
    }
    .cc-pm-reply-avatar {
        display: none;
    }
    .cc-pm-reply-form .grow {
        width: 100%;
    }
    .cc-pm-meta time {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .cc-convo {
        padding: 9px 8px;
        gap: 7px;
    }
    .cc-convo .preview {
        font-size: 1.02rem;
    }
    .cc-pm-participant {
        gap: 4px;
    }
    .cc-pm-reply-form .cc-form-actions {
        align-items: stretch;
    }
    .cc-pm-reply-form .cc-form-actions .cc-btn {
        width: 100%;
    }
}

/* Unificar Upgrade/Checkout con la paleta del foro */
.cc-pay-hero,
.cc-pay-card,
.cc-pay-success {
    border-radius: var(--cc-radius);
    border: 1px solid var(--cc-border);
    background: var(--cc-panel);
    box-shadow: 0 2px 10px rgba(0,0,0,.22);
}
.cc-pay-hero {
    border-left: 3px solid var(--cc-accent);
    background: linear-gradient(180deg, rgba(74,143,185,.08), rgba(31,31,31,0) 70%), var(--cc-panel);
}
.cc-pay-hero-icon {
    border-radius: var(--cc-radius);
    background: rgba(74,143,185,.12);
    border: 1px solid rgba(74,143,185,.30);
    color: var(--cc-accent);
}
.cc-pay-step {
    border-radius: 4px;
    background: var(--cc-panel);
    border-color: var(--cc-border);
}
.cc-pay-step.is-active {
    border-color: var(--cc-accent);
    background: rgba(74,143,185,.08);
}
.cc-pay-step.is-active > span {
    background: var(--cc-accent);
    box-shadow: none;
}
.cc-pay-step.is-done {
    border-color: rgba(64,174,112,.34);
    background: rgba(64,174,112,.06);
}
.cc-pay-step.is-done > span {
    background: var(--cc-green);
}
.cc-pay-amount-card {
    background: var(--cc-panel);
}
.cc-pay-amount small {
    color: var(--cc-accent);
}
.cc-pay-id-box,
.cc-pay-meta-item {
    border-color: var(--cc-border-light);
    border-radius: var(--cc-radius);
    background: var(--cc-panel-2);
}
.cc-pay-id-box span,
.cc-pay-meta-item span {
    color: var(--cc-muted);
}
.cc-pay-id-box code,
.cc-pay-meta-item strong {
    color: var(--cc-text-strong);
}
.cc-pay-auto-pill {
    border-color: var(--cc-border-light);
    background: var(--cc-panel-2);
    color: var(--cc-text);
}
.cc-pay-auto-pill i {
    color: var(--cc-accent);
}
.cc-pay-callout {
    border-color: var(--cc-border);
    border-radius: var(--cc-radius);
    background: var(--cc-panel-2);
    color: var(--cc-text);
}
.cc-pay-callout i {
    color: var(--cc-accent);
}
.cc-pay-countdown strong {
    color: var(--cc-accent);
}
.cc-pay-plan-icon {
    border-radius: var(--cc-radius);
    background: rgba(74,143,185,.12);
    color: var(--cc-accent);
}
.cc-pay-plan-price {
    color: var(--cc-accent);
}
.cc-pay-waiting {
    border-radius: var(--cc-radius);
    border-color: var(--cc-border-light);
    background: var(--cc-panel-2);
}
.cc-pay-success {
    border-left: 3px solid var(--cc-green);
    background: var(--cc-panel);
}
.cc-pay-success-amount,
.cc-pay-success-item {
    border-color: var(--cc-border);
    border-radius: var(--cc-radius);
    background: var(--cc-panel-2);
}
.cc-pay-success-amount small {
    color: var(--cc-text-strong);
}
.cc-pay-success-check {
    box-shadow: none;
}
.cc-upgrade-note,
.cc-upgrade-gate {
    border: 1px solid var(--cc-border);
    border-left: 3px solid var(--cc-accent);
    border-radius: var(--cc-radius);
    background: var(--cc-panel);
    box-shadow: 0 2px 10px rgba(0,0,0,.22);
}
.cc-upgrade-note-icon,
.cc-upgrade-gate-icon {
    border-radius: var(--cc-radius);
    border: 1px solid rgba(74,143,185,.30);
    background: rgba(74,143,185,.12);
    color: var(--cc-accent);
}
.cc-upgrade-note-copy strong {
    color: var(--cc-text-strong);
}
.cc-upgrade-note-copy span,
.cc-upgrade-gate-kicker {
    color: var(--cc-muted);
}

/* Chat privado estilo WhatsApp/X con la paleta del foro */
.cc-pm-thread {
    background: #141414;
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    max-height: min(64vh, 660px);
    padding: 14px;
    gap: 6px;
    scroll-behavior: smooth;
}
.cc-pm-thread .cc-pm-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    max-width: 100%;
}
.cc-pm-thread .cc-pm-message .cc-pm-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2px;
}
.cc-pm-thread .cc-pm-message .cc-pm-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.cc-pm-thread .cc-pm-message.mine {
    justify-content: flex-end;
}
.cc-pm-thread .cc-pm-message.mine .cc-pm-avatar {
    display: none;
}
.cc-pm-thread .cc-pm-message .cc-pm-bubble {
    flex: 0 1 auto;
    max-width: min(78%, 620px);
    padding: 8px 11px 7px;
    background: var(--cc-panel-2);
    border: 1px solid var(--cc-border);
    border-radius: 14px 14px 14px 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.cc-pm-thread .cc-pm-message.mine .cc-pm-bubble {
    background: rgba(74,143,185,.16);
    background: color-mix(in srgb, var(--cc-accent) 18%, var(--cc-panel-2));
    border-color: rgba(74,143,185,.38);
    border-color: color-mix(in srgb, var(--cc-accent) 42%, var(--cc-border));
    border-radius: 14px 14px 4px 14px;
}
.cc-pm-thread .cc-pm-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}
.cc-pm-thread .cc-pm-meta .who {
    font-size: 1.1rem;
    font-weight: 700;
}
.cc-pm-thread .cc-pm-meta time {
    margin-left: auto;
    color: var(--cc-muted);
    font-size: .95rem;
    white-space: nowrap;
}
.cc-pm-thread .cc-pm-message.mine .cc-pm-meta time {
    color: #a9c9da;
}
.cc-pm-thread .cc-pm-message .body {
    color: var(--cc-text-strong);
    font-size: 1.22rem;
    line-height: 1.5;
    margin-top: 0;
    word-break: break-word;
}
.cc-pm-thread .cc-pm-message .body p:last-child {
    margin-bottom: 0;
}
.cc-pm-thread .cc-pm-message .body a {
    color: var(--cc-accent);
}
.cc-pm-reply-form {
    align-items: flex-end;
    gap: 8px;
}
.cc-pm-reply-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}
.cc-pm-reply-form .cc-textarea {
    border-radius: 18px;
    border-color: var(--cc-border);
    background: var(--cc-panel-2);
    padding: 10px 14px;
    min-height: 44px;
}
@media (max-width: 700px) {
    .cc-pm-thread {
        padding: 10px;
        max-height: 60vh;
    }
    .cc-pm-thread .cc-pm-message .cc-pm-bubble {
        max-width: 88%;
        padding: 7px 10px;
    }
    .cc-pm-thread .cc-pm-message .cc-pm-avatar {
        width: 30px;
        height: 30px;
    }
    .cc-pm-thread .cc-pm-message .body {
        font-size: 1.18rem;
    }
}

.cc-convo .cc-convo-avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--cc-border);
}
@media (max-width: 600px) {
    .cc-convo .cc-convo-avatar {
        width: 34px;
        height: 34px;
    }
}

.cc-profile-tagline.is-default {
    color: #bdbdbd;
    font-weight: 400;
    opacity: .9;
}

.cc-hero-brand {
    display: inline-block;
    color: #fff;
    font-size: clamp(3.2rem, 7vw, 5.4rem);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: 0 3px 14px rgba(0,0,0,.65);
}
.cc-brand-badge {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .05em;
    background: #151515;
    border: 1px solid var(--cc-border-light);
    padding: 6px;
    text-align: center;
    overflow-wrap: anywhere;
}

.cc-image-admin {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.cc-image-admin-preview {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 220px;
    min-height: 120px;
    padding: 10px;
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    background: var(--cc-panel-2);
}
.cc-image-admin-preview img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    display: block;
}
.cc-image-admin-empty {
    color: var(--cc-muted);
    font-size: 1.1rem;
}
.cc-image-admin-fields {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cc-image-admin-fields .cc-help,
.cc-image-admin-fields .cc-small {
    margin: 0;
}
@media (max-width: 640px) {
    .cc-image-admin {
        flex-direction: column;
    }
    .cc-image-admin-preview {
        width: 100%;
    }
    .cc-image-admin-preview img {
        max-height: 180px;
    }
}

.cc-error:empty {
    display: none;
}
.cc-input.is-invalid {
    border-color: #d9534f !important;
    box-shadow: 0 0 0 2px rgba(217,83,79,.12);
}
