/* KinoCampus styles.css (merged from styles.v554.css + styles.v556.css) */

:root {
    --kc-primary-brand: #FF6B00;
    --kc-secondary-brand: #41B5D3;
    --kc-tertiary-color: #70E291;
    --kc-background-dark: #222222;
    --kc-surface-dark: #333333;
    --kc-surface-dark-hover: #444444;
    --kc-text-dark-primary: #E9EAED;
    --kc-text-dark-secondary: #B0B3B8;
    --kc-border-dark: #444444;
    --kc-hot-color: #FF6B00;
    --kc-cold-color: #41B5D3;
    --kc-green-check: #70E291;
    --kc-yellow-badge: #FFD700;
    --kc-red-alert: #FF5252;
    --kc-whatsapp-green: #25D366;
    --transition-speed: 0.3s;
}

[data-theme="light"] {
    --kc-background-dark: #f5f5f5;
    --kc-surface-dark: #ffffff;
    --kc-surface-dark-hover: #f8f8f8;
    --kc-text-dark-primary: #1a1a1a;
    --kc-text-dark-secondary: #666666;
    --kc-border-dark: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--kc-background-dark);
    color: var(--kc-text-dark-primary);
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    line-height: 1.5;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

a {
    color: var(--kc-primary-brand);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: var(--kc-surface-dark);
    color: var(--kc-text-dark-primary);
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color var(--transition-speed) ease;
}

.kc-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.kc-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform var(--transition-speed) ease;
}

.kc-logo a:hover {
    transform: scale(1.03);
    text-decoration: none;
}

.kc-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--kc-primary-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    transform: rotate(-3deg);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.kc-logo a:hover .kc-logo-mark {
    transform: rotate(0deg);
    box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

.kc-logo-mark i {
    margin: 0;
    font-size: 20px;
}

.kc-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.kc-logo-name {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--kc-text-dark-primary);
    letter-spacing: -0.02em;
}

.kc-logo-name > span {
    color: var(--kc-primary-brand);
}

.kc-logo-sub {
    margin-top: 4px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--kc-text-dark-secondary);
}

.kc-search-bar {
    display: flex;
    background-color: var(--kc-background-dark);
    border-radius: 18px;
    padding: 2px 5px;
    flex-grow: 1;
    max-width: 500px;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--kc-border-dark);
}

.kc-search-bar:focus-within {
    box-shadow: 0 0 0 2px var(--kc-primary-brand);
    transform: translateY(-2px);
}

.kc-search-bar input {
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--kc-text-dark-primary);
    flex-grow: 1;
    outline: none;
    width: 100%;
    transition: color var(--transition-speed) ease;
}

.kc-search-bar button {
    background: none;
    border: none;
    color: var(--kc-text-dark-secondary);
    cursor: pointer;
    padding: 8px;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.kc-search-bar button:hover {
    color: var(--kc-primary-brand);
    transform: scale(1.1);
}

.kc-nav-links {
    display: none;
}

.kc-user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.kc-user-actions button,
.kc-user-actions a.icon-btn {
    color: var(--kc-text-dark-secondary);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3em;
    padding: 5px;
    transition: all var(--transition-speed) ease;
}

.kc-user-actions a.btn-login {
    font-size: 0.9em;
    background-color: var(--kc-primary-brand);
    color: white;
    padding: 8px 15px;
    border-radius: 18px;
    font-weight: bold;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

/* Header identity (V8.1.3.2) */
.kc-user-actions a.btn-login.is-auth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
}

.kc-header-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.kc-header-user__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.25);
}

.kc-header-user__name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kc-header-user__verified {
    color: var(--kc-green-check);
    font-size: 1.05em;
}

@media (max-width: 480px) {
    .kc-header-user__name {
        max-width: 120px;
    }
}

.kc-user-actions button:hover,
.kc-user-actions a.icon-btn:hover {
    color: var(--kc-text-dark-primary);
    transform: scale(1.1);
}

.kc-user-actions a.btn-login:hover {
    background-color: #e05f00;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.3);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--kc-background-dark);
    color: var(--kc-text-dark-secondary);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--kc-border-dark);
}

.theme-toggle:hover {
    transform: rotate(30deg);
    color: var(--kc-primary-brand);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Hero Banner Carousel */
.kc-hero-carousel {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 20px;
}

.kc-hero-slides {
    position: relative;
    width: 100%;
}

.kc-hero-banner {
    display: none;
    background: linear-gradient(90deg, var(--kc-primary-brand), var(--kc-secondary-brand));
    border-radius: 24px;
    padding: 46px 44px 70px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 240px;
}

.kc-hero-banner::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(18px);
    transition: background-color 0.6s ease;
}

.kc-hero-banner:hover::before {
    background: rgba(255, 255, 255, 0.18);
}

.kc-hero-banner.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.kc-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.kc-hero-content {
    max-width: 820px;
}

.kc-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.95);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    margin-bottom: 14px;
}

.kc-hero-content h1 {
    font-size: 2.9rem;
    line-height: 1.05;
    margin-bottom: 12px;
    text-align: left;
}

.kc-hero-content p {
    font-size: 1.1rem;
    margin-bottom: 22px;
    opacity: 0.95;
    text-align: left;
    max-width: 64ch;
}

.kc-hero-illustration {
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.78;
    transform: rotate(12deg);
    filter: drop-shadow(0 18px 40px rgba(0,0,0,0.25));
}

.kc-hero-illustration i {
    font-size: 7rem;
    color: rgba(255,255,255,0.86);
}

.kc-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--kc-primary-brand);
    border: none;
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 1rem;
    text-decoration: none;
}

.kc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

/* Carousel Controls */
.kc-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.28);
    color: white;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.kc-carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.kc-carousel-prev {
    left: 10px;
}

.kc-carousel-next {
    right: 10px;
}

.kc-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.kc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.kc-dot.active {
    background-color: white;
    width: 24px;
    border-radius: 5px;
}

.kc-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Ranking Banner */
.kc-ranking-banner {
    background: linear-gradient(45deg, var(--kc-surface-dark), var(--kc-surface-dark-hover));
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--kc-border-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: background var(--transition-speed) ease;
}

.kc-ranking-title {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kc-ranking-title i {
    color: var(--kc-yellow-badge);
}

.kc-ranking-users {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.kc-ranking-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    flex-shrink: 0;
    transition: transform var(--transition-speed) ease;
    cursor: pointer;
}

.kc-ranking-user:hover {
    transform: translateY(-3px);
}

.kc-ranking-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--kc-background-dark);
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.kc-ranking-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kc-ranking-user-position {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: var(--kc-yellow-badge);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: bold;
}

.kc-ranking-user-name {
    font-size: 0.8em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Feed Tabs */
.kc-feed-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.kc-feed-tabs::-webkit-scrollbar {
    display: none;
}

.kc-feed-tabs a {
    white-space: nowrap;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--kc-text-dark-secondary);
    border-radius: 20px;
    font-weight: bold;
    background-color: var(--kc-surface-dark);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--kc-border-dark);
}

.kc-feed-tabs a.active {
    background-color: var(--kc-primary-brand);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.2);
}

.kc-feed-tabs a:hover {
    background-color: var(--kc-surface-dark-hover);
    text-decoration: none;
    transform: translateY(-2px);
}

.kc-feed-tabs a.active:hover {
    background-color: var(--kc-primary-brand);
}

/* Feed List */
.kc-feed-list {
    display: grid;
    gap: 15px;
}

/* Card */
.kc-card {
    background-color: var(--kc-surface-dark);
    border: 1px solid var(--kc-border-dark);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
}

.kc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.kc-card__main {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 12px;
}

.kc-card__image-wrapper {
    width: 100px;
    height: 100px;
    background-color: var(--kc-background-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.kc-card__image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-speed) ease;
}

.kc-card__emoji {
    font-size: 2.1em;
    line-height: 1;
}

.kc-card:hover .kc-card__image-wrapper img {
    transform: scale(1.05);
}

.kc-card__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.kc-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.kc-card__category-source {
    font-size: 0.8em;
    color: var(--kc-text-dark-secondary);
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 5px;
}

.kc-card__category-source i {
    color: var(--kc-green-check);
}

.kc-card__timestamp {
    font-size: 0.8em;
    color: var(--kc-text-dark-secondary);
    white-space: nowrap;
}



/* -----------------------------------------------------
   KC Badges (Cards + Product) — V8.1.2.4.5
----------------------------------------------------- */
.kc-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 8px 0;
}

/* Badge pill (usado no product e agora também nos cards) */
.kc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8em;
    /*
      V8.1.2.4.6
      Garantir destaque real dos badges em TODOS os feeds.
      As variáveis --kc-background-light / --kc-border-light não existem no projeto,
      então usamos as variáveis canônicas do tema.

      - Fundo: var(--kc-background-dark) contrasta com cards (var(--kc-surface-dark))
      - Borda: var(--kc-border-dark)
    */
    background-color: var(--kc-background-dark);
    border: 1px solid var(--kc-border-dark);
    color: var(--kc-text-dark-secondary);
}

.kc-badge i {
    font-size: 0.95em;
    opacity: 0.9;
}

/* WhatsApp Share Button (kc-card) — V8.1.2.4.8 */
.kc-share-whatsapp {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid var(--kc-border-dark);
    background-color: var(--kc-surface-dark);
    padding: 8px 12px;
    aspect-ratio: 1;
    height: 34px;
    width: 34px;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    flex: 0 0 auto;
}

.kc-share-whatsapp:hover {
    background-color: var(--kc-surface-dark-hover);
}

.kc-share-whatsapp:active {
    transform: scale(0.98);
}

.kc-share-whatsapp svg {
    width: 18px;
    height: 18px;
    color: var(--kc-whatsapp-green);
    display: block;
}

.kc-share-whatsapp[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}


/* Quando existe corner badge (kc-cashback-badge), evitar sobreposição no topo */
.kc-card--has-corner-badge .kc-card__timestamp {
    display: none;
}
.kc-card__title {
    font-size: 1.05em;
    font-weight: bold;
    margin: 4px 0;
    color: var(--kc-text-dark-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kc-card__title:hover {
    color: var(--kc-primary-brand);
}

.kc-card__price {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--kc-hot-color);
    margin: 5px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.kc-card__price i {
    margin-right: 5px;
}

.kc-card__price small {
    font-size: 0.7em;
    font-weight: normal;
}

.kc-card__discount {
    display: inline-block;
    background-color: var(--kc-green-check);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.kc-card__highlight {
    display: inline-block;
    background-color: var(--kc-green-check);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
}

.kc-card__description-preview {
    font-size: 0.9em;
    color: var(--kc-text-dark-secondary);
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kc-card__author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    color: var(--kc-text-dark-secondary);
    margin-top: 8px;
}

.kc-card__author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #555;
}

.kc-card__author strong {
    color: var(--kc-text-dark-primary);
}

.kc-card__author i.fa-star {
    color: var(--kc-yellow-badge);
}

.kc-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    border-top: 1px solid var(--kc-border-dark);
    padding: 10px 12px;
}

.kc-card__interactions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Ações do card (direita): Share WhatsApp + CTA
   - Evita centralização do share no desktop (quando havia 3 filhos no footer)
   - Mantém harmonia no mobile (footer em grid) */
.kc-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.kc-vote-box {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: var(--kc-background-dark);
    border-radius: 15px;
    padding: 5px 10px;
    border: 1px solid var(--kc-border-dark);
}

.kc-vote-box button {
    background: none;
    border: none;
    color: var(--kc-text-dark-secondary);
    cursor: pointer;
    font-size: 1em;
    padding: 0 3px;
    transition: transform var(--transition-speed) ease, color var(--transition-speed) ease;
}

.kc-vote-box button:hover {
    transform: scale(1.2);
}

.kc-vote-box .hot {
    color: var(--kc-hot-color);
}

.kc-vote-box .cold {
    color: var(--kc-cold-color);
}

.kc-vote-box span {
    font-weight: bold;
    color: var(--kc-text-dark-primary);
    font-size: 0.9em;
}

.kc-comment-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: var(--kc-text-dark-secondary);
    text-decoration: none;
    background-color: var(--kc-background-dark);
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid var(--kc-border-dark);
    transition: all var(--transition-speed) ease;
}

.kc-comment-link:hover {
    background-color: var(--kc-surface-dark-hover);
    text-decoration: none;
    transform: translateY(-2px);
}

.kc-action-button {
    background-color: var(--kc-surface-dark);
    color: var(--kc-text-dark-primary);
    border: 1px solid var(--kc-border-dark);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.kc-action-button:hover {
    background-color: var(--kc-surface-dark-hover);
    text-decoration: none;
    transform: translateY(-2px);
}

.kc-get-coupon-button {
    background-color: var(--kc-primary-brand);
    color: white;
    border: none;
}

.kc-get-coupon-button:hover {
    background-color: #e05f00;
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.2);
}

.kc-cashback-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--kc-green-check);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 1;
    transition: transform var(--transition-speed) ease;
}

.kc-card:hover .kc-cashback-badge {
    transform: scale(1.1);
}

/* Sidebar */
.kc-sidebar {
    display: none;
}

.kc-sidebar-section {
    background-color: var(--kc-surface-dark);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--kc-border-dark);
    margin-bottom: 20px;
    transition: all var(--transition-speed) ease;
}

.kc-sidebar-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.kc-sidebar h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--kc-text-dark-primary);
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kc-sidebar h3 i {
    color: var(--kc-primary-brand);
}

.kc-category-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kc-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    color: var(--kc-text-dark-secondary);
    transition: all var(--transition-speed) ease;
}

.kc-category-item:hover {
    background-color: var(--kc-background-dark);
    color: var(--kc-text-dark-primary);
    text-decoration: none;
}

.kc-category-item i {
    color: var(--kc-primary-brand);
    font-size: 1.2em;
}

.kc-category-item span:first-of-type {
    flex-grow: 1;
}

.kc-category-count {
    background-color: var(--kc-background-dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85em;
    font-weight: bold;
}

/* Mobile Navigation */
.kc-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--kc-surface-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.kc-mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--kc-text-dark-secondary);
    font-size: 0.75em;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    min-height: 44px;
    padding: 6px 0;
}

.kc-mobile-nav a i {
    font-size: 1.5em;
}

.kc-mobile-nav a.active {
    color: var(--kc-primary-brand);
}

.kc-mobile-nav a:hover {
    color: var(--kc-primary-brand);
    text-decoration: none;
}

.kc-post-button {
    width: 50px;
    height: 50px;
    background-color: var(--kc-primary-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    transition: all var(--transition-speed) ease;
}

.kc-post-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.4);
}

/* Desktop Layout */
@media (min-width: 769px) {
    .kc-nav-links {
        display: flex;
        gap: 15px;
    }
    
    .kc-nav-links a {
        display: flex;
        align-items: center;
        gap: 5px;
        color: var(--kc-text-dark-secondary);
        font-size: 0.9em;
        padding: 8px 12px;
        border-radius: 8px;
        transition: all var(--transition-speed) ease;
    }
    
    .kc-nav-links a:hover {
        background-color: var(--kc-background-dark);
        color: var(--kc-text-dark-primary);
        text-decoration: none;
    }
    
    main {
        grid-template-columns: 1fr 320px;
    }
    
    .kc-sidebar {
        display: block;
    }
    
    .kc-mobile-nav {
        display: none !important;
    }
}

/* Mobile Layout - Mostrar navegação inferior */
@media (max-width: 768px) {
    .kc-nav-links {
        display: none !important;
    }
    
    .kc-mobile-nav {
        display: flex !important;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .kc-hero-content h1 {
        font-size: 1.5em;
    }
    
    .kc-hero-content p {
        font-size: 0.95em;
    }
}

/* Sidebar - Impacto Sustentável */
.kc-impact-section {
    background: linear-gradient(135deg, var(--kc-tertiary-color) 0%, var(--kc-secondary-brand) 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
}

.kc-impact-section h3 {
    color: white;
    margin-bottom: 15px;
}

.kc-impact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.kc-impact-card {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.kc-impact-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.kc-impact-value {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.kc-impact-label {
    font-size: 0.85em;
    opacity: 0.9;
}

.kc-impact-level {
    margin-top: 15px;
}

.kc-impact-level-bar {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.kc-impact-level-progress {
    background-color: white;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.kc-impact-level-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}

/* Sidebar - Cashback */
.kc-cashback-section {
    background-color: var(--kc-surface-dark);
    border: 2px solid var(--kc-green-check);
    border-radius: 12px;
}

.kc-cashback-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.kc-cashback-amount {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--kc-green-check);
}

.kc-cashback-link {
    color: var(--kc-primary-brand);
    font-size: 0.9em;
    text-decoration: underline;
}

.kc-cashback-validity {
    font-size: 0.85em;
    color: var(--kc-text-dark-secondary);
}

/* Sidebar - ODS */
.kc-ods-section {
    background-color: var(--kc-surface-dark);
    border-radius: 12px;
}

.kc-ods-description {
    font-size: 0.9em;
    color: var(--kc-text-dark-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
}

.kc-ods-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.kc-ods-badge {
    background-color: var(--kc-primary-brand);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 0.85em;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.kc-ods-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Sidebar - Impacto da Comunidade */
.kc-community-impact-section {
    background-color: var(--kc-surface-dark);
    border-radius: 12px;
}

.kc-community-stat {
    background-color: var(--kc-background-dark);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.kc-community-stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--kc-tertiary-color);
    margin-bottom: 5px;
}

.kc-community-stat-label {
    font-size: 0.9em;
    color: var(--kc-text-dark-secondary);
}

/* Botão Criar Publicação */
.kc-create-post-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--kc-primary-brand);
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.kc-create-post-btn:hover {
    background-color: #e55f00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
    text-decoration: none;
}

.kc-create-post-btn i {
    font-size: 1.2em;
}

/* Sidebar - Impacto Sustentável Simples */
.kc-impact-section-simple {
    background-color: var(--kc-surface-dark);
    border-radius: 12px;
    border: 1px solid var(--kc-border-dark);
}

.kc-impact-section-simple h3 {
    color: var(--kc-primary-brand);
    margin-bottom: 15px;
    font-size: 1em;
}

.kc-impact-progress {
    margin-bottom: 15px;
}

.kc-impact-progress-bar {
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.kc-impact-progress-fill {
    background-color: var(--kc-primary-brand);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.kc-impact-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: var(--kc-text-dark-secondary);
}

.kc-impact-stats-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.kc-impact-stat-item {
    background-color: var(--kc-background-dark);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.kc-impact-stat-value {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--kc-primary-brand);
    margin-bottom: 5px;
}

.kc-impact-stat-label {
    font-size: 0.8em;
    color: var(--kc-text-dark-secondary);
}

/* Sidebar - Cashback Simples */
.kc-cashback-section-simple {
    background-color: var(--kc-surface-dark);
    border-radius: 12px;
    border: 1px solid var(--kc-border-dark);
}

.kc-cashback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.kc-cashback-label {
    font-size: 0.9em;
    color: var(--kc-text-dark-secondary);
}

.kc-cashback-amount-simple {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--kc-green-check);
}

.kc-cashback-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
}

.kc-cashback-validity-simple {
    color: var(--kc-text-dark-secondary);
}

.kc-cashback-link-simple {
    color: var(--kc-primary-brand);
    text-decoration: none;
}

.kc-cashback-link-simple:hover {
    text-decoration: underline;
}


/* ===== MELHORIAS MOBILE V5 ===== */

/* Mobile Menu Drawer */
.kc-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--kc-surface-dark);
    z-index: 200;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    overflow-y: auto;
}

/* Alias: alguns templates usam .kc-mobile-menu-drawer (V5.1)
   Mantemos as mesmas regras para evitar inconsistências entre páginas. */
.kc-mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--kc-surface-dark);
    z-index: 200;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.kc-mobile-menu-drawer.active {
    right: 0;
}

.kc-mobile-menu.active {
    right: 0;
}

.kc-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--kc-border-dark);
}

.kc-mobile-menu-header h3 {
    margin: 0;
    color: var(--kc-primary-brand);
}

.kc-close-menu {
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--kc-text-dark-secondary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.kc-close-menu:hover {
    color: var(--kc-primary-brand);
}

.kc-mobile-menu-content {
    padding: 10px 0;
}

.kc-mobile-menu-content a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--kc-text-dark-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1em;
}

.kc-mobile-menu-content a:hover {
    background-color: var(--kc-background-dark);
    color: var(--kc-primary-brand);
}

.kc-mobile-menu-content a i {
    width: 24px;
    text-align: center;
    color: var(--kc-primary-brand);
}

.kc-mobile-menu-content hr {
    border: none;
    border-top: 1px solid var(--kc-border-dark);
    margin: 10px 20px;
}

.kc-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.kc-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Melhorias Responsivas Adicionais */
@media (max-width: 576px) {
    .kc-header-container {
        padding: 10px;
    }
    
    .kc-logo a {
        font-size: 1.3em;
    }
    
    .kc-logo-text {
        display: none;
    }
    
    .kc-search-bar {
        max-width: 100%;
        order: 3;
        flex-basis: 100%;
        margin-top: 10px;
    }
    
    .kc-user-actions .btn-login {
        display: none;
    }
    
    .kc-hero-content h1 {
        font-size: 1.2em;
    }
    
    .kc-hero-content p {
        font-size: 0.85em;
    }
    
    .kc-hero-banner {
        padding: 22px 16px 62px;
        min-height: 180px;
    }
    
    .kc-btn-primary {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    
    .kc-ranking-users {
        gap: 10px;
    }
    
    .kc-ranking-user {
        width: 50px;
    }
    
    .kc-ranking-user-avatar {
        width: 35px;
        height: 35px;
    }
    
    .kc-ranking-user-name {
        font-size: 0.7em;
    }
    
    .kc-feed-tabs a {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .kc-card__main {
        grid-template-columns: 80px 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .kc-card__title {
        font-size: 0.95em;
    }
    
    .kc-card__price {
        font-size: 1em;
    }
    
    .kc-card__author {
        font-size: 0.8em;
    }
    
    .kc-card__author img {
        width: 20px;
        height: 20px;
    }
    
    .kc-vote-box span {
        font-size: 0.9em;
    }
    
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .kc-carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9em;
    }
    
    .kc-carousel-prev {
        left: 5px;
    }
    
    .kc-carousel-next {
        right: 5px;
    }
    
    .kc-card__main {
        grid-template-columns: 70px 1fr;
    }
    
    .kc-card__image-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .kc-card__footer {
        padding: 8px 10px;
    }
    
    .kc-mobile-nav {
        padding: 8px 10px;
    }
    
    .kc-mobile-nav a {
        font-size: 0.7em;
    }
    
    .kc-mobile-nav a i {
        font-size: 1.3em;
    }
    
    .kc-post-button {
        width: 45px;
        height: 45px;
        margin-top: -20px;
    }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) {
    main {
        grid-template-columns: 1fr 280px;
    }
    
    .kc-sidebar-section {
        padding: 15px;
    }
    
    .kc-card__main {
        grid-template-columns: 90px 1fr;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .kc-header-container {
        max-width: 1600px;
    }
    
    main {
        max-width: 1600px;
        grid-template-columns: 1fr 380px;
    }
    
    .kc-card__main {
        grid-template-columns: 120px 1fr;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .kc-feed-tabs a,
    .kc-mobile-nav a,
    .kc-action-button,
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .kc-vote-box button {
        padding: 10px;
    }
    
    .kc-card__footer a,
    .kc-card__footer button {
        padding: 8px 12px;
    }
}

/* Loading State */
.kc-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.kc-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--kc-border-dark);
    border-top-color: var(--kc-primary-brand);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notifications */
.kc-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--kc-surface-dark);
    color: var(--kc-text-dark-primary);
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 300;
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid var(--kc-primary-brand);
}

.kc-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.kc-toast.success {
    border-left-color: var(--kc-green-check);
}

.kc-toast.error {
    border-left-color: var(--kc-red-alert);
}

/* Skeleton Loading */
.kc-skeleton {
    background: linear-gradient(90deg, var(--kc-surface-dark) 25%, var(--kc-surface-dark-hover) 50%, var(--kc-surface-dark) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Improved Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--kc-background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--kc-border-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--kc-text-dark-secondary);
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--kc-primary-brand);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .kc-mobile-nav,
    .kc-header,
    .kc-sidebar,
    .kc-mobile-menu,
    .kc-mobile-menu-overlay {
        display: none !important;
    }
    
    body {
        padding: 0;
    }
    
    main {
        display: block;
    }
}


/* ===== CORREÇÕES MOBILE V5.1 ===== */

/* Reset de container para mobile - garantir 100% de largura */
@media (max-width: 767px) {
    /* Header mobile - ocupar 100% da largura */
    header {
        padding: 10px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .kc-header-container {
        max-width: 100%;
        padding: 0;
        gap: 10px;
    }
    
    /* Logo e ações do usuário em linha */
    .kc-logo a {
        font-size: 1.4em;
    }
    
    .kc-logo-text {
        display: none;
    }
    
    /* Barra de busca ocupar largura total */
    .kc-search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 8px;
    }
    
    /* Esconder botão de login no mobile */
    .kc-user-actions .btn-login {
        display: none;
    }
    
    /* Main content sem margens laterais */
    main {
        margin: 10px 0;
        padding: 0 10px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Hero carousel ajustes */
    .kc-hero-carousel {
        border-radius: 12px;
        margin: 0 0 15px 0;
    }

    .kc-hero-banner {
        padding: 22px 16px 62px;
        min-height: 180px;
        border-radius: 12px;
    }

    .kc-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .kc-hero-illustration {
        display: none;
    }

    .kc-hero-content h1 {
        font-size: 1.7rem;
        line-height: 1.15;
        text-align: left;
    }

    .kc-hero-content p {
        font-size: 0.95rem;
        margin-bottom: 16px;
        text-align: left;
    }

    .kc-hero-pill {
        font-size: 0.66rem;
        padding: 6px 10px;
        margin-bottom: 10px;
    }

    .kc-btn-primary {
        padding: 10px 18px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    /* Evitar overlay de setas no mobile */
    .kc-carousel-btn {
        display: none;
    }

    .kc-carousel-dots {
        bottom: 14px;
    }

    /* Ranking banner */
    .kc-ranking-banner {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .kc-ranking-title {
        font-size: 1em;
    }
    
    .kc-ranking-users {
        gap: 12px;
    }
    
    .kc-ranking-user {
        width: 55px;
    }
    
    .kc-ranking-user-avatar {
        width: 38px;
        height: 38px;
    }
    
    .kc-ranking-user-name {
        font-size: 0.7em;
    }
    
    /* Feed tabs - scroll horizontal */
    .kc-feed-tabs {
        margin: 0 -10px 15px -10px;
        padding: 0 10px 10px 10px;
        gap: 6px;
    }
    
    .kc-feed-tabs a {
        padding: 8px 12px;
        font-size: 0.85em;
        flex-shrink: 0;
    }
    
    /* Cards */
    .kc-feed-list {
        gap: 12px;
    }
    
    .kc-card {
        border-radius: 10px;
    }
    
    .kc-card__main {
        grid-template-columns: 85px 1fr;
        gap: 10px;
        padding: 12px;
    }
    
    .kc-card__image-wrapper {
        width: 85px;
        height: 85px;
    }
    
    .kc-card__title {
        font-size: 0.95em;
        line-height: 1.3;
    }
    
    .kc-card__price {
        font-size: 1.05em;
    }
    
    .kc-card__description {
        font-size: 0.8em;
        -webkit-line-clamp: 2;
    }
    
    .kc-card__author {
        font-size: 0.8em;
    }
    
    .kc-card__footer {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Sidebar escondida no mobile */
    .kc-sidebar {
        display: none;
    }
}

/* Mobile Navigation V5.1 - Corrigido para ocupar 100% */
.kc-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--kc-surface-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    z-index: 100;
    box-sizing: border-box;
}

/* Mostrar mobile nav apenas em telas pequenas */
@media (min-width: 768px) {
    .kc-mobile-nav {
        display: none;
    }
}

@media (max-width: 767px) {
    .kc-mobile-nav {
        display: flex;
    }
    
    .kc-mobile-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--kc-text-dark-secondary);
        font-size: 0.7em;
        text-decoration: none;
        padding: 5px 0;
        min-height: 50px;
        justify-content: center;
    }
    
    .kc-mobile-nav a i {
        font-size: 1.4em;
    }
    
    .kc-mobile-nav a.active,
    .kc-mobile-nav a:hover {
        color: var(--kc-primary-brand);
    }
    
    .kc-post-button {
        width: 48px;
        height: 48px;
        margin-top: -15px;
        font-size: 1.3em;
    }
    
    /* Padding inferior do body para não sobrepor conteúdo */
    body {
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
    }
}

/* Breakpoint específico para smartphones pequenos (268-412px) */
@media (max-width: 420px) {
    header {
        padding: 8px 12px;
    }
    
    .kc-header-container {
        gap: 8px;
    }
    
    .kc-logo a {
        font-size: 1.2em;
    }
    
    .kc-search-bar {
        margin-top: 6px;
    }
    
    .kc-search-bar input {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    
    main {
        padding: 0 8px;
        margin: 8px 0;
    }
    
    .kc-hero-banner {
        padding: 15px 12px;
        min-height: 120px;
    }
    
    .kc-hero-content h1 {
        font-size: 1.1em;
    }
    
    .kc-hero-content p {
        font-size: 0.8em;
    }
    
    .kc-btn-primary {
        padding: 8px 16px;
        font-size: 0.85em;
    }
    
    .kc-carousel-btn {
        width: 30px;
        height: 30px;
    }
    
    .kc-ranking-banner {
        padding: 10px;
    }
    
    .kc-ranking-user {
        width: 48px;
    }
    
    .kc-ranking-user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .kc-feed-tabs a {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .kc-card__main {
        grid-template-columns: 75px 1fr;
        gap: 8px;
        padding: 10px;
    }
    
    .kc-card__image-wrapper {
        width: 75px;
        height: 75px;
    }
    
    .kc-card__title {
        font-size: 0.9em;
    }
    
    .kc-card__price {
        font-size: 1em;
    }
    
    .kc-card__meta {
        font-size: 0.7em;
    }
    
    .kc-mobile-nav a {
        font-size: 0.65em;
    }
    
    .kc-mobile-nav a i {
        font-size: 1.2em;
    }
    
    .kc-post-button {
        width: 42px;
        height: 42px;
        font-size: 1.1em;
    }
}

/* ===== SIDEBAR COMPRA E VENDA V5.1 ===== */

/* Container de filtros estilo Oportunidades */
.kc-filters-section {
    background-color: var(--kc-surface-dark);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--kc-border-dark);
}

.kc-filters-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--kc-text-dark-primary);
}

.kc-filters-section h3 i {
    color: var(--kc-primary-brand);
}

/* Filtros em lista vertical */
.kc-filter-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kc-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.kc-filter-item:hover {
    color: var(--kc-primary-brand);
}

.kc-filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--kc-primary-brand);
    cursor: pointer;
}

.kc-filter-item label {
    cursor: pointer;
    font-size: 0.95em;
}

/* Categorias Populares estilo cards */
.kc-categories-section {
    background-color: var(--kc-surface-dark);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--kc-border-dark);
}

.kc-categories-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--kc-text-dark-primary);
}

.kc-categories-section h3 i {
    color: var(--kc-primary-brand);
}

.kc-category-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kc-category-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: var(--kc-background-dark);
    border-radius: 10px;
    text-decoration: none;
    color: var(--kc-text-dark-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.kc-category-card:hover {
    background-color: var(--kc-surface-dark-hover);
    transform: translateX(5px);
    text-decoration: none;
}

.kc-category-card i {
    font-size: 1.3em;
    color: var(--kc-primary-brand);
    width: 30px;
    text-align: center;
}

.kc-category-card-name {
    flex-grow: 1;
    font-weight: 500;
}

.kc-category-card-count {
    background-color: var(--kc-surface-dark);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    color: var(--kc-text-dark-secondary);
}

/* Dicas para Vendedores estilo card */
.kc-tips-section {
    background-color: var(--kc-surface-dark);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--kc-border-dark);
}

.kc-tips-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--kc-text-dark-primary);
}

.kc-tips-section h3 i {
    color: var(--kc-yellow-badge);
}

.kc-tips-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kc-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9em;
    color: var(--kc-text-dark-secondary);
    line-height: 1.4;
}

.kc-tip-item i {
    color: var(--kc-green-check);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Sidebar responsiva para Compra e Venda */
@media (max-width: 1024px) {
    .kc-sidebar-compra-venda {
        display: none;
    }
}

@media (min-width: 1025px) {
    .kc-sidebar-compra-venda {
        display: block;
        width: 320px;
        flex-shrink: 0;
    }
}


/* ============================================
   V5.1 - CORREÇÕES MOBILE PARA DIMENSÕES PADRÃO
   Samsung S20 Ultra (412x915), Responsive (268x635)
   ============================================ */

/* Reset para garantir que elementos ocupem 100% da largura */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Header Mobile - Correções para dimensões pequenas */
@media (max-width: 480px) {
    header {
        padding: 8px 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .kc-header-container {
        width: 100%;
        padding: 0;
        gap: 8px;
    }
    
    .kc-logo a {
        font-size: 1.2em;
    }
    
    
    .kc-search-bar {
        width: 100%;
        max-width: 100%;
        order: 3;
        flex-basis: 100%;
        margin-top: 8px;
    }
    
    .kc-search-bar input {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .kc-header-actions {
        gap: 5px;
    }
    
    .kc-header-actions .theme-toggle {
        padding: 6px 8px;
        font-size: 0.9em;
    }
    
    .kc-header-actions .kc-login-btn {
        padding: 6px 10px;
        font-size: 0.85em;
    }
    
    /* Esconder texto do botão de login em telas muito pequenas */
    .kc-login-btn span {
        display: none;
    }
}

/* Navegação Mobile Inferior - Correções */
@media (max-width: 480px) {
    .kc-mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 60px;
        background-color: var(--kc-surface-dark);
        border-top: 1px solid var(--kc-border-dark);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 5px;
        z-index: 1000;
        box-sizing: border-box;
    }
    
    .kc-mobile-nav a,
    .kc-mobile-nav button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5px 8px;
        font-size: 0.65em;
        color: var(--kc-text-dark-secondary);
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        min-width: 50px;
        flex: 1;
        max-width: 70px;
    }
    
    .kc-mobile-nav a i,
    .kc-mobile-nav button i {
        font-size: 1.4em;
        margin-bottom: 2px;
    }
    
    .kc-mobile-nav a span,
    .kc-mobile-nav button span {
        font-size: 0.75em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .kc-mobile-nav a.active,
    .kc-mobile-nav button.active {
        color: var(--kc-primary-brand);
    }
    
    /* Botão de criar publicação destacado */
    .kc-mobile-nav .kc-create-btn {
        background-color: var(--kc-primary-brand);
        color: white;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        min-width: 45px;
        max-width: 45px;
        flex: none;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 5px;
        box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
    }
    
    .kc-mobile-nav .kc-create-btn i {
        font-size: 1.3em;
        margin: 0;
    }
    
    .kc-mobile-nav .kc-create-btn span {
        display: none;
    }
    
    /* Garantir espaço para a navegação inferior */
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
}

/* Correções para Samsung S20 Ultra (412px) */
@media (min-width: 400px) and (max-width: 450px) {
    .kc-mobile-nav {
        padding: 0 10px;
    }
    
    .kc-mobile-nav a,
    .kc-mobile-nav button {
        font-size: 0.7em;
        min-width: 55px;
    }
    
    .kc-mobile-nav a span,
    .kc-mobile-nav button span {
        font-size: 0.8em;
    }
}

/* Correções para telas muito pequenas (268px - Responsive) */
@media (max-width: 320px) {
    header {
        padding: 6px 8px;
    }
    
    .kc-logo a {
        font-size: 1em;
    }
    
    .kc-search-bar input {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .kc-mobile-nav {
        height: 55px;
        padding: 0 2px;
    }
    
    .kc-mobile-nav a,
    .kc-mobile-nav button {
        font-size: 0.55em;
        min-width: 40px;
        padding: 3px 5px;
    }
    
    .kc-mobile-nav a i,
    .kc-mobile-nav button i {
        font-size: 1.2em;
    }
    
    .kc-mobile-nav .kc-create-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        max-width: 38px;
    }
    
    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
    }
}

/* ------------------------------
   Modal "Nova Publicação" (overlay com blur)
   ------------------------------ */

.kc-modal-open {
    overflow: hidden;
}

.kc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.kc-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.kc-create-modal {
    width: min(560px, 100%);
    max-height: calc(90vh - 24px);
    background: var(--kc-surface-dark);
    color: var(--kc-text-dark-primary);
    font-size: 0.95rem;
    border: 1px solid var(--kc-border-dark);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    transform: translateY(6px) scale(0.985);
    transition: transform 180ms ease;
}

.kc-modal-overlay.active .kc-create-modal {
    transform: translateY(0) scale(1);
}

.kc-create-modal__header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: var(--kc-surface-dark);
    color: var(--kc-text-dark-primary);
    border-bottom: 1px solid var(--kc-border-dark);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.kc-create-modal__header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.1;
}

.kc-create-modal__header h2 i {
    color: var(--kc-primary-brand);
}

.kc-create-modal__close {
    width: 42px;
    height: 42px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--kc-text-dark-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.kc-create-modal__close:hover {
    background: var(--kc-surface-dark-hover);
    border-color: rgba(255, 107, 0, 0.35);
    color: var(--kc-primary-brand);
}

.kc-create-modal__body {
    padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    overflow: auto;
    max-height: calc(90vh - 80px);
}

.kc-create-step {
    margin-bottom: 14px;
}

.kc-create-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--kc-text-dark-primary);
}

.kc-create-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.kc-create-cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 18px;
    border: 1px solid var(--kc-border-dark);
    background: var(--kc-surface-dark-hover);
    color: var(--kc-text-dark-secondary);
    cursor: pointer;
    min-height: 86px;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}


.kc-create-cat-btn i {
    font-size: 1.35rem;
    color: var(--kc-text-dark-secondary);
}

.kc-create-cat-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 107, 0, 0.65);
    color: var(--kc-primary-brand);
}

.kc-create-cat-btn.active {
    border-color: var(--kc-primary-brand);
    color: var(--kc-primary-brand);
    background: rgba(255, 107, 0, 0.12);
}

.kc-create-cat-btn.active i,
.kc-create-cat-btn:hover i {
    color: var(--kc-primary-brand);
}

.kc-create-hint {
    padding: 14px 12px;
    border-radius: 14px;
    border: 1px dashed var(--kc-border-dark);
    color: var(--kc-text-dark-secondary);
    text-align: center;
    background: var(--kc-surface-dark-hover);
}

.kc-create-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kc-create-group {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--kc-border-dark);
    background: var(--kc-surface-dark-hover);
}

.kc-create-group__head {
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--kc-text-dark-primary);
}

.kc-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kc-chip {
    border: 1px solid var(--kc-border-dark);
    background: var(--kc-surface-dark);
    color: var(--kc-text-dark-secondary);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.kc-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 107, 0, 0.55);
    color: var(--kc-primary-brand);
}

.kc-chip.active {
    border-color: var(--kc-primary-brand);
    background: rgba(255, 107, 0, 0.14);
    color: var(--kc-primary-brand);
}

.kc-create-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kc-create-group__head--row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.kc-create-group__head--row small {
    color: var(--kc-text-dark-secondary);
    font-weight: 800;
}

/* Uploader de imagens */
.kc-create-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kc-img-dropzone {
    width: 100%;
    border: 2px dashed var(--kc-border-dark);
    border-radius: 16px;
    background: var(--kc-surface-dark);
    color: var(--kc-text-dark-primary);
    padding: 14px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.kc-img-dropzone i {
    color: var(--kc-primary-brand);
    font-size: 1.2rem;
}

.kc-img-dropzone__title {
    font-weight: 900;
    line-height: 1.1;
}

.kc-img-dropzone__sub {
    margin-top: 2px;
    font-size: 0.85rem;
    color: var(--kc-text-dark-secondary);
    font-weight: 700;
}

.kc-img-dropzone:hover {
    border-color: rgba(255, 107, 0, 0.55);
    transform: translateY(-1px);
}

.kc-img-dropzone:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.kc-img-dropzone.is-dragover {
    border-color: var(--kc-primary-brand);
    background: rgba(255, 107, 0, 0.08);
}

.kc-img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 10px;
}

.kc-img-thumb {
    position: relative;
    border: 1px solid var(--kc-border-dark);
    border-radius: 14px;
    overflow: hidden;
    background: var(--kc-surface-dark);
}

.kc-img-thumb img {
    width: 100%;
    height: 86px;
    object-fit: cover;
    display: block;
}

.kc-img-thumb.is-cover {
    border-color: rgba(255, 107, 0, 0.85);
    box-shadow: 0 10px 24px rgba(255, 107, 0, 0.16);
}

.kc-img-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 107, 0, 0.92);
    color: white;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kc-img-actions {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    gap: 6px;
}

.kc-img-action {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 140ms ease, filter 140ms ease;
}

[data-theme="dark"] .kc-img-action {
    background: rgba(0, 0, 0, 0.55);
    color: var(--kc-text-dark-primary);
    border-color: rgba(255,255,255,0.12);
}

.kc-img-action:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.kc-img-hint {
    font-size: 0.85rem;
    color: var(--kc-text-dark-secondary);
}

.kc-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
    color: var(--kc-text-dark-primary);
}

.kc-field input,
.kc-field textarea,
.kc-field select {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--kc-border-dark);
    background: var(--kc-surface-dark);
    color: var(--kc-text-dark-primary);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.kc-field textarea {
    resize: vertical;
}

.kc-field input:focus,
.kc-field textarea:focus,
.kc-field select:focus {
    border-color: rgba(255, 107, 0, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
}

.kc-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--kc-border-dark);
    background: rgba(255, 107, 0, 0.10);
    cursor: pointer;
}

.kc-check input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--kc-primary-brand);
}

.kc-check span {
    font-weight: 800;
    color: var(--kc-text-dark-primary);
}

.kc-create-submit {
    width: 100%;
    border: none;
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 900;
    font-size: 1.08rem;
    min-height: 56px;
    background: var(--kc-primary-brand);
    color: white;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(255, 107, 0, 0.20);
    transition: transform 140ms ease, filter 140ms ease, opacity 140ms ease;
    position: sticky;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 2;
}

.kc-create-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.kc-create-submit:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

@media (max-width: 480px) {
    .kc-modal-overlay { padding: 10px; }
    .kc-create-modal {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 20px;
    }
    .kc-create-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kc-create-modal__body {
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
        max-height: calc(90vh - 86px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Feed Tabs Mobile - Scroll horizontal */
@media (max-width: 480px) {
    .kc-feed-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px 0;
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .kc-feed-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .kc-feed-tabs a {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 0.85em;
        margin-right: 8px;
    }
}

/* Cards Mobile - Ajustes de proporção */
@media (max-width: 480px) {
    .kc-card {
        margin: 0 -12px 15px -12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .kc-card__main {
        padding: 12px;
    }
    
    .kc-card__image-wrapper {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }
    
    .kc-card__content {
        padding-left: 10px;
    }
    
    .kc-card__title {
        font-size: 0.95em;
        line-height: 1.3;
    }
    
    .kc-card__price {
        font-size: 1em;
    }
    
    .kc-card__description-preview {
        font-size: 0.85em;
        -webkit-line-clamp: 2;
    }
    
    .kc-card__footer {
        padding: 10px 12px;
    }
    
    .kc-vote-box {
        padding: 6px 12px;
    }
}

/* Banner/Carousel Mobile */
@media (max-width: 480px) {
    /* Evita corte/overflow e deixa o banner mais confortável no mobile */
    .kc-hero-carousel {
        margin: 0 0 16px 0;
        border-radius: 12px;
    }

    .kc-hero-banner {
        min-height: clamp(200px, 52vw, 260px);
        padding: 20px 16px 62px;
        text-align: left;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .kc-hero-banner img,
    .kc-hero-banner picture img,
    .kc-hero-banner .kc-hero-illustration img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .kc-hero-content h1 {
        font-size: 1.25em;
        line-height: 1.15;
        margin-bottom: 8px;
    }

    .kc-hero-content p {
        font-size: 0.9em;
        line-height: 1.35;
        margin-bottom: 14px;
        max-width: 100%;
    }

    .kc-btn-primary {
        padding: 10px 16px;
        font-size: 0.9em;
        border-radius: 10px;
    }

    /* Setas atrapalham no mobile (ficam sobre o texto) — use pontos */
    .kc-carousel-btn {
        display: none;
    }

    .kc-carousel-dots {
        bottom: 12px;
    }

    .kc-dot {
        width: 12px;
        height: 12px;
    }
}



/* Top Contribuidores Mobile */
@media (max-width: 480px) {
    .kc-top-contributors {
        padding: 12px;
        margin: 0 -12px 15px -12px;
        border-radius: 0;
    }
    
    .kc-top-contributors h3 {
        font-size: 0.95em;
    }
    
    .kc-contributors-list {
        gap: 12px;
    }
    
    .kc-contributor-avatar {
        width: 45px;
        height: 45px;
    }
    
    .kc-contributor-name {
        font-size: 0.75em;
    }
}

/* Sidebar oculta em mobile */
@media (max-width: 768px) {
    .kc-sidebar,
    .kc-sidebar-compra-venda,
    aside.kc-sidebar {
        display: none !important;
    }
    
    .kc-main-content,
    .kc-feed-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 12px;
    }
}

/* Container principal Mobile */
@media (max-width: 480px) {
    .kc-container,
    main {
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .kc-feed-section {
        padding: 0;
    }
}

/* Menu Drawer Mobile - Ajustes */
@media (max-width: 480px) {
    .kc-mobile-menu-drawer {
        width: 280px;
        max-width: 85vw;
    }
    
    .kc-mobile-menu-header {
        padding: 15px;
    }
    
    /* Alguns templates usam .kc-mobile-menu-content */
    .kc-mobile-menu-content a,
    .kc-mobile-menu-nav a {
        padding: 12px 15px;
        font-size: 0.95em;
    }
}

/* Safe area (iOS notch) */
.kc-mobile-nav {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Esconder navegação desktop em mobile */
@media (max-width: 768px) {
    .kc-nav-links,
    header nav {
        display: none;
    }
}

/* Mostrar navegação mobile apenas em telas pequenas */
@media (min-width: 769px) {
    .kc-mobile-nav {
        display: none !important;
    }
}


/* Passe fino UX Mobile */
@media (max-width: 480px) {
    /* Evita zoom do iOS no campo de busca */
    .kc-search-bar input {
        font-size: 16px;
    }

    /* Áreas de toque mais confortáveis */
    .kc-mobile-nav a,
    .kc-mobile-nav button {
        min-height: 44px;
    }

    /* Tabs horizontais mais suaves no mobile */
    .kc-feed-tabs {
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: 12px;
    }
}

/* =========================================================
   V5.5.1 - mobile responsive + sticky header/tabs (Pelando-like)
   ========================================================= */
:root {
  --kc-safe-top: env(safe-area-inset-top, 0px);
  /* fallback; JS atualiza com a altura real do header */
  --kc-header-height: 72px;
  /* gap entre header e tabs quando fixos */
  --kc-sticky-gap: 0px;
}

/* Header respeitando safe-area */
header,
.kc-header {
  top: var(--kc-safe-top);
}

/* Tabs fixas abaixo do header (sobem até encostar e param) */
.kc-feed-tabs {
  position: sticky;
  top: calc(var(--kc-safe-top) + var(--kc-header-height) + var(--kc-sticky-gap));
  z-index: 110;
  background-color: var(--kc-background-dark);
  padding: 10px 6px;
  margin: 0 0 16px 0;
  border-bottom: 1px solid var(--kc-border-dark);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-left: 12px;
  touch-action: pan-x;
}

.kc-feed-tabs a {
  scroll-snap-align: start;
  min-height: 40px;
}

.kc-feed-tabs a i {
  opacity: 0.9;
  color: currentColor;
}

.kc-feed-tabs a:hover {
  color: var(--kc-primary-brand);
  border-color: rgba(255, 107, 0, 0.35);
}

.kc-feed-tabs a:hover i {
  color: var(--kc-primary-brand);
}

.kc-feed-tabs a.active {
  border-color: transparent;
}

/* Drag to scroll (desktop/mouse) */
.kc-feed-tabs,
.kc-ranking-users {
  cursor: grab;
}

.kc-feed-tabs.is-dragging,
.kc-ranking-users.is-dragging {
  cursor: grabbing;
  user-select: none;
}

/* Top contribuidores com scroll suave e sem scrollbar */
.kc-ranking-users {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-left: 12px;
  touch-action: pan-x;
}

.kc-ranking-users::-webkit-scrollbar {
  display: none;
}

.kc-ranking-user {
  scroll-snap-align: start;
}

/* Hero: swipe + melhor proporção no mobile */
.kc-hero-carousel {
  touch-action: pan-y;
}

@media (max-width: 576px) {
  /* Mostrar logo em texto no mobile (pedido) */
  .kc-logo-text {
    display: flex !important;
  }

  .kc-logo-sub {
    display: none;
  }

  .kc-logo-name {
    font-size: 1.05rem;
  }

  .kc-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  /* Header mais compacto */
  header {
    padding: 10px 14px;
  }

  main {
    margin-top: 14px;
    padding: 0 12px;
  }

  /* Hero banner */
  .kc-hero-carousel {
    border-radius: 20px;
  }

  .kc-hero-banner {
    border-radius: 20px;
    padding: 22px 18px 58px;
    min-height: 205px;
  }

  .kc-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .kc-hero-content h1 {
    font-size: 1.35rem;
    line-height: 1.12;
  }

  .kc-hero-content p {
    font-size: 0.95rem;
  }

  .kc-hero-illustration {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    align-self: flex-end;
  }

  /* Controles do carrossel (deixa mais clean no mobile) */
  .kc-carousel-btn {
    display: none;
  }

  /* Tabs como "chips" (Pelando-like) */
  .kc-feed-tabs {
    padding: 10px 12px;
    margin: 0 -12px 14px;
    gap: 10px;
  }

  .kc-feed-tabs a {
    padding: 10px 14px;
    font-size: 0.88rem;
    border-radius: 999px;
  }

  /* Cards: melhor leitura e sem overflow */
  .kc-feed-list {
    gap: 12px;
  }

  .kc-card {
    border-radius: 16px;
  }

  .kc-card__main {
    grid-template-columns: 78px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .kc-card__image-wrapper {
    width: 78px;
    height: 78px;
    border-radius: 12px;
  }

  .kc-card__title {
    font-size: 1.02rem;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .kc-card__category-source {
    font-size: 0.82rem;
  }

  .kc-card__timestamp {
    font-size: 0.78rem;
  }

  .kc-card__description-preview {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  .kc-card__footer {
    padding: 10px 12px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .kc-card__interactions {
    width: 100%;
    justify-content: space-between;
  }

  .kc-action-button {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 14px;
  }

  .kc-vote-box,
  .kc-comment-link {
    border-radius: 999px;
  }
}

@media (max-width: 420px) {
  .kc-card__main {
    grid-template-columns: 70px 1fr;
  }
  .kc-card__image-wrapper {
    width: 70px;
    height: 70px;
  }
}

/* =========================================================
   V5.5.2 - Mobile polish (Pelando-like)
   - Corrige overflow em cards e hero
   - Footer do card em uma linha (pills) + botão menor
   - Tabs com padding correto e sticky colado no header
   ========================================================= */

@media (max-width: 576px) {
  html,
  body {
    overflow-x: hidden;
  }

  /* Gutter mais consistente (sem estourar na borda) */
  main {
    padding: 0 16px;
    margin-top: 14px;
  }

  /* Hero - proporção e respiro */
  .kc-hero-carousel {
    border-radius: 18px;
    margin-bottom: 16px;
  }

  .kc-hero-banner {
    border-radius: 18px;
    padding: 20px 18px 56px;
    min-height: 190px;
  }

  .kc-hero-content {
    max-width: 100%;
  }

  .kc-hero-content h1 {
    font-size: 1.32rem;
    line-height: 1.12;
  }

  .kc-hero-content p {
    font-size: 0.92rem;
    max-width: 54ch;
  }

  /* Tabs - sem margem negativa e com sticky colado no header */
  .kc-feed-tabs {
    top: calc(var(--kc-safe-top) + var(--kc-header-height));
    margin: 0 0 14px;
    padding: 12px 0;
    background-color: var(--kc-background-dark);
    border-bottom: 1px solid var(--kc-border-dark);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    -webkit-overflow-scrolling: touch;
  }

  .kc-feed-tabs a {
    padding: 10px 14px;
    border-radius: 999px;
  }

  /* Cards - evita estourar e aproxima do layout Pelando */
  .kc-card__main {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .kc-card__content {
    min-width: 0;
  }

  /* Footer em uma linha: votos + comentários (esquerda) e botão (direita) */
  .kc-card__footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .kc-card__interactions {
    width: auto;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
  }

  .kc-vote-box {
    padding: 6px 12px;
    gap: 10px;
  }

  .kc-vote-box span {
    min-width: 28px;
  }

  .kc-comment-link {
    padding: 6px 12px;
    white-space: nowrap;
  }

  .kc-card__footer .kc-action-button {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
  }
}

/* Telas bem pequenas: permite o botão ir para baixo sem estourar */
@media (max-width: 380px) {
  .kc-card__footer {
    grid-template-columns: 1fr;
  }

  .kc-card__footer .kc-action-button {
    width: 100%;
  }
}

/* =========================================================
   V5.5.3 - Mobile layout fix + cache-busting assets
   - Corrige clique dos tabs no desktop (JS) + remove "linha" indesejada
   - Hero e cards com proporção Pelando-like (gutter, clamp, sem overflow)
   - Evita ALT quebrar layout quando imagens remotas não carregam (offline)
   ========================================================= */

/* Evita seleção durante drag */
.kc-no-select,
.kc-no-select * {
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* Imagens: garante que o <img> ocupe o wrapper e não estoure com ALT */
.kc-card__image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.kc-card__image-wrapper.kc-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
}

.kc-card__image-wrapper.kc-image-fallback .kc-card__emoji {
  font-size: 2.1rem;
  line-height: 1;
}

/* Tabs: remove borda/linha que apareceu + mantém sticky limpo */
.kc-feed-tabs {
  border-bottom: none !important;
  box-shadow: none !important;
}

@media (max-width: 576px) {
  html,
  body {
    overflow-x: hidden;
  }

  /* Gutter e largura no mobile (sem “estourar”) */
  main {
    width: 100%;
    max-width: 100%;
    margin: 14px auto;
    padding: 0 14px;
  }

  /* HERO (Pelando-like): conteúdo em coluna, sem ilustração lateral */
  .kc-hero-carousel {
    width: 100%;
    border-radius: 18px;
  }

  .kc-hero-banner {
    border-radius: 18px;
    padding: 18px 16px 56px;
    min-height: 182px;
  }

  .kc-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .kc-hero-illustration {
    display: none;
  }

  .kc-hero-content h1 {
    font-size: 1.28rem;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .kc-hero-content p {
    font-size: 0.92rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
  }

  .kc-btn-primary {
    width: auto;
    padding: 10px 16px;
    border-radius: 14px;
  }

  /* FEED TABS: scroll horizontal “nativo” + sticky abaixo do header */
  .kc-feed-tabs {
    position: sticky;
    top: calc(var(--kc-safe-top) + var(--kc-header-height));
    z-index: 90;

    background: var(--kc-surface-dark);
    margin: 0 0 14px;
    padding: 10px 14px;

    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;

    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-radius: 14px;
  }

  /* Esconde scrollbar (Pelando-like) */
  .kc-feed-tabs::-webkit-scrollbar {
    height: 0;
  }

  .kc-feed-tabs a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  /* CARDS: garante que nada estoure a largura */
  .kc-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .kc-card__main {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .kc-card__image-wrapper {
    width: 82px;
    height: 82px;
  }

  .kc-card__content {
    min-width: 0;
  }

  .kc-card__title {
    font-size: 1.02rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-line-clamp: 2;
  }

  .kc-card__description-preview {
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-line-clamp: 2;
  }

  /* Footer em uma linha (pills + CTA menor) */
  .kc-card__footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    gap: 10px;
    padding: 10px 12px;
  }

  .kc-card__interactions {
    width: auto !important;
    gap: 10px;
    flex: 0 1 auto;
    min-width: 0;
  }

  .kc-vote-box,
  .kc-comment-link {
    flex: 0 0 auto;
    border-radius: 999px;
  }

  .kc-card__footer .kc-action-button {
    width: auto !important;
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  /* Em telas muito pequenas, permite quebrar sem virar um "tijolo" */
  .kc-card__footer {
    flex-wrap: wrap !important;
  }

  .kc-card__footer .kc-action-button {
    width: auto !important;
  }
}

/* =========================================================
   V5.5.4 - Mobile cards + tabs fix (Pelando-like)
   Objetivos:
   - Cards mais "retangulares" e legíveis no mobile (shadow + radius + gutters)
   - Corrigir bug de texto sumindo nos tabs (active + hover em touch)
   - Remover linha indesejada no container dos tabs
   - Hero mais harmônico no mobile
   ========================================================= */

/* 1) Tabs: não deixar :hover sobrescrever a cor do .active (em touch isso "gruda") */
.kc-feed-tabs a:not(.active):hover {
  color: var(--kc-primary-brand);
  border-color: rgba(255, 107, 0, 0.35);
}

.kc-feed-tabs a.active,
.kc-feed-tabs a.active:hover,
.kc-feed-tabs a.active:focus,
.kc-feed-tabs a.active:focus-visible {
  color: #ffffff !important;
}

.kc-feed-tabs a.active i,
.kc-feed-tabs a.active span {
  color: currentColor !important;
}

/* Remove a linha (border-bottom) que aparecia no container sticky */
.kc-feed-tabs {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* 2) Mobile: aumentar contraste do fundo para destacar cards */
@media (max-width: 520px) {
  body[data-theme="light"] {
    --kc-background-dark: #efefef;
  }

  main,
  .kc-container,
  .kc-main-content,
  .kc-feed-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  main {
    margin: 14px auto !important;
    gap: 14px !important;
  }

  .kc-feed-list {
    gap: 12px !important;
  }

  /* Card com aparência de "cartão" (Pelando-like) */
  .kc-card {
    border-radius: 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.09) !important;
    overflow: hidden;
  }

  body[data-theme="dark"] .kc-card {
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35) !important;
  }

  /* Evita animações "hover" no touch */
  .kc-card:hover {
    transform: none !important;
  }

  .kc-card__main {
    grid-template-columns: 84px 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .kc-card__image-wrapper {
    width: 84px !important;
    height: 84px !important;
    border-radius: 14px !important;
  }

  .kc-card__image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
  }

  .kc-card__category-source {
    font-size: 0.78em !important;
  }

  .kc-card__title {
    font-size: 1.02em !important;
    -webkit-line-clamp: 2 !important;
  }

  .kc-card__description-preview {
    -webkit-line-clamp: 2 !important;
  }

  .kc-card__footer {
    padding: 10px 12px !important;
  }

  /* 3) Hero mais harmônico */
  .kc-hero-carousel,
  .kc-hero-banner {
    border-radius: 18px !important;
  }

  .kc-hero-banner {
    padding: 22px 18px 26px !important;
    min-height: 190px !important;
  }

  .kc-hero-content h1 {
    font-size: 1.45rem !important;
    line-height: 1.15 !important;
    margin: 10px 0 8px !important;
  }

  .kc-hero-content p {
    font-size: 0.95rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .kc-hero-illustration {
    opacity: 0.22 !important;
    font-size: 4rem !important;
  }
}


/* ---- Mobile/patch overrides (from styles.v556.css) ---- */

/*
  KinoCampus V5.5.6 - Edge Mobile Fit (engine-driven)
  Principal alteração: padroniza gutters/tamanhos com CSS variables (clamp)
  e remove as margens negativas/conflitos que criavam overflow e aparência de
  "não redimensiona" em diferentes presets mobile (Edge).

  Foco: kc-hero-slides, kc-ranking-banner, kc-feed-tabs, kc-card (kc-feed-list)
*/

/* Base de layout (anti-overflow) */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  width: 100%;
  max-width: 100%;
}

/* clip é melhor que hidden (não cria scrollbars fantasmas) */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

:root {
  /* gutter único para todo o layout (bom entre 268px e 540px) */
  --kc-page-gutter: clamp(10px, 3.4vw, 16px);

  /* tamanhos fluidos p/ mobile */
  --kc-card-media: clamp(64px, 18vw, 92px);
  --kc-chip-py: clamp(8px, 2.4vw, 10px);
  --kc-chip-px: clamp(12px, 3.2vw, 14px);

  --kc-hero-py: clamp(16px, 4.6vw, 26px);
  --kc-hero-px: clamp(14px, 4.0vw, 22px);
  --kc-hero-min-h: clamp(172px, 34vw, 220px);

  /* header height já é atualizado pelo JS do projeto; aqui só garante fallback */
  --kc-header-height: 72px;
  --kc-safe-top: env(safe-area-inset-top, 0px);
}

/* Padroniza o container principal (sem depender de versões antigas) */
main,
.kc-main-content,
.kc-container,
.kc-feed-container {
  padding-left: var(--kc-page-gutter) !important;
  padding-right: var(--kc-page-gutter) !important;
}

/* Evita que grids/flex empurrem para fora em telas estreitas */
main, .kc-feed-section, .kc-feed-list, .kc-card, .kc-card__content {
  min-width: 0;
}

/* ============
   HERO (kc-hero-slides)
   ============ */

.kc-hero-carousel,
.kc-hero-slides {
  width: 100%;
  max-width: 100%;
}

/* garante que o banner ativo nunca estoure */
.kc-hero-banner.active {
  max-width: 100%;
}

@media (max-width: 768px) {
  .kc-hero-carousel {
    border-radius: 18px;
    margin-bottom: 14px;
  }

  .kc-hero-banner {
    border-radius: 18px;
    padding: var(--kc-hero-py) var(--kc-hero-px) calc(var(--kc-hero-py) + 34px) !important;
    min-height: var(--kc-hero-min-h) !important;
  }

  .kc-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .kc-hero-illustration {
    display: none;
  }

  .kc-hero-content {
    max-width: 100% !important;
  }

  .kc-hero-content h1 {
    font-size: clamp(1.10rem, 4.8vw, 1.55rem) !important;
    line-height: 1.14 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .kc-hero-content p {
    font-size: clamp(0.88rem, 3.6vw, 0.98rem) !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100% !important;
  }

  /* setas normalmente atrapalham em touch; deixa dots */
  .kc-carousel-btn {
    display: none !important;
  }

  .kc-carousel-dots {
    bottom: 12px;
  }

  .kc-dot {
    width: 11px;
    height: 11px;
  }
}

@media (max-width: 320px) {
  .kc-hero-banner {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ============
   RANKING (kc-ranking-banner)
   ============ */

.kc-ranking-banner {
  width: 100%;
  max-width: 100%;
}

.kc-ranking-users {
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--kc-page-gutter);
  touch-action: pan-x;
}

.kc-ranking-users::-webkit-scrollbar { display: none; }

.kc-ranking-user {
  scroll-snap-align: start;
}

@media (max-width: 520px) {
  .kc-ranking-banner { padding: 14px !important; }
  .kc-ranking-users { gap: 12px !important; }

  .kc-ranking-user { width: clamp(52px, 14vw, 64px) !important; }
  .kc-ranking-user-avatar { width: clamp(34px, 10vw, 44px) !important; height: clamp(34px, 10vw, 44px) !important; }
  .kc-ranking-user-name { font-size: 0.76em !important; }
}

/* ============
   TABS (kc-feed-tabs)
   ============ */

/* Remove margens negativas antigas (causavam overflow) */
.kc-feed-tabs {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .kc-feed-tabs {
    position: sticky;
    top: calc(var(--kc-safe-top) + var(--kc-header-height));
    z-index: 110;

    display: flex;
    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    padding: 10px 0 !important;
    margin: 0 0 14px 0 !important;

    scroll-snap-type: x proximity;
    scroll-padding-left: var(--kc-page-gutter);

    background: var(--kc-background-dark);
    border-bottom: 1px solid var(--kc-border-dark);
    box-shadow: none !important;
    touch-action: pan-x;
  }

  .kc-feed-tabs::-webkit-scrollbar { height: 0; display: none; }

  .kc-feed-tabs a {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;

    padding: var(--kc-chip-py) var(--kc-chip-px) !important;
    border-radius: 999px;

    font-size: clamp(0.82rem, 3.2vw, 0.92rem) !important;
    line-height: 1;
    min-height: 40px;
  }

  /* garante contraste do active sem depender de :hover (touch) */
  .kc-feed-tabs a.active,
  .kc-feed-tabs a.active:hover,
  .kc-feed-tabs a.active:focus,
  .kc-feed-tabs a.active:focus-visible {
    color: #fff !important;
  }
}

@media (max-width: 320px) {
  .kc-feed-tabs a { min-height: 38px; }
}

/* ============
   CARDS (kc-card dentro de kc-feed-list)
   ============ */

/* remove "full-bleed" antigo (margin negativa) */
.kc-card {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .kc-feed-list { gap: 12px !important; }

  .kc-card {
    border-radius: 18px !important;
    overflow: hidden;
    transform: none !important;
  }

  .kc-card__main {
    display: grid;
    grid-template-columns: var(--kc-card-media) minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .kc-card__image-wrapper {
    width: var(--kc-card-media) !important;
    height: var(--kc-card-media) !important;
    min-width: var(--kc-card-media) !important;
    border-radius: 14px !important;
    overflow: hidden;
  }

  .kc-card__image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
    object-fit: cover;
  }

  .kc-card__content { min-width: 0 !important; }

  .kc-card__category-source {
    font-size: clamp(0.74rem, 2.9vw, 0.84rem) !important;
  }

  .kc-card__timestamp {
    font-size: clamp(0.72rem, 2.7vw, 0.82rem) !important;
  }

  .kc-card__title {
    font-size: clamp(0.96rem, 3.6vw, 1.06rem) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .kc-card__price {
    font-size: clamp(0.98rem, 3.8vw, 1.06rem) !important;
    overflow-wrap: anywhere;
  }

  /* footer flexível: tenta 1 linha, mas pode quebrar sem overflow */
  .kc-card__footer {
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  .kc-card__interactions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .kc-card__footer .kc-action-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .kc-card__footer { gap: 8px; }
  .kc-card__footer .kc-action-button {
    width: 100% !important;
    justify-content: center;
  }
}

/* Touch: remove hover que "gruda" em chips/cards */
@media (hover: none) and (pointer: coarse) {
  .kc-card:hover { transform: none !important; }
}

/* =========================================================
   V5.5.6 - Tema persistente (sem flash) + consistência
   Principal função: garantir compatibilidade com data-theme no <html>
   ========================================================= */

:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* Placeholders legíveis nos dois temas */
input::placeholder,
textarea::placeholder {
  color: var(--kc-text-dark-secondary);
  opacity: 0.85;
}

/* Compat: regras antigas usavam body[data-theme] (agora o atributo fica no <html>) */
@media (max-width: 520px) {
  :root[data-theme="light"] {
    --kc-background-dark: #efefef;
  }

  :root[data-theme="dark"] .kc-card {
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35) !important;
  }
}


/* =========================================================
   V8.1.2.4.5 - Estabilidade Visual Total + Validação de CLS (Mobile)
   - Reserva espaço para mídias (aspect-ratio + min-height)
   - Remove transições que possam causar reflow perceptível em trocas de feed
   ========================================================= */

/* 1) Estabilidade: trava proporção do wrapper (mobile) */
@media (max-width: 768px) {
  /* elimina animações que possam dar sensação de "glitch" durante a troca de tabs */
  .kc-card,
  .kc-card__main,
  .kc-card__content {
    transition: none !important;
  }

  /* evita colapso momentâneo durante troca de feed */
  .kc-card {
    min-height: calc((var(--kc-card-media) * 0.75) + 40px);
  }

  .kc-card__main {
    min-height: calc((var(--kc-card-media) * 0.75) + 24px);
    align-items: stretch;
  }

  .kc-card__image-wrapper {
    /* largura já é definida nos breakpoints; altura passa a derivar da largura */
    height: auto !important;
    aspect-ratio: 4 / 3;
    min-height: calc(var(--kc-card-media) * 0.75);
    /* placeholder neutro enquanto a imagem carrega */
    background-color: rgba(255, 255, 255, 0.04);
    contain: layout paint;
  }

  .kc-card__image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    /* remove transições no mobile para evitar "glitch" */
    transition: none !important;
    transform: none !important;
  }
}

/* 2) Hover/transform só onde faz sentido (desktop com mouse) */
@media (hover: hover) and (pointer: fine) {
  .kc-card__image-wrapper img {
    transition: transform var(--transition-speed) ease;
  }
  .kc-card:hover .kc-card__image-wrapper img {
    transform: scale(1.05);
  }
}

@media (hover: none) {
  .kc-card:hover .kc-card__image-wrapper img {
    transform: none !important;
  }
}

/* -----------------------------
   Auth Modal (V8.1.3.1)
----------------------------- */
.kc-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.kc-auth-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.kc-auth-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.kc-auth-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.kc-auth-card {
  width: min(520px, 100%);
  background: var(--card-bg, rgba(255,255,255,0.06));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.kc-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.kc-auth-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.kc-auth-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
}

.kc-auth-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.kc-auth-body {
  padding: 14px 16px 16px;
}

.kc-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.kc-auth-tab {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}

.kc-auth-tab.active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
}

.kc-auth-form {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.kc-auth-field {
  display: grid;
  gap: 6px;
}

.kc-auth-field label {
  font-size: 0.9rem;
  opacity: 0.92;
}

.kc-auth-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  padding: 10px 12px;
  border-radius: 14px;
  outline: none;
}

.kc-auth-field input:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.kc-auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.kc-auth-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}

.kc-auth-btn.primary {
  background: rgba(46, 204, 113, 0.20);
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.kc-auth-btn.danger {
  background: rgba(231, 76, 60, 0.20);
  border: 1px solid rgba(231, 76, 60, 0.35);
}

.kc-auth-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
  display: none;
}

.kc-auth-status.show { display: block; }
.kc-auth-status.info { border-color: rgba(52, 152, 219, 0.35); }
.kc-auth-status.success { border-color: rgba(46, 204, 113, 0.35); }
.kc-auth-status.warn { border-color: rgba(241, 196, 15, 0.38); }
.kc-auth-status.error { border-color: rgba(231, 76, 60, 0.38); }

.kc-auth-user {
  display: grid;
  gap: 10px;
}

.kc-auth-user strong {
  font-size: 0.95rem;
}

/* Link/botões desabilitados por ausência de sessão (sem bloquear clique, pois abre login) */
.kc-disabled {
  opacity: 0.58;
  filter: grayscale(0.25);
}

.kc-disabled:hover {
  opacity: 0.68;
}

@media (max-width: 520px) {
  .kc-auth-card { border-radius: 16px; }
}

/* =========================================================
   V8.1.3.1.2 - kc-card__footer harmonization (mobile + web)
   - Evita sobreposição no mobile (vote/comment/share/CTA)
   - Mesma altura para: .kc-vote-box, .kc-comment-link, .kc-share-whatsapp, .kc-action-button
   - WhatsApp maior no desktop
   - Vote box ainda mais compacto no mobile (libera espaço para comment/share/CTA)
   ========================================================= */

:root {
  /* 48px deixa o WhatsApp perceptivelmente maior no desktop e mantém o footer touch-friendly */
  --kc-card-footer-control-h: 48px;
  --kc-card-footer-share-size: 48px;
  --kc-card-footer-share-icon: 26px;
}

/* Altura consistente (desktop + mobile) */
.kc-card__footer .kc-vote-box,
.kc-card__footer .kc-comment-link,
.kc-card__footer .kc-share-whatsapp,
.kc-card__footer .kc-action-button {
  height: var(--kc-card-footer-control-h);
  min-height: var(--kc-card-footer-control-h);
}

/* Vote box menor (mesma altura, menos largura) */
.kc-card__footer .kc-vote-box {
  padding: 0 10px;
  gap: 6px;
  border-radius: 999px;
}

.kc-card__footer .kc-vote-box button {
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.kc-card__footer .kc-vote-box span {
  min-width: 26px;
  text-align: center;
  font-size: 0.9em;
}

/* Comentários: um pouco mais largo e "alto" (altura vem do control-h) */
.kc-card__footer .kc-comment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  line-height: 1;
}

/* CTA no footer: mesma altura e alinhamento */
.kc-card__footer .kc-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  line-height: 1;
}

/* WhatsApp: maior e harmônico com os demais (desktop incluso) */
.kc-card__footer .kc-share-whatsapp {
  height: var(--kc-card-footer-share-size);
  width: var(--kc-card-footer-share-size);
  padding: 0;
  aspect-ratio: 1 / 1;
}

.kc-card__footer .kc-share-whatsapp svg {
  width: var(--kc-card-footer-share-icon);
  height: var(--kc-card-footer-share-icon);
}

/* Mobile: evita sobreposição e melhora proporção (wrap inteligente) */
@media (max-width: 576px) {
  .kc-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .kc-card__interactions {
    /* Interações podem encolher; prioridade é não esmagar as ações */
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .kc-card__actions {
    /* Não deixa o bloco de ações encolher a ponto de "invadir" e gerar overlap.
       Se não couber, ele quebra para a próxima linha (por causa do flex-wrap do footer). */
    flex: 0 0 auto;
    min-width: 0;
    justify-content: flex-end;
    gap: 10px;
  }

  .kc-card__footer .kc-comment-link {
    flex: 1 1 auto;
    min-width: 86px;
  }

  /* CTA ocupa o restante do bloco de ações (sem encostar no WhatsApp) */
  .kc-card__actions .kc-action-button {
    flex: 1 1 auto;
    white-space: nowrap;
  }

  /* Vote box ainda mais compacto no mobile */
  .kc-card__footer .kc-vote-box {
    padding: 0 6px;
    gap: 4px;
    flex: 0 0 auto;
  }

  .kc-card__footer .kc-vote-box button {
    padding: 0 6px;
  }

  .kc-card__footer .kc-vote-box i {
    font-size: 0.95em;
  }

  .kc-card__footer .kc-vote-box span {
    min-width: 22px;
  }

  /* Comentários um pouco mais largos para balancear o footer */
  .kc-card__footer .kc-comment-link {
    padding: 0 12px;
    min-width: 92px;
  }
}

/* Telas bem pequenas: ações quebram para baixo (sem overlap) */
@media (max-width: 380px) {
  .kc-card__actions {
    flex: 1 1 100%;
  }
  .kc-card__actions .kc-action-button {
    flex: 1 1 100%;
  }
}

/* =========================================================
   V8.1.3.1.3 - kc-card__footer mobile guardrails
   Problema observado:
   - No mobile, o .kc-vote-box ainda consumia largura excessiva;
   - Em alguns breakpoints, regras antigas (width:100% / justify-content:space-between)
     faziam o .kc-comment-link avançar visualmente para a área do WhatsApp/CTA.

   Solução:
   - No mobile, o footer vira GRID (minmax(0,1fr) + auto), garantindo limites claros
     entre interações (coluna 1) e ações (coluna 2) — sem “invadir”/sobrepor.
   - Compactação agressiva do .kc-vote-box (menos padding, botões com largura fixa)
     mantendo altura touch-friendly do conjunto.
   ========================================================= */

@media (max-width: 576px) {
  /* Limites rígidos: interações nunca entram na coluna das ações */
  .kc-card__footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  /* Neutraliza regras móveis antigas que forçavam width:100% e space-between */
  .kc-card__interactions {
    width: auto !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap;
    min-width: 0;
    gap: 8px;
  }

  .kc-card__actions {
    min-width: 0;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
  }

  /* Comentários: não expande para ocupar “o resto” e não invade as ações */
  .kc-card__footer .kc-comment-link {
    flex: 0 0 auto !important;
    min-width: 78px;
  }

  /* Vote box bem mais compacto (principal ajuste solicitado) */
  .kc-card__footer .kc-vote-box {
    padding: 0 4px !important;
    gap: 2px !important;
    flex: 0 0 auto;
  }

  .kc-card__footer .kc-vote-box button {
    padding: 0 !important;
    width: 30px;
  }

  .kc-card__footer .kc-vote-box i {
    font-size: 0.9em;
  }

  .kc-card__footer .kc-vote-box span {
    min-width: 20px !important;
    font-size: 0.88em;
  }
}

/* Telas bem pequenas: ações descem para a linha de baixo (sem esmagar texto) */
@media (max-width: 380px) {
  .kc-card__footer {
    grid-template-columns: 1fr;
  }

  .kc-card__actions {
    justify-content: flex-end;
  }

  .kc-card__actions .kc-action-button {
    width: 100% !important;
    justify-content: center;
  }
}

/* =========================================================
   V8.1.3.1.4 - kc-card__footer: estabilidade real no mobile
   Ajustes motivados por:
   - CTA com textos longos (por módulo) estourando a coluna das ações;
   - kc-comment-link variando largura (1/2/3 dígitos) e "encostando" no WhatsApp;
   - kc-vote-box ainda consumindo espaço demais.

   Solução:
   - CTA unificado em "Ver Mais" (JS) e layout reforçado (CSS);
   - Reserva de largura para o número de comentários (min-width em ch);
   - Vote box ainda mais compacto mantendo altura touch-friendly.
   ========================================================= */

@media (max-width: 576px) {
  /* Reserva largura do número (1-3 dígitos) sem alterar o pill inteiro */
  .kc-card__footer .kc-comment-link span {
    display: inline-block;
    min-width: 3ch; /* 000 */
    text-align: center;
  }

  /* Garante que comentários não "esticam" e não comprimem ações */
  .kc-card__footer .kc-comment-link {
    flex: 0 0 auto !important;
  }

  /* Vote box mais estreito (libera espaço real no footer) */
  .kc-card__footer .kc-vote-box {
    padding: 0 2px !important;
    gap: 1px !important;
  }

  .kc-card__footer .kc-vote-box button {
    width: 28px;
  }

  .kc-card__footer .kc-vote-box span {
    min-width: 2ch !important;
  }
}


/* Destaque temporário do botão de Login/Cadastro (V8.1.3.2.1) */
.kc-attention {
  outline: 2px solid var(--kc-primary-brand);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 107, 0, 0.18);
  border-radius: 999px;
}

/* V8.1.9.0 - Feed pager */
.kc-feed-pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 18px 0 24px;
}

.kc-feed-pager__btn,
.kc-feed-pager__retry {
  width: min(100%, 320px);
  justify-content: center;
}

.kc-feed-pager__status {
  margin: 0;
  text-align: center;
  color: var(--kc-text-light);
  word-break: break-word;
  max-width: min(100%, 320px);
}

.kc-feed-realtime-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--kc-border-dark);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 107, 0, 0.08), rgba(255, 107, 0, 0.04));
}

.kc-feed-realtime-banner__msg {
  color: var(--kc-text-dark);
  font-weight: 600;
}

.kc-feed-realtime-banner__count {
  min-width: 2ch;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.16);
  color: var(--kc-primary-brand);
  font-weight: 700;
  text-align: center;
}

.kc-feed-realtime-banner__btn {
  min-width: 116px;
  justify-content: center;
}

.kc-card--new {
  animation: kc-feed-new-card-highlight 1.5s ease;
}

@keyframes kc-feed-new-card-highlight {
  0% {
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.45);
    background-color: rgba(255, 107, 0, 0.06);
  }
  100% {
    box-shadow: none;
    background-color: transparent;
  }
}

@media (max-width: 420px) {
  .kc-feed-pager {
    margin: 16px 0 20px;
    padding: 0 8px;
  }

  .kc-feed-realtime-banner {
    gap: 8px;
    padding: 10px;
  }

  .kc-feed-realtime-banner__msg {
    font-size: 0.92em;
  }

  .kc-feed-realtime-banner__btn {
    min-width: 92px;
    padding-inline: 12px;
  }
}
