:root {
    --cor-primaria: var(--cor-primaria-dinamica, #8b5cf6);
    --cor-secundaria: var(--cor-secundaria-dinamica, #2563eb);
    --cor-fundo: #07090d;
    --cor-fundo-sec: #0f1720;
    --cor-card: #111827;
    --cor-card-2: #172033;
    --cor-texto: #f8fafc;
    --cor-texto-suave: #94a3b8;
    --cor-borda: rgba(255, 255, 255, 0.08);
    --cor-borda-forte: rgba(255, 255, 255, 0.14);
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --container-max: 1280px;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 25%),
        linear-gradient(180deg, #07090d 0%, #0b1020 100%);
    color: var(--cor-texto);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.01em;
}

a {
    color: inherit;
    transition: 0.2s ease;
}

a:hover {
    opacity: 1;
}

button,
input,
textarea,
select {
    transition: 0.2s ease;
}

button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: none !important;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.section-header h3,
.post-page-title,
.hero-premium-overlay h1 {
    font-weight: 800;
}

p {
    margin-bottom: 0;
}

.container {
    max-width: var(--container-max);
}

.site-main {
    min-height: 70vh;
}

/* ===== HEADER LIMPO ===== */
.site-header {
    background: rgba(7, 9, 13, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--cor-borda);
}

.navbar {
    padding: 14px 0;
    min-height: 86px;
}

.navbar-brand {
    min-width: 0;
    max-width: 220px;
    flex-shrink: 0;
}

.brand-text-wrap {
    min-width: 0;
}

.brand-title {
    line-height: 1;
    font-size: 1.5rem;
    margin: 0;
}

.site-logo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    border: 1px solid var(--cor-borda);
    flex-shrink: 0;
}

.brand-badge {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    box-shadow: 0 14px 30px rgba(139, 92, 246, 0.28);
}

.navbar-nav {
    gap: 4px;
}

.header-nav-list {
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    color: #eef2f9 !important;
    font-weight: 600;
    opacity: 0.92;
    border-radius: 10px;
    padding: 9px 12px !important;
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff !important;
    opacity: 1;
    background: rgba(255,255,255,0.05);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 300px;
    flex-shrink: 0;
}

.header-search-form .form-control {
    min-width: 0;
    width: 100%;
    height: 42px;
}

.header-search-form .btn {
    height: 42px;
    white-space: nowrap;
    padding-inline: 16px;
}

.header-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.header-user-actions .btn {
    white-space: nowrap;
}

.header-user-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
}

.header-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--cor-borda);
    background: #0f131b;
}

.header-user-name {
    font-weight: 700;
    font-size: 0.92rem;
}

.navbar .form-control,
.newsletter-form .form-control,
.search-page-form .form-control,
.page-card-institucional .form-control,
.comment-form-box .form-control {
    border-radius: 12px;
    border: 1px solid var(--cor-borda);
    background: #0f131b;
    color: #fff;
}

.navbar .form-control:focus,
.newsletter-form .form-control:focus,
.search-page-form .form-control:focus,
.page-card-institucional .form-control:focus,
.comment-form-box .form-control:focus {
    border-color: rgba(124, 77, 255, 0.45);
    box-shadow: none;
    background: #0f131b;
    color: #fff;
}

.form-control::placeholder {
    color: #95a0b5;
}

/* Buttons */
.btn {
    border-radius: 14px;
    font-weight: 700;
}

.btn-nerd {
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    color: #fff;
    border: 0;
    border-radius: 14px;
    padding: 10px 18px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(139, 92, 246, 0.24);
}

.btn-nerd:hover {
    color: #fff;
    opacity: 0.96;
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.18);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.24);
    color: #fff;
}

/* General cards */
.hero-card,
.mini-hero-card,
.post-card,
.sidebar-box,
.ad-box,
.post-page-card,
.page-card-institucional,
.post-actions-bar,
.post-engagement-box,
.comment-form-box,
.comment-login-box,
.comment-item,
.post-tags-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
                var(--cor-card);
    border: 1px solid var(--cor-borda);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(3px);
}

.hero-content,
.mini-hero-content,
.post-body,
.sidebar-box,
.ad-box,
.post-page-card,
.page-card-institucional,
.post-actions-bar,
.post-engagement-box,
.comment-form-box,
.comment-login-box,
.comment-item,
.post-tags-box {
    padding: 20px;
}

.post-card .post-body,
.mini-hero-card .mini-hero-content,
.sidebar-box,
.comment-item,
.comment-form-box,
.comment-login-box,
.post-actions-bar,
.post-engagement-box {
    position: relative;
}

.post-card .post-body::before,
.sidebar-box::before,
.post-page-card::before,
.comment-item::before,
.comment-form-box::before,
.comment-login-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Images */
.hero-thumb,
.mini-hero-thumb,
.post-thumb,
.post-page-thumb,
.hero-premium-main,
.hero-premium-small,
.admin-media-library-card {
    overflow: hidden;
}

.hero-thumb img,
.mini-hero-thumb img,
.post-thumb img,
.post-page-thumb img,
.hero-premium-image img,
.hero-premium-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.post-card:hover .post-thumb img,
.hero-card:hover .hero-thumb img,
.mini-hero-card:hover .mini-hero-thumb img,
.hero-premium-main:hover .hero-premium-image img,
.hero-premium-small:hover .hero-premium-small-image img {
    transform: scale(1.04);
}

.hero-thumb {
    height: 460px;
}

.mini-hero-thumb {
    height: 170px;
}

.post-thumb {
    height: 240px;
}

/* Typography blocks */
.hero-content h1 {
    font-size: 2.5rem;
    margin: 12px 0 14px;
    line-height: 1.1;
}

.hero-content p,
.post-body p,
.mini-hero-content p,
.page-card-institucional p,
.post-resumo,
.text-secondary-custom {
    color: var(--cor-texto-suave);
}

.mini-hero-content h2 {
    font-size: 1.1rem;
    margin: 10px 0 0;
    line-height: 1.35;
}

.post-body h4 {
    font-size: 1.15rem;
    margin: 10px 0 10px;
    line-height: 1.35;
}

.post-category {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.18);
    color: #e9ddff;
    font-size: 0.78rem;
    font-weight: 800;
}

.section-header {
    margin-bottom: 22px;
}

.section-header h3 {
    font-size: 1.7rem;
    margin: 0;
    letter-spacing: -0.02em;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: #d8c5ff;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.95;
}

.content-block + .content-block {
    margin-top: 2.75rem;
}

/* Meta */
.post-meta-line {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.post-date,
.post-reads,
.post-like-count,
.footer-links a,
.sidebar-post-item small,
.text-secondary-custom {
    color: var(--cor-texto-suave);
}

/* Hero premium home */
.home-hero-premium {
    position: relative;
}

.hero-premium-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: stretch;
}

.hero-premium-main,
.hero-premium-small {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--cor-borda);
    background: var(--cor-card);
    box-shadow: var(--shadow);
}

.hero-premium-main {
    min-height: 560px;
}

.hero-premium-image,
.hero-premium-small-image {
    position: absolute;
    inset: 0;
}

.hero-premium-main::after,
.hero-premium-small::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
}

.hero-premium-overlay,
.hero-premium-small-body {
    position: relative;
    z-index: 2;
}

.hero-premium-overlay {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.hero-premium-overlay h1 {
    font-size: 2.7rem;
    line-height: 1.08;
    margin: 14px 0 14px;
}

.hero-premium-overlay p {
    color: rgba(255,255,255,0.84);
    max-width: 760px;
    font-size: 1.02rem;
}

.hero-premium-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.74);
    margin-top: 16px;
}

.hero-premium-side {
    display: grid;
    gap: 24px;
}

.hero-premium-small {
    min-height: 268px;
}

.hero-premium-small-body {
    min-height: 268px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.hero-premium-small-body h2 {
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 12px 0 8px;
}

/* Home content layout */
.home-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.home-main-column {
    min-width: 0;
}

.home-sidebar-column,
.sidebar-area {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cor-borda);
}

.recent-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.post-card-premium {
    border-radius: 22px;
}

.sidebar-premium-box {
    border-radius: 22px;
}

/* Sidebar */
.sidebar-highlight-box {
    background:
        linear-gradient(180deg, rgba(139, 92, 246, 0.18), rgba(37, 99, 235, 0.08)),
        var(--cor-card);
}

.sidebar-box h5 {
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-post-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cor-borda);
}

.sidebar-post-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sidebar-post-item strong {
    line-height: 1.35;
}

/* Ads */
.ad-placeholder {
    min-height: 110px;
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cor-texto-suave);
    padding: 20px;
    background: rgba(255,255,255,0.02);
}

/* Post page base */
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.post-main {
    min-width: 0;
}

.post-sidebar {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-page-title {
    font-size: 2.45rem;
    line-height: 1.15;
    margin-bottom: 12px;
}

.post-page-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--cor-texto-suave);
    font-size: 0.95rem;
}

.post-page-thumb {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--cor-borda);
}

.post-page-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.post-resumo {
    background: var(--cor-card-2);
    border: 1px solid var(--cor-borda);
    border-radius: 16px;
    padding: 18px;
    font-size: 1rem;
    line-height: 1.75;
}

.post-content {
    color: #edf1f8;
    line-height: 1.85;
    font-size: 1.03rem;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-bottom: 1rem;
}

.post-content img,
.post-content iframe,
.post-content video {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.post-content blockquote,
.post-content-premium blockquote {
    border-left: 4px solid var(--cor-primaria);
    padding: 12px 16px;
    margin: 18px 0;
    border-radius: 0 14px 14px 0;
    background: rgba(255,255,255,0.03);
    color: var(--cor-texto-suave);
}

.post-content a,
.post-content-premium a {
    color: #cdb9ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content-premium {
    font-size: 1.08rem;
    line-height: 1.9;
}

.post-content-premium p {
    color: #edf1f8;
    margin-bottom: 1.15rem;
}

.post-content-premium h2,
.post-content-premium h3,
.post-content-premium h4 {
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.25;
}

/* Sketch post layout */
.post-sketch-card {
    padding: 24px;
}

.post-sketch-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.post-sketch-title-area {
    flex: 1;
    min-width: 0;
}

.post-sketch-side-meta-simple {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--cor-texto-suave);
    font-size: 0.95rem;
    min-width: 220px;
    text-align: right;
}

.post-sketch-side-meta-simple strong {
    color: var(--cor-texto);
}

.post-sketch-thumb img {
    max-height: 360px;
    object-fit: cover;
}

.post-sketch-content {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--cor-borda);
    border-radius: 20px;
    padding: 22px;
}

.post-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.post-action-left,
.post-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.post-bottom-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.post-like-block {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.post-like-form {
    margin: 0;
}

.heart-btn-link {
    text-decoration: none;
}

.heart-btn {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid var(--cor-borda);
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.heart-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.18);
}

.heart-btn.liked {
    background: rgba(239, 68, 68, 0.15);
    color: #ff6b81;
    border-color: rgba(255, 107, 129, 0.28);
}

.post-like-info {
    display: flex;
    flex-direction: column;
}

.post-like-info small {
    color: var(--cor-texto-suave);
}

.post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tag-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(124, 77, 255, 0.14);
    color: #e2d6ff;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Comments */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-header small {
    color: var(--cor-texto-suave);
}

.comment-item {
    padding: 18px;
}

.comment-item p,
.comment-form-box p,
.comment-login-box p {
    line-height: 1.7;
}

.comment-input-row {
    display: grid;
    grid-template-columns: 1fr 56px;
    gap: 12px;
    align-items: stretch;
}

.comment-send-btn {
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    min-height: 100%;
}

.comment-form-box .form-control,
.comment-form-box .form-control:focus {
    background: #11151d;
    border: 1px solid var(--cor-borda);
    color: #fff;
    box-shadow: none;
}

.comment-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--cor-borda);
    background: #0f131b;
}

.comment-user-meta {
    min-width: 0;
}

/* Listing pages */
.listing-hero-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
                var(--cor-card);
    border: 1px solid var(--cor-borda);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.listing-hero-card h1 {
    font-size: 2.2rem;
    line-height: 1.12;
    margin: 0;
}

.listing-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Institutional / auth pages */
.page-card-institucional {
    max-width: 100%;
}

.page-card-institucional h1 {
    margin-bottom: 12px;
}

.page-card-institucional .form-control,
.page-card-institucional .form-control:focus {
    background: #11151d;
    border: 1px solid var(--cor-borda);
    color: #fff;
    box-shadow: none;
}

.page-card-institucional .form-label {
    margin-bottom: 6px;
}

.page-card-institucional .btn-outline-light {
    border-radius: 12px;
}

.page-card-institucional form .btn {
    min-height: 46px;
}

/* Footer */
.site-footer {
    margin-top: 60px;
    background: #090b10;
    border-top: 1px solid var(--cor-borda);
    text-align: left;
}

.footer-premium-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--cor-borda);
}

.footer-brand-box h4 {
    margin-bottom: 12px;
}

.footer-brand-box p {
    color: var(--cor-texto-suave);
    max-width: 440px;
    line-height: 1.7;
}

.footer-links-box h6,
.site-footer h5,
.site-footer h6 {
    margin-bottom: 14px;
}

.footer-links li + li {
    margin-top: 8px;
}

.footer-links a {
    text-decoration: none;
    color: var(--cor-texto-suave);
}

.footer-links a:hover {
    color: #fff;
}

.site-footer p,
.site-footer small {
    color: var(--cor-texto-suave);
}

.site-footer hr {
    border-color: var(--cor-borda);
    opacity: 1;
}

.footer-bottom-premium {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

/* Alerts */
.alert {
    border-radius: 14px;
}

/* Perfil */
.perfil-layout {
    max-width: 900px;
    margin: 0 auto;
}

.perfil-card {
    padding: 28px;
}

.perfil-topo {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.perfil-avatar-box {
    flex-shrink: 0;
}

.perfil-avatar {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--cor-borda);
}

.perfil-topo-info h1 {
    margin-bottom: 8px;
}

.perfil-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: var(--cor-texto-suave);
    font-size: 0.95rem;
}

/* Rank */
.rank-card {
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--cor-borda);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
                var(--cor-card);
    box-shadow: var(--shadow);
}

.rank-card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.rank-label {
    display: block;
    color: var(--cor-texto-suave);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    margin-bottom: 6px;
}

.rank-title {
    margin: 0;
    font-size: 1.35rem;
}

.rank-xp-box {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--cor-borda);
}

.rank-progress {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.rank-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cor-primaria), var(--cor-secundaria));
}

.rank-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--cor-texto-suave);
    font-size: 0.92rem;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.rank-comum {
    background: rgba(148, 163, 184, 0.14);
    color: #d6dde8;
    border-color: rgba(148, 163, 184, 0.18);
}

.rank-incomum {
    background: rgba(59, 130, 246, 0.16);
    color: #cfe0ff;
    border-color: rgba(59, 130, 246, 0.18);
}

.rank-raro {
    background: rgba(124, 77, 255, 0.18);
    color: #e3d8ff;
    border-color: rgba(124, 77, 255, 0.22);
}

.rank-epico {
    background: rgba(236, 72, 153, 0.18);
    color: #ffd5ec;
    border-color: rgba(236, 72, 153, 0.22);
}

.rank-mistico {
    background: rgba(245, 158, 11, 0.18);
    color: #ffe4ad;
    border-color: rgba(245, 158, 11, 0.22);
}

.rank-lendario {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(236, 72, 153, 0.22));
    color: #fff0c8;
    border-color: rgba(255, 215, 100, 0.28);
    box-shadow: 0 0 0 1px rgba(255, 215, 100, 0.06), 0 0 18px rgba(245, 158, 11, 0.12);
}

/* Responsive */
@media (max-width: 1399px) {
    .header-search-form {
        width: 240px;
    }

    .navbar-brand {
        max-width: 190px;
    }

    .brand-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 1199px) {
    .hero-premium-grid {
        grid-template-columns: 1fr;
    }

    .hero-premium-main {
        min-height: 500px;
    }

    .hero-premium-overlay {
        min-height: 500px;
    }

    .hero-premium-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-thumb {
        height: 360px;
    }

    .header-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 12px;
    }

    .header-search-form {
        width: 100%;
    }

    .header-user-actions {
        flex-wrap: wrap;
    }

    .navbar-brand {
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .home-content-grid,
    .post-layout {
        grid-template-columns: 1fr;
    }

    .home-sidebar-column,
    .sidebar-area,
    .post-sidebar {
        position: static;
        top: auto;
    }

    .mini-hero-thumb,
    .post-thumb {
        height: 200px;
    }

    .hero-thumb {
        height: 280px;
    }

    .listing-grid-premium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-premium-top {
        grid-template-columns: 1fr;
    }

    .post-sketch-side-meta-simple {
        width: 100%;
        min-width: 0;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .site-header {
        backdrop-filter: blur(10px);
    }

    .navbar {
        min-height: auto;
    }

    .site-logo,
    .brand-badge {
        width: 50px;
        height: 50px;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    .nav-link {
        padding: 10px 12px !important;
    }

    .hero-premium-overlay {
        padding: 18px;
        min-height: 360px;
    }

    .hero-premium-main {
        min-height: 360px;
    }

    .hero-premium-overlay h1 {
        font-size: 1.9rem;
    }

    .hero-premium-side {
        grid-template-columns: 1fr;
    }

    .hero-premium-small,
    .hero-premium-small-body {
        min-height: 220px;
    }

    .recent-grid-premium,
    .listing-grid-premium {
        grid-template-columns: 1fr;
    }

    .hero-content,
    .mini-hero-content,
    .post-body,
    .sidebar-box,
    .ad-box,
    .post-page-card,
    .page-card-institucional,
    .post-actions-bar,
    .post-engagement-box,
    .comment-form-box,
    .comment-login-box,
    .comment-item,
    .post-tags-box {
        padding: 16px;
    }

    .hero-content h1 {
        font-size: 1.65rem;
    }

    .post-page-title {
        font-size: 1.8rem;
    }

    .section-header h3 {
        font-size: 1.35rem;
    }

    .hero-thumb {
        height: 230px;
    }

    .mini-hero-thumb,
    .post-thumb {
        height: 190px;
    }

    .post-actions-bar,
    .post-meta-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-page-meta {
        gap: 8px;
    }

    .comment-item {
        padding: 16px;
    }

    .comment-input-row {
        grid-template-columns: 1fr;
    }

    .comment-send-btn {
        min-height: 48px;
    }

    .listing-hero-card {
        padding: 18px;
    }

    .listing-hero-card h1 {
        font-size: 1.7rem;
    }

    .post-premium-card,
    .sidebar-premium-box,
    .post-card-premium {
        border: 1px solid rgba(255,255,255,0.08);
    }

    .post-sketch-card {
        padding: 16px;
    }

    .post-sketch-content {
        padding: 16px;
    }

    .post-content-premium {
        font-size: 1rem;
        line-height: 1.8;
    }

    .perfil-card {
        padding: 18px;
    }

    .perfil-topo {
        align-items: flex-start;
    }

    .perfil-avatar {
        width: 72px;
        height: 72px;
    }

    .perfil-meta {
        gap: 8px;
        flex-direction: column;
    }
}