/* =============================================================
   GameSold — Inner Pages Stylesheet
   Shared component library for all inner pages. Builds on the
   theme variables defined in style.css (:root).
   ============================================================= */

/* ===== NAVBAR EXTENSIONS (responsive nav + dropdowns) ===== */
.navbar.scrolled {
    background: rgba(8, 8, 10, 0.95);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.nav-link-custom {
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
}

.nav-link-custom.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.navbar .dropdown-toggle::after {
    margin-left: 4px;
    vertical-align: middle;
    border-top-color: currentColor;
}

.navbar-toggler {
    border: 1px solid var(--glass-border);
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.gs-dropdown {
    background: #121216;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    margin-top: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.gs-dropdown .dropdown-item {
    color: var(--text-gray);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.gs-dropdown .dropdown-item:hover,
.gs-dropdown .dropdown-item:focus {
    background: rgba(217, 4, 41, 0.12);
    color: #fff;
}

.gs-dropdown .dropdown-item i {
    color: var(--primary-red);
    width: 18px;
}

.dropdown-divider {
    border-color: var(--glass-border);
}

/* Header action icons */
.nav-actions .icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-actions .icon-btn:hover {
    color: #fff;
    border-color: rgba(217, 4, 41, 0.4);
    background: rgba(217, 4, 41, 0.1);
}

.nav-dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
    border: 2px solid var(--bg-header);
}

.nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    border-radius: 30px;
    padding: 4px 12px 4px 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.user-chip:hover {
    border-color: rgba(217, 4, 41, 0.4);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* Notifications dropdown */
.gs-notif {
    width: 320px;
    background: #121216;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0;
    margin-top: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.gs-notif-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.gs-notif-head a {
    color: var(--primary-red);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.gs-notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
}

.gs-notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.gs-notif-item .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.bg-red { background: var(--primary-red); }
.bg-green { background: #2ecc71; }
.bg-blue { background: var(--blue-accent); }

.gs-notif-item p {
    margin: 0;
    color: var(--text-white);
    font-size: 0.82rem;
    line-height: 1.4;
}

.gs-notif-item small {
    color: var(--text-gray);
    font-size: 0.7rem;
}

@media (max-width: 992px) {
    .navbar-collapse {
        background: #0c0c0f;
        border: 1px solid var(--glass-border);
        border-radius: 14px;
        padding: 16px;
        margin-top: 12px;
    }
    .nav-actions {
        margin-top: 12px;
        flex-wrap: wrap;
    }
    .nav-link-custom { width: 100%; }
}

/* ===== PAGE HEADER / BREADCRUMB ===== */
.page-head {
    position: relative;
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.page-head::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 10%;
    width: 400px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(217, 4, 41, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.breadcrumb-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.breadcrumb-bar a {
    color: var(--text-gray);
    text-decoration: none;
}

.breadcrumb-bar a:hover { color: #fff; }
.breadcrumb-bar .sep { opacity: 0.5; }
.breadcrumb-bar .current { color: var(--primary-red); font-weight: 600; }

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.15;
    position: relative;
}

.page-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: 8px;
    margin-bottom: 0;
    max-width: 640px;
}

/* ===== GENERIC CARD / PANEL ===== */
.panel {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.muted { color: var(--text-gray); }
.text-accent { color: var(--primary-red); }

/* Buttons (extra) */
.btn-primary-red {
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.btn-primary-red:hover {
    background: var(--primary-red-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(217, 4, 41, 0.3);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-blue {
    background: var(--blue-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.btn-blue:hover { background: #4a7ae8; color: #fff; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-gray);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.chip:hover, .chip.active {
    background: rgba(217, 4, 41, 0.12);
    border-color: rgba(217, 4, 41, 0.4);
    color: #fff;
}

/* ===== TWO-COLUMN LAYOUT (sidebar + content) ===== */
.layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.sidebar-sticky { position: sticky; top: 90px; }

@media (max-width: 991px) {
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar-sticky { position: static; }
}

/* ===== FILTER SIDEBAR ===== */
.filter-panel { padding: 20px; }
.filter-group { margin-bottom: 22px; }
.filter-group:last-child { margin-bottom: 0; }

.filter-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.85rem;
    padding: 6px 0;
    cursor: pointer;
}

.filter-check input { accent-color: var(--primary-red); width: 16px; height: 16px; }
.filter-check:hover { color: #fff; }
.filter-check .count { margin-left: auto; font-size: 0.75rem; opacity: 0.7; }

.range-row { display: flex; gap: 10px; align-items: center; }
.range-row input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    padding: 8px 10px;
    width: 100%;
    font-size: 0.85rem;
}

/* ===== PRODUCT / LISTING GRID ===== */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 1200px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .listing-grid { grid-template-columns: 1fr; } }

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.view-toggle { display: flex; gap: 6px; }
.view-toggle button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    width: 38px; height: 38px;
    border-radius: 8px;
}
.view-toggle button.active { background: var(--primary-red); color: #fff; border-color: var(--primary-red); }

/* ===== PAGINATION ===== */
.gs-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 36px;
}
.gs-pagination a {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 12px;
    transition: all 0.2s;
}
.gs-pagination a:hover { color: #fff; border-color: rgba(217, 4, 41, 0.4); }
.gs-pagination a.active { background: var(--primary-red); color: #fff; border-color: var(--primary-red); }

/* ===== PRODUCT DETAIL ===== */
.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
}
@media (max-width: 991px) { .detail-grid { grid-template-columns: 1fr; } }

.gallery-main {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
    background: #000;
}
.gallery-main img { width: 100%; height: 420px; object-fit: cover; display: block; }

.gallery-thumbs { display: flex; gap: 12px; margin-top: 12px; }
.gallery-thumbs img {
    width: 90px; height: 64px; object-fit: cover;
    border-radius: 10px; border: 2px solid transparent; cursor: pointer; opacity: 0.6;
    transition: all 0.2s;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--primary-red); opacity: 1; }

.detail-price { font-size: 2rem; font-weight: 800; color: #fff; }
.detail-price small { color: var(--text-gray); font-size: 1rem; font-weight: 500; text-decoration: line-through; margin-left: 8px; }

.spec-list { display: flex; flex-direction: column; gap: 0; margin: 20px 0; }
.spec-list .row-item {
    display: flex; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid var(--glass-border);
    font-size: 0.88rem;
}
.spec-list .row-item span:first-child { color: var(--text-gray); }
.spec-list .row-item span:last-child { color: #fff; font-weight: 600; }

/* Tabs */
.gs-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--glass-border); margin-bottom: 20px; flex-wrap: wrap; }
.gs-tabs .nav-link {
    color: var(--text-gray); border: none; background: none;
    padding: 12px 18px; font-weight: 600; font-size: 0.88rem;
    border-bottom: 2px solid transparent; border-radius: 0;
}
.gs-tabs .nav-link.active { color: #fff; border-bottom-color: var(--primary-red); background: none; }

/* Seller mini-card */
.seller-mini {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px; padding: 16px;
}
.seller-mini img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.seller-mini .name { color: #fff; font-weight: 700; }
.seller-mini .meta { color: var(--text-gray); font-size: 0.78rem; }

/* ===== PROFILE / COVER HEADER ===== */
.cover {
    height: 200px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(217, 4, 41, 0.4), rgba(56, 103, 214, 0.3)), var(--card-bg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.cover::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 60%);
}
.profile-bar {
    display: flex; align-items: flex-end; gap: 20px;
    margin-top: -50px; padding: 0 24px; position: relative; z-index: 2;
    flex-wrap: wrap;
}
.profile-avatar {
    width: 110px; height: 110px; border-radius: 20px;
    border: 4px solid var(--bg-dark); object-fit: cover; background: #111;
}
.profile-meta h2 { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0; }
.profile-meta .handle { color: var(--text-gray); font-size: 0.9rem; }
.verified { color: var(--blue-accent); }

.stat-inline { display: flex; gap: 28px; flex-wrap: wrap; }
.stat-inline .num { font-size: 1.2rem; font-weight: 800; color: #fff; display: block; }
.stat-inline .lbl { font-size: 0.75rem; color: var(--text-gray); }

/* ===== STAT CARDS (dashboard) ===== */
.stat-cards {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 991px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-cards { grid-template-columns: 1fr; } }

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
}
.stat-card .ic {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: 14px;
}
.ic-red { background: rgba(217, 4, 41, 0.12); color: var(--primary-red); }
.ic-blue { background: rgba(56, 103, 214, 0.14); color: #5b8bff; }
.ic-green { background: rgba(46, 204, 113, 0.12); color: #2ecc71; }
.ic-gold { background: rgba(255, 183, 3, 0.12); color: var(--rating-gold); }

.stat-card .val { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-card .lbl { color: var(--text-gray); font-size: 0.82rem; margin-top: 6px; }
.trend-up { color: #2ecc71; font-size: 0.75rem; font-weight: 600; }
.trend-down { color: var(--text-danger); font-size: 0.75rem; font-weight: 600; }

/* ===== DASHBOARD SIDE NAV ===== */
.dash-nav {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px;
}
.dash-nav a {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-gray); text-decoration: none;
    padding: 11px 14px; border-radius: 10px;
    font-size: 0.88rem; font-weight: 500; transition: all 0.2s;
    margin-bottom: 2px;
}
.dash-nav a i { width: 18px; text-align: center; }
.dash-nav a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.dash-nav a.active { background: var(--primary-red); color: #fff; }
.dash-nav a .pill {
    margin-left: auto; background: rgba(255,255,255,0.12);
    font-size: 0.68rem; padding: 1px 8px; border-radius: 10px;
}
.dash-nav a.active .pill { background: rgba(0,0,0,0.25); }
.dash-nav .nav-sep { border: 0; border-top: 1px solid var(--glass-border); margin: 8px 4px; }

/* ===== TABLES ===== */
.gs-table-wrap {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}
.gs-table { width: 100%; border-collapse: collapse; }
.gs-table thead th {
    text-align: left; color: var(--text-gray);
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px;
    font-weight: 700; padding: 14px 18px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}
.gs-table tbody td {
    padding: 14px 18px; font-size: 0.85rem; color: var(--text-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle;
}
.gs-table tbody tr:last-child td { border-bottom: none; }
.gs-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.gs-table .prod-cell { display: flex; align-items: center; gap: 12px; }
.gs-table .prod-cell img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

.status-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 600;
}
.st-active { background: rgba(46, 204, 113, 0.12); color: #2ecc71; }
.st-pending { background: rgba(255, 183, 3, 0.12); color: var(--rating-gold); }
.st-sold { background: rgba(56, 103, 214, 0.14); color: #5b8bff; }
.st-cancelled { background: rgba(217, 4, 41, 0.12); color: var(--text-danger); }
.st-draft { background: rgba(141, 153, 174, 0.14); color: var(--text-gray); }

.icon-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    width: 32px; height: 32px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.2s; margin-right: 4px;
}
.icon-action:hover { color: #fff; border-color: rgba(217, 4, 41, 0.4); }

/* ===== FORMS ===== */
.form-section { margin-bottom: 28px; }
.gs-label {
    display: block; color: #fff; font-size: 0.85rem;
    font-weight: 600; margin-bottom: 8px;
}
.gs-input, .gs-select, .gs-textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff; padding: 11px 14px; width: 100%;
    font-size: 0.88rem; transition: all 0.2s;
}
.gs-input::placeholder, .gs-textarea::placeholder { color: rgba(255, 255, 255, 0.3); }
.gs-input:focus, .gs-select:focus, .gs-textarea:focus {
    outline: none;
    border-color: rgba(217, 4, 41, 0.4);
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.1);
    background: rgba(255, 255, 255, 0.06);
}
.gs-textarea { resize: vertical; min-height: 120px; }
.gs-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238d99ae' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
    padding-right: 36px;
}
.field-hint { color: var(--text-gray); font-size: 0.75rem; margin-top: 6px; }

.upload-box {
    border: 2px dashed var(--glass-border);
    border-radius: 14px; padding: 36px; text-align: center;
    color: var(--text-gray); cursor: pointer; transition: all 0.2s;
}
.upload-box:hover { border-color: rgba(217, 4, 41, 0.4); color: #fff; }
.upload-box i { font-size: 2rem; color: var(--primary-red); margin-bottom: 10px; }

/* Toggle switch */
.toggle-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; border-bottom: 1px solid var(--glass-border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row .t-title { color: #fff; font-weight: 600; font-size: 0.9rem; }
.toggle-row .t-desc { color: var(--text-gray); font-size: 0.78rem; }
.form-switch .form-check-input { width: 44px; height: 24px; background-color: rgba(255,255,255,0.1); border-color: transparent; cursor: pointer; }
.form-switch .form-check-input:checked { background-color: var(--primary-red); border-color: var(--primary-red); }
.form-switch .form-check-input:focus { box-shadow: none; border-color: transparent; }

/* ===== FORUM ===== */
.forum-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px; padding: 18px 20px;
    display: flex; gap: 16px; margin-bottom: 14px;
    transition: all 0.2s; text-decoration: none;
}
.forum-item:hover { border-color: rgba(217, 4, 41, 0.3); transform: translateY(-2px); }
.forum-vote {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; color: var(--text-gray); min-width: 48px;
}
.forum-vote .arrow { background: none; border: none; color: var(--text-gray); font-size: 0.95rem; cursor: pointer; }
.forum-vote .arrow:hover { color: var(--primary-red); }
.forum-vote .score { font-weight: 800; color: #fff; font-size: 1rem; }
.forum-body { flex: 1; }
.forum-body .ftitle { color: #fff; font-weight: 700; font-size: 1.02rem; margin: 0 0 6px; }
.forum-body .fexcerpt { color: var(--text-gray); font-size: 0.85rem; margin: 0 0 10px; line-height: 1.6; }
.forum-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-gray); font-size: 0.78rem; align-items: center; }
.forum-meta a { color: var(--primary-red); text-decoration: none; font-weight: 600; }
.tag-pill {
    background: rgba(56, 103, 214, 0.12); color: #5b8bff;
    padding: 2px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600;
}

/* Thread post */
.post-card {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 22px; margin-bottom: 16px;
}
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.post-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.post-head .pname { color: #fff; font-weight: 700; font-size: 0.9rem; }
.post-head .ptime { color: var(--text-gray); font-size: 0.75rem; }
.post-content { color: var(--text-white); font-size: 0.92rem; line-height: 1.75; }
.post-actions { display: flex; gap: 18px; margin-top: 16px; color: var(--text-gray); font-size: 0.82rem; }
.post-actions button { background: none; border: none; color: var(--text-gray); transition: color 0.2s; }
.post-actions button:hover { color: var(--primary-red); }
.reply-indent { margin-left: 40px; border-left: 2px solid var(--glass-border); padding-left: 16px; }

/* ===== Q&A ===== */
.qa-item { display: flex; gap: 18px; }
.qa-stats { display: flex; flex-direction: column; gap: 10px; text-align: center; min-width: 70px; }
.qa-stats .box { font-size: 0.72rem; color: var(--text-gray); }
.qa-stats .box b { display: block; font-size: 1.05rem; color: #fff; }
.qa-stats .box.answered { color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); border-radius: 8px; padding: 6px; }

/* ===== POLLS ===== */
.poll-option {
    position: relative; background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border); border-radius: 10px;
    padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
    overflow: hidden; transition: all 0.2s;
}
.poll-option:hover { border-color: rgba(217, 4, 41, 0.4); }
.poll-fill { position: absolute; inset: 0; background: rgba(217, 4, 41, 0.15); z-index: 0; }
.poll-option .label, .poll-option .pct { position: relative; z-index: 1; color: #fff; font-size: 0.88rem; font-weight: 600; }
.poll-option .pct { float: right; }

/* ===== MEMBERS / CARDS GRID ===== */
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .cards-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991px) { .cards-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid-3, .cards-grid-4 { grid-template-columns: 1fr; } }

.member-card {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 24px; text-align: center; transition: all 0.2s;
}
.member-card:hover { border-color: rgba(217, 4, 41, 0.3); transform: translateY(-3px); }
.member-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.member-card .mname { color: #fff; font-weight: 700; font-size: 0.95rem; }
.member-card .mrole { color: var(--primary-red); font-size: 0.75rem; font-weight: 600; }
.member-card .mbio { color: var(--text-gray); font-size: 0.78rem; margin: 10px 0; min-height: 38px; }

.online-dot { width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; display: inline-block; }

/* ===== EVENTS ===== */
.event-card {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: 16px; overflow: hidden; display: flex; transition: all 0.2s;
}
.event-card:hover { border-color: rgba(217, 4, 41, 0.3); transform: translateY(-3px); }
.event-date {
    background: linear-gradient(160deg, var(--primary-red), #8b0018);
    color: #fff; padding: 22px 18px; text-align: center; min-width: 92px;
    display: flex; flex-direction: column; justify-content: center;
}
.event-date .d { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.event-date .m { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.event-info { padding: 18px 20px; flex: 1; }
.event-info h4 { color: #fff; font-weight: 700; font-size: 1rem; margin: 0 0 8px; }
.event-info .e-meta { color: var(--text-gray); font-size: 0.8rem; display: flex; flex-direction: column; gap: 4px; }

/* ===== GROUPS ===== */
.group-card {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: 16px; overflow: hidden; transition: all 0.2s;
}
.group-card:hover { border-color: rgba(217, 4, 41, 0.3); transform: translateY(-3px); }
.group-banner { height: 90px; background: linear-gradient(135deg, rgba(217,4,41,0.5), rgba(56,103,214,0.4)); }
.group-body { padding: 18px; }
.group-body h4 { color: #fff; font-weight: 700; font-size: 1rem; margin: 0 0 6px; }

/* ===== MESSAGES ===== */
.msg-layout {
    display: grid; grid-template-columns: 320px 1fr;
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: 16px; overflow: hidden; height: 600px;
}
@media (max-width: 768px) {
    .msg-layout { grid-template-columns: 1fr; height: auto; }
    .msg-list { max-height: 280px; border-right: none; border-bottom: 1px solid var(--glass-border); }
    .msg-body { min-height: 320px; }
    .conv .cpreview { max-width: 60vw; }
}
.msg-list { border-right: 1px solid var(--glass-border); overflow-y: auto; }
.msg-list-head { padding: 16px; border-bottom: 1px solid var(--glass-border); }
.conv {
    display: flex; gap: 12px; padding: 14px 16px; cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.2s;
}
.conv:hover, .conv.active { background: rgba(255,255,255,0.04); }
.conv.active { border-left: 3px solid var(--primary-red); }
.conv img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.conv .cname { color: #fff; font-weight: 600; font-size: 0.85rem; }
.conv .cpreview { color: var(--text-gray); font-size: 0.77rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.conv .ctime { color: var(--text-gray); font-size: 0.68rem; margin-left: auto; }

.msg-thread { display: flex; flex-direction: column; }
.msg-thread-head { padding: 16px 20px; border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; gap: 12px; }
.msg-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 70%; padding: 12px 16px; border-radius: 16px; font-size: 0.86rem; line-height: 1.5; }
.bubble.them { background: rgba(255,255,255,0.06); color: var(--text-white); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--primary-red); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble .time { display: block; font-size: 0.65rem; opacity: 0.6; margin-top: 4px; }
.msg-compose { padding: 14px 16px; border-top: 1px solid var(--glass-border); display: flex; gap: 10px; }

/* ===== FAQ ACCORDION ===== */
.gs-accordion .accordion-item { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 12px !important; margin-bottom: 12px; overflow: hidden; }
.gs-accordion .accordion-button {
    background: var(--card-bg); color: #fff; font-weight: 600; font-size: 0.95rem;
    padding: 18px 20px; box-shadow: none;
}
.gs-accordion .accordion-button:not(.collapsed) { background: rgba(217,4,41,0.08); color: #fff; }
.gs-accordion .accordion-button:focus { box-shadow: none; border: none; }
.gs-accordion .accordion-button::after { filter: invert(0.6); }
.gs-accordion .accordion-body { color: var(--text-gray); font-size: 0.88rem; line-height: 1.7; padding: 0 20px 20px; }

/* ===== LEGAL / PROSE ===== */
.prose { max-width: 820px; }
.prose h2 { color: #fff; font-size: 1.25rem; font-weight: 700; margin: 32px 0 12px; }
.prose h3 { color: #fff; font-size: 1.05rem; font-weight: 700; margin: 24px 0 10px; }
.prose p, .prose li { color: var(--text-gray); font-size: 0.92rem; line-height: 1.8; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--primary-red); }
.toc {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: 14px; padding: 18px;
}
.toc a { display: block; color: var(--text-gray); text-decoration: none; padding: 7px 0; font-size: 0.85rem; }
.toc a:hover { color: #fff; }

/* ===== CONTACT ===== */
.contact-info-card {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: 14px; padding: 20px; display: flex; gap: 14px; align-items: flex-start;
}
.contact-info-card .ic {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: rgba(217,4,41,0.12); color: var(--primary-red);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 2.6rem; color: var(--text-gray); opacity: 0.5; margin-bottom: 16px; }
.empty-state h4 { color: #fff; font-weight: 700; }
.empty-state p { color: var(--text-gray); font-size: 0.88rem; }

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, rgba(217,4,41,0.18), rgba(56,103,214,0.12)), var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: 1.9rem; font-weight: 800; color: #fff; }
.cta-banner p { color: var(--text-gray); max-width: 560px; margin: 12px auto 24px; }

/* ===== SECTION HELPERS ===== */
.section-link { color: var(--primary-red); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.section-link:hover { color: var(--primary-red-hover); }

.avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.divider { border: 0; border-top: 1px solid var(--glass-border); margin: 24px 0; }

/* ===== INTERACTIVE STATES (main.js) ===== */
.forum-vote .arrow.active { color: var(--primary-red); }
.poll-option.voted {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(217, 4, 41, 0.2);
}
.poll-option.voted .label::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-red);
    margin-right: 8px;
}

/* small responsive tweaks */
@media (max-width: 768px) {
    .page-title { font-size: 1.5rem; }
    .panel { padding: 18px; }
    .gs-table-wrap { overflow-x: auto; }
    .gs-table { min-width: 640px; }
}

/* ===== GLOBAL RESPONSIVE SAFETY ===== */
img, svg, video { max-width: 100%; }

/* Notifications dropdown must never overflow small screens */
.gs-notif { max-width: calc(100vw - 32px); }

/* Tablet & below */
@media (max-width: 991px) {
    .page-head { padding: 36px 0 26px; }
    .gallery-main img { height: 320px; }
    .detail-price { font-size: 1.7rem; }
}

/* Phones */
@media (max-width: 768px) {
    .page-head { padding: 30px 0 22px; }
    .section-block { padding: 28px 0; }

    /* Header actions wrap cleanly inside the mobile menu */
    .nav-actions { width: 100%; justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
    .nav-actions .btn-signin { flex: 1 1 auto; }
    .user-chip { flex: 1 1 auto; justify-content: center; }

    /* Profile / cover header */
    .cover { height: 150px; }
    .profile-bar { flex-direction: column; align-items: center; text-align: center; margin-top: -56px; padding: 0 12px; }
    .profile-bar .d-flex.gap-2 { width: 100%; justify-content: center; }
    .stat-inline { justify-content: center; gap: 20px; }

    /* Events: stack the date strip on top */
    .event-card { flex-direction: column; }
    .event-date { flex-direction: row; gap: 8px; min-width: 0; padding: 12px 18px; justify-content: center; }
    .event-date .d { font-size: 1.4rem; }
    .event-card .d-flex.align-items-center.pe-3 { padding: 0 18px 18px; }
    .event-card .d-flex.align-items-center.pe-3 .btn { width: 100%; }

    /* Product detail tabs scroll horizontally instead of squashing */
    .gs-tabs { flex-wrap: nowrap; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
    .gs-tabs::-webkit-scrollbar { display: none; }
    .gs-tabs .nav-link { white-space: nowrap; }

    /* Thread reply indentation tightened */
    .reply-indent { margin-left: 16px; padding-left: 12px; }

    /* CTA banner padding */
    .cta-banner { padding: 32px 22px; }
    .cta-banner h2 { font-size: 1.5rem; }

    /* Toolbar search inputs go full width */
    .toolbar .search-bar { max-width: 100% !important; width: 100%; }
}

/* Small phones */
@media (max-width: 480px) {
    .page-title { font-size: 1.35rem; }
    .hero-title, .hero-title-accent { font-size: 1.7rem; }
    .detail-price { font-size: 1.5rem; }
    .gallery-main img { height: 240px; }
    .gallery-thumbs img { width: 64px; height: 48px; }
    .stat-card .val { font-size: 1.4rem; }
    .qa-item, .forum-item { gap: 10px; }
    .forum-vote { min-width: 38px; }
    .bubble { max-width: 85%; }
    .gs-pagination a { min-width: 36px; height: 36px; }
}

/* ===== AUTH PAGES (login / signup) ===== */
.auth-wrap {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}
.auth-wrap::before {
    content: "";
    position: absolute;
    top: -150px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(ellipse, rgba(217, 4, 41, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.auth-wrap::after {
    content: "";
    position: absolute;
    bottom: -200px; left: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(ellipse, rgba(217, 4, 41, 0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-hero {
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(217, 4, 41, 0.12) 0%, rgba(15, 15, 18, 0.6) 100%);
    border-right: 1px solid var(--glass-border);
    position: relative;
}
.auth-hero .auth-brand {
    display: flex; align-items: center; gap: 10px; margin-bottom: 32px;
}
.auth-hero .auth-brand img { width: 38px; height: 38px; }
.auth-hero .auth-brand .logo-text { font-size: 1.4rem; font-weight: 800; color: #fff; }
.auth-hero h2 {
    font-size: 2.2rem; font-weight: 800; color: #fff;
    line-height: 1.15; margin-bottom: 16px;
}
.auth-hero h2 .accent { color: var(--primary-red); }
.auth-hero p.lead {
    color: var(--text-gray); font-size: 1rem;
    max-width: 440px; margin-bottom: 36px;
}
.auth-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.auth-features li {
    display: flex; align-items: flex-start; gap: 14px;
    color: var(--text-gray); font-size: 0.92rem;
}
.auth-features li i {
    width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(217, 4, 41, 0.15);
    color: var(--primary-red);
    flex-shrink: 0;
}
.auth-features li b { color: #fff; display: block; margin-bottom: 2px; font-size: 0.95rem; }

.auth-form-col {
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}
.auth-card h1 {
    font-size: 1.75rem; font-weight: 800; color: #fff; margin: 0 0 6px;
}
.auth-card .sub {
    color: var(--text-gray); font-size: 0.9rem; margin-bottom: 28px;
}

.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.btn-social {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    padding: 11px 14px;
    font-size: 0.85rem; font-weight: 600;
    transition: all 0.2s;
    width: 100%;
}
.btn-social:hover {
    border-color: rgba(217, 4, 41, 0.4);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.btn-social i { font-size: 1rem; }
.btn-social.google i { color: #ea4335; }
.btn-social.discord i { color: #5865f2; }

.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 18px 0 22px;
    color: var(--text-gray); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.auth-divider::before, .auth-divider::after {
    content: ""; flex: 1; height: 1px; background: var(--glass-border);
}

.auth-card .form-section { margin-bottom: 16px; }
.input-with-icon { position: relative; }
.input-with-icon i.field-icon {
    position: absolute; top: 50%; left: 14px; transform: translateY(-50%);
    color: var(--text-gray); font-size: 0.85rem; pointer-events: none;
}
.input-with-icon .gs-input { padding-left: 40px; }
.input-with-icon .pwd-toggle {
    position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
    background: transparent; border: 0; color: var(--text-gray);
    cursor: pointer; padding: 4px; font-size: 0.85rem;
}
.input-with-icon .pwd-toggle:hover { color: #fff; }

.auth-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin: 4px 0 20px; flex-wrap: wrap;
}
.auth-check {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-gray); font-size: 0.82rem; cursor: pointer;
}
.auth-check input { accent-color: var(--primary-red); width: 14px; height: 14px; }
.auth-link { color: var(--primary-red); font-size: 0.82rem; text-decoration: none; font-weight: 600; }
.auth-link:hover { color: var(--primary-red-hover); text-decoration: underline; }

.btn-auth-submit {
    width: 100%;
    background: var(--primary-red);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 13px 18px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(217, 4, 41, 0.25);
}
.btn-auth-submit:hover { background: var(--primary-red-hover); transform: translateY(-1px); }

.auth-foot {
    text-align: center; color: var(--text-gray); font-size: 0.85rem;
    margin-top: 22px;
}
.auth-foot a { color: var(--primary-red); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.pwd-strength {
    display: flex; gap: 4px; margin-top: 8px;
}
.pwd-strength span {
    flex: 1; height: 4px; border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
}
.pwd-strength[data-level="1"] span:nth-child(-n+1) { background: #ef233c; }
.pwd-strength[data-level="2"] span:nth-child(-n+2) { background: #f77f00; }
.pwd-strength[data-level="3"] span:nth-child(-n+3) { background: #fcbf49; }
.pwd-strength[data-level="4"] span { background: #06d6a0; }

/* Auth responsive */
@media (max-width: 991.98px) {
    .auth-grid { grid-template-columns: 1fr; }
    .auth-hero {
        padding: 40px 32px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    .auth-hero h2 { font-size: 1.7rem; }
    .auth-form-col { padding: 40px 32px; }
}
@media (max-width: 575.98px) {
    .auth-hero { padding: 32px 20px; }
    .auth-hero h2 { font-size: 1.45rem; }
    .auth-hero p.lead { font-size: 0.9rem; margin-bottom: 24px; }
    .auth-features li { font-size: 0.85rem; }
    .auth-form-col { padding: 32px 20px; }
    .auth-card h1 { font-size: 1.4rem; }
    .social-row { grid-template-columns: 1fr; }
}
