/**
 * Telegram Bots Directory — Styles
 * Prefix: tgb-
 * @since 9.0
 */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
    --tgb-primary: #0088cc;
    --tgb-primary-hover: #006da3;
    --tgb-primary-bg: rgba(0, 136, 204, 0.08);
    --tgb-primary-border: rgba(0, 136, 204, 0.15);
    --tgb-success: #27ae60;
    --tgb-danger: #e74c3c;
    --tgb-warning: #f39c12;
    --tgb-text: #1a1a2e;
    --tgb-text-secondary: #666;
    --tgb-border: #e8eaed;
    --tgb-bg: #f5f6fa;
    --tgb-card-bg: #fff;
    --tgb-card-shadow: 0 1px 4px rgba(0,0,0,0.06);
    --tgb-card-hover-shadow: 0 4px 16px rgba(0,0,0,0.1);
    --tgb-radius: 10px;
    --tgb-radius-sm: 6px;
    --tgb-gap: 16px;
}

/* Dark Mode */
body.misk-dark .tgb-page,
body.misk-dark .tgb-single-page {
    --tgb-text: #e0e0e0;
    --tgb-text-secondary: #aaa;
    --tgb-border: #333;
    --tgb-bg: #1a1a2e;
    --tgb-card-bg: #242438;
    --tgb-card-shadow: 0 1px 4px rgba(0,0,0,0.2);
    --tgb-card-hover-shadow: 0 4px 16px rgba(0,0,0,0.3);
    --tgb-primary-bg: rgba(0, 136, 204, 0.12);
    --tgb-primary-border: rgba(0, 136, 204, 0.2);
}

/* ========================================
   Shared / Utilities
   ======================================== */
.tgb-page .container,
.tgb-single-page .container,
.tgb-submit-page .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.tgb-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tgb-text);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tgb-section-title i {
    color: var(--tgb-primary);
    font-size: 0.95em;
}

/* Button base */
.tgb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius-sm);
    background: var(--tgb-card-bg);
    color: var(--tgb-text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.tgb-btn:hover { border-color: var(--tgb-primary); color: var(--tgb-primary); }
.tgb-btn-primary {
    background: var(--tgb-primary);
    color: #fff;
    border-color: var(--tgb-primary);
}
.tgb-btn-primary:hover {
    background: var(--tgb-primary-hover);
    color: #fff;
}

/* Copy button */
.tgb-copy-btn {
    background: none;
    border: none;
    color: var(--tgb-text-secondary);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.tgb-copy-btn:hover { color: var(--tgb-primary); }
.tgb-copy-btn.copied { color: var(--tgb-success); }

/* ========================================
   TOOLBAR (Archive)
   ======================================== */
.tgb-toolbar {
    background: var(--tgb-card-bg);
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius);
    padding: 14px 18px;
    margin-bottom: 20px;
}
.tgb-toolbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.tgb-search-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.tgb-search-form {
    display: flex;
    position: relative;
}
.tgb-search-input {
    flex: 1;
    padding: 9px 14px;
    padding-left: 38px;
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius-sm);
    font-size: 0.9rem;
    color: var(--tgb-text);
    background: var(--tgb-bg);
    transition: border-color 0.2s;
}
.tgb-search-input:focus {
    outline: none;
    border-color: var(--tgb-primary);
}
.tgb-search-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--tgb-text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
}
.tgb-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tgb-card-bg);
    border: 1px solid var(--tgb-border);
    border-radius: 0 0 var(--tgb-radius-sm) var(--tgb-radius-sm);
    box-shadow: var(--tgb-card-hover-shadow);
    display: none;
    z-index: 100;
    max-height: 360px;
    overflow-y: auto;
}
.tgb-search-results.active { display: block; }

.tgb-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--tgb-text);
    transition: background .15s;
    border-bottom: 1px solid var(--tgb-border);
}
.tgb-search-item:last-child { border-bottom: 0; }
.tgb-search-item:hover { background: var(--tgb-primary-bg); }
.tgb-search-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tgb-bg);
    color: var(--tgb-text-secondary);
    font-size: 16px;
}
.tgb-search-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tgb-search-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.tgb-search-info strong { font-size: 14px; }
.tgb-search-info small { color: var(--tgb-text-secondary); font-size: 12px; }

/* Social icons */
.tgb-social-icons {
    display: flex;
    gap: 6px;
}
.tgb-social-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tgb-bg);
    color: var(--tgb-text-secondary);
    font-size: 0.85rem;
    transition: all 0.2s;
    text-decoration: none;
}
.tgb-social-icon:hover {
    background: var(--tgb-primary);
    color: #fff;
}

/* Category dropdown */
.tgb-cat-dropdown-wrap { min-width: 160px; }
.tgb-cat-dropdown {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius-sm);
    background: var(--tgb-bg);
    color: var(--tgb-text);
    font-size: 0.85rem;
    cursor: pointer;
}

/* Filter badges */
.tgb-filter-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tgb-filter-badge {
    padding: 6px 12px;
    border: 1px solid var(--tgb-border);
    border-radius: 20px;
    background: var(--tgb-card-bg);
    color: var(--tgb-text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}
.tgb-filter-badge:hover,
.tgb-filter-badge.active {
    background: var(--tgb-primary-bg);
    border-color: var(--tgb-primary);
    color: var(--tgb-primary);
}

/* Type pills (bot types filter) */
.tgb-type-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--tgb-border);
}
.tgb-type-pill {
    padding: 5px 12px;
    border: 1px solid var(--tgb-border);
    border-radius: 20px;
    background: transparent;
    color: var(--tgb-text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.tgb-type-pill:hover,
.tgb-type-pill.active {
    background: var(--tgb-primary);
    color: #fff;
    border-color: var(--tgb-primary);
}

/* ========================================
   PAGE HEADER (Taxonomy)
   ======================================== */
.tgb-page-header {
    text-align: center;
    padding: 20px 0 16px;
}
.tgb-page-icon {
    font-size: 2rem;
    color: var(--tgb-primary);
    margin-bottom: 8px;
}
.tgb-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tgb-text);
    margin: 0 0 6px;
}
.tgb-page-desc {
    color: var(--tgb-text-secondary);
    font-size: 0.9rem;
    margin: 0 0 4px;
}
.tgb-page-count {
    display: inline-block;
    background: var(--tgb-primary-bg);
    color: var(--tgb-primary);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ========================================
   CARDS GRID
   ======================================== */
.tgb-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--tgb-gap);
    margin-bottom: 20px;
}
.tgb-cards-featured {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Card */
.tgb-card {
    background: var(--tgb-card-bg);
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.tgb-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tgb-card-hover-shadow);
}
.tgb-card.featured {
    border-color: var(--tgb-primary-border);
    box-shadow: 0 0 0 1px var(--tgb-primary-border);
}

/* Card Header */
.tgb-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 0;
}
.tgb-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--tgb-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}
.tgb-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.tgb-avatar-placeholder {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tgb-primary);
    font-size: 1.3rem;
}
.tgb-card-avatar .tgb-badge-official {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 0.75rem;
    color: var(--tgb-primary);
    background: var(--tgb-card-bg);
    border-radius: 50%;
    line-height: 1;
}
.tgb-card-avatar-ph {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--tgb-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tgb-primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}
.tgb-card-header-info,
.tgb-card-info {
    flex: 1;
    min-width: 0;
}
.tgb-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tgb-text);
    margin: 0;
    line-height: 1.3;
}
.tgb-card-title a {
    color: inherit;
    text-decoration: none;
}
.tgb-card-title a:hover { color: var(--tgb-primary); }
.tgb-card-username {
    font-size: 0.78rem;
    color: var(--tgb-text-secondary);
    display: block;
    margin-top: 1px;
}

/* Card Badges */
.tgb-card-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.tgb-card > .tgb-card-badges {
    padding: 8px 14px 0;
}
.tgb-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}
.tgb-badge-type { background: var(--tgb-primary-bg); color: var(--tgb-primary); }
.tgb-badge-lang { background: #f0f0f0; color: #666; }
body.misk-dark .tgb-badge-lang { background: #333; color: #aaa; }
.tgb-badge-free { background: rgba(39, 174, 96, 0.1); color: var(--tgb-success); }
.tgb-badge-featured { background: rgba(243, 156, 18, 0.1); color: var(--tgb-warning); }
.tgb-badge-official { background: rgba(0, 136, 204, 0.1); color: var(--tgb-primary); }

/* Card Body */
.tgb-card-body {
    padding: 8px 14px;
    flex: 1;
}
.tgb-card > .tgb-card-excerpt { padding: 8px 14px 0; }
.tgb-card > .tgb-card-cats { padding: 4px 14px 0; }
.tgb-card-excerpt {
    font-size: 0.82rem;
    color: var(--tgb-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.tgb-card-cats {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.tgb-card-cat {
    font-size: 0.7rem;
    color: var(--tgb-primary);
    background: var(--tgb-primary-bg);
    padding: 1px 7px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.tgb-card-cat:hover { background: var(--tgb-primary); color: #fff; }

/* Card Footer */
.tgb-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 12px;
    border-top: 1px solid var(--tgb-border);
    margin-top: auto;
}
.tgb-card-stats {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--tgb-text-secondary);
}
.tgb-card-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}
.tgb-card-open {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--tgb-primary);
    color: #fff;
    border-radius: var(--tgb-radius-sm);
    font-size: 0.78rem;
    text-decoration: none;
    transition: background 0.2s;
}
.tgb-card-open:hover { background: var(--tgb-primary-hover); color: #fff; }

/* ========================================
   SORT TABS
   ======================================== */
.tgb-sort-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--tgb-border);
    padding-bottom: 0;
    overflow-x: auto;
}
.tgb-sort-tab {
    padding: 8px 14px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--tgb-text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.tgb-sort-tab:hover { color: var(--tgb-primary); }
.tgb-sort-tab.active {
    color: var(--tgb-primary);
    border-bottom-color: var(--tgb-primary);
    font-weight: 600;
}

/* ========================================
   FEATURED SECTION
   ======================================== */
.tgb-featured-section {
    margin-bottom: 24px;
}
.tgb-featured-section .tgb-section-title {
    margin-bottom: 12px;
}

/* ========================================
   LOAD MORE
   ======================================== */
.tgb-load-more-wrap {
    text-align: center;
    padding: 16px 0;
}
.tgb-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--tgb-card-bg);
    border: 2px solid var(--tgb-primary);
    color: var(--tgb-primary);
    border-radius: var(--tgb-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.tgb-load-more-btn:hover {
    background: var(--tgb-primary);
    color: #fff;
}
.tgb-load-more-btn.loading i { animation: tgbSpin 1s linear infinite; }
@keyframes tgbSpin { to { transform: rotate(360deg); } }

/* ========================================
   COUNT BADGE
   ======================================== */
.tgb-count-badge {
    display: inline-block;
    background: var(--tgb-primary-bg);
    color: var(--tgb-primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 6px;
}

/* ========================================
   SUBMIT BOT SECTION
   ======================================== */
.tgb-submit-section {
    margin: 24px 0;
}
.tgb-submit-inner {
    background: linear-gradient(135deg, var(--tgb-primary) 0%, #005f8c 100%);
    color: #fff;
    border-radius: var(--tgb-radius);
    padding: 24px 30px;
    text-align: center;
}
.tgb-submit-icon { font-size: 2rem; margin-bottom: 8px; }
.tgb-submit-inner h3 { font-size: 1.2rem; margin: 0 0 6px; color: #fff; }
.tgb-submit-inner p { font-size: 0.9rem; opacity: 0.9; margin: 0 0 14px; }
.tgb-submit-inner .tgb-btn-primary {
    background: #fff;
    color: var(--tgb-primary);
    border-color: #fff;
}
.tgb-submit-inner .tgb-btn-primary:hover { opacity: 0.9; }

/* ========================================
   SUBMIT MODAL
   ======================================== */
.tgb-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.tgb-modal.active { display: flex; }
.tgb-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.tgb-modal-body {
    position: relative;
    background: var(--tgb-card-bg);
    border-radius: var(--tgb-radius);
    padding: 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.tgb-modal-close {
    position: absolute;
    top: 12px;
    left: 14px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--tgb-text-secondary);
    cursor: pointer;
    line-height: 1;
}
.tgb-modal-body h3 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    color: var(--tgb-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tgb-submit-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tgb-text);
    margin-bottom: 4px;
}
.tgb-submit-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius-sm);
    background: var(--tgb-bg);
    margin-bottom: 12px;
    overflow: hidden;
}
.tgb-submit-at {
    padding: 0 10px;
    color: var(--tgb-text-secondary);
    font-weight: 600;
    user-select: none;
}
.tgb-submit-input-wrap input {
    flex: 1;
    padding: 9px 12px;
    border: none;
    background: transparent;
    color: var(--tgb-text);
    font-size: 0.9rem;
    outline: none;
}
.tgb-submit-form select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius-sm);
    background: var(--tgb-bg);
    color: var(--tgb-text);
    font-size: 0.85rem;
    margin-bottom: 14px;
}
.tgb-submit-go {
    width: 100%;
    justify-content: center;
}
.tgb-submit-go:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.tgb-submit-status {
    margin-top: 10px;
    font-size: 0.85rem;
    text-align: center;
}
.tgb-submit-status.success { color: var(--tgb-success); }
.tgb-submit-status.error { color: var(--tgb-danger); }

/* ========================================
   CATEGORIES SECTION (Archive bottom)
   ======================================== */
.tgb-categories-section {
    margin: 24px 0 8px;
}
.tgb-categories-divider {
    text-align: center;
    position: relative;
    margin-bottom: 18px;
}
.tgb-categories-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--tgb-border);
}
.tgb-categories-divider span {
    background: var(--tgb-bg);
    padding: 0 16px;
    position: relative;
    font-weight: 700;
    color: var(--tgb-text);
    font-size: 1rem;
}
.tgb-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--tgb-gap);
}
.tgb-cat-box {
    background: var(--tgb-card-bg);
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius);
    overflow: hidden;
}
.tgb-cat-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--tgb-border);
    background: var(--tgb-bg);
}
.tgb-cat-box-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--tgb-text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.tgb-cat-box-title i { color: var(--tgb-primary); }
.tgb-cat-box-count {
    background: var(--tgb-primary-bg);
    color: var(--tgb-primary);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}
.tgb-cat-box-list {
    padding: 6px 0;
}
.tgb-cat-item {
    display: flex;
    align-items: center;
    padding: 5px 14px;
    transition: background 0.15s;
}
.tgb-cat-item:hover { background: var(--tgb-bg); }
.tgb-cat-item-highlight { background: var(--tgb-primary-bg); }
.tgb-cat-item-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: var(--tgb-text);
}
.tgb-cat-item-link:hover { color: var(--tgb-primary); }
.tgb-cat-item-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.tgb-cat-item-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.tgb-cat-letter {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tgb-primary-bg);
    color: var(--tgb-primary);
    border-radius: 50%;
    font-size: 0.75rem;
}
.tgb-cat-item-name {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tgb-cat-item-go {
    padding: 4px 8px;
    color: var(--tgb-primary);
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.tgb-cat-item:hover .tgb-cat-item-go { opacity: 1; }
.tgb-cat-box-more {
    display: block;
    text-align: center;
    padding: 8px;
    border-top: 1px solid var(--tgb-border);
    color: var(--tgb-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.tgb-cat-box-more:hover { background: var(--tgb-primary-bg); }

/* ========================================
   NO RESULTS
   ======================================== */
.tgb-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--tgb-text-secondary);
}
.tgb-no-results i { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.tgb-no-results p { margin: 0; font-size: 1rem; }

/* ========================================
   SINGLE BOT PAGE — HERO v2 (merged info)
   ======================================== */
.tgb-single-main {
    padding: 0 16px;
    max-width: 1280px;
    margin: 0 auto;
}
.tgb-hero-v2 {
    background: var(--tgb-card-bg);
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius);
    padding: 20px;
    margin-bottom: 14px;
}
.tgb-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.tgb-hero-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.tgb-hero-v2 .tgb-hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.tgb-hero-v2 .tgb-hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tgb-primary-border);
    background: var(--tgb-bg);
}
.tgb-hero-v2 .tgb-hero-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tgb-primary-bg);
    color: var(--tgb-primary);
    font-size: 1.8rem;
    width: 72px;
    height: 72px;
    border-radius: 50%;
}
.tgb-hero-v2 .tgb-hero-official {
    position: absolute;
    bottom: 0;
    right: 0;
    color: var(--tgb-primary);
    font-size: 1rem;
    background: var(--tgb-card-bg);
    border-radius: 50%;
    line-height: 1;
}
.tgb-hero-name-block {
    flex: 1;
    min-width: 0;
}
.tgb-hero-v2 .tgb-hero-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--tgb-text);
    margin: 0 0 2px;
    line-height: 1.3;
}
.tgb-hero-v2 .tgb-hero-username {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--tgb-primary);
    font-size: 0.85rem;
    margin-bottom: 4px;
    font-weight: 500;
}
.tgb-hero-v2 .tgb-hero-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}
.tgb-hero-v2 .tgb-hero-rating-stars i { color: #f39c12; font-size: 0.8rem; }
.tgb-hero-v2 .tgb-hero-rating-avg {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--tgb-text);
}
.tgb-hero-v2 .tgb-hero-rating-count {
    font-size: 0.75rem;
    color: var(--tgb-text-secondary);
}
.tgb-hero-v2 .tgb-hero-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Hero meta grid (merged info) */
.tgb-hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.tgb-hmeta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--tgb-bg);
    border-radius: var(--tgb-radius-sm);
    border: 1px solid var(--tgb-border);
}
.tgb-hmeta > i {
    color: var(--tgb-primary);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.tgb-hmeta > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.tgb-hmeta small {
    font-size: 0.68rem;
    color: var(--tgb-text-secondary);
    line-height: 1.2;
}
.tgb-hmeta strong {
    font-size: 0.82rem;
    color: var(--tgb-text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tgb-hmeta strong a {
    color: var(--tgb-primary);
    text-decoration: none;
}
.tgb-hmeta strong a:hover { text-decoration: underline; }

/* Hero stats ribbon */
.tgb-hero-stats-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--tgb-border);
    font-size: 0.78rem;
    color: var(--tgb-text-secondary);
}
.tgb-hero-stats-ribbon span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tgb-hero-stats-ribbon i {
    color: var(--tgb-primary);
    font-size: 0.75rem;
}

/* Bio section */
.tgb-bio-section {
    position: relative;
    padding-right: 24px;
}
.tgb-bio-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--tgb-primary);
    opacity: 0.2;
    font-size: 1.3rem;
}
.tgb-bio-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--tgb-text);
}

/* Deep Link section */
.tgb-deeplink-body { display: grid; gap: 10px; }
.tgb-deeplink-row label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tgb-text-secondary);
    margin-bottom: 4px;
}
.tgb-deeplink-input-wrap {
    display: flex;
    gap: 6px;
}
.tgb-deeplink-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius-sm);
    background: var(--tgb-bg);
    font-size: 0.82rem;
    color: var(--tgb-text);
    font-family: 'Courier New', monospace;
}
.tgb-deeplink-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--tgb-primary-border);
    border-radius: var(--tgb-radius-sm);
    background: var(--tgb-primary-bg);
    color: var(--tgb-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.tgb-deeplink-copy:hover { background: var(--tgb-primary); color: #fff; }

/* Share platforms */
.tgb-share-platforms {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.tgb-share-plat {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.15s, opacity 0.15s;
}
.tgb-share-plat:hover { transform: scale(1.1); opacity: 0.9; color: #fff; }
.tgb-share-telegram { background: #0088cc; }
.tgb-share-twitter { background: #1da1f2; }
.tgb-share-whatsapp { background: #25d366; }
.tgb-share-facebook { background: #1877f2; }

/* ========================================
   RATING v2 (with distribution)
   ======================================== */
.tgb-rating-body-v2 {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}
.tgb-rating-summary-v2 {
    text-align: center;
    min-width: 80px;
}
.tgb-rating-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
.tgb-rating-body-v2 .tgb-rating-big {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--tgb-text);
    line-height: 1;
}
.tgb-rating-body-v2 .tgb-rating-max {
    font-size: 0.9rem;
    color: var(--tgb-text-secondary);
}
.tgb-rating-body-v2 .tgb-rating-display-stars i { color: #f39c12; font-size: 0.85rem; }
.tgb-rating-body-v2 .tgb-rating-count-label {
    display: block;
    font-size: 0.75rem;
    color: var(--tgb-text-secondary);
    margin-top: 2px;
}

/* Distribution bars */
.tgb-rating-dist {
    display: grid;
    gap: 4px;
    flex: 1;
}
.tgb-dist-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tgb-dist-label {
    font-size: 0.72rem;
    color: var(--tgb-text-secondary);
    width: 36px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}
.tgb-dist-label i { color: #f39c12; font-size: 0.6rem; }
.tgb-dist-bar {
    flex: 1;
    height: 8px;
    background: var(--tgb-bg);
    border-radius: 4px;
    overflow: hidden;
}
.tgb-dist-fill {
    height: 100%;
    background: #f39c12;
    border-radius: 4px;
    transition: width 0.3s ease;
    min-width: 0;
}
.tgb-dist-pct {
    font-size: 0.68rem;
    color: var(--tgb-text-secondary);
    width: 28px;
    text-align: left;
}

/* Rating input v2 */
.tgb-rating-input-v2 {
    text-align: center;
    min-width: 120px;
}

/* ========================================
   ALTERNATIVES SECTION
   ======================================== */
.tgb-alternatives-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.tgb-alternatives-scroll::-webkit-scrollbar { height: 4px; }
.tgb-alternatives-scroll::-webkit-scrollbar-thumb { background: var(--tgb-border); border-radius: 2px; }
.tgb-alt-card {
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius);
    background: var(--tgb-bg);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    gap: 4px;
}
.tgb-alt-card:hover {
    border-color: var(--tgb-primary);
    box-shadow: 0 2px 8px rgba(0,136,204,0.08);
}
.tgb-alt-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 4px;
}
.tgb-alt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tgb-alt-ph {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--tgb-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tgb-primary);
    font-size: 1.2rem;
}
.tgb-alt-name {
    font-size: 0.8rem;
    color: var(--tgb-text);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.tgb-alt-user {
    font-size: 0.7rem;
    color: var(--tgb-text-secondary);
    direction: ltr;
}
.tgb-alt-rating {
    font-size: 0.7rem;
    color: #f39c12;
    display: flex;
    align-items: center;
    gap: 2px;
}
.tgb-alt-rating i { font-size: 0.6rem; }
.tgb-alt-type {
    font-size: 0.68rem;
    color: var(--tgb-text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}
.tgb-alt-type i { color: var(--tgb-primary); font-size: 0.65rem; }

/* Sidebar info compact */
.tgb-sidebar-info {
    padding: 8px 14px;
}
.tgb-sinfo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--tgb-border);
    font-size: 0.8rem;
}
.tgb-sinfo-row:last-child { border-bottom: none; }
.tgb-sinfo-row > span { color: var(--tgb-text-secondary); }
.tgb-sinfo-row > strong { color: var(--tgb-text); font-weight: 600; }
.tgb-sinfo-featured { color: #f39c12 !important; }
.tgb-sinfo-featured i { margin-left: 2px; }

/* ========================================
   BREADCRUMB
   ======================================== */
.tgb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.8rem;
    color: var(--tgb-text-secondary);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.tgb-breadcrumb a {
    color: var(--tgb-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.tgb-breadcrumb a:hover { color: var(--tgb-primary); }
.tgb-bc-sep { font-size: 0.6rem; color: var(--tgb-border); }
.tgb-breadcrumb span:last-child { color: var(--tgb-text); font-weight: 600; }

/* ========================================
   SINGLE LAYOUT (Content + Sidebar)
   ======================================== */
.tgb-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}
.tgb-article {
    background: var(--tgb-card-bg);
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius);
    padding: 18px;
    margin-bottom: 16px;
}

/* Content body */
.tgb-content-body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--tgb-text);
}

/* Commands */
.tgb-commands-list { display: grid; gap: 0; }
.tgb-command-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--tgb-border);
}
.tgb-command-row:last-child { border-bottom: none; }
.tgb-cmd {
    background: var(--tgb-bg);
    color: var(--tgb-primary);
    padding: 2px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    white-space: nowrap;
    direction: ltr;
}
.tgb-cmd-desc {
    flex: 1;
    font-size: 0.82rem;
    color: var(--tgb-text-secondary);
}
.tgb-cmd-copy { font-size: 0.75rem; }

/* Screenshots */
.tgb-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.tgb-screenshot-item {
    border-radius: var(--tgb-radius-sm);
    overflow: hidden;
    border: 1px solid var(--tgb-border);
    transition: transform 0.2s;
}
.tgb-screenshot-item:hover { transform: scale(1.02); }
.tgb-screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Pros & Cons */
.tgb-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.tgb-pros h4,
.tgb-cons h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tgb-pros h4 { color: var(--tgb-success); }
.tgb-cons h4 { color: var(--tgb-danger); }
.tgb-pros ul,
.tgb-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tgb-pros li,
.tgb-cons li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--tgb-text);
    position: relative;
    padding-right: 16px;
}
.tgb-pros li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--tgb-success);
    font-weight: 700;
}
.tgb-cons li::before {
    content: '✗';
    position: absolute;
    right: 0;
    color: var(--tgb-danger);
    font-weight: 700;
}

/* FAQ */
.tgb-faq-list { display: grid; gap: 8px; }
.tgb-faq-item {
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius-sm);
    overflow: hidden;
}
.tgb-faq-q {
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tgb-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    transition: background 0.2s;
}
.tgb-faq-q::-webkit-details-marker { display: none; }
.tgb-faq-q i {
    font-size: 0.7rem;
    color: var(--tgb-text-secondary);
    transition: transform 0.2s;
}
.tgb-faq-item[open] .tgb-faq-q i { transform: rotate(180deg); }
.tgb-faq-item[open] .tgb-faq-q { background: var(--tgb-bg); }
.tgb-faq-a {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--tgb-text-secondary);
    line-height: 1.6;
    border-top: 1px solid var(--tgb-border);
}

/* Rating section — see v2 styles above */

/* ========================================
   TAGS CLOUD
   ======================================== */
.tgb-tags-cloud {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tgb-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid var(--tgb-border);
    border-radius: 16px;
    font-size: 0.78rem;
    color: var(--tgb-text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}
.tgb-tag:hover { border-color: var(--tgb-primary); color: var(--tgb-primary); }
.tgb-tag-cat { background: var(--tgb-primary-bg); color: var(--tgb-primary); border-color: var(--tgb-primary-border); }

/* ========================================
   REPORT BAR
   ======================================== */
.tgb-report-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 0.8rem;
    color: var(--tgb-text-secondary);
}
.tgb-report-btn {
    background: none;
    border: none;
    color: var(--tgb-text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.tgb-report-btn:hover { color: var(--tgb-danger); }
.tgb-report-sep { color: var(--tgb-border); }

/* ========================================
   SIDEBAR WIDGETS
   ======================================== */
.tgb-sidebar-widget {
    background: var(--tgb-card-bg);
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.tgb-widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tgb-text);
    padding: 12px 14px;
    margin: 0;
    border-bottom: 1px solid var(--tgb-border);
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--tgb-bg);
}
.tgb-widget-title i { color: var(--tgb-primary); }

/* Quick Open */
.tgb-quick-open { padding: 14px; }
.tgb-open-big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--tgb-primary);
    color: #fff;
    border-radius: var(--tgb-radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.tgb-open-big:hover { background: var(--tgb-primary-hover); color: #fff; }
.tgb-start-cmd-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--tgb-bg);
    border-radius: var(--tgb-radius-sm);
}
.tgb-start-cmd-widget code {
    font-family: 'Courier New', monospace;
    color: var(--tgb-primary);
    font-size: 0.85rem;
    direction: ltr;
}

/* QR Code */
.tgb-qr-body {
    padding: 14px;
    text-align: center;
}
.tgb-qr-img {
    width: 140px;
    height: 140px;
    display: block;
    margin: 0 auto 6px;
    border-radius: 8px;
}
.tgb-qr-hint {
    font-size: 0.75rem;
    color: var(--tgb-text-secondary);
    margin: 0;
}

/* Related Links */
.tgb-related-links {
    padding: 8px 14px;
    display: grid;
    gap: 4px;
}
.tgb-rel-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--tgb-radius-sm);
    color: var(--tgb-text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.tgb-rel-link:hover {
    background: var(--tgb-primary-bg);
    color: var(--tgb-primary);
}
.tgb-rel-link i { width: 18px; text-align: center; color: var(--tgb-primary); }

/* Widget Bot List */
.tgb-widget-list {
    padding: 6px 0;
}

/* Mini Card (sidebar) */
.tgb-mini-row,
.tgb-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    transition: background 0.15s;
}
.tgb-mini-row:hover,
.tgb-mini:hover { background: var(--tgb-bg); }
.tgb-mini-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: var(--tgb-text);
}
.tgb-mini-link:hover { color: var(--tgb-primary); }
.tgb-mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tgb-primary-bg);
    color: var(--tgb-primary);
    font-size: 0.8rem;
}
.tgb-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tgb-mini-avatar-ph {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tgb-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tgb-primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.tgb-mini-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.tgb-mini-info strong,
.tgb-mini-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tgb-text);
    display: block;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tgb-mini-name:hover { color: var(--tgb-primary); }
.tgb-mini-info small {
    font-size: 0.72rem;
    color: var(--tgb-text-secondary);
    direction: ltr;
    display: block;
    text-align: right;
}
.tgb-mini-meta {
    font-size: 0.72rem;
    color: var(--tgb-text-secondary);
}
.tgb-mini-open,
.tgb-mini-go {
    color: var(--tgb-primary);
    font-size: 0.85rem;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.tgb-mini-row:hover .tgb-mini-open,
.tgb-mini:hover .tgb-mini-go { opacity: 1; }

/* ========================================
   AD SLOTS
   ======================================== */
.tgb-ad-slot {
    margin: 14px 0;
    text-align: center;
    min-height: 1px;
}

/* ========================================
   COMMENTS
   ======================================== */
.tgb-comments-section .comments-area {
    margin: 0;
}

/* ========================================
   SUBMIT BOT PAGE
   ======================================== */
.tgb-submit-main {
    padding: 24px 16px;
    max-width: 720px;
    margin: 0 auto;
}
.tgb-submit-card {
    background: var(--tgb-card-bg);
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius);
    padding: 24px;
}
.tgb-submit-header {
    text-align: center;
    margin-bottom: 20px;
}
.tgb-submit-header > i {
    font-size: 2.5rem;
    color: var(--tgb-primary);
    margin-bottom: 10px;
    display: block;
}
.tgb-submit-header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--tgb-text);
}
.tgb-submit-header p {
    font-size: 0.88rem;
    color: var(--tgb-text-secondary);
    margin: 0;
}

/* Submit terms */
.tgb-submit-terms { margin-bottom: 20px; }
.tgb-terms-block {
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius-sm);
    padding: 14px;
    margin-bottom: 10px;
}
.tgb-terms-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tgb-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tgb-terms-title i { color: var(--tgb-primary); }
.tgb-terms-guidelines ul,
.tgb-terms-notice ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tgb-terms-guidelines li,
.tgb-terms-notice li {
    padding: 3px 16px 3px 0;
    font-size: 0.82rem;
    color: var(--tgb-text-secondary);
    position: relative;
}
.tgb-terms-guidelines li::before { content: '●'; position: absolute; right: 0; color: var(--tgb-primary); font-size: 0.5rem; top: 6px; }
.tgb-terms-notice li::before { content: '●'; position: absolute; right: 0; color: var(--tgb-warning); font-size: 0.5rem; top: 6px; }
.tgb-terms-prohibited .tgb-terms-title i { color: var(--tgb-danger); }
.tgb-prohibited-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px;
}
.tgb-prohibited-grid span {
    font-size: 0.8rem;
    color: var(--tgb-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.tgb-prohibited-grid span i { color: var(--tgb-danger); font-size: 0.7rem; }

/* Submit fetch section */
.tgb-submit-fetch-section { margin-bottom: 16px; }
.tgb-submit-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tgb-text);
    margin-bottom: 6px;
}
.tgb-submit-label .required { color: var(--tgb-danger); }
.tgb-submit-fetch-row {
    display: flex;
    gap: 8px;
}
.tgb-submit-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius-sm);
    background: var(--tgb-bg);
    overflow: hidden;
}
.tgb-submit-at {
    padding: 0 8px 0 12px;
    color: var(--tgb-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}
.tgb-submit-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 10px 10px 0;
    font-size: 0.9rem;
    color: var(--tgb-text);
    outline: none;
}
.tgb-submit-fetch-btn {
    white-space: nowrap;
    flex-shrink: 0;
}
.tgb-submit-status {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: var(--tgb-radius-sm);
    font-size: 0.82rem;
}
.tgb-submit-status.loading {
    background: var(--tgb-primary-bg);
    color: var(--tgb-primary);
}
.tgb-submit-status.error {
    background: rgba(231,76,60,0.1);
    color: var(--tgb-danger);
}
.tgb-submit-status.success {
    background: rgba(39,174,96,0.1);
    color: var(--tgb-success);
}

/* Submit preview */
.tgb-submit-preview {
    margin-bottom: 16px;
}
.tgb-submit-preview-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--tgb-bg);
    border: 1px solid var(--tgb-primary-border);
    border-radius: var(--tgb-radius-sm);
}
.tgb-submit-preview-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tgb-primary-border);
}
.tgb-submit-preview-info { flex: 1; min-width: 0; }
.tgb-submit-preview-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--tgb-text);
}
.tgb-submit-preview-info span {
    font-size: 0.82rem;
    color: var(--tgb-primary);
    direction: ltr;
    display: block;
}
.tgb-submit-preview-info p {
    font-size: 0.8rem;
    color: var(--tgb-text-secondary);
    margin: 4px 0 0;
    line-height: 1.4;
}

/* Submit form */
.tgb-submit-form { display: grid; gap: 14px; }
.tgb-submit-form-group { display: grid; gap: 4px; }
.tgb-submit-select,
.tgb-submit-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius-sm);
    background: var(--tgb-bg);
    font-size: 0.88rem;
    color: var(--tgb-text);
}
.tgb-submit-textarea { resize: vertical; font-family: inherit; }
.tgb-submit-hint {
    font-size: 0.75rem;
    color: var(--tgb-text-secondary);
}
.tgb-submit-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--tgb-text);
    cursor: pointer;
}
.tgb-submit-checkbox-label input { margin-top: 3px; flex-shrink: 0; }
.tgb-submit-go-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.95rem;
}
.tgb-submit-go-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Submit login required */
.tgb-submit-login-required {
    text-align: center;
    padding: 32px 16px;
}
.tgb-submit-login-required > i {
    font-size: 2rem;
    color: var(--tgb-text-secondary);
    margin-bottom: 10px;
    display: block;
}
.tgb-submit-login-required p {
    margin: 0 0 14px;
    color: var(--tgb-text-secondary);
}

/* Submit success */
.tgb-submit-success {
    text-align: center;
    padding: 32px 16px;
}
.tgb-submit-success > i {
    font-size: 3rem;
    color: var(--tgb-success);
    margin-bottom: 12px;
    display: block;
}
.tgb-submit-success h2 {
    font-size: 1.2rem;
    color: var(--tgb-text);
    margin: 0 0 6px;
}
.tgb-submit-success p {
    color: var(--tgb-text-secondary);
    margin: 0 0 16px;
}
.tgb-submit-success-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .tgb-single-layout {
        grid-template-columns: 1fr;
    }
    .tgb-single-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--tgb-gap);
    }
}
@media (max-width: 768px) {
    .tgb-hero-top { flex-direction: column; align-items: center; text-align: center; }
    .tgb-hero-identity { flex-direction: column; }
    .tgb-hero-v2 .tgb-hero-actions { justify-content: center; }
    .tgb-hero-meta-grid { grid-template-columns: repeat(2, 1fr); }
    .tgb-hero-stats-ribbon { justify-content: center; }
    .tgb-proscons { grid-template-columns: 1fr; }
    .tgb-toolbar-row { flex-direction: column; }
    .tgb-search-wrap { min-width: 100%; }
    .tgb-filter-badges { justify-content: center; }
    .tgb-type-pills { justify-content: center; }
    .tgb-cards-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .tgb-categories-grid { grid-template-columns: 1fr; }
    .tgb-single-sidebar { grid-template-columns: 1fr; }
    .tgb-rating-body-v2 { grid-template-columns: 1fr; text-align: center; }
    .tgb-rating-input-v2 { justify-self: center; }
    .tgb-breadcrumb { justify-content: center; }
    .tgb-submit-fetch-row { flex-direction: column; }
    .tgb-prohibited-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .tgb-hero-v2 { padding: 14px; }
    .tgb-hero-v2 .tgb-hero-avatar { width: 60px; height: 60px; }
    .tgb-hero-v2 .tgb-hero-title { font-size: 1.15rem; }
    .tgb-hero-v2 .tgb-hero-actions { flex-wrap: wrap; justify-content: center; }
    .tgb-hero-meta-grid { grid-template-columns: 1fr 1fr; }
    .tgb-article { padding: 14px; }
    .tgb-cards-grid { grid-template-columns: 1fr; }
    .tgb-screenshots-grid { grid-template-columns: repeat(2, 1fr); }
    .tgb-alt-card { width: 120px; }
    .tgb-deeplink-input-wrap { flex-direction: column; }
    .tgb-share-platforms { justify-content: center; }
}

/* ========================================
   MISSING CLASS FILL-INS
   ======================================== */

/* Archive page body */
.tgb-archive-page .nav-main { padding-top: 16px; }

/* All-section wrapper */
.tgb-all-section { margin-bottom: 20px; }

/* Single-page content column */
.tgb-single-content { min-width: 0; }

/* Submit page wrapper */
.tgb-submit-page { min-height: 60vh; }
.tgb-submit-wrapper { max-width: 720px; margin: 0 auto; }
.tgb-submit-terms-agree { margin-top: 4px; }

/* Featured card border accent */
.tgb-card-featured { border-color: var(--tgb-primary-border); box-shadow: 0 0 0 1px var(--tgb-primary-border); }

/* Star badge (used in cards) */
.tgb-badge-star { background: rgba(243,156,18,0.1); color: var(--tgb-warning); }

/* Button variants */
.tgb-btn-share,
.tgb-share-btn { padding: 8px 10px; }

/* Deep link & rating & alternatives section wrappers */
.tgb-deeplink-section,
.tgb-rating-section,
.tgb-alternatives-section { /* inherits .tgb-article styles */ }

/* Rated state */
.tgb-rated .tgb-rating-stars-input { pointer-events: none; opacity: 0.6; }

/* Report date */
.tgb-report-date { font-size: 0.78rem; color: var(--tgb-text-secondary); }

/* Search box inside tgbot-functions.php */
.tgb-search-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius-sm);
    background: var(--tgb-bg);
    position: relative;
}
.tgb-search-input-wrap .tgb-search-icon {
    position: absolute;
    right: 12px;
    color: var(--tgb-text-secondary);
    font-size: 0.85rem;
    pointer-events: none;
}
.tgb-search-input-wrap .tgb-search-input {
    padding-right: 34px;
}
.tgb-search-clear {
    position: absolute;
    left: 10px;
    color: var(--tgb-text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.tgb-search-clear:hover { color: var(--tgb-danger); }

/* Submit trigger button (archive CTA) */
.tgb-submit-trigger { font-size: 0.9rem; }

/* Like/Bookmark active states */
.tgb-btn-like.liked { color: var(--tgb-danger); border-color: var(--tgb-danger); }
.tgb-btn-bookmark.bookmarked { color: var(--tgb-warning); border-color: var(--tgb-warning); }

/* Rating shared styles */
.tgb-rating-cta {
    font-size: 0.9rem;
    color: var(--tgb-text);
    margin: 0 0 8px;
}
.tgb-rating-stars-input {
    display: flex;
    gap: 4px;
    justify-content: center;
}
.tgb-rating-stars-input i {
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}
.tgb-rating-stars-input i:hover { transform: scale(1.15); }
.tgb-rating-stars-input i.hovered,
.tgb-rating-stars-input i.selected { color: #f39c12; }
.tgb-rating-thank {
    color: var(--tgb-success);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tgb-rating-feedback { margin-top: 8px; font-size: 0.85rem; }

/* ========================================
   RANKINGS PAGE
   ======================================== */
.tgb-rankings-page .tgb-toolbar { margin-bottom: 20px; }
.tgb-rankings-page .tgb-filter-badge { text-decoration: none; }

/* Podium */
.tgb-podium {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tgb-podium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    border: 2px solid var(--tgb-border);
    border-radius: var(--tgb-radius);
    background: var(--tgb-card-bg);
    text-decoration: none;
    color: var(--tgb-text);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 180px;
    position: relative;
}
.tgb-podium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tgb-card-hover-shadow);
}
.tgb-podium-1 { border-color: #ffd700; order: 2; }
.tgb-podium-2 { border-color: #c0c0c0; order: 1; }
.tgb-podium-3 { border-color: #cd7f32; order: 3; }
.tgb-podium-medal {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 8px;
}
.tgb-podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
}
.tgb-podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tgb-podium-name {
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 2px;
}
.tgb-podium-user {
    font-size: 0.75rem;
    color: var(--tgb-primary);
    direction: ltr;
    display: block;
    margin-bottom: 6px;
}
.tgb-podium-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--tgb-primary-bg);
    color: var(--tgb-primary);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Rankings list */
.tgb-rankings-list {
    background: var(--tgb-card-bg);
    border: 1px solid var(--tgb-border);
    border-radius: var(--tgb-radius);
    overflow: hidden;
}
.tgb-rank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--tgb-border);
    transition: background 0.15s;
}
.tgb-rank-row:last-child { border-bottom: none; }
.tgb-rank-row:hover { background: var(--tgb-bg); }
.tgb-rank-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tgb-bg);
    color: var(--tgb-text-secondary);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}
.tgb-rank-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tgb-primary-bg);
    color: var(--tgb-primary);
    font-size: 0.9rem;
}
.tgb-rank-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tgb-rank-info {
    flex: 1;
    min-width: 0;
}
.tgb-rank-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tgb-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tgb-rank-name:hover { color: var(--tgb-primary); }
.tgb-rank-user {
    font-size: 0.72rem;
    color: var(--tgb-text-secondary);
    direction: ltr;
    display: block;
    text-align: right;
}
.tgb-rank-rating {
    font-size: 0.75rem;
    color: #f39c12;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.tgb-rank-rating i { font-size: 0.65rem; }
.tgb-rank-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--tgb-primary-bg);
    color: var(--tgb-primary);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.tgb-rank-open {
    color: var(--tgb-primary);
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.tgb-rank-row:hover .tgb-rank-open { opacity: 1; }

@media (max-width: 768px) {
    .tgb-podium { flex-direction: column; align-items: center; }
    .tgb-podium-card { order: unset !important; width: 100%; max-width: 280px; }
    .tgb-rank-rating { display: none; }
}
