/* ==============================================
   HabboQuests Admin Theme v2.0 (Bootstrap-first)
   Only custom styles that Bootstrap can't provide.
   ============================================== */

/* --- Section headings (shared by sidebar + content) --- */
.text-heading {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.3px;
    opacity: 0.6;
}
.text-heading-link {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 6px;
    background: rgba(66, 165, 245, 0.12);
    color: #42a5f5;
    text-decoration: none;
    transition: background 0.15s ease;
}
.text-heading-link:hover {
    background: rgba(66, 165, 245, 0.22);
    text-decoration: none;
    color: #42a5f5;
}

/* --- Sidebar nav links (hover/active effects) --- */
.new-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.12s ease, padding-left 0.12s ease;
    text-decoration: none;
}
.new-nav-link:hover {
    background: rgba(255,255,255,0.05);
    padding-left: 20px;
    text-decoration: none;
}
.new-nav-link .bi {
    font-size: 15px;
    opacity: 0.5;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.new-nav-link.new-nav-active {
    background: rgba(66, 165, 245, 0.12);
    border-left: 3px solid #42a5f5;
    padding-left: 13px;
    color: #42a5f5;
}
.new-nav-link.new-nav-active .bi { opacity: 1; color: #42a5f5; }
.new-nav-link.new-nav-active:hover {
    padding-left: 13px;
    background: rgba(66, 165, 245, 0.18);
}

/* --- Dashboard stat cards (hover/pseudo decorations) --- */
.new-dash-stat {
    border-radius: 10px;
    padding: 20px 16px;
    margin-bottom: 15px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.new-dash-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.new-dash-stat .stat-icon { font-size: 20px; opacity: 0.7; margin-bottom: 6px; }
.new-dash-stat .stat-value {
    font-family: "Ubuntu", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.new-dash-stat .stat-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-top: 4px;
}
.new-dash-stat::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
@media (max-width: 991px) {
    .new-dash-stat { min-height: 100px; margin-bottom: 0; }
    .new-dash-stat .stat-value { font-size: 28px; }
}

/* Gradient backgrounds */
.stat-green  { background: linear-gradient(135deg, #43a047, #66bb6a); }
.stat-blue   { background: linear-gradient(135deg, #1e88e5, #42a5f5); }
.stat-teal   { background: linear-gradient(135deg, #00897b, #26a69a); }
.stat-orange { background: linear-gradient(135deg, #ef6c00, #ffa726); }
.stat-purple { background: linear-gradient(135deg, #7b1fa2, #ab47bc); }
.stat-red    { background: linear-gradient(135deg, #c62828, #ef5350); }
.stat-gradient-success { background: linear-gradient(135deg, #28a745, #20c997) !important; }
.stat-gradient-secondary { background: linear-gradient(135deg, #6c757d, #868e96) !important; }
.stat-gradient-info { background: linear-gradient(135deg, #17a2b8, #20c9e0) !important; }

/* --- Stat rows (hover/border effects) --- */
.admin-stat-row:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.04); }
.admin-stat-row:hover { background: rgba(255,255,255,0.03); }
.admin-stat-row a { color: #42a5f5; }
.admin-stat-row a:hover { color: #90caf9; text-decoration: none; }

/* --- Status badges (unique colours) --- */
.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.open { background: rgba(23, 162, 184, 0.15); color: #17a2b8; }
.status-badge.active { background: rgba(255, 193, 7, 0.15); color: #e6ac00; }
.status-badge.closed { background: rgba(220, 53, 69, 0.15); color: #dc3545; }

/* --- Staff badge (gradient) --- */
.staff-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

/* --- Reply delete button (hover effect) --- */
.admin-reply-delete-btn {
    border: 0;
    background: transparent;
    opacity: 1;
    font-size: 13px;
    margin-left: 10px;
    cursor: pointer;
    color: #9aa4af;
    transition: color 0.2s, opacity 0.2s;
}
.admin-reply-delete-btn:hover { opacity: 1; color: #dc3545; }

/* --- Ticket/Thread reply card left accent --- */
.reply-card { border-left: 3px solid #17a2b8 !important; }
.reply-card.thread-post-deleted { border-left-color: #dc3545 !important; opacity: 0.6; }

/* --- System event replies --- */
.system-event { border-left-color: transparent !important; background: transparent !important; box-shadow: none !important; }
.system-event .card-body { padding: 0 !important; }
.system-event .reply-header { display: none !important; }
.system-event .reply-body .alert {
    margin: 0;
    border: none;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.system-event .reply-body .alert .sys-icon { flex-shrink: 0; font-size: 14px; }
.system-event .reply-body .alert-danger { background: rgba(220, 53, 69, 0.08); color: #dc3545; }
.system-event .reply-body .alert-info { background: rgba(23, 162, 184, 0.08); color: #17a2b8; }
.system-event .reply-body .alert-success { background: rgba(40, 167, 69, 0.08); color: #28a745; }
.system-event .reply-body .alert b,
.system-event .reply-body .alert strong { font-weight: 700; }

/* --- Message block (pre-wrap text) --- */
.message-block {
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* --- Ticket timeline layout --- */
.ticket-timeline {
    position: relative;
    padding: 4px 0;
    margin-bottom: 18px;
}

.ticket-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(23, 162, 184, 0.25);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 14px;
}

.timeline-item.left {
    justify-content: flex-start;
}

.timeline-item.right {
    justify-content: flex-end;
}

.timeline-item.center {
    justify-content: center;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.15);
    z-index: 2;
}

.timeline-item.is-activity .timeline-node {
    background: #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.2);
}

.timeline-card {
    width: calc(50% - 22px);
    border-left: 0 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

.timeline-item.center .timeline-card {
    width: min(620px, calc(100% - 48px));
}

@media (max-width: 991px) {
    .ticket-timeline::before {
        left: 12px;
        transform: none;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right,
    .timeline-item.center {
        justify-content: flex-start;
    }

    .timeline-node {
        left: 12px;
        transform: none;
        top: 16px;
    }

    .timeline-card,
    .timeline-item.center .timeline-card {
        width: calc(100% - 28px);
        margin-left: 28px;
    }
}

/* --- Legacy stat boxes (advent dashboard) --- */
#maincontainer .statBox {
    border-radius: 10px;
    padding: 20px 16px;
    margin-bottom: 15px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#maincontainer .statBox:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
#maincontainer .statBox::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
#maincontainer .statBox.bg-success { background: linear-gradient(135deg, #43a047, #66bb6a) !important; }
#maincontainer .statBox.bg-secondary { background: linear-gradient(135deg, #546e7a, #78909c) !important; }
#maincontainer .statBox.bg-info { background: linear-gradient(135deg, #00897b, #26a69a) !important; }
#maincontainer .statBox.bg-danger { background: linear-gradient(135deg, #c62828, #ef5350) !important; }
#maincontainer .statBox.bg-warning { background: linear-gradient(135deg, #ef6c00, #ffa726) !important; }
#maincontainer .statBoxHeader {
    font-family: "Ubuntu", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    color: #fff;
    margin: 0;
}
#maincontainer .statBoxContent {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-top: 4px;
    color: #fff;
}

/* ==============================================
   Global Bootstrap overrides for admin area
   ============================================== */

#maincontainer .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

#maincontainer .table { margin-bottom: 0; width: 100%; }
#maincontainer .table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    opacity: 0.5;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-top: none;
}
#maincontainer tr.bg-dark.text-white {
    background: transparent !important;
    color: inherit !important;
}
#maincontainer tr.bg-dark.text-white th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    opacity: 0.5;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-top: none;
    color: inherit !important;
    background: transparent;
}
#maincontainer .table-striped tbody tr:nth-of-type(odd) { background: rgba(255,255,255,0.015); }
#maincontainer .table-hover tbody tr:hover { background: rgba(255,255,255,0.04); }
#maincontainer .table td, #maincontainer .table th {
    border-color: rgba(255,255,255,0.04);
    vertical-align: middle;
    font-size: 13px;
}
#maincontainer .table-bordered { border: none; }
#maincontainer .table-bordered td, #maincontainer .table-bordered th { border-color: rgba(255,255,255,0.04); }

#maincontainer .form-control {
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#maincontainer .form-control:focus {
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.15);
}

#maincontainer .form-control.form-reg-error {
    border-color: #e94560;
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);
}
#maincontainer label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
#maincontainer .form-group { margin-bottom: 16px; }

#maincontainer .btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
#maincontainer .btn:active { transform: scale(0.98); }
#maincontainer .btn-primary { background: linear-gradient(135deg, #1e88e5, #42a5f5); }
#maincontainer .btn-primary:hover { background: linear-gradient(135deg, #1976d2, #2196f3); }
#maincontainer .btn-success { background: linear-gradient(135deg, #43a047, #66bb6a); }
#maincontainer .btn-success:hover { background: linear-gradient(135deg, #388e3c, #4caf50); }
#maincontainer .btn-danger { background: linear-gradient(135deg, #c62828, #ef5350); }
#maincontainer .btn-danger:hover { background: linear-gradient(135deg, #b71c1c, #e53935); }
#maincontainer .btn-info { background: linear-gradient(135deg, #00897b, #26a69a); color: #fff; }
#maincontainer .btn-info:hover { background: linear-gradient(135deg, #00796b, #009688); color: #fff; }
#maincontainer .btn-secondary { background: linear-gradient(135deg, #546e7a, #78909c); }
#maincontainer .btn-outline-secondary { border: 1px solid #78909c !important; color: #546e7a; background: rgba(84,110,122,0.08); }
#maincontainer .btn-outline-secondary:hover { background: #78909c; color: #fff; border-color: #78909c !important; }
#maincontainer .btn-group .btn { border-radius: 0; }
#maincontainer .btn-group .btn:first-child { border-radius: 8px 0 0 8px; }
#maincontainer .btn-group .btn:last-child { border-radius: 0 8px 8px 0; }
#maincontainer .btn-group .btn:only-child { border-radius: 8px; }

#maincontainer .modal-content { border: none; border-radius: 12px; overflow: hidden; }
#maincontainer .modal-header { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 16px 20px; }
#maincontainer .modal-body { padding: 20px; }
#maincontainer .modal-title { font-weight: 700; font-size: 16px; }

#maincontainer .page-item .page-link {
    border-radius: 6px;
    margin: 0 2px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.08);
}

#maincontainer .alert { border: none; border-radius: 10px; font-size: 13px; font-weight: 500; }

#maincontainer details summary { cursor: pointer; font-weight: 600; font-size: 13px; list-style: none; }
#maincontainer details summary::-webkit-details-marker { display: none; }
#maincontainer details summary::before { content: '\F285'; font-family: 'bootstrap-icons'; margin-right: 6px; font-size: 11px; opacity: 0.4; transition: transform 0.15s ease; display: inline-block; }
#maincontainer details[open] summary::before { transform: rotate(90deg); }
#maincontainer details summary:hover { opacity: 0.8; }
#maincontainer details .log-detail { padding: 6px 10px; margin-top: 6px; background: rgba(0,0,0,0.03); border-radius: 6px; font-size: 12px; color: #78909c; }

/* --- Shop item table components --- */
.shop-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(66, 165, 245, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.shop-item-icon img { max-width: 24px; max-height: 24px; }
.shop-item-icon-placeholder { color: #42a5f5; font-size: 16px; opacity: 0.5; }

/* --- Prefix table components --- */
.prefix-preview {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid;
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}
.prefix-colour-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
.prefix-colour-code {
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    color: #90a4ae;
}

/* --- Forum management hierarchy --- */
.forum-parent-row {
    background: rgba(255, 255, 255, 0.03);
}
.forum-parent-row td:first-child {
    border-left: 3px solid #42a5f5;
}
.forum-parent-icon {
    color: #42a5f5;
    font-size: 16px;
    opacity: 0.8;
}
.forum-child-row td:first-child {
    border-left: 3px solid transparent;
}
.forum-depth-1 td:first-child { border-left-color: #26a69a; }
.forum-depth-2 td:first-child { border-left-color: #ab47bc; }
.forum-depth-3 td:first-child { border-left-color: #ffa726; }
.forum-depth-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    opacity: 0.5;
}
.forum-depth-indicator.depth-1 { background: #26a69a; }
.forum-depth-indicator.depth-2 { background: #ab47bc; }
.forum-depth-indicator.depth-3 { background: #ffa726; }
.forum-row-deleted { opacity: 0.5; }
.forum-order-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    min-width: 32px;
}

/* --- Usergroup action dropdown --- */
.usergroup-action-group .form-control {
    font-size: 11px;
    padding: 2px 8px;
    height: auto;
}

/* --- Forum permissions table --- */
.forum-perms-table thead th {
    font-size: 10px !important;
    padding: 10px 6px !important;
    white-space: normal;
    line-height: 1.3;
}
.forum-perms-category {
    background: rgba(66, 165, 245, 0.08) !important;
    border-left: 3px solid #42a5f5;
}
.forum-perms-category td { font-weight: 600; }
.forum-perm-check-parent {
    display: flex;
    justify-content: center;
}
.forum-perm-check-parent input[type="checkbox"] {
    accent-color: #42a5f5;
}

.shop-category-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    opacity: 0.7;
}

/* --- Site Notices --- */
.site-notice {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: none;
    position: relative;
    border-left: 4px solid;
    animation: noticeSlideIn 0.3s ease-out;
}
@keyframes noticeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.site-notice-success {
    background: rgba(40, 167, 69, 0.12);
    border-left-color: #28a745;
    color: #66bb6a;
}
.site-notice-danger {
    background: rgba(220, 53, 69, 0.12);
    border-left-color: #dc3545;
    color: #ef5350;
}
.site-notice-info {
    background: rgba(23, 162, 184, 0.12);
    border-left-color: #17a2b8;
    color: #4dd0e1;
}
.site-notice-icon {
    font-size: 20px;
    margin-right: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}
.site-notice-success .site-notice-icon { color: #66bb6a; }
.site-notice-danger .site-notice-icon { color: #ef5350; }
.site-notice-info .site-notice-icon { color: #4dd0e1; }
.site-notice-content {
    flex: 1;
    min-width: 0;
}
.site-notice-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.site-notice-success .site-notice-title { color: #81c784; }
.site-notice-danger .site-notice-title { color: #ef5350; }
.site-notice-info .site-notice-title { color: #4dd0e1; }
.site-notice-body {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.85;
}
.site-notice-body a {
    font-weight: 600;
    text-decoration: underline;
}
.site-notice-success .site-notice-body a { color: #81c784; }
.site-notice-danger .site-notice-body a { color: #ef5350; }
.site-notice-info .site-notice-body a { color: #4dd0e1; }
.site-notice-close {
    background: none;
    border: none;
    font-size: 14px;
    padding: 0 0 0 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
    margin-top: 1px;
    opacity: 0.4;
    color: inherit;
}
.site-notice-close:hover {
    opacity: 0.8;
}

/* --- Radio timetable --- */
.tt-day-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 4px;
    border: 1px solid rgba(128, 128, 128, 0.1);
    background: transparent;
    color: inherit;
    border-radius: 6px;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.tt-day-btn:hover {
    background: rgba(66, 165, 245, 0.08);
    border-color: rgba(66, 165, 245, 0.2);
    color: inherit;
}
.tt-day-active {
    background: rgba(66, 165, 245, 0.15) !important;
    border-color: #42a5f5 !important;
    color: #42a5f5 !important;
}
.tt-table td, .tt-table th {
    padding: 6px 12px !important;
    font-size: 12px;
}
.tt-time {
    font-weight: 700;
    font-family: "Ubuntu", monospace;
    opacity: 0.6;
}
.tt-col-left {
    border-right: 1px solid rgba(128, 128, 128, 0.08);
}

/* --- Radio connection details --- */
.radio-detail-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.radio-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.08);
}
.radio-detail-item:last-child { border-bottom: none; }
.radio-detail-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.55;
}
.radio-detail-value {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}
.radio-detail-value code {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(66, 165, 245, 0.08);
    color: #42a5f5;
}

/* --- Light theme overrides (radio details, site notices) --- */
body.theme-light .site-notice-info {
    background: rgba(23, 162, 184, 0.18);
    border-left-color: #0d7a8a;
    color: #0a5f6b;
}
body.theme-light .site-notice-info .site-notice-icon { color: #0d7a8a; }
body.theme-light .site-notice-info .site-notice-title { color: #0a5f6b; }
body.theme-light .site-notice-info .site-notice-body { color: #0a5f6b; opacity: 1; }
body.theme-light .site-notice-info .site-notice-body a { color: #066472; }

body.theme-light .radio-detail-label {
    opacity: 0.85;
    color: #5a5a5a;
}
body.theme-light .radio-detail-value {
    color: #333;
}
body.theme-light .radio-detail-value code {
    background: rgba(13, 122, 138, 0.12);
    color: #0d7a8a;
    font-weight: 600;
}
body.theme-light .radio-detail-item {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .contentTitle .Icon { color: #6b6b6b; }
body.theme-light .contentTitle .Text { color: #4a4a4a; }

/* --- Radio timetable light theme --- */
body.theme-light #maincontainer .tt-day-btn {
    color: #4a4a4a !important;
    border-color: rgba(0, 0, 0, 0.12);
}
body.theme-light #maincontainer .tt-day-btn:hover {
    background: rgba(66, 165, 245, 0.12);
    border-color: rgba(66, 165, 245, 0.35);
    color: #1976d2 !important;
}
body.theme-light #maincontainer .tt-day-btn:not(.tt-day-active) {
    color: #4a4a4a !important;
}
body.theme-light #maincontainer .tt-day-active {
    background: rgba(25, 118, 210, 0.15) !important;
    border-color: #1976d2 !important;
    color: #1976d2 !important;
}
body.theme-light .tt-time {
    color: #5a5a5a;
    opacity: 1;
}
body.theme-light .tt-col-left {
    border-right-color: rgba(0, 0, 0, 0.08);
}
body.theme-light .tt-table thead th {
    opacity: 1;
    color: #5a5a5a;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}
body.theme-light .tt-table td,
body.theme-light .tt-table th {
    border-color: rgba(0, 0, 0, 0.06) !important;
    color: #333 !important;
}
body.theme-light #maincontainer .btn-outline-success {
    border: 1px solid #2e7d32 !important;
    color: #1b5e20 !important;
    background: rgba(46, 125, 50, 0.06) !important;
}
body.theme-light #maincontainer .btn-outline-success:hover {
    background: rgba(46, 125, 50, 0.14) !important;
    color: #1b5e20 !important;
    border-color: #2e7d32 !important;
}
body.theme-light #maincontainer .btn-outline-danger {
    border: 1px solid #c62828 !important;
    color: #b71c1c !important;
    background: rgba(198, 40, 40, 0.06) !important;
}
body.theme-light #maincontainer .btn-outline-danger:hover {
    background: rgba(198, 40, 40, 0.14) !important;
    color: #b71c1c !important;
    border-color: #c62828 !important;
}
body.theme-light #maincontainer .btn-outline-primary {
    border: 1px solid #1565c0 !important;
    color: #0d47a1 !important;
    background: rgba(21, 101, 192, 0.06) !important;
}
body.theme-light #maincontainer .btn-outline-primary:hover {
    background: rgba(21, 101, 192, 0.14) !important;
    color: #0d47a1 !important;
    border-color: #1565c0 !important;
}

/* --- Admin changelog light theme --- */
body.theme-light #maincontainer .admin-changelog .text-heading {
    color: #4a4a4a !important;
    opacity: 1;
}
body.theme-light #maincontainer .admin-changelog .card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.theme-light #maincontainer .admin-changelog .card-header {
    background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f5 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #333;
}
body.theme-light #maincontainer .admin-changelog .card-body {
    color: #333;
}
body.theme-light #maincontainer .admin-changelog .form-control {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: #333;
}
body.theme-light #maincontainer .admin-changelog .form-control::placeholder {
    color: #6b7280;
}
body.theme-light #maincontainer .admin-changelog .form-control:focus {
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.2);
}
body.theme-light #maincontainer .admin-changelog label {
    color: #374151;
}
body.theme-light #maincontainer .admin-changelog .btn-outline-info {
    border: 1px solid #0d7a8a !important;
    color: #0a5f6b !important;
    background: rgba(13, 122, 138, 0.1) !important;
}
body.theme-light #maincontainer .admin-changelog .btn-outline-info:disabled {
    border: 1px solid #6b9ba8 !important;
    color: #0a5f6b !important;
    background: rgba(13, 122, 138, 0.18) !important;
    opacity: 1;
}
body.theme-light #maincontainer .admin-changelog .btn-outline-secondary {
    border: 1px solid rgba(0, 0, 0, 0.22) !important;
    color: #4b5563 !important;
    background: #f5f6f8 !important;
}
body.theme-light #maincontainer .admin-changelog .btn-outline-secondary:hover {
    background: #e9edf1 !important;
    color: #111827 !important;
    border-color: rgba(0, 0, 0, 0.32) !important;
}
body.theme-light #maincontainer .admin-changelog .btn-outline-danger {
    border: 1px solid #c62828 !important;
    color: #b71c1c !important;
    background: rgba(198, 40, 40, 0.06) !important;
}
body.theme-light #maincontainer .admin-changelog .btn-outline-danger:hover {
    background: rgba(198, 40, 40, 0.14) !important;
    color: #b71c1c !important;
    border-color: #c62828 !important;
}
body.theme-light #maincontainer .admin-changelog .alert-info {
    background: rgba(23, 162, 184, 0.15);
    border-left: 4px solid #0d7a8a;
    color: #0a5f6b;
}
body.theme-light #maincontainer .admin-changelog .alert-info a {
    color: #066472;
}
body.theme-light #maincontainer .admin-changelog .alert-warning {
    background: rgba(255, 193, 7, 0.15);
    border-left: 4px solid #f9a825;
    color: #5a4a00;
}
body.theme-light #maincontainer .admin-changelog .changelog-entry-item .card-body {
    color: #333;
}
body.theme-light #maincontainer .admin-changelog .changelog-entry-item hr {
    border-color: rgba(0, 0, 0, 0.08);
}
body.theme-light #maincontainer .admin-changelog .entry-drag-handle {
    color: #6b7280 !important;
}
body.theme-light #maincontainer .admin-changelog .entry-drag-handle:hover {
    color: #374151 !important;
}
body.theme-light #maincontainer .admin-changelog .text-muted {
    color: #6b7280 !important;
}
body.theme-light #maincontainer .admin-changelog .ui-state-highlight {
    background: rgba(66, 165, 245, 0.12) !important;
    border: 1px dashed #42a5f5 !important;
}
body.theme-light #maincontainer .admin-changelog .list-group-item {
    color: #333 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* --- Jingle download cards --- */
.jingle-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jingle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.jingle-card .card-body {
    text-align: center;
    padding: 16px;
}
.jingle-card-icon {
    font-size: 24px;
    opacity: 0.4;
    margin-bottom: 8px;
    color: #42a5f5;
}
.jingle-card-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Jingle cards light theme --- */
body.theme-light .jingle-card .card-body {
    color: #333;
}

/* --- Goodies page & Team page light theme --- */
body.theme-light .goodies-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .goodies-header-icon {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.18), rgba(33, 150, 243, 0.08));
    color: #1976d2 !important;
}

body.theme-light .goodies-title {
    color: #1a1a1a;
}

body.theme-light .goodies-subtitle {
    color: #5a5a5a;
    opacity: 0.85;
}

body.theme-light .team-section-label {
    color: #4a4a4a;
    opacity: 0.9;
}

body.theme-light .team-section-icon {
    opacity: 0.7;
}

body.theme-light .team-section-count {
    background: rgba(0, 0, 0, 0.08);
    color: #5a5a5a;
    opacity: 0.9;
}

body.theme-light .team-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .team-card:hover {
    background: #fff;
    border-color: rgba(33, 150, 243, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(33, 150, 243, 0.15);
}

body.theme-light .team-card-banner {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .team-card-avatar {
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.theme-light .team-card:hover .team-card-avatar {
    border-color: rgba(33, 150, 243, 0.5);
}

body.theme-light .team-card-name {
    color: #1a1a1a;
}

body.theme-light .team-card-role {
    color: #5a5a5a;
    opacity: 0.8;
}

body.theme-light .team-status-dot {
    border-color: rgba(255, 255, 255, 0.8);
}

body.theme-light .team-card-leave {
    opacity: 0.35;
}

body.theme-light .team-card-leave:hover {
    opacity: 0.5;
}

body.theme-light .team-card-habbo {
    opacity: 0.45;
}

/* --- Leaderboard page light theme --- */
body.theme-light .goodies-header .goodies-header-icon[style*="ffc107"] {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 193, 7, 0.1)) !important;
    color: #f57f17 !important;
}

body.theme-light .lb-stat-card {
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .lb-stat-green  { background: rgba(76, 175, 80, 0.12); }
body.theme-light .lb-stat-green .lb-stat-number { color: #2e7d32; }

body.theme-light .lb-stat-yellow { background: rgba(255, 193, 7, 0.15); }
body.theme-light .lb-stat-yellow .lb-stat-number { color: #f9a825; }

body.theme-light .lb-stat-red    { background: rgba(239, 83, 80, 0.12); }
body.theme-light .lb-stat-red .lb-stat-number { color: #c62828; }

body.theme-light .lb-stat-purple { background: rgba(133, 89, 136, 0.12); }
body.theme-light .lb-stat-purple .lb-stat-number { color: #7b1fa2; }

body.theme-light .lb-stat-teal   { background: rgba(77, 182, 172, 0.12); }
body.theme-light .lb-stat-teal .lb-stat-number { color: #00897b; }

body.theme-light .lb-stat-blue   { background: rgba(79, 195, 247, 0.12); }
body.theme-light .lb-stat-blue .lb-stat-number { color: #1976d2; }

body.theme-light .lb-stat-label {
    color: #5a5a5a;
    opacity: 0.9;
}

body.theme-light .lb-stat-bg-icon {
    opacity: 0.1;
}

body.theme-light .lb-board-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .lb-board-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
    color: #4a4a4a;
    opacity: 1;
}

body.theme-light .lb-board-header i {
    opacity: 0.8;
}

body.theme-light .lb-board-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .lb-rank {
    background: rgba(0, 0, 0, 0.06);
    color: #5a5a5a;
    opacity: 0.9;
}

body.theme-light .lb-rank-1 {
    background: rgba(255, 193, 7, 0.2);
    color: #f57f17;
}

body.theme-light .lb-rank-2 {
    background: rgba(158, 158, 158, 0.2);
    color: #616161;
}

body.theme-light .lb-rank-3 {
    background: rgba(205, 133, 63, 0.2);
    color: #a0522d;
}

body.theme-light .lb-user a {
    color: #1a1a1a;
}

body.theme-light .lb-user a:hover {
    color: #1976d2;
}

body.theme-light .lb-value {
    color: #1976d2;
}

body.theme-light .lb-value small {
    color: #5a5a5a;
    opacity: 0.85;
}

/* --- Habbo pages light theme (badges, furnis, values, teleporter, etc.) --- */
body.theme-light .goodies-header .goodies-header-icon[style*="ffd54f"],
body.theme-light .goodies-header .goodies-header-icon[style*="ffc107"] {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 193, 7, 0.1)) !important;
    color: #f57f17 !important;
}

body.theme-light .goodies-header .goodies-header-icon[style*="42a5f5"] {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.08)) !important;
    color: #1976d2 !important;
}

body.theme-light .goodies-header .goodies-header-icon[style*="ab47bc"] {
    background: linear-gradient(135deg, rgba(171, 71, 188, 0.2), rgba(171, 71, 188, 0.08)) !important;
    color: #7b1fa2 !important;
}

body.theme-light .goodies-section-label {
    color: #4a4a4a;
    opacity: 0.9;
}

/* Badges & Furnis grid */
body.theme-light .hab-items-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .hab-item-box {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .hab-item-box:hover {
    background: rgba(33, 150, 243, 0.08);
    border-color: rgba(33, 150, 243, 0.25);
}

body.theme-light .hab-item-completed {
    color: #2e7d32;
}

/* Values / Teleporter cards */
body.theme-light .val-board-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .val-item-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .val-item-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .val-item-img {
    background: rgba(0, 0, 0, 0.04);
}

body.theme-light .val-item-name {
    color: #1a1a1a;
}

body.theme-light .val-item-price {
    color: #e65100;
}

body.theme-light .val-search-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .val-search-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
}

body.theme-light .val-search-input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
}

body.theme-light .val-search-input::placeholder {
    color: #9e9e9e;
    opacity: 0.8;
}

body.theme-light .val-preview-card,
body.theme-light .val-chart-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Badges leaderboard (blb) */
body.theme-light .blb-user-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .blb-user-card:hover {
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(255, 193, 7, 0.15);
}

body.theme-light .blb-user-name {
    color: #1a1a1a;
}

body.theme-light .blb-user-count {
    color: #e65100;
}

body.theme-light .blb-sync-section p {
    color: #4a4a4a;
}

body.theme-light .blb-sync-meta {
    color: #9e9e9e !important;
}

/* ct-info-card (shared with contact, badges leaderboard sidebar) */
body.theme-light .ct-info-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .ct-info-block {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .ct-info-block:hover {
    background: rgba(33, 150, 243, 0.04);
}

body.theme-light .ct-info-block strong {
    color: #1a1a1a;
}

body.theme-light .ct-info-block span {
    color: #5a5a5a;
    opacity: 0.95;
}

body.theme-light .ct-info-icon {
    background: rgba(33, 150, 243, 0.12);
    color: #1976d2;
}

body.theme-light .ct-info-block .ct-info-icon[style*="255,213,79"] {
    background: rgba(255, 193, 7, 0.15) !important;
    color: #f57f17 !important;
}

/* goodies-warning light mode */
body.theme-light .goodies-warning {
    background: rgba(233, 69, 96, 0.08);
    border-color: rgba(233, 69, 96, 0.2);
}

body.theme-light .goodies-warning > i,
body.theme-light .goodies-warning strong {
    color: #c62828;
}

/* Events timetable (evt) */
body.theme-light .evt-room-link {
    background: rgba(33, 150, 243, 0.12);
    color: #1976d2;
}

body.theme-light .evt-room-link:hover {
    background: rgba(33, 150, 243, 0.2);
}

body.theme-light .evt-winner-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .evt-winner-name {
    color: #1a1a1a;
}

body.theme-light .evt-winner-value {
    color: #5a5a5a;
    opacity: 0.9;
}

/* --- Goodies pages light theme (imager, alterations, kissing) --- */
body.theme-light .goodies-form-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .goodies-preview-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .goodies-display {
    background: linear-gradient(180deg, rgba(79, 195, 247, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
}

body.theme-light .goodies-input-group label {
    color: #4a4a4a;
    opacity: 0.9;
}

body.theme-light .goodies-control-label {
    color: #4a4a4a;
    opacity: 0.9;
}

body.theme-light .goodies-direction-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .goodies-direction-btn:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
}

body.theme-light .goodies-template {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .goodies-template:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.14);
}

body.theme-light .goodies-template.selected {
    border-color: #1976d2;
    background: rgba(33, 150, 243, 0.1);
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.2);
}

body.theme-light .goodies-template-check {
    background: #1976d2;
    color: #fff;
}

/* Fix hr in goodies imager */
body.theme-light .goodies-form-card hr {
    border-color: rgba(0, 0, 0, 0.08);
}

/* Events timetable day tabs (tt-day-tab) */
body.theme-light .tt-day-tab {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .tt-day-tab:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

body.theme-light .tt-day-tab.active {
    background: rgba(156, 39, 176, 0.12);
    border-color: rgba(156, 39, 176, 0.3);
}

body.theme-light .tt-day-tab .tt-day-full,
body.theme-light .tt-day-tab .tt-day-abbr {
    color: #1a1a1a;
}

body.theme-light .tt-day-tab.active .tt-day-full,
body.theme-light .tt-day-tab.active .tt-day-abbr {
    color: #7b1fa2;
}

body.theme-light .tt-day-count {
    background: rgba(0, 0, 0, 0.08);
    color: #5a5a5a;
}

body.theme-light .tt-day-tab.active .tt-day-count {
    background: rgba(156, 39, 176, 0.15);
    color: #7b1fa2;
}

/* Events/Radio timetable (tt-schedule) */
body.theme-light .tt-schedule-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .tt-schedule-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
    color: #4a4a4a;
    opacity: 1;
}

body.theme-light .tt-slot-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .tt-slot-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .tt-slot-time {
    background: rgba(156, 39, 176, 0.12);
    color: #7b1fa2;
}

body.theme-light .tt-slot-event {
    color: #1a1a1a;
}

body.theme-light .tt-slot-host {
    color: #5a5a5a;
    opacity: 0.9;
}

body.theme-light .tt-slot-host a {
    color: #1976d2;
}

body.theme-light .tt-empty {
    color: #5a5a5a;
}

/* --- Value item cards (teleporter grid) --- */
.value-item-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}
.value-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.value-item-img {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(66, 165, 245, 0.06);
    border-radius: 10px;
    padding: 6px;
}
.value-item-img img {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
}
.value-item-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: inherit;
}
.value-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #66bb6a;
    margin-bottom: 6px;
}
.value-item-updated {
    font-size: 11px;
    opacity: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* --- Value form preview header --- */
.value-form-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(128, 128, 128, 0.06);
    border: 1px solid rgba(128, 128, 128, 0.08);
}
.value-form-preview-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(66, 165, 245, 0.08);
    border-radius: 10px;
    padding: 6px;
}
.value-form-preview-img img {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
}
.value-form-preview-info {
    flex: 1;
    min-width: 0;
}
.value-form-preview-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.value-form-preview-meta {
    font-size: 12px;
    opacity: 0.5;
    margin-top: 2px;
}
.value-form-preview-price {
    font-size: 20px;
    font-weight: 700;
    color: #66bb6a;
    flex-shrink: 0;
    white-space: nowrap;
}

/* --- Leave cards --- */
.leave-card {
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.leave-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.leave-card-accent {
    height: 4px;
    width: 100%;
}
.accent-leave-approved { background: linear-gradient(90deg, #43a047, #66bb6a); }
.accent-leave-pending  { background: linear-gradient(90deg, #ef6c00, #ffa726); }
.accent-leave-declined { background: linear-gradient(90deg, #c62828, #ef5350); }
.accent-leave-ended    { background: linear-gradient(90deg, #546e7a, #78909c); }

.leave-status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.leave-badge-approved { background: rgba(40, 167, 69, 0.12); color: #66bb6a; }
.leave-badge-pending  { background: rgba(255, 167, 38, 0.12); color: #ffa726; }
.leave-badge-declined { background: rgba(220, 53, 69, 0.12); color: #ef5350; }
.leave-badge-ended    { background: rgba(120, 144, 156, 0.12); color: #90a4ae; }

.leave-reason {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}
.leave-dates {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(128, 128, 128, 0.08);
}
.leave-date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.leave-date-icon {
    font-size: 16px;
    opacity: 0.3;
    flex-shrink: 0;
}
.leave-date-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.4;
}
.leave-date-value {
    font-size: 13px;
    font-weight: 600;
}

/* --- Handbook accept bar --- */
.handbook-accept-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 10px;
    background: rgba(40, 167, 69, 0.06);
    border: 1px solid rgba(40, 167, 69, 0.15);
    margin-bottom: 16px;
}
.handbook-accept-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.handbook-accept-icon {
    font-size: 24px;
    color: #28a745;
    opacity: 0.6;
    flex-shrink: 0;
}
.handbook-accept-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    min-width: 0;
}
.handbook-accept-text strong { font-size: 14px; }
.handbook-accept-text span { opacity: 0.55; font-size: 12px; }
.handbook-accept-bar .btn {
    white-space: nowrap;
    flex-shrink: 0;
}
@media (max-width: 575px) {
    .handbook-accept-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* --- Image uploader components --- */
.upload-dropzone {
    position: relative;
    border: 2px dashed rgba(66, 165, 245, 0.25);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.upload-dropzone:hover,
.upload-dropzone-active {
    border-color: #42a5f5;
    background: rgba(66, 165, 245, 0.04);
}
.upload-dropzone-icon {
    font-size: 36px;
    opacity: 0.3;
    margin-bottom: 8px;
}
.upload-dropzone-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}
.upload-dropzone-hint {
    font-size: 11px;
    opacity: 0.4;
}
.upload-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-preview-wrap { margin-top: 12px; }
.upload-preview-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(128, 128, 128, 0.1);
}
.upload-preview-card img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.15);
    display: block;
}
.upload-preview-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
}
.upload-preview-name {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 50px);
}

.upload-card {
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.upload-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.upload-card-thumb {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.1);
}
.upload-card .card-body { padding: 12px; }
.upload-link-input {
    font-size: 11px !important;
}
.upload-card-time {
    font-size: 11px;
    opacity: 0.4;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Staff member directory cards --- */
.staff-member-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}
.staff-member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.staff-member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin: 0 auto 12px;
    border: 3px solid rgba(66, 165, 245, 0.2);
}
.staff-member-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.staff-member-habbo {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.staff-member-habbo .bi { font-size: 11px; }
.staff-member-hotel { opacity: 0.7; }
.staff-member-discord {
    font-size: 12px;
    font-weight: 500;
    color: #5865F2;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.staff-member-discord .bi { font-size: 14px; }
.staff-member-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}
.staff-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(66, 165, 245, 0.1);
    color: #42a5f5;
}
.staff-member-joined {
    font-size: 11px;
    opacity: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(128, 128, 128, 0.08);
}

/* --- Dashboard welcome banner --- */
.dash-welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 10px;
    background: rgba(66, 165, 245, 0.06);
    border-left: 4px solid #42a5f5;
}
.dash-welcome-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-welcome-greeting {
    font-size: 15px;
    font-weight: 600;
}
.dash-welcome-sub {
    font-size: 12px;
    opacity: 0.5;
}
.dash-welcome-date {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.45;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
@media (max-width: 575px) {
    .dash-welcome-banner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* --- Portfolio cards --- */
.portfolio-card {
    position: relative;
    overflow: hidden;
}
.portfolio-card-accent {
    height: 4px;
    width: 100%;
}
.portfolio-card-accent.accent-red    { background: linear-gradient(90deg, #c62828, #ef5350); }
.portfolio-card-accent.accent-pink   { background: linear-gradient(90deg, #ad1457, #ec407a); }
.portfolio-card-accent.accent-purple { background: linear-gradient(90deg, #7b1fa2, #ab47bc); }
.portfolio-card-accent.accent-teal   { background: linear-gradient(90deg, #00897b, #26a69a); }
.portfolio-card-accent.accent-blue   { background: linear-gradient(90deg, #1e88e5, #42a5f5); }
.portfolio-card-accent.accent-orange { background: linear-gradient(90deg, #ef6c00, #ffa726); }

.portfolio-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.portfolio-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.portfolio-card-icon.icon-red    { background: rgba(198, 40, 40, 0.12); color: #ef5350; }
.portfolio-card-icon.icon-pink   { background: rgba(173, 20, 87, 0.12); color: #ec407a; }
.portfolio-card-icon.icon-purple { background: rgba(123, 31, 162, 0.12); color: #ab47bc; }
.portfolio-card-icon.icon-teal   { background: rgba(0, 137, 123, 0.12); color: #26a69a; }
.portfolio-card-icon.icon-blue   { background: rgba(30, 136, 229, 0.12); color: #42a5f5; }
.portfolio-card-icon.icon-orange { background: rgba(239, 108, 0, 0.12); color: #ffa726; }

.portfolio-card-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.portfolio-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.portfolio-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.08);
}
.portfolio-stat-row:last-child {
    border-bottom: none;
}
.portfolio-stat-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.55;
}
.portfolio-stat-value {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}
.portfolio-stat-value small {
    font-weight: 400;
    opacity: 0.5;
    font-size: 11px;
}
.portfolio-stat-truncate {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-progress-wrap {
    padding: 0 0 8px;
}
.portfolio-progress {
    height: 5px;
    border-radius: 3px;
    background: rgba(128, 128, 128, 0.12);
}
.portfolio-progress .progress-bar {
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* --- Staff review cards (light + dark compatible) --- */
.review-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.review-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
    background: rgba(128, 128, 128, 0.06);
}
.review-card-body {
    padding: 20px;
}
.review-dept-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(66, 165, 245, 0.12);
    color: #42a5f5;
    margin-top: 4px;
}
.review-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(128, 128, 128, 0.2);
    transition: background 0.2s ease;
}
.review-colour-indicator {
    display: flex;
    align-items: center;
}
.review-info-text {
    font-size: 13px;
    line-height: 1.6;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(66, 165, 245, 0.06);
    border-left: 3px solid rgba(66, 165, 245, 0.3);
    color: inherit;
    opacity: 0.8;
}
.review-progress-card {
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(128, 128, 128, 0.06);
    border: 1px solid rgba(128, 128, 128, 0.1);
}
.review-progress-card .progress {
    background: rgba(128, 128, 128, 0.15);
}
.review-fields-divider {
    height: 1px;
    background: rgba(128, 128, 128, 0.15);
    margin: 16px 0 20px;
}
.review-empty-data {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: rgba(128, 128, 128, 0.06);
    color: inherit;
    opacity: 0.5;
    font-size: 13px;
}
.review-colour-select {
    padding-left: 12px;
}

/* --- Staff overview stat cells (light + dark compatible) --- */
.overview-stat-cell {
    display: inline-block;
    min-width: 32px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(128, 128, 128, 0.08);
    opacity: 0.4;
}
.overview-stat-cell.has-value {
    opacity: 1;
    background: rgba(66, 165, 245, 0.1);
    color: #42a5f5;
}
.overview-stat-cell.target-met {
    opacity: 1;
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

/* --- Alertify dialog overrides (dark theme) --- */
.ajs-dimmer {
    background: rgba(0, 0, 0, 0.6) !important;
}
.ajs-modal .ajs-dialog {
    background: #1e1e2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-width: 420px;
}
.ajs-header {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 16px 20px !important;
    font-size: 16px;
    font-weight: 700;
    color: #e0e0e0;
}
.ajs-body {
    padding: 20px !important;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
}
.ajs-body .ajs-content {
    padding: 0 !important;
}
.ajs-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 12px 20px !important;
}
.ajs-footer .ajs-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.ajs-footer .ajs-buttons .ajs-button {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
    min-width: 80px;
    text-align: center;
}
.ajs-footer .ajs-buttons .ajs-button:active {
    transform: scale(0.97);
}
.ajs-footer .ajs-buttons .ajs-button.ajs-ok {
    background: linear-gradient(135deg, #43a047, #66bb6a);
    color: #fff;
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.3);
}
.ajs-footer .ajs-buttons .ajs-button.ajs-ok:hover {
    background: linear-gradient(135deg, #388e3c, #4caf50);
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.4);
}
.ajs-footer .ajs-buttons .ajs-button.ajs-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: #b0b0b0;
}
.ajs-footer .ajs-buttons .ajs-button.ajs-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e0e0e0;
}
.ajs-close {
    color: #b0b0b0 !important;
    top: 12px !important;
    right: 12px !important;
    font-size: 18px;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}
.ajs-close:hover {
    opacity: 1;
}

/* ==========================================
   REVAMPED PROFILE PAGE
   ========================================== */

.revamped-profile {
    margin: -15px -15px 0 -15px;
}

/* Hero Section */
.rp-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.rp-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-color: #4a6fa5;
}

.rp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}

.rp-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px 30px;
    z-index: 2;
}

.rp-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.9);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #2a2d35;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.rp-identity {
    margin-left: 20px;
    padding-bottom: 4px;
    flex: 1;
    min-width: 0;
}

.rp-username {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin: 0 0 6px 0;
    line-height: 1.2;
    font-family: 'PT Sans', 'Helvetica Neue', sans-serif;
}

.rp-username img {
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Social Links */
.rp-socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rp-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: #fff !important;
    font-size: 16px;
    transition: all 0.2s ease;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.2);
}

.rp-social-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.rp-social-instagram:hover { background: #E1306C; border-color: #E1306C; }
.rp-social-discord:hover { background: #5865F2; border-color: #5865F2; }
.rp-social-youtube:hover { background: #FF0000; border-color: #FF0000; }
.rp-social-twitch:hover { background: #9146FF; border-color: #9146FF; }

/* Quick Stats Bar */
.rp-quickstats {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.rp-quickstat {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    background: rgba(255,255,255,0.07);
    border-right: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}

.rp-quickstat:last-child {
    border-right: none;
}

.rp-quickstat:hover {
    background: rgba(255,255,255,0.12);
}

.rp-quickstat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #4fc3f7;
    line-height: 1.2;
    font-family: 'PT Sans', sans-serif;
}

.rp-quickstat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    margin-top: 2px;
}

/* Section Headers */
.rp-section-header {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 0 8px 0;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    opacity: 0.7;
}

.rp-section-header i {
    margin-right: 6px;
    font-size: 14px;
}

/* Cards */
.rp-card {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* About Card - Info Rows */
.rp-info-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s ease;
}

.rp-info-row:last-child {
    margin-bottom: 0;
}

.rp-info-row:hover {
    background: rgba(255,255,255,0.06);
}

.rp-info-row > i {
    width: 28px;
    text-align: center;
    font-size: 14px;
    opacity: 0.5;
    flex-shrink: 0;
}

.rp-info-label {
    font-size: 12px;
    font-weight: 600;
    margin-right: auto;
    padding-right: 8px;
}

.rp-info-value {
    font-size: 12px;
    opacity: 0.7;
    text-align: right;
}

/* Accolades */
.rp-card-accolades {
    padding: 12px;
}

.rp-accolade-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    background: rgba(255,255,255,0.02);
    border-left: 3px solid rgba(255,255,255,0.1);
    transition: background 0.15s ease;
}

.rp-accolade-row:hover {
    background: rgba(255,255,255,0.05);
}

.rp-accolade-name {
    font-weight: 700;
    font-size: 12px;
}

.rp-accolade-date {
    font-size: 11px;
    opacity: 0.5;
    white-space: nowrap;
    margin-left: 10px;
}

/* Badges */
.rp-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.rp-badge {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rp-badge:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.rp-badge img {
    max-width: 40px;
    max-height: 40px;
}

/* Activity Items (Threads/Posts) */
.rp-card-activity {
    padding: 8px;
}

.rp-activity-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: background 0.15s ease;
}

.rp-activity-item:last-child {
    margin-bottom: 0;
}

.rp-activity-item:hover {
    background: rgba(255,255,255,0.04);
}

.rp-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(79, 195, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
    font-size: 14px;
    color: #4fc3f7;
}

.rp-activity-content {
    flex: 1;
    min-width: 0;
}

.rp-activity-content a {
    display: block;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-activity-content small {
    font-size: 11px;
    opacity: 0.5;
    font-style: italic;
}

/* Visitors */
.rp-card-visitors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.rp-visitor {
    width: 60px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.rp-visitor:hover {
    transform: translateY(-2px);
}

.rp-visitor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: top center;
    margin: 0 auto 4px;
    border: 2px solid rgba(255,255,255,0.1);
    transition: border-color 0.15s ease;
}

.rp-visitor:hover .rp-visitor-avatar {
    border-color: #4fc3f7;
}

.rp-visitor-name {
    font-size: 10px;
    opacity: 0.5;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Compose Card */
.rp-card-compose {
    padding: 16px;
}

.rp-card-compose .btn-primary {
    border-radius: 6px;
    font-weight: 600;
    padding: 10px;
    font-size: 13px;
}

/* Messages Card */
.rp-card-messages {
    padding: 12px;
}

/* Responsive */
@media (max-width: 991px) {
    .rp-hero {
        height: 220px;
    }

    .rp-avatar {
        width: 90px;
        height: 90px;
    }

    .rp-username {
        font-size: 20px;
    }

    .rp-hero-content {
        padding: 16px 20px;
    }

    .rp-quickstats {
        flex-wrap: wrap;
    }

    .rp-quickstat {
        flex-basis: 33.33%;
    }
}

@media (max-width: 576px) {
    .rp-hero {
        height: 200px;
    }

    .rp-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }

    .rp-avatar {
        width: 80px;
        height: 80px;
    }

    .rp-identity {
        margin-left: 0;
        margin-top: 8px;
    }

    .rp-socials {
        justify-content: center;
    }

    .rp-username {
        font-size: 18px;
    }

    .rp-quickstat {
        flex-basis: 50%;
    }

    .rp-quickstat-value {
        font-size: 16px;
    }
}

/* --- Revamped Profile light theme --- */
body.theme-light .rp-quickstats {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.theme-light .rp-quickstat {
    background: #fff;
    border-right-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .rp-quickstat:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .rp-quickstat-value {
    color: #1976d2;
}

body.theme-light .rp-quickstat-label {
    color: #5a5a5a;
    opacity: 0.9;
}

body.theme-light .rp-section-header {
    color: #4a4a4a;
}

body.theme-light .rp-section-header i {
    opacity: 0.8;
}

body.theme-light .rp-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .rp-info-row {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

body.theme-light .rp-info-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .rp-info-row > i {
    color: #5a5a5a;
    opacity: 0.7;
}

body.theme-light .rp-info-label {
    color: #4a4a4a;
}

body.theme-light .rp-info-value {
    color: #1a1a1a;
    opacity: 0.9;
}

body.theme-light .rp-accolade-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .rp-accolade-date {
    color: #5a5a5a;
    opacity: 0.85;
}

body.theme-light .rp-badge {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .rp-badge:hover {
    background: rgba(33, 150, 243, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.theme-light .rp-activity-item:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .rp-activity-icon {
    background: rgba(33, 150, 243, 0.12);
    color: #1976d2;
}

body.theme-light .rp-activity-content a {
    color: #1976d2;
}

body.theme-light .rp-activity-content a:hover {
    color: #0d47a1;
}

body.theme-light .rp-activity-content small {
    color: #5a5a5a;
    opacity: 0.85;
}

body.theme-light .rp-visitor-avatar {
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .rp-visitor:hover .rp-visitor-avatar {
    border-color: #1976d2;
}

body.theme-light .rp-visitor-name {
    color: #5a5a5a;
    opacity: 0.9;
}

/* Profile feed comments (commentHolder) light theme */
body.theme-light .revamped-profile .commentHolder > .contentHolder {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a !important;
}

body.theme-light .revamped-profile .commentHolder > .buttonsHolder {
    background: rgba(0, 0, 0, 0.04);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .revamped-profile .commentHolder .contentHolder a {
    color: #1976d2;
}

body.theme-light .revamped-profile .commentHolder .contentHolder a:hover {
    color: #0d47a1;
}

body.theme-light .revamped-profile .commentHolder small i,
body.theme-light .revamped-profile .commentHolder .buttonsHolder i {
    color: #5a5a5a !important;
}

body.theme-light .revamped-profile .commentHolder small i:hover,
body.theme-light .revamped-profile .commentHolder .buttonsHolder i:hover {
    color: #1976d2 !important;
}

body.theme-light .revamped-profile .profile-stat {
    color: #1976d2 !important;
}

body.theme-light .revamped-profile .profile-stat i {
    color: #1976d2 !important;
}

body.theme-light .revamped-profile .smallAvatar {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ==========================================
   DEVELOPMENT BANNER
   ========================================== */

.dev-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 2px solid #0f3460;
    padding: 8px 20px;
    z-index: 9999;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.dev-banner-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.3px;
}

.dev-banner-inner i {
    font-size: 16px;
    color: #e94560;
    flex-shrink: 0;
}

.dev-banner-inner strong {
    color: #e94560;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-banner-close {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 12px;
    padding: 0;
}

.dev-banner-close:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: rgba(233, 69, 96, 0.4);
    color: #e94560;
}

/* ==========================================
   GOODIES PAGES (Shared Styles)
   ========================================== */

.goodies-page {
    padding-bottom: 20px;
}

/* Page Header */
.goodies-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255,255,255,0.06);
}

.goodies-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79,195,247,0.15), rgba(79,195,247,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #4fc3f7;
    flex-shrink: 0;
}

.goodies-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    font-family: 'PT Sans', 'Helvetica Neue', sans-serif;
}

.goodies-subtitle {
    font-size: 12px;
    opacity: 0.5;
    margin: 2px 0 0 0;
}

/* Warning Banner */
.goodies-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.2);
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.5;
}

.goodies-warning > i {
    color: #e94560;
    font-size: 16px;
    flex-shrink: 0;
}

.goodies-warning strong {
    color: #e94560;
}

/* Success Banner (auth, etc.) */
.goodies-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(67, 160, 71, 0.1);
    border: 1px solid rgba(67, 160, 71, 0.2);
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.5;
}

.goodies-success > i {
    color: #66bb6a;
    font-size: 16px;
    flex-shrink: 0;
}

.goodies-success strong {
    color: #66bb6a;
}

/* Auth form layout (centered, narrow) */
.auth-form-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

.auth-form-wrapper .goodies-form-card {
    margin-bottom: 16px;
}

.auth-form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.auth-form-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-form-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.auth-form-links a {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.auth-form-links a:hover {
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}

.auth-back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.6;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.auth-back-link a {
    color: inherit;
}

.auth-back-link:hover {
    opacity: 0.9;
}

.auth-back-link a:hover {
    text-decoration: none;
    color: inherit;
}

.auth-back-link i {
    font-size: 14px;
}

/* Section Label */
.goodies-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.6;
    margin: 20px 0 12px 0;
}

.goodies-section-label i {
    margin-right: 4px;
}

/* Preview Card */
.goodies-preview-card {
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

.goodies-display {
    background: linear-gradient(180deg, rgba(79,195,247,0.06) 0%, rgba(0,0,0,0) 100%);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.goodies-display-compact {
    min-height: 160px;
    padding: 16px;
}

.goodies-display img {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

/* Form Card */
.goodies-form-card {
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 20px;
    margin-bottom: 16px;
}

/* Input Groups */
.goodies-input-group {
    margin-bottom: 14px;
}

.goodies-input-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    margin-bottom: 6px;
    display: block;
}

.goodies-input-group label i {
    margin-right: 4px;
}

.goodies-input-group .form-control {
    border-radius: 8px;
    font-size: 13px;
    padding: 10px 14px;
    height: auto;
}

/* Generate Button */
.goodies-btn-generate {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #4fc3f7, #2196f3);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.goodies-btn-generate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33,150,243,0.3);
}

/* Control Label (for directions etc.) */
.goodies-control-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
    margin-bottom: 8px;
    margin-top: 12px;
}

.goodies-control-label i {
    margin-right: 4px;
}

/* Direction Buttons */
.goodies-direction-section {
    margin-top: 12px;
}

.goodies-direction-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.goodies-direction-btn {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.goodies-direction-btn:hover {
    background: rgba(79,195,247,0.1);
    border-color: rgba(79,195,247,0.25);
}

.goodies-direction-btn img {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
}

/* Templates Grid (Alterations / Kissing styles) */
.goodies-templates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.goodies-template {
    position: relative;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.06);
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    overflow: hidden;
}

.goodies-template:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.goodies-template.selected {
    border-color: #4fc3f7;
    background: rgba(79,195,247,0.08);
    box-shadow: 0 2px 12px rgba(79,195,247,0.15);
}

.goodies-template img {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.goodies-template-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4fc3f7;
    color: #fff;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(79,195,247,0.3);
}

.goodies-template.selected .goodies-template-check {
    display: flex;
}

/* Responsive */
@media (max-width: 767px) {
    .goodies-header {
        flex-direction: column;
        text-align: center;
    }

    .goodies-display {
        min-height: 160px;
    }

    .goodies-templates-grid {
        justify-content: center;
    }
}

/* ==========================================
   DISCORD PAGE
   ========================================== */

.discord-hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(88,101,242,0.15);
    margin-bottom: 16px;
}

.discord-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(88,101,242,0.12) 0%, rgba(79,195,247,0.06) 100%);
}

.discord-hero-content {
    position: relative;
    padding: 32px;
    text-align: center;
    z-index: 1;
}

.discord-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #5865F2;
    color: #fff;
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(88,101,242,0.3);
}

.discord-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-family: 'PT Sans', 'Helvetica Neue', sans-serif;
}

.discord-desc {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.7;
    max-width: 480px;
    margin: 0 auto 20px;
}

.discord-desc strong {
    opacity: 1;
    color: #4fc3f7;
}

.discord-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    background: #5865F2;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(88,101,242,0.25);
}

.discord-join-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88,101,242,0.35);
}

/* Feature Cards */
.discord-feature {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 18px 14px;
    text-align: center;
    margin-bottom: 16px;
    transition: background 0.15s ease;
}

.discord-feature:hover {
    background: rgba(255,255,255,0.06);
}

.discord-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(88,101,242,0.12);
    color: #5865F2;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.discord-feature strong {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.discord-feature span {
    font-size: 11px;
    opacity: 0.5;
    line-height: 1.4;
}

/* Widget Card */
.discord-widget-card {
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

@media (max-width: 991px) {
    .discord-hero-content {
        padding: 24px 16px;
    }

    .discord-heading {
        font-size: 18px;
    }
}

/* ==========================================
   LEADERBOARD PAGE
   ========================================== */

/* Stats Grid */
.lb-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.lb-stat-card {
    position: relative;
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.lb-stat-number {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'PT Sans', sans-serif;
    position: relative;
    z-index: 1;
}

.lb-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.lb-stat-bg-icon {
    position: absolute;
    right: -4px;
    bottom: -6px;
    font-size: 48px;
    opacity: 0.06;
    z-index: 0;
}

.lb-stat-green  { background: rgba(76,175,80,0.1); }
.lb-stat-green .lb-stat-number { color: #66bb6a; }

.lb-stat-yellow { background: rgba(255,193,7,0.1); }
.lb-stat-yellow .lb-stat-number { color: #ffca28; }

.lb-stat-red    { background: rgba(239,83,80,0.1); }
.lb-stat-red .lb-stat-number { color: #ef5350; }

.lb-stat-purple { background: rgba(133,89,136,0.1); }
.lb-stat-purple .lb-stat-number { color: #ab47bc; }

.lb-stat-teal   { background: rgba(77,182,172,0.1); }
.lb-stat-teal .lb-stat-number { color: #4db6ac; }

.lb-stat-blue   { background: rgba(79,195,247,0.1); }
.lb-stat-blue .lb-stat-number { color: #4fc3f7; }

/* Board Cards */
.lb-board-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 16px;
    overflow: hidden;
}

.lb-board-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0.7;
}

.lb-board-header i {
    font-size: 14px;
}

.lb-board-list {
    padding: 6px 0;
}

.lb-board-row {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    transition: background 0.12s ease;
}

.lb-board-row:hover {
    background: rgba(255,255,255,0.03);
}

/* Rank Badge */
.lb-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 12px;
    background: rgba(255,255,255,0.05);
    opacity: 0.5;
}

.lb-rank-1 {
    background: rgba(255,215,0,0.15);
    color: #ffd700;
    opacity: 1;
}

.lb-rank-2 {
    background: rgba(192,192,192,0.15);
    color: #c0c0c0;
    opacity: 1;
}

.lb-rank-3 {
    background: rgba(205,133,63,0.15);
    color: #cd853f;
    opacity: 1;
}

.lb-rank-1 i, .lb-rank-2 i, .lb-rank-3 i {
    font-size: 13px;
}

/* User Name */
.lb-user {
    flex: 1;
    min-width: 0;
    font-size: 12px;
}

.lb-user a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Value */
.lb-value {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 8px;
    color: #4fc3f7;
}

.lb-value small {
    font-weight: 400;
    opacity: 0.5;
    margin-left: 2px;
    color: inherit;
}

/* Responsive */
@media (max-width: 991px) {
    .lb-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .lb-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lb-stat-number {
        font-size: 18px;
    }
}

/* ==========================================
   FORUM - LATEST THREADS PAGE
   ========================================== */
.forum-latest-page .forum-latest-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.forum-latest-page .forum-latest-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.12s ease;
}

.forum-latest-page .forum-latest-row:last-child {
    border-bottom: none;
}

.forum-latest-page .forum-latest-row:hover {
    background: rgba(255,255,255,0.03);
}

.forum-latest-page .forum-latest-main {
    min-width: 0;
    flex: 1;
}

.forum-latest-page .forum-latest-title {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    text-decoration: none;
}

.forum-latest-page .forum-latest-meta {
    font-size: 12px;
    opacity: 0.85;
}

.forum-latest-page .forum-latest-meta a {
    font-weight: 700;
}

.forum-latest-page .forum-latest-stats {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.forum-latest-page .forum-latest-stat {
    min-width: 62px;
    padding: 6px 8px;
    text-align: center;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255,255,255,0.06);
}

.forum-latest-page .forum-latest-stat span {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.forum-latest-page .forum-latest-last {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 240px;
    flex-shrink: 0;
}

.forum-latest-page .forum-latest-avatar {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background-size: cover;
    background-image: url(/img/avatars/default.gif);
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.forum-latest-page .forum-latest-last-info {
    min-width: 0;
}

.forum-latest-page .forum-latest-last-thread {
    display: block;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.forum-latest-page .forum-latest-last-meta {
    font-size: 11px;
    opacity: 0.8;
}

.forum-latest-page .forum-latest-pagination {
    padding: 14px 16px 6px;
}

.forum-latest-page .forum-latest-empty {
    text-align: center;
    padding: 34px 16px;
    font-size: 13px;
    opacity: 0.85;
}

.forum-latest-page .forum-latest-empty i {
    font-size: 30px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.65;
}

.forum-latest-page .forum-latest-empty p {
    margin-bottom: 4px !important;
    font-weight: 700;
}

.forum-latest-page .forum-latest-empty small {
    font-size: 12px;
}

body.theme-light .forum-latest-page .forum-latest-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-latest-page .forum-latest-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-latest-page .forum-latest-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .forum-latest-page .forum-latest-title {
    color: #1a1a1a;
}

body.theme-light .forum-latest-page .forum-latest-title:hover {
    color: #1976d2;
}

body.theme-light .forum-latest-page .forum-latest-meta,
body.theme-light .forum-latest-page .forum-latest-last-meta {
    color: #5a5a5a;
}

body.theme-light .forum-latest-page .forum-latest-empty {
    color: #5a5a5a;
}

body.theme-light .forum-latest-page .forum-latest-stat {
    background: rgba(0, 0, 0, 0.05);
    color: #5a5a5a;
}

body.theme-light .forum-latest-page .forum-latest-stat span {
    color: #1a1a1a;
}

body.theme-light .forum-latest-page .forum-latest-avatar {
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body.theme-dark .forum-latest-page .forum-latest-title {
    color: #f1f1f1;
}

body.theme-dark .forum-latest-page .forum-latest-title:hover {
    color: #64b5f6;
}

body.theme-dark .forum-latest-page .forum-latest-meta,
body.theme-dark .forum-latest-page .forum-latest-last-meta {
    color: rgba(255,255,255,0.7);
}

body.theme-dark .forum-latest-page .forum-latest-empty {
    color: rgba(255,255,255,0.78);
}

@media (max-width: 991px) {
    .forum-latest-page .forum-latest-row {
        flex-wrap: wrap;
    }

    .forum-latest-page .forum-latest-last {
        display: none;
    }

    .forum-latest-page .forum-latest-stats {
        order: -1;
    }
}

/* ==========================================
   FORUM - HOME PAGE
   ========================================== */
.forum-home-page .forum-home-section {
    margin-bottom: 16px;
}

.forum-home-page .forum-home-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.forum-home-page .forum-home-card {
    margin-bottom: 0;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.forum-home-page .forum-home-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.12s ease;
}

.forum-home-page .forum-home-row:last-child {
    border-bottom: none;
}

.forum-home-page .forum-home-row:hover {
    background: rgba(255,255,255,0.03);
}

.forum-home-page .forum-home-row-faded {
    opacity: 0.65;
}

.forum-home-page .forum-home-main {
    min-width: 0;
    flex: 1;
}

.forum-home-page .forum-home-main-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.forum-home-page .forum-home-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
}

.forum-home-page .forum-home-main-content {
    min-width: 0;
}

.forum-home-page .forum-home-title {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    text-decoration: none;
}

.forum-home-page .forum-home-desc {
    font-size: 12px;
    opacity: 0.85;
}

.forum-home-page .forum-home-stats {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.forum-home-page .forum-latest-stat {
    min-width: 72px;
    padding: 7px 9px;
    text-align: center;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
}

.forum-home-page .forum-latest-stat span {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2px;
}

.forum-home-page .forum-home-last {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 280px;
    flex-shrink: 0;
}

.forum-home-page .forum-home-last-avatar {
    width: 44px;
    height: 44px;
}

.forum-home-page .forum-home-last-info {
    min-width: 0;
}

.forum-home-page .forum-latest-last-thread {
    display: block;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.forum-home-page .forum-latest-last-meta {
    font-size: 11px;
    opacity: 0.82;
}

.forum-home-page .forum-latest-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(/img/avatars/default.gif);
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: none;
}

.forum-home-page .forum-home-no-post {
    font-size: 12px;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.theme-light .forum-home-page .forum-home-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-home-page .forum-home-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-home-page .forum-home-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .forum-home-page .forum-home-title {
    color: #1a1a1a;
}

body.theme-light .forum-home-page .forum-home-title:hover {
    color: #1976d2;
}

body.theme-light .forum-home-page .forum-latest-last-thread {
    color: #1976d2;
}

body.theme-light .forum-home-page .forum-latest-last-thread:hover {
    color: #0d47a1;
}

body.theme-light .forum-home-page .forum-home-desc,
body.theme-light .forum-home-page .forum-home-section-title,
body.theme-light .forum-home-page .forum-home-no-post,
body.theme-light .forum-home-page .forum-latest-last-meta {
    color: #5a5a5a;
}

body.theme-light .forum-home-page .forum-latest-stat {
    background: rgba(0, 0, 0, 0.05);
    color: #5a5a5a;
}

body.theme-light .forum-home-page .forum-latest-stat span {
    color: #1a1a1a;
}

body.theme-light .forum-home-page .forum-latest-avatar {
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body.theme-dark .forum-home-page .forum-home-title {
    color: #f1f1f1;
}

body.theme-dark .forum-home-page .forum-home-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}

body.theme-dark .forum-home-page .forum-home-title:hover {
    color: #64b5f6;
}

body.theme-dark .forum-home-page .forum-home-desc,
body.theme-dark .forum-home-page .forum-home-section-title,
body.theme-dark .forum-home-page .forum-home-no-post,
body.theme-dark .forum-home-page .forum-latest-last-meta {
    color: rgba(255,255,255,0.7);
}

body.theme-dark .forum-home-page .forum-latest-last-thread {
    color: #64b5f6;
}

body.theme-dark .forum-home-page .forum-latest-last-thread:hover {
    color: #90caf9;
}

body.theme-dark .forum-home-page .forum-latest-stat {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
}

body.theme-dark .forum-home-page .forum-latest-stat span {
    color: #fff;
}

@media (max-width: 991px) {
    .forum-home-page .forum-home-row {
        flex-wrap: wrap;
    }

    .forum-home-page .forum-home-last {
        display: none;
    }
}

/* ==========================================
   FORUM - CATEGORY PAGE
   ========================================== */
.forum-category-page .forum-category-section {
    margin-bottom: 16px;
}

.forum-category-page .forum-category-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.forum-category-page .forum-category-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(66,165,245,0.16);
    color: #42a5f5;
}

.forum-category-page .forum-category-action:hover {
    background: rgba(66,165,245,0.24);
    color: #42a5f5;
    text-decoration: none;
}

.forum-category-page .goodies-subtitle {
    line-height: 1.5;
}

.forum-category-page .goodies-subtitle span,
.forum-category-page .goodies-subtitle i,
.forum-category-page .goodies-subtitle a {
    margin-right: 6px;
}

.forum-category-page .goodies-subtitle .fa-angle-double-right {
    margin-right: 6px;
}

/* Reuse latest-thread row styling inside category page */
.forum-category-page .forum-latest-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.forum-category-page .forum-latest-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.12s ease;
}

.forum-category-page .forum-latest-row:last-child {
    border-bottom: none;
}

.forum-category-page .forum-latest-row:hover {
    background: rgba(255,255,255,0.03);
}

.forum-category-page .forum-latest-main {
    min-width: 0;
    flex: 1;
}

.forum-category-page .forum-latest-title {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    text-decoration: none;
}

.forum-category-page .forum-latest-meta {
    font-size: 12px;
    opacity: 0.85;
}

.forum-category-page .forum-latest-meta a {
    font-weight: 700;
}

.forum-category-page .forum-latest-stats {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.forum-category-page .forum-latest-stat {
    min-width: 62px;
    padding: 6px 8px;
    text-align: center;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255,255,255,0.06);
}

.forum-category-page .forum-latest-stat span {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.forum-category-page .forum-latest-last {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 240px;
    flex-shrink: 0;
}

.forum-category-page .forum-latest-avatar {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background-size: cover;
    background-image: url(/img/avatars/default.gif);
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.forum-category-page .forum-latest-last-info {
    min-width: 0;
}

.forum-category-page .forum-latest-last-thread {
    display: block;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.forum-category-page .forum-latest-last-meta {
    font-size: 11px;
    opacity: 0.8;
}

.forum-category-page .forum-latest-pagination {
    padding: 14px 16px 6px;
}

.forum-category-page .forum-latest-empty {
    text-align: center;
    padding: 34px 16px;
    font-size: 13px;
    opacity: 0.85;
}

.forum-category-page .forum-latest-empty i {
    font-size: 30px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.65;
}

.forum-category-page .forum-latest-empty p {
    margin-bottom: 4px !important;
    font-weight: 700;
}

.forum-category-page .forum-latest-empty small {
    font-size: 12px;
}

/* Sub-category rows inside category page reuse forum-home markup */
.forum-category-page .forum-home-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.12s ease;
}

.forum-category-page .forum-home-row:last-child {
    border-bottom: none;
}

.forum-category-page .forum-home-row:hover {
    background: rgba(255,255,255,0.03);
}

.forum-category-page .forum-home-row-faded {
    opacity: 0.65;
}

.forum-category-page .forum-home-main {
    min-width: 0;
    flex: 1;
}

.forum-category-page .forum-home-main-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.forum-category-page .forum-home-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
}

.forum-category-page .forum-home-main-content {
    min-width: 0;
}

.forum-category-page .forum-home-title {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    text-decoration: none;
}

.forum-category-page .forum-home-desc {
    font-size: 12px;
    opacity: 0.85;
}

.forum-category-page .forum-home-stats {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.forum-category-page .forum-home-last {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 280px;
    flex-shrink: 0;
}

.forum-category-page .forum-home-last-avatar {
    width: 44px;
    height: 44px;
}

.forum-category-page .forum-home-last-info {
    min-width: 0;
}

.forum-category-page .forum-home-no-post {
    font-size: 12px;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.theme-light .forum-category-page .forum-category-action {
    background: rgba(25,118,210,0.14);
    color: #1976d2;
}

body.theme-light .forum-category-page .forum-category-action:hover {
    background: rgba(25,118,210,0.2);
    color: #1976d2;
}

body.theme-light .forum-category-page .forum-home-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-category-page .forum-home-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .forum-category-page .forum-home-title {
    color: #1a1a1a;
}

body.theme-light .forum-category-page .forum-home-title:hover {
    color: #1976d2;
}

body.theme-light .forum-category-page .goodies-subtitle span,
body.theme-light .forum-category-page .goodies-subtitle i {
    color: #5a5a5a;
}

body.theme-light .forum-category-page .forum-latest-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-category-page .forum-latest-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-category-page .forum-latest-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .forum-category-page .forum-latest-title {
    color: #1a1a1a;
}

body.theme-light .forum-category-page .forum-latest-title:hover {
    color: #1976d2;
}

body.theme-light .forum-category-page .forum-latest-meta,
body.theme-light .forum-category-page .forum-latest-last-meta,
body.theme-light .forum-category-page .forum-latest-empty {
    color: #5a5a5a;
}

body.theme-light .forum-category-page .forum-home-desc,
body.theme-light .forum-category-page .forum-home-no-post {
    color: #5a5a5a;
}

body.theme-light .forum-category-page .forum-latest-stat {
    background: rgba(0, 0, 0, 0.05);
    color: #5a5a5a;
}

body.theme-light .forum-category-page .forum-latest-stat span {
    color: #1a1a1a;
}

body.theme-light .forum-category-page .forum-latest-avatar {
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body.theme-dark .forum-category-page .goodies-subtitle span,
body.theme-dark .forum-category-page .goodies-subtitle i {
    color: rgba(255,255,255,0.7);
}

body.theme-dark .forum-category-page .forum-latest-title {
    color: #f1f1f1;
}

body.theme-dark .forum-category-page .forum-latest-title:hover {
    color: #64b5f6;
}

body.theme-dark .forum-category-page .forum-home-title {
    color: #f1f1f1;
}

body.theme-dark .forum-category-page .forum-home-title:hover {
    color: #64b5f6;
}

body.theme-dark .forum-category-page .forum-latest-meta,
body.theme-dark .forum-category-page .forum-latest-last-meta,
body.theme-dark .forum-category-page .forum-latest-empty {
    color: rgba(255,255,255,0.7);
}

body.theme-dark .forum-category-page .forum-home-desc,
body.theme-dark .forum-category-page .forum-home-no-post {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 767px) {
    .forum-category-page .forum-category-section-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 991px) {
    .forum-category-page .forum-latest-row {
        flex-wrap: wrap;
    }

    .forum-category-page .forum-latest-last {
        display: none;
    }

    .forum-category-page .forum-latest-stats {
        order: -1;
    }

    .forum-category-page .forum-home-row {
        flex-wrap: wrap;
    }

    .forum-category-page .forum-home-last {
        display: none;
    }
}

/* ==========================================
   FORUM - NEW THREAD PAGE
   ========================================== */
.forum-new-thread-page .goodies-subtitle {
    line-height: 1.5;
}

.forum-new-thread-page .goodies-subtitle span,
.forum-new-thread-page .goodies-subtitle i,
.forum-new-thread-page .goodies-subtitle a {
    margin-right: 6px;
}

.forum-new-thread-page .goodies-subtitle .fa-angle-double-right {
    margin-right: 6px;
}

.forum-new-thread-page .forum-new-thread-top-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.forum-new-thread-page .forum-new-thread-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(66,165,245,0.16);
    color: #42a5f5;
}

.forum-new-thread-page .forum-new-thread-help:hover {
    background: rgba(66,165,245,0.24);
    color: #42a5f5;
    text-decoration: none;
}

.forum-new-thread-page .forum-new-thread-card {
    margin-bottom: 0;
}

.forum-new-thread-page .forum-new-thread-editor {
    height: 150px;
}

.forum-new-thread-page .forum-new-thread-submit {
    margin-top: 14px;
}

.forum-new-thread-page .forum-new-thread-submit .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.theme-light .forum-new-thread-page .goodies-subtitle span,
body.theme-light .forum-new-thread-page .goodies-subtitle i {
    color: #5a5a5a;
}

body.theme-light .forum-new-thread-page .forum-new-thread-help {
    background: rgba(25,118,210,0.14);
    color: #1976d2;
}

body.theme-light .forum-new-thread-page .forum-new-thread-help:hover {
    background: rgba(25,118,210,0.2);
    color: #1976d2;
}

body.theme-dark .forum-new-thread-page .goodies-subtitle span,
body.theme-dark .forum-new-thread-page .goodies-subtitle i {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 767px) {
    .forum-new-thread-page .forum-new-thread-top-actions {
        justify-content: flex-start;
    }
}

/* ==========================================
   FORUM - THREAD PAGE
   ========================================== */
.forum-thread-page .goodies-subtitle {
    line-height: 1.5;
}

.forum-thread-page .goodies-subtitle span,
.forum-thread-page .goodies-subtitle i,
.forum-thread-page .goodies-subtitle a {
    margin-right: 6px;
}

.forum-thread-page .forum-thread-pagination {
    margin-bottom: 14px;
}

.forum-thread-page .forum-thread-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 18px 0 10px;
    opacity: 0.8;
}

.forum-thread-page .forum-thread-polls-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 12px;
}

.forum-thread-page .forum-thread-polls-card .card-body {
    padding: 12px 16px;
}

.forum-thread-page .forum-thread-reply-title-row {
    justify-content: space-between;
}

.forum-thread-page .forum-thread-section-title-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.forum-thread-page .forum-thread-format-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(66,165,245,0.16);
    color: #42a5f5;
}

.forum-thread-page .forum-thread-format-help:hover {
    background: rgba(66,165,245,0.24);
    color: #42a5f5;
    text-decoration: none;
}

.forum-thread-page .forum-thread-reply-editor {
    height: 150px;
}

.forum-thread-page .forum-thread-viewers-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 12px 16px;
}

.forum-thread-page .forum-thread-viewers-card:last-of-type {
    margin-bottom: 12px;
}

.forum-thread-page .forum-thread-viewers-card + .forum-thread-pagination {
    margin-top: 14px;
}

.forum-post-card {
    margin-bottom: 12px;
}

.forum-post-card .forum-post-sidebar-col {
    margin-bottom: 10px;
}

.forum-post-card .forum-post-userpanel {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: none;
}

.forum-post-card .forum-post-userpanel-body {
    padding: 10px;
}

.forum-post-card .forum-post-userpanel-footer {
    cursor: pointer;
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    opacity: 0.75;
    transition: background 0.12s ease;
}

.forum-post-card .forum-post-userpanel-footer:hover {
    background: rgba(255,255,255,0.04);
}

.forum-post-card .forum-post-author-name {
    font-size: 18px;
    margin-bottom: 6px;
}

.forum-post-card .forum-post-author-avatar {
    border-radius: 2px;
    margin-bottom: 5px;
}

.forum-post-card .forum-post-main-col {
    position: relative;
}

.forum-post-card .forum-post-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 4px;
}

.forum-post-card .forum-post-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.12s ease, border-color 0.12s ease;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: inherit;
}

.forum-post-card .forum-post-action-btn:hover {
    transform: translateY(-1px);
}

.forum-post-card .forum-post-title-row {
    margin-right: 6px;
}

.forum-post-card .forum-post-signature {
    max-height: 350px;
    overflow: hidden;
}

body.theme-light .forum-thread-page .forum-thread-section-title {
    color: #5a5a5a;
}

body.theme-light .forum-thread-page .forum-thread-polls-card,
body.theme-light .forum-thread-page .forum-thread-viewers-card {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

body.theme-light .forum-thread-page .forum-thread-format-help {
    background: rgba(25,118,210,0.14);
    color: #1976d2;
}

body.theme-light .forum-thread-page .forum-thread-format-help:hover {
    background: rgba(25,118,210,0.2);
    color: #1976d2;
}

body.theme-light .forum-thread-page .goodies-subtitle span,
body.theme-light .forum-thread-page .goodies-subtitle i {
    color: #5a5a5a;
}

body.theme-light .forum-post-card .forum-post-userpanel {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

body.theme-light .forum-post-card .forum-post-userpanel-footer {
    border-top-color: rgba(0,0,0,0.08);
}

body.theme-light .forum-post-card .forum-post-userpanel-footer:hover {
    background: rgba(0,0,0,0.03);
}

body.theme-light .forum-post-card .forum-post-action-btn {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
    color: #5a5a5a;
}

body.theme-light .forum-post-card .forum-post-action-btn:hover {
    background: rgba(25,118,210,0.12);
    border-color: rgba(25,118,210,0.24);
    color: #1976d2;
}

body.theme-dark .forum-thread-page .forum-thread-section-title {
    color: rgba(255,255,255,0.72);
}

body.theme-dark .forum-thread-page .goodies-subtitle span,
body.theme-dark .forum-thread-page .goodies-subtitle i {
    color: rgba(255,255,255,0.7);
}

body.theme-dark .forum-post-card .forum-post-action-btn {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
}

body.theme-dark .forum-post-card .forum-post-action-btn:hover {
    background: rgba(66,165,245,0.2);
    border-color: rgba(66,165,245,0.35);
    color: #90caf9;
}

@media (max-width: 767px) {
    .forum-thread-page .forum-thread-reply-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 991px) {
    .forum-post-card .forum-post-actions {
        margin-bottom: 10px;
        justify-content: flex-start;
    }
}

/* ==========================================
   MEDIA LIST PAGES (NEWS / GUIDES)
   ========================================== */
.media-list-page .media-list-item {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

.media-list-page .media-list-image {
    height: 130px;
    margin-bottom: 0;
    border-radius: 0;
}

.media-list-page .media-list-body {
    padding: 12px;
}

.media-list-page .media-list-title {
    display: block;
    font-size: 14px;
    min-height: 38px;
}

.media-list-page .media-list-divider {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 8px 0;
}

.media-list-page .media-list-stats {
    font-size: 12px;
}

.media-list-page .media-list-meta-right {
    float: right !important;
}

.media-list-page .media-list-pagination {
    margin-top: 6px;
}

.media-list-page .media-sidebar-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

.media-list-page .media-sidebar-title {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 7px;
}

.media-list-page .media-sidebar-card .list-group-item {
    background: transparent;
    border-color: rgba(255,255,255,0.06);
    padding: 0;
}

.media-list-page .media-sidebar-link {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.12s ease, color 0.12s ease;
}

.media-list-page .media-sidebar-link-active {
    background: rgba(66,165,245,0.16);
    border-left: 3px solid #42a5f5;
    padding-left: 8px;
    color: #42a5f5 !important;
}

.media-list-page .media-sidebar-link-active:hover {
    background: rgba(66,165,245,0.22);
    color: #42a5f5 !important;
}

.media-list-page .media-badges-grid {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.media-list-page .media-badges-grid .badgeBox {
    margin-right: 0 !important;
}

.media-list-page .media-badges-grid .badgeBox .completed {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    border-radius: 4px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #66bb6a;
    background: rgba(102, 187, 106, 0.18);
}

.media-list-page .newsBadge .completed {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 0 0 3px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #66bb6a;
    background: rgba(102, 187, 106, 0.18);
}

body.theme-light .media-list-page .media-list-item,
body.theme-light .media-list-page .media-sidebar-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .media-list-page .media-list-title {
    color: #1a1a1a;
}

body.theme-light .media-list-page .media-list-title:hover {
    color: #1976d2;
}

body.theme-light .media-list-page .media-list-divider,
body.theme-light .media-list-page .media-sidebar-title,
body.theme-light .media-list-page .media-sidebar-card .list-group-item {
    border-color: rgba(0,0,0,0.08);
}

body.theme-light .media-list-page .media-sidebar-title,
body.theme-light .media-list-page .media-list-stats p {
    color: #5a5a5a;
}

body.theme-light .media-list-page .media-sidebar-link-active {
    background: rgba(25,118,210,0.12);
    border-left-color: #1976d2;
    color: #1976d2 !important;
}

body.theme-light .media-list-page .media-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body.theme-dark .media-list-page .media-list-title {
    color: #f1f1f1;
}

body.theme-dark .media-list-page .media-list-title:hover {
    color: #64b5f6;
}

body.theme-dark .media-list-page .media-sidebar-title,
body.theme-dark .media-list-page .media-list-stats p {
    color: rgba(255,255,255,0.75);
}

@media (max-width: 1199px) {
    .media-list-page .media-badges-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ==========================================
   HOME PAGE REVAMP
   ========================================== */
.home-page {
    margin-top: 4px;
}

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

.home-section-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin: 0 0 2px 0;
}

.home-section-title p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.home-section-btn {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 8px;
}

.home-online-count {
    color: #b859d8 !important;
    font-weight: 600;
}

.home-card {
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
    overflow: hidden;
}

.home-card .card-body {
    padding: 16px;
}

body.theme-light .home-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

body.theme-light .home-section-title h3 {
    color: #111827;
}

body.theme-light .home-section-title p {
    color: #6b7280;
}

/* Media cards (guides & articles) */
.home-media-card {
    display: block;
    text-decoration: none !important;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-media-card:hover {
    /* No transform/shadow - was causing unwanted box highlight on title hover */
}

.home-media-card,
.home-media-card:hover {
    background: none !important;
}

.home-media-thumb {
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.home-media-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffffcf;
    padding: 5px;
    border-radius: 6px;
}

.home-media-badge img {
    height: 36px;
    width: 36px;
}

.home-media-badge .bi-check-circle-fill {
    color: #43a047;
    font-size: 20px;
}

.home-media-badge-count {
    background: linear-gradient(135deg, #c62828, #ef5350);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.home-media-body {
    padding: 12px 16px 16px 16px;
    display: flex;
    flex-direction: column;
}

/* Equal height cards - row cols stretch, card fills col */
.home-media-row .col {
    flex-direction: column;
    min-width: 0;
}

.home-media-row .home-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Full width cards - reduce gutters so cards use more horizontal space */
.home-media-row {
    margin-left: -10px;
    margin-right: -10px;
}

.home-media-row > .col {
    padding-left: 10px;
    padding-right: 10px;
}

.home-media-row .home-media-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.home-media-row .home-media-thumb {
    flex-shrink: 0;
}


.home-media-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: rgba(255,255,255,0.95);
    line-height: 1.35;
}


body.theme-light .home-media-title {
    color: #111827;
}

.home-media-title:hover {
    color: #64b5f6;
}

body.theme-light .home-media-title:hover {
    color: #1e88e5;
}

/* Prevent unwanted hover box/background on the title - only change color on hover */
.home-media-card .home-media-body,
.home-media-card .home-media-title {
    background: transparent !important;
}

.home-media-card:hover .home-media-body,
.home-media-card:hover .home-media-title {
    background: transparent !important;
}

/* Remove focus outline when clicking (mouse) but keep for keyboard nav */
.home-media-card:focus:not(:focus-visible) {
    outline: none;
}

.home-media-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.home-media-meta-line {
    display: block;
}

.home-media-meta-stats {
    display: flex;
    justify-content: space-between;
}

.home-media-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-media-author i {
    flex-shrink: 0;
}

.home-media-author img {
    display: inline-block;
    vertical-align: middle;
}

body.theme-light .home-media-meta {
    color: #6b7280;
}

.home-media-meta i {
    margin-right: 3px;
    opacity: 0.8;
}

.home-media-meta a {
    color: inherit;
    font-weight: 700;
}

.home-media-meta a:hover {
    color: #64b5f6;
}

body.theme-light .home-media-meta a:hover {
    color: #1e88e5;
}

/* Badges grid */
.home-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 10px;
    justify-items: center;
}

.home-badge-item {
    width: 56px;
    height: 56px;
    padding: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-badge-item:not(.faded):hover {
    background: rgba(184, 89, 218, 0.3);
    transform: scale(1.05);
}

.home-badge-item img {
    max-width: 100%;
    max-height: 100%;
}

.home-badge-check {
    position: absolute;
    top: 4px;
    right: 4px;
    color: #43a047;
    font-size: 14px;
}

body.theme-light .home-badge-item {
    background: rgba(0,0,0,0.04);
}

body.theme-light .home-badge-item:not(.faded):hover {
    background: rgba(184, 89, 218, 0.15);
}

/* User feed composer */
.home-feed-composer {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.theme-light .home-feed-composer {
    border-bottom-color: rgba(0,0,0,0.08);
}

.home-feed-composer .form-control {
    border-radius: 10px;
    margin-bottom: 10px;
}

.home-feed-submit {
    width: 100%;
    border-radius: 8px;
}

.home-feed-login-prompt {
    padding: 24px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.home-feed-login-prompt .bi {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.5;
}

.home-feed-list {
    padding-top: 12px !important;
}

/* Spotlight (Monthly Bests) */
.home-spotlight-card .card-body {
    padding: 0 !important;
}

.home-spotlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none !important;
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s ease;
}

.home-spotlight-item:last-child {
    border-bottom: none;
}

.home-spotlight-item:hover {
    background: rgba(255,255,255,0.04);
}

body.theme-light .home-spotlight-item {
    border-bottom-color: rgba(0,0,0,0.06);
}

body.theme-light .home-spotlight-item:hover {
    background: rgba(0,0,0,0.03);
}

.home-spotlight-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 10px;
    background-size: cover;
    background-position: top center;
}

.home-spotlight-content {
    flex: 1;
    min-width: 0;
}

.home-spotlight-content strong {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.95);
}

body.theme-light .home-spotlight-content strong {
    color: #111827;
}

.home-spotlight-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.theme-light .home-spotlight-label {
    color: #9ca3af;
}

.home-spotlight-reason {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 6px 0 0 0;
    line-height: 1.4;
}

body.theme-light .home-spotlight-reason {
    color: #4b5563;
}

/* Events list */
.home-empty-state {
    padding: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

body.theme-light .home-empty-state {
    color: #9ca3af;
}

.home-event-list .list-group-item {
    border-color: rgba(255,255,255,0.08);
    background: transparent;
}

body.theme-light .home-event-list .list-group-item {
    border-color: rgba(0,0,0,0.08);
}

.home-event-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px !important;
}

.home-event-info {
    flex: 1;
    min-width: 0;
}

.home-event-name {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
}

.home-event-room {
    flex-shrink: 0;
}

.home-event-room img {
    display: block;
}

.home-event-info small a {
    font-weight: 700;
}

/* Forum list */
.home-forum-list .list-group-item {
    border-color: rgba(255,255,255,0.08);
    background: transparent;
    padding: 12px 16px !important;
}

body.theme-light .home-forum-list .list-group-item {
    border-color: rgba(0,0,0,0.08);
}

.home-forum-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.home-forum-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-forum-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-forum-content {
    flex: 1;
    min-width: 0;
}

.home-forum-title {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
}

.home-forum-content small a {
    font-weight: 700;
}

/* Activity list */
.home-activity-list .list-group-item {
    border-color: rgba(255,255,255,0.08);
    background: transparent;
    padding: 12px 16px !important;
}

body.theme-light .home-activity-list .list-group-item {
    border-color: rgba(0,0,0,0.08);
}

.home-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.home-activity-icon {
    font-size: 18px;
    color: rgba(255,255,255,0.4);
    transform: rotate(8deg);
    flex-shrink: 0;
}

body.theme-light .home-activity-icon {
    color: #9ca3af;
}

.home-activity-time {
    display: block;
    margin-top: 4px;
    font-style: italic;
    color: rgba(255,255,255,0.5);
}

body.theme-light .home-activity-time {
    color: #9ca3af;
}

/* Online users */
.home-online-text a {
    margin-right: 2px;
    font-weight: 700;
}

.home-online-text a:hover {
    text-decoration: underline;
}

/* Username styling (like Latest Topics) - feed comments */
.home-feed-comment .contentHolder small a {
    font-weight: 700;
}

.home-online-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.home-online-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.home-online-avatar:hover {
    transform: scale(1.08);
}

.home-online-avatar img {
    width: 100%;
    object-fit: cover;
}

.home-featured-carousel {
    padding: 0 !important;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

/* ==========================================
   HOME PAGE EXTRAS
   ========================================== */
.home-advent-modal {
    border-radius: 12px;
    overflow: hidden;
}

.home-advent-strip .home-advent-tile {
    margin-bottom: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.home-advent-strip .home-advent-fade {
    width: 100%;
    height: 100%;
}

.home-advent-open-btn {
    border: none;
    background: transparent;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.home-advent-open-btn img {
    width: 72px;
    transition: transform 0.2s ease;
}

.home-advent-open-btn:hover img {
    transform: scale(1.08);
}

.home-advent-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

#homeAdverts2 .home-featured-slide {
    border: none;
    margin-bottom: 0;
    min-height: 170px;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

#homeAdverts2 .home-featured-slide::after {
    content: "";
    position: absolute;
    inset: 0;
}

#homeAdverts2 .home-featured-chip {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

#homeAdverts2 .home-featured-indicators {
    bottom: 2px;
    z-index: 5;
}

#homeAdverts2 .home-featured-indicators li {
    width: 7px;
    height: 7px;
    border-radius: 999px;
}

#homeAdverts2 .home-featured-control {
    width: 8%;
    z-index: 6;
    border: 0;
    background: transparent;
    padding: 0;
    opacity: 0.85;
}

#homeAdverts2 .home-featured-control:hover {
    opacity: 1;
}

#homeAdverts2 .home-featured-control:focus {
    outline: none;
    box-shadow: none;
}

#homeAdverts2 {
    margin-bottom: 12px;
}

.home-feed-comment > .avatarHolder {
    width: 62px;
}

.home-feed-comment > .avatarHolder .smallAvatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.home-feed-comment > .contentHolder,
.home-feed-comment > .buttonsHolder {
    width: calc(100% - 56px);
    margin-left: 56px;
}

.home-feed-comment > .contentHolder {
    border-radius: 10px 10px 0 0;
}

.home-feed-comment > .buttonsHolder {
    border-radius: 0 0 10px 10px;
    font-size: 12px;
}

.home-feed-comment .commentButton {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: rgba(255,255,255,0.78);
    transition: background 0.2s ease;
}

.home-feed-comment .commentButton i {
    color: inherit;
}

.home-feed-comment .commentButton:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.95);
}

body.theme-light .home-feed-comment .commentButton:hover {
    background: rgba(0,0,0,0.06);
}

body.theme-light .home-feed-comment .commentButton {
    color: #6b7280;
}

body.theme-light .home-feed-comment .commentButton:hover {
    color: #1f2937;
}

body.theme-light .home-advent-label {
    background: rgba(0, 0, 0, 0.68);
}

/* ==========================================
   MEDIA GUIDE PAGE
   ========================================== */
.search-page .card {
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

.search-page .btn-group .btn {
    min-width: 88px;
}

.search-page .btn-group .btn.btn-outline-secondary {
    color: rgba(255,255,255,0.78);
    border-color: rgba(255,255,255,0.18) !important;
    background: rgba(255,255,255,0.03);
}

.search-page .btn-group .btn.btn-outline-secondary:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.35) !important;
    background: rgba(255,255,255,0.12);
}

.search-page .btn-group .btn.btn-primary {
    border-color: transparent !important;
}

.search-page .list-group-item {
    background: transparent;
    border-color: rgba(255,255,255,0.08);
}

body.theme-light .search-page .card {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

body.theme-light .search-page .btn-group .btn.btn-outline-secondary {
    color: #4b5563 !important;
    border-color: rgba(0,0,0,0.18) !important;
    background: rgba(0,0,0,0.02) !important;
}

body.theme-light .search-page .btn-group .btn.btn-outline-secondary:hover {
    color: #111827 !important;
    border-color: rgba(0,0,0,0.32) !important;
    background: rgba(0,0,0,0.08) !important;
}

body.theme-light .search-page .btn-group .btn.btn-primary {
    color: #fff;
}

body.theme-light #maincontainer .search-page .btn.btn-outline-secondary {
    color: #4b5563 !important;
    border-color: rgba(0,0,0,0.22) !important;
    background: #f5f6f8 !important;
    opacity: 1 !important;
}

body.theme-light #maincontainer .search-page .btn.btn-outline-secondary:hover,
body.theme-light #maincontainer .search-page .btn.btn-outline-secondary:focus {
    color: #111827 !important;
    border-color: rgba(0,0,0,0.35) !important;
    background: #e9edf1 !important;
    box-shadow: none !important;
}

body.theme-light .search-page .list-group-item {
    border-color: rgba(0,0,0,0.08);
}

body.theme-light .search-page small,
body.theme-light .search-page .goodies-subtitle {
    color: #6b7280;
}

body.theme-light .search-page .goodies-title,
body.theme-light .search-page h5 {
    color: #111827;
}

.media-guide-page .media-guide-meta-row {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
}

.media-guide-page .media-guide-meta-row > [class*="col-"] {
    display: flex;
}

.media-guide-page .media-guide-meta-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.media-guide-page .media-guide-meta-card .media-guide-meta-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.media-guide-page .media-guide-meta-card,
.media-guide-page .media-guide-content-card,
.media-guide-page .media-guide-comments-card,
.media-guide-page .media-guide-sidebar-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 14px;
}

.media-guide-page .media-guide-meta-title,
.media-guide-page .media-guide-comments-title,
.media-guide-page .media-guide-sidebar-title {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 7px;
}

.media-guide-page .media-guide-meta-body,
.media-guide-page .media-guide-comments-body,
.media-guide-page .media-guide-sidebar-body {
    padding: 12px;
}

.media-guide-page .media-guide-meta-body .btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    width: 100%;
}

#maincontainer .media-guide-page .media-guide-meta-body .btn-group .btn {
    flex-shrink: 0;
    margin: 0;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 12px;
}

.media-guide-page .media-guide-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    align-items: center;
}

.media-guide-page .media-guide-badges img {
    max-width: 40px;
    max-height: 40px;
}

.media-guide-page .media-guide-room-image {
    height: 40px;
}

.media-guide-page .media-guide-room-image-muted {
    filter: grayscale(100%);
}

.media-guide-page .media-guide-author-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
}

.media-guide-page .media-guide-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.media-guide-page .media-guide-tools .btn {
    margin-left: 0 !important;
}

.media-guide-page .media-guide-content-body {
    padding: 16px;
}

.media-guide-page .media-guide-content-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 10px 14px;
    font-size: 12px;
    opacity: 0.75;
    text-align: right;
}

.media-guide-page .media-guide-comments-empty {
    text-align: center;
    padding: 18px 10px;
    opacity: 0.85;
}

.media-guide-page .media-guide-comments-empty i {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
}

.media-guide-page .media-guide-comments-empty p {
    margin: 0 0 2px;
    font-weight: 600;
}

.media-guide-page .media-guide-comments-empty small {
    display: block;
    font-size: 12px;
    opacity: 0.85;
}

.media-guide-page .media-guide-other-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    justify-items: center;
}

.media-guide-page .media-guide-other-grid .badgeBox {
    margin-right: 0 !important;
}

body.theme-light .media-guide-page .media-guide-meta-card,
body.theme-light .media-guide-page .media-guide-content-card,
body.theme-light .media-guide-page .media-guide-comments-card,
body.theme-light .media-guide-page .media-guide-sidebar-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .media-guide-page .media-guide-meta-title,
body.theme-light .media-guide-page .media-guide-comments-title,
body.theme-light .media-guide-page .media-guide-sidebar-title,
body.theme-light .media-guide-page .media-guide-content-footer {
    border-color: rgba(0,0,0,0.08);
    color: #5a5a5a;
}

body.theme-light .media-guide-page .media-guide-comments-empty i,
body.theme-light .media-guide-page .media-guide-author-link {
    color: #1976d2;
}

body.theme-dark .media-guide-page .media-guide-comments-empty i,
body.theme-dark .media-guide-page .media-guide-author-link {
    color: #64b5f6;
}

@media (max-width: 1199px) {
    .media-guide-page .media-guide-other-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ==========================================
   MEDIA ARTICLE PAGE
   ========================================== */
.media-article-page .media-article-content-card,
.media-article-page .media-article-comments-card,
.media-article-page .media-article-sidebar-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 14px;
}

.media-article-page .media-article-section-title {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 7px;
}

.media-article-page .media-article-content-body,
.media-article-page .media-article-section-body {
    padding: 14px;
}

.media-article-page .media-article-content-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 10px 14px;
    font-size: 12px;
    opacity: 0.75;
    text-align: right;
}

.media-article-page .media-article-comments-empty {
    text-align: center;
    padding: 18px 10px;
    opacity: 0.85;
}

.media-article-page .media-article-comments-empty i {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
}

.media-article-page .media-article-comments-empty p {
    margin: 0 0 2px;
    font-weight: 600;
}

.media-article-page .media-article-comments-empty small {
    display: block;
    font-size: 12px;
    opacity: 0.85;
}

.media-article-page .media-article-settings {
    display: flex;
    justify-content: center;
}

.media-article-page .media-article-settings .badgeBox i {
    color: #7B7777;
}

.media-article-page .media-article-polls-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.media-article-page .media-article-poll-item {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px;
}

.media-article-page .media-article-poll-question {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.media-article-page .media-article-poll-preview img {
    max-width: 100%;
    max-height: 200px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 5px;
}

.media-article-page .media-article-author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.media-article-page .media-article-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.media-article-page .media-article-author-info a {
    font-size: 13px;
    font-weight: 700;
}

.media-article-page .media-article-author-info span {
    font-size: 12px;
    opacity: 0.8;
}

.media-article-page .media-article-other-list .list-group-item {
    background: transparent;
    border-color: rgba(255,255,255,0.06);
}

.media-article-page .media-article-other-list .list-group-item a {
    font-size: 13px;
}

/* Shared comment styling for media guide/article pages */
.media-guide-page #guideComments .commentHolder,
.media-article-page #articleComments .commentHolder {
    margin-bottom: 12px !important;
}

.media-guide-page #guideComments .commentHolder > .avatarHolder,
.media-article-page #articleComments .commentHolder > .avatarHolder {
    width: 62px;
}

.media-guide-page #guideComments .commentHolder > .avatarHolder .smallAvatar,
.media-article-page #articleComments .commentHolder > .avatarHolder .smallAvatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}

.media-guide-page #guideComments .commentHolder > .contentHolder,
.media-guide-page #guideComments .commentHolder > .buttonsHolder,
.media-article-page #articleComments .commentHolder > .contentHolder,
.media-article-page #articleComments .commentHolder > .buttonsHolder {
    width: calc(100% - 56px);
    margin-left: 56px;
}

.media-guide-page #guideComments .commentHolder > .contentHolder,
.media-article-page #articleComments .commentHolder > .contentHolder {
    border-radius: 10px 10px 0 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88) !important;
}

.media-guide-page #guideComments .commentHolder > .buttonsHolder,
.media-article-page #articleComments .commentHolder > .buttonsHolder {
    border-radius: 0 0 10px 10px;
    border: 1px solid rgba(255,255,255,0.06);
    border-top: none;
    background: rgba(255,255,255,0.02);
    font-size: 12px;
}

.media-guide-page #guideComments .commentHolder .commentButton,
.media-article-page #articleComments .commentHolder .commentButton {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: rgba(255,255,255,0.78);
    opacity: 0.9;
    transition: background 0.2s ease, color 0.2s ease;
}

.media-guide-page #guideComments .commentHolder .commentButton i,
.media-article-page #articleComments .commentHolder .commentButton i {
    color: inherit;
}

.media-guide-page #guideComments .commentHolder .commentButton:hover,
.media-article-page #articleComments .commentHolder .commentButton:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.95);
}

.media-guide-page #guideComments .commentHolder .contentHolder small,
.media-article-page #articleComments .commentHolder .contentHolder small {
    opacity: 0.78;
}

.media-guide-page #guideComments .commentHolder .contentHolder a,
.media-article-page #articleComments .commentHolder .contentHolder a {
    font-weight: 700;
}

.media-guide-page #guideComments .commentHolder .comment2,
.media-guide-page #guideComments .commentHolder .comment3,
.media-guide-page #guideComments .commentHolder > .contentHolder.mt-2,
.media-article-page #articleComments .commentHolder .comment2,
.media-article-page #articleComments .commentHolder .comment3,
.media-article-page #articleComments .commentHolder > .contentHolder.mt-2 {
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}

body.theme-light .media-article-page .media-article-content-card,
body.theme-light .media-article-page .media-article-comments-card,
body.theme-light .media-article-page .media-article-sidebar-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .media-article-page .media-article-section-title,
body.theme-light .media-article-page .media-article-content-footer,
body.theme-light .media-article-page .media-article-other-list .list-group-item {
    border-color: rgba(0,0,0,0.08);
    color: #5a5a5a;
}

body.theme-light .media-article-page .media-article-comments-empty i,
body.theme-light .media-article-page .media-article-author-info a {
    color: #1976d2;
}

body.theme-light .media-article-page .media-article-poll-item {
    border-color: rgba(0,0,0,0.08);
}

body.theme-light .media-guide-page #guideComments .commentHolder > .contentHolder,
body.theme-light .media-article-page #articleComments .commentHolder > .contentHolder {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    color: #1a1a1a !important;
}

body.theme-light .media-guide-page #guideComments .commentHolder > .buttonsHolder,
body.theme-light .media-article-page #articleComments .commentHolder > .buttonsHolder {
    background: rgba(0, 0, 0, 0.04);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .media-guide-page #guideComments .commentHolder > .avatarHolder .smallAvatar,
body.theme-light .media-article-page #articleComments .commentHolder > .avatarHolder .smallAvatar {
    border-color: rgba(0, 0, 0, 0.12);
}

body.theme-light .media-guide-page #guideComments .commentHolder .commentButton:hover,
body.theme-light .media-article-page #articleComments .commentHolder .commentButton:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.theme-light .media-guide-page #guideComments .commentHolder .commentButton,
body.theme-light .media-article-page #articleComments .commentHolder .commentButton {
    color: #6b7280;
}

body.theme-light .media-guide-page #guideComments .commentHolder .commentButton:hover,
body.theme-light .media-article-page #articleComments .commentHolder .commentButton:hover {
    color: #1f2937;
}

body.theme-light .media-guide-page #guideComments .commentHolder .comment2,
body.theme-light .media-guide-page #guideComments .commentHolder .comment3,
body.theme-light .media-guide-page #guideComments .commentHolder > .contentHolder.mt-2,
body.theme-light .media-article-page #articleComments .commentHolder .comment2,
body.theme-light .media-article-page #articleComments .commentHolder .comment3,
body.theme-light .media-article-page #articleComments .commentHolder > .contentHolder.mt-2 {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-dark .media-article-page .media-article-comments-empty i,
body.theme-dark .media-article-page .media-article-author-info a {
    color: #64b5f6;
}

/* ==========================================
   FORUM - BBCODES PAGE
   ========================================== */
.forum-bbcodes-page .forum-bbcodes-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.forum-bbcodes-page .forum-bbcodes-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.forum-bbcodes-page .forum-bbcodes-table {
    width: 100%;
}

.forum-bbcodes-page .forum-bbcodes-table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.7;
    border-top: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 16px;
    white-space: nowrap;
}

.forum-bbcodes-page .forum-bbcodes-table td {
    font-size: 13px;
    padding: 12px 16px;
    border-top: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: middle;
}

.forum-bbcodes-page .forum-bbcodes-table tr:last-child td {
    border-bottom: none;
}

.forum-bbcodes-page .forum-bbcodes-name {
    font-weight: 700;
    white-space: nowrap;
}

.forum-bbcodes-page .forum-bbcodes-table code {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(66, 165, 245, 0.12);
    color: #42a5f5;
    font-weight: 600;
    white-space: nowrap;
}

body.theme-light .forum-bbcodes-page .forum-bbcodes-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-bbcodes-page .forum-bbcodes-table thead th {
    color: #4a4a4a;
    opacity: 1;
    border-bottom-color: rgba(0,0,0,0.08);
}

body.theme-light .forum-bbcodes-page .forum-bbcodes-table td {
    color: #5a5a5a;
    border-bottom-color: rgba(0,0,0,0.06);
}

body.theme-light .forum-bbcodes-page .forum-bbcodes-name {
    color: #1a1a1a;
}

body.theme-light .forum-bbcodes-page .forum-bbcodes-table tbody tr:hover td {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .forum-bbcodes-page .forum-bbcodes-table code {
    background: rgba(25,118,210,0.12);
    color: #1976d2;
}

body.theme-dark .forum-bbcodes-page .forum-bbcodes-table td {
    color: rgba(255,255,255,0.75);
}

body.theme-dark .forum-bbcodes-page .forum-bbcodes-name {
    color: #f1f1f1;
}

body.theme-dark .forum-bbcodes-page .forum-bbcodes-table tbody tr:hover td {
    background: rgba(255,255,255,0.03);
}

/* ==========================================
   RULES PAGE
   ========================================== */
.rules-page .rules-header-icon {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.22), rgba(244, 67, 54, 0.08));
    color: #ef5350;
}

.rules-page .rules-card {
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 18px 20px;
    margin-bottom: 14px;
}

.rules-page .rules-content {
    font-size: 13px;
    line-height: 1.7;
}

.rules-page .rules-content h1,
.rules-page .rules-content h2,
.rules-page .rules-content h3,
.rules-page .rules-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
}

.rules-page .rules-content h2 {
    font-size: 16px;
}

.rules-page .rules-content h3,
.rules-page .rules-content h4 {
    font-size: 14px;
}

.rules-page .rules-content p {
    margin-bottom: 12px !important;
}

.rules-page .rules-content ul,
.rules-page .rules-content ol {
    margin: 0 0 12px;
    padding-left: 20px;
}

.rules-page .rules-content li {
    margin-bottom: 6px;
}

.rules-page .rules-content a {
    font-weight: 700;
}

.rules-page .rules-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 7px 11px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

body.theme-light .rules-page .rules-header-icon {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.18), rgba(244, 67, 54, 0.06));
    color: #d32f2f !important;
}

body.theme-light .rules-page .rules-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .rules-page .rules-content {
    color: #4a4a4a;
}

body.theme-light .rules-page .rules-content h1,
body.theme-light .rules-page .rules-content h2,
body.theme-light .rules-page .rules-content h3,
body.theme-light .rules-page .rules-content h4 {
    color: #1a1a1a;
}

body.theme-light .rules-page .rules-updated {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
    color: #5a5a5a;
}

@media (max-width: 767px) {
    .rules-page .rules-card {
        padding: 14px;
    }
}

/* ==========================================
   TIMETABLE PAGE
   ========================================== */

/* Day Selector */
.tt-day-selector {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tt-day-tab {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tt-day-tab:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.1);
}

.tt-day-tab.active {
    background: rgba(156,39,176,0.1);
    border-color: rgba(206,147,216,0.35);
}

.tt-day-full {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.tt-day-abbr {
    display: none;
}

.tt-day-count {
    display: inline-block;
    font-size: 10px;
    background: rgba(255,255,255,0.08);
    padding: 2px 8px;
    border-radius: 10px;
    opacity: 0.5;
}

.tt-day-tab.active .tt-day-count {
    background: rgba(206,147,216,0.2);
    color: #ce93d8;
    opacity: 1;
}

/* Schedule Card */
.tt-schedule-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

.tt-schedule-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0.7;
}

.tt-schedule-header i {
    font-size: 14px;
}

/* Empty State */
.tt-empty {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.5;
}

.tt-empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}

.tt-empty p {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.tt-empty small {
    font-size: 11px;
}

/* Slot List */
.tt-slot-list {
    padding: 4px 0;
}

.tt-slot-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    transition: background 0.12s ease;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.tt-slot-row:last-child {
    border-bottom: none;
}

.tt-slot-row:hover {
    background: rgba(255,255,255,0.03);
}

.tt-slot-time {
    width: 56px;
    height: 32px;
    border-radius: 8px;
    background: rgba(156,39,176,0.1);
    color: #ce93d8;
    font-size: 12px;
    font-weight: 700;
    font-family: 'PT Sans', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
}

.tt-slot-info {
    flex: 1;
    min-width: 0;
}

.tt-slot-event {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-slot-host {
    font-size: 11px;
    opacity: 0.5;
    margin-top: 1px;
}

/* Sidebar Card */
.tt-sidebar-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 16px;
    margin-bottom: 16px;
}

.tt-coming-soon {
    text-align: center;
    padding: 30px 16px;
    opacity: 0.4;
}

.tt-coming-soon i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.tt-coming-soon p {
    font-size: 13px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 767px) {
    .tt-day-full { display: none; }
    .tt-day-abbr { display: block; font-size: 12px; font-weight: 700; margin-bottom: 2px; }
    .tt-day-tab { padding: 10px 6px; }
}

/* ==========================================
   CONTACT PAGE
   ========================================== */

/* Password Notice */
.ct-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255,193,7,0.08);
    border: 1px solid rgba(255,193,7,0.15);
    border-left: 3px solid #ffc107;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.5;
}

.ct-notice > i {
    color: #ffc107;
    font-size: 16px;
    flex-shrink: 0;
}

.ct-notice strong {
    color: #ffc107;
}

.ct-required {
    color: #e94560;
}

/* Form Card */
.ct-form-card {
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 24px;
    margin-bottom: 16px;
}

.ct-form-card textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* Submit Button */
.ct-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ct-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(67,160,71,0.3);
}

/* Success Panel */
.ct-success {
    text-align: center;
    padding: 32px 20px;
}

.ct-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(102,187,106,0.12);
    color: #66bb6a;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ct-success h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.ct-success p {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 16px;
}

.ct-save-warning {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e94560;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ct-ticket-link {
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    word-break: break-all;
    margin-bottom: 14px;
    font-family: monospace;
}

.ct-ticket-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.ct-action-btn {
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ct-action-copy {
    background: rgba(79,195,247,0.15);
    color: #4fc3f7;
}

.ct-action-copy:hover {
    background: rgba(79,195,247,0.25);
}

.ct-action-view {
    background: rgba(102,187,106,0.15);
    color: #66bb6a;
}

.ct-action-view:hover {
    background: rgba(102,187,106,0.25);
}

/* Info Card */
.ct-info-card {
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px;
    margin-bottom: 16px;
}

.ct-info-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    transition: background 0.12s ease;
}

.ct-info-block:hover {
    background: rgba(255,255,255,0.03);
}

.ct-info-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(79,195,247,0.1);
    color: #4fc3f7;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ct-info-block strong {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
}

.ct-info-block span {
    font-size: 11px;
    opacity: 0.55;
    line-height: 1.5;
}

/* ==========================================
   JOBS PAGE
   ========================================== */

.jobs-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    background: rgba(102,187,106,0.1);
    border: 1px solid rgba(102,187,106,0.2);
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.jobs-success > i {
    color: #66bb6a;
    font-size: 18px;
    flex-shrink: 0;
}

.jobs-hint {
    display: block;
    font-size: 11px;
    opacity: 0.4;
    margin-top: 4px;
    font-style: italic;
}

.jobs-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.jobs-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255,152,0,0.3);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.jobs-position-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.jobs-position-card:hover {
    border-color: rgba(255,152,0,0.2);
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.jobs-position-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.jobs-position-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,152,0,0.2), rgba(255,152,0,0.06));
    color: #ffb74d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.jobs-position-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.jobs-position-body {
    flex: 1;
    margin-bottom: 16px;
}

.jobs-position-desc {
    font-size: 12.5px;
    line-height: 1.6;
    opacity: 0.65;
    margin: 0;
}

.jobs-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.jobs-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(102,187,106,0.3);
    color: #fff;
    text-decoration: none;
}

.jobs-empty {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.4;
}

.jobs-empty > i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.jobs-empty > p {
    font-size: 14px;
    margin: 0;
}

.jobs-sidebar-intro {
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.7;
}

.jobs-sidebar-intro p {
    margin-bottom: 10px;
}

.jobs-sidebar-intro p:last-child {
    margin-bottom: 0;
}

.jobs-sidebar-badge {
    float: right;
    margin: 0 0 8px 12px;
}

.jobs-form-content {
    margin-bottom: 20px;
}

.jobs-desc-text {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.7;
}

@media (max-width: 767px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   TEAM PAGE
   ========================================== */

.team-section {
    margin-bottom: 28px;
}

.team-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.team-section-icon {
    font-size: 15px;
    opacity: 0.6;
}

.team-section-count {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    opacity: 0.5;
}

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

.team-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-card:hover {
    border-color: rgba(129,212,250,0.2);
    background: rgba(255,255,255,0.06);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    text-decoration: none;
    color: inherit;
}

.team-card-leave {
    opacity: 0.25;
}

.team-card-leave:hover {
    opacity: 0.4;
}

.team-card-banner {
    height: 90px;
    background-size: cover;
    background-position: center center;
    position: relative;
    border-bottom: 2px solid rgba(255,255,255,0.06);
}

.team-card-habbo {
    position: absolute;
    right: 4px;
    bottom: 0;
    height: 75px;
    overflow: hidden;
    opacity: 0.3;
}

.team-card-habbo img {
    display: block;
}

.team-card-status {
    position: absolute;
    top: 8px;
    left: 8px;
}

.team-status-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.3);
}

.team-status-online {
    background: #66bb6a;
    box-shadow: 0 0 6px rgba(102,187,106,0.5);
}

.team-status-offline {
    background: #78909c;
}

.team-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: top center;
    margin: -40px auto 0;
    position: relative;
    border: 3px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.team-card:hover .team-card-avatar {
    border-color: rgba(129,212,250,0.3);
}

.team-card-info {
    padding: 10px 12px 16px;
}

.team-card-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px;
    line-height: 1.3;
}

.team-card-name a {
    color: inherit;
    text-decoration: none;
}

.team-card-role {
    font-size: 11px;
    opacity: 0.5;
    font-weight: 500;
}

@media (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-card-banner {
        height: 70px;
    }

    .team-card-avatar {
        width: 64px;
        height: 64px;
        margin-top: -32px;
    }
}

/* ==========================================
   VALUES / TELEPORTER PAGES
   ========================================== */

.val-board-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.val-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.val-item-row:last-child {
    border-bottom: none;
}

.val-item-row:hover {
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    color: inherit;
}

.val-item-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
}

.val-item-img img {
    max-width: 36px;
    max-height: 36px;
}

.val-item-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.val-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #ffd54f;
    flex-shrink: 0;
}

.val-search-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.val-search-group {
    display: flex;
    gap: 8px;
}

.val-search-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.val-search-input:focus {
    border-color: rgba(255,255,255,0.2);
}

.val-search-input::placeholder {
    opacity: 0.35;
}

.val-search-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.val-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66,165,245,0.3);
}

.val-preview-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 16px;
}

.val-preview-card img {
    max-height: 120px;
}

.val-chart-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

/* ==========================================
   EVENTS TIMETABLE (habbo) - extra styles
   ========================================== */

.evt-booking-count {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.45;
    display: block;
    margin-top: 2px;
}

.evt-room-link {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(66,165,245,0.1);
    color: #42a5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.evt-room-link:hover {
    background: rgba(66,165,245,0.2);
    color: #42a5f5;
    text-decoration: none;
}

.evt-winner-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.evt-winner-row:last-child {
    border-bottom: none;
}

.evt-winner-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.evt-winner-value {
    font-size: 12px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* ==========================================
   BADGES LEADERBOARD
   ========================================== */

.blb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.blb-user-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px 16px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blb-user-card:hover {
    border-color: rgba(255,213,79,0.2);
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.blb-user-habbo {
    height: 90px;
    overflow: hidden;
    margin-bottom: 8px;
}

.blb-user-habbo img {
    display: block;
    margin: 0 auto;
}

.blb-user-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}

.blb-user-count {
    font-size: 12px;
    color: #ffd54f;
    font-weight: 600;
}

.blb-user-count i {
    font-size: 11px;
}

.blb-sync-section {
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
}

.blb-sync-section p {
    margin-bottom: 10px;
    opacity: 0.7;
}

.blb-sync-section p:last-child {
    margin-bottom: 0;
}

.blb-sync-meta {
    font-size: 11px;
    opacity: 0.4 !important;
    font-style: italic;
}

@media (max-width: 991px) {
    .blb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .blb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ==========================================
   HABBO ITEMS (Furnis & Badges)
   ========================================== */

.hab-items-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 16px;
}

.hab-items-modal {
    max-height: 70vh;
    overflow-y: auto;
    border: none;
    margin-bottom: 0;
}

.hab-item-box {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 2px;
    color: inherit;
}

.hab-item-box:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    transform: scale(1.08);
}

.hab-item-box img {
    max-width: 38px;
    max-height: 38px;
}

.hab-item-extra {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    z-index: 1;
}

.hab-item-completed {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    color: #66bb6a;
    z-index: 1;
}

/* --- Token Shop --- */
.shop-page {
    padding-bottom: 24px;
}

.shop-items-grid {
    margin-left: -18px;
    margin-right: -18px;
}

.shop-item-col {
    padding-left: 18px;
    padding-right: 18px;
    margin-bottom: 24px;
}

.shop-category-col {
    padding-left: 18px;
    padding-right: 18px;
    margin-bottom: 4px;
}

.shop-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin: 0 0 12px 0;
}

.shop-category-col:first-of-type .shop-category-header {
    margin-top: 0;
}

.shop-category-col:not(:first-of-type) .shop-category-header {
    margin-top: 28px;
}

.shop-category-header i {
    font-size: 14px;
}

.shop-item-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    margin-bottom: 0;
    height: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.shop-item-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.shop-item-visual {
    flex-shrink: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

.shop-item-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-item-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.shop-item-vip {
    background: linear-gradient(135deg, rgba(171, 71, 188, 0.25), rgba(171, 71, 188, 0.1));
    color: #ab47bc;
}

.shop-item-default {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}

.shop-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.shop-item-card .shop-btn {
    margin-top: auto;
}

.shop-item-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.shop-item-desc {
    font-size: 13px;
    opacity: 0.75;
    color: inherit;
    margin: 0 0 12px 0;
    line-height: 1.45;
}

.shop-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 12px;
    opacity: 0.7;
}

.shop-item-price {
    color: #ffc107;
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-btn-purchase {
    background: linear-gradient(135deg, #43a047, #66bb6a);
    color: #fff;
}

.shop-btn-purchase:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.shop-btn-owned {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

.shop-btn-locked {
    background: rgba(239, 83, 80, 0.2);
    color: #ef5350;
    cursor: not-allowed;
}

.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-token-balance {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.06));
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.shop-token-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.shop-token-content {
    display: flex;
    flex-direction: column;
}

.shop-token-value {
    font-size: 24px;
    font-weight: 700;
}

.shop-token-label {
    font-size: 12px;
    opacity: 0.7;
}

.shop-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.shop-sidebar-title i {
    opacity: 0.8;
}

.shop-sidebar-card {
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    line-height: 1.45;
}

.shop-donate-list {
    margin: 8px 0;
    padding-left: 18px;
}

.shop-conversion {
    color: #66bb6a;
}

.shop-note {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-note i {
    color: #ffc107;
    margin-right: 4px;
}

.shop-leaderboard {
    padding: 0;
    overflow: hidden;
}

.shop-leaderboard-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease;
}

.shop-leaderboard-row:last-child {
    border-bottom: none;
}

.shop-leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.shop-leaderboard-rank {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.5;
    min-width: 24px;
}

.shop-leaderboard-name {
    flex: 1;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-leaderboard-tokens {
    font-size: 12px;
    color: #ffc107;
    font-weight: 600;
}

body.theme-light .shop-item-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .shop-item-card:hover {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.12);
}

body.theme-light .shop-item-card .shop-item-name {
    color: #1a1a1a;
}

body.theme-light .shop-item-card .shop-item-desc {
    color: #5a5a5a;
}

body.theme-light .shop-token-balance {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.25);
}

body.theme-light .shop-sidebar-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .shop-leaderboard-row {
    border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .shop-leaderboard-row:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.theme-light .shop-btn-owned {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}
