:root{--navy:#061a35;--navy2:#0b2d5c;--blue:#2563eb;--gold:#f3b05e;--text:#10233f;--muted:#64748b;--line:#dbe7f5;--bg:#f4f8ff;--white:#fff;--danger:#ef4444;--shadow:0 20px 60px rgba(15,42,83,.14)}*{box-sizing:border-box}html{scroll-behavior:smooth;height:100%}body{min-height:100%;margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:radial-gradient(circle at 10% 0,rgba(37,99,235,.12),transparent 34%),linear-gradient(180deg,#f7fbff,#eef5ff 45%,#fff);color:var(--text)}.page-shell{min-height:100vh;display:flex;flex-direction:column}main{flex:1}a{color:inherit;text-decoration:none}.top{position:sticky;top:0;z-index:20;background:rgba(5,22,48,.9);backdrop-filter:blur(20px);border-bottom:1px solid rgba(255,255,255,.12)}.wrap{max-width:1180px;margin:auto;padding:0 22px}.top-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:14px;min-width:0}.brand img:first-child{height:48px;max-width:170px;object-fit:contain;filter:drop-shadow(0 0 18px rgba(96,165,250,.35));background:rgba(255,255,255,.98);border-radius:16px;padding:8px}.brand img:last-child{height:40px;max-width:170px;object-fit:contain}.brand-text{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 18px;border-radius:16px;background:#fff;color:#061a35;font-weight:1000;font-size:22px;letter-spacing:-.5px;box-shadow:0 0 18px rgba(96,165,250,.25)}.brand-text.jr{height:40px;background:transparent;color:#fff;font-size:17px;padding:0;font-weight:900}.brand .bar{width:1px;height:38px;background:rgba(243,176,94,.6)}.nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.nav a{color:#dbeafe;font-weight:800;font-size:14px;padding:11px 14px;border-radius:16px}.nav a:hover,.nav .active{background:rgba(255,255,255,.11);color:#fff}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:16px;padding:12px 18px;font-weight:900;cursor:pointer;background:linear-gradient(135deg,var(--blue),#0d4dbc);color:#fff;box-shadow:0 14px 35px rgba(37,99,235,.26);transition:.25s}.btn:hover{transform:translateY(-2px);filter:brightness(1.05)}.btn:disabled{opacity:.7;cursor:wait}.btn.ghost{background:#fff;color:#0d3269;border:1px solid #d8e6fb;box-shadow:0 10px 30px rgba(15,42,83,.08)}.btn.gold{background:linear-gradient(135deg,#f3b05e,#f59e0b);color:#171717}.btn.small{padding:10px 14px;font-size:13px}.hero{padding:54px 0 30px}.hero-card{position:relative;overflow:hidden;border-radius:32px;padding:42px;background:linear-gradient(135deg,rgba(7,28,61,.98),rgba(11,54,117,.92));color:#fff;box-shadow:var(--shadow)}.hero-card:before{content:"";position:absolute;inset:-50%;background:radial-gradient(circle,rgba(96,165,250,.22),transparent 30%);transform:translate(35%,15%)}.hero-card>*{position:relative}.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center}.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(96,165,250,.16);border:1px solid rgba(147,197,253,.25);font-weight:900;color:#bfdbfe}.hero h1{font-size:clamp(34px,5vw,62px);line-height:1.02;margin:18px 0}.hero p{font-size:18px;line-height:1.65;color:#dbeafe;max-width:760px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}.stat{padding:18px;border-radius:20px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}.stat b{display:block;font-size:28px}.stat span{color:#dbeafe;font-weight:800}.line-card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);border-radius:28px;padding:20px;text-align:center}.line-card img{width:min(260px,100%);filter:drop-shadow(0 18px 32px rgba(0,0,0,.28))}.line-card p{font-size:15px}.section{padding:36px 0}.panel{background:rgba(255,255,255,.9);border:1px solid rgba(203,218,238,.86);box-shadow:var(--shadow);border-radius:28px;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:24px 26px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#f3f8ff)}.panel-head h2{margin:0;font-size:28px}.filters{display:flex;gap:10px;flex-wrap:wrap;padding:18px 24px 0}.chip{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:10px 14px;background:#eef5ff;color:#143a75;font-weight:900;border:1px solid #d8e8ff}.chip.active{background:linear-gradient(135deg,var(--blue),#1250bb);color:#fff}.chip.soft{background:#f7fbff;color:#174174}.check{width:max-content}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:24px}.post-card{position:relative;display:flex;flex-direction:column;gap:14px;padding:22px;border-radius:24px;background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid #dce9fb;min-height:280px;transition:.25s}.post-card:hover{transform:translateY(-6px);box-shadow:0 20px 45px rgba(37,99,235,.16)}.post-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.post-icon{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#e0efff,#fff);color:#155dd7;font-size:22px}.post-card h3{margin:0;font-size:21px}.post-card p{color:var(--muted);line-height:1.55;margin:0}.meta{display:flex;gap:8px;flex-wrap:wrap;color:#64748b;font-weight:700;font-size:13px}.post-card .read{margin-top:auto}.author-line,.author-card,.user-pill{display:flex;align-items:center;gap:10px}.author-line{font-weight:800;color:#334155;font-size:13px}.user-pill{background:rgba(255,255,255,.09)}.avatar{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#eaf3ff;display:grid;place-items:center;color:#2563eb;font-weight:900;flex:0 0 auto;border:2px solid #fff;box-shadow:0 8px 20px rgba(15,42,83,.12)}.avatar.mini{width:30px;height:30px;font-size:12px}.avatar.tiny{width:28px;height:28px;font-size:12px}.avatar.big{width:118px;height:118px;font-size:42px}.form{padding:26px;display:grid;gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.form-grid.two{grid-template-columns:1fr 90px}.field label{display:block;font-weight:900;margin-bottom:8px}.field input,.field textarea,.field select,.searchbar input{width:100%;border:1px solid #d8e6fb;border-radius:16px;padding:14px 16px;font:inherit;outline:none;background:#fff}.field textarea{min-height:180px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus,.searchbar input:focus{border-color:#60a5fa;box-shadow:0 0 0 4px rgba(96,165,250,.16)}.field .disabled,input:disabled{background:#eef2f7;color:#64748b;cursor:not-allowed}.searchbar{display:flex;gap:8px;min-width:min(420px,100%)}.auth{max-width:560px;margin:42px auto}.alert{padding:14px 16px;border-radius:16px;background:#fff7ed;border:1px solid #fed7aa;color:#8a4b0f;font-weight:800}.alert.ok{background:#ecfdf5;border-color:#bbf7d0;color:#065f46}.post-full{padding:34px}.post-full h1{font-size:clamp(30px,5vw,54px);line-height:1.05;margin:16px 0}.content{font-size:18px;line-height:1.75;color:#243b5a;white-space:pre-wrap;margin-top:24px}.comments{padding:26px;border-top:1px solid var(--line);background:#f8fbff}.comment{display:flex;gap:14px;padding:16px;background:#fff;border:1px solid #dfeafa;border-radius:18px;margin-bottom:12px}.comment.highlight{animation:pop .5s ease}.comment b{display:block}.comment small{display:block;color:#64748b;margin-top:2px}.comment p{white-space:pre-wrap;line-height:1.6;margin:8px 0 0}.empty{padding:38px;text-align:center;color:#64748b}.profile-grid{display:grid;grid-template-columns:240px 1fr;gap:24px}.profile-photo-card{border:1px solid #dbe7f5;border-radius:24px;background:#f8fbff;padding:24px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px}.upload-box{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:2px dashed #b7cbea;border-radius:18px;padding:15px;cursor:pointer;font-weight:900;color:#174174;background:#fff}.upload-box input{display:none}.toast{position:fixed;right:20px;bottom:20px;z-index:99;max-width:360px;padding:15px 18px;border-radius:18px;box-shadow:0 18px 45px rgba(15,42,83,.18);font-weight:900;opacity:0;transform:translateY(20px);pointer-events:none;transition:.25s}.toast.show{opacity:1;transform:none}.toast.ok{background:#ecfdf5;color:#065f46;border:1px solid #bbf7d0}.toast.bad{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.footer{margin-top:auto;padding:26px;background:#061a35;color:#dbeafe;text-align:center}.reveal{opacity:1;transform:none;transition:.75s ease}.reveal.active{opacity:1;transform:none}@keyframes pop{from{transform:scale(.98);background:#eff6ff}to{transform:none;background:#fff}}@media(max-width:920px){.brand img:last-child{display:none}.hero-grid,.grid,.profile-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.top-inner{height:auto;padding:14px 0;align-items:flex-start;flex-direction:column}.nav{justify-content:flex-start}.panel-head{flex-direction:column;align-items:flex-start}.brand-text.jr{display:none}.searchbar{min-width:100%}}@media(max-width:560px){.brand img:first-child{height:42px;max-width:145px}.hero-card{padding:28px 20px;border-radius:24px}.wrap{padding:0 14px}.grid{padding:14px}.post-full,.form{padding:18px}.brand-text{height:42px;font-size:19px;padding:0 14px}.btn{width:100%}.nav{width:100%}.nav a:not(.btn){font-size:13px;padding:8px 10px}.panel-head h2{font-size:24px}.form-grid,.form-grid.two{grid-template-columns:1fr}.actions{display:grid}.user-pill{width:100%}}

/* Ajustes v2: IBGE, foto e tutorial rico */
.profile-photo-card #photoPreviewWrap{display:grid;place-items:center}.photo-upload{min-height:110px;flex-direction:column;text-align:center;transition:.2s}.photo-upload small{display:block;color:#64748b;font-size:12px}.photo-upload.drag{background:#eff6ff;border-color:#2563eb;transform:scale(1.01)}
.field select{width:100%;border:1px solid #d8e6fb;border-radius:16px;padding:14px 16px;font:inherit;outline:none;background:#fff}.field select:focus{border-color:#60a5fa;box-shadow:0 0 0 4px rgba(96,165,250,.16)}
.tutorial-builder-panel .form{gap:22px}.builder-section{border:1px solid #dbe7f5;background:linear-gradient(180deg,#fff,#f8fbff);border-radius:22px;padding:18px}.builder-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.builder-title h3{margin:0;color:#10233f}.repeat-list{display:grid;gap:12px}.repeat-item{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;background:#fff;border:1px solid #dbe7f5;border-radius:18px;padding:12px}.repeat-item textarea{min-height:82px}.repeat-item input,.repeat-item textarea{border:0;background:#f8fbff;border-radius:14px;padding:13px 14px;width:100%;font:inherit;outline:none}.repeat-item input:focus,.repeat-item textarea:focus{box-shadow:0 0 0 4px rgba(96,165,250,.14)}.step-num,.icon-repeat{width:36px;height:36px;border-radius:13px;background:#eef5ff;color:#174174;display:grid;place-items:center;font-weight:900}.remove-repeat{width:36px;height:36px;border:0;border-radius:13px;background:#fff1f2;color:#be123c;cursor:pointer;font-weight:900}
.tutorial-view{font-size:17px;line-height:1.7;color:#243b5a;margin-top:24px}.tutorial-intro{padding:20px;border:1px solid #dbe7f5;background:#f8fbff;border-radius:22px;margin-bottom:18px}.steps-view{display:grid;gap:14px;margin:18px 0}.step-view{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;background:#fff;border:1px solid #dbe7f5;border-radius:20px;padding:16px}.step-view span{width:42px;height:42px;border-radius:16px;background:linear-gradient(135deg,#2563eb,#0d4dbc);color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:0 10px 20px rgba(37,99,235,.18)}.step-view p{margin:0;white-space:pre-wrap}.media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0 24px}.video-box{position:relative;padding-top:56.25%;border-radius:20px;overflow:hidden;background:#061a35;box-shadow:0 16px 35px rgba(15,42,83,.14)}.video-box iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0 24px}.image-grid a{display:block;border-radius:18px;overflow:hidden;border:1px solid #dbe7f5;background:#fff}.image-grid img{width:100%;height:190px;object-fit:cover;display:block;transition:.25s}.image-grid a:hover img{transform:scale(1.04)}.links-list{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
@media(max-width:780px){.media-grid,.image-grid{grid-template-columns:1fr}.builder-title{align-items:flex-start;flex-direction:column}.repeat-item{grid-template-columns:1fr}.step-num,.icon-repeat{display:none}}


/* Correção: conteúdo das abas sempre visível mesmo se o JS/cache falhar */
.reveal{opacity:1!important;transform:none!important}.reveal:not(.active){opacity:1!important;transform:none!important}
main,.section,.panel,.hero-card,.grid,.post-card{visibility:visible!important}

/* Correções finais AJAX/foto/cidade */
.photo-upload.drag,.upload-box:hover{border-color:#2563eb;background:#eff6ff}
#fotoInput{display:none!important}
#photoPreviewWrap{display:grid;place-items:center}
#cidadeSelect:disabled{background:#eef2f7;color:#64748b}

/* Navbar responsiva e melhorias mobile */
.nav-toggle{display:none;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.1);color:#fff;border-radius:14px;width:46px;height:44px;align-items:center;justify-content:center;font-size:20px;cursor:pointer}
.nav-toggle:hover{background:rgba(255,255,255,.16)}
@media(max-width:920px){
  .top-inner{min-height:70px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:12px 22px}
  .brand{min-width:0}.brand img:first-child{height:44px;max-width:150px}.brand img:last-child{display:block;height:34px;max-width:130px}.brand .bar{height:30px}
  .nav-toggle{display:inline-flex;justify-self:end}
  .nav{grid-column:1/-1;display:none;width:100%;padding:10px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:22px;box-shadow:0 18px 45px rgba(0,0,0,.18)}
  .nav.open{display:grid;grid-template-columns:1fr;gap:8px;animation:menuDrop .18s ease-out}
  .nav a,.nav .btn{width:100%;justify-content:flex-start;border-radius:14px;padding:13px 14px}
  .nav .user-pill{background:rgba(255,255,255,.12)}
  .hero{padding-top:24px}.hero-card{border-radius:26px}.line-card{max-width:360px;margin:0 auto}
  .grid{grid-template-columns:1fr}.profile-grid{grid-template-columns:1fr}.profile-photo-card{max-width:360px;width:100%;margin:0 auto}.form-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .top-inner{padding:10px 14px}.brand{gap:8px}.brand img:first-child{height:40px;max-width:132px;padding:6px;border-radius:12px}.brand img:last-child{height:30px;max-width:105px}.brand .bar{height:25px}
  .nav-toggle{width:42px;height:40px;border-radius:12px}.panel{border-radius:22px}.panel-head{padding:18px}.profile-photo-card{padding:18px}.upload-box{min-height:104px}.avatar.big{width:104px;height:104px}
  .toast{left:14px;right:14px;bottom:14px;max-width:none}.comment{align-items:flex-start}.author-card{align-items:flex-start}.media-grid,.image-grid{grid-template-columns:1fr}.image-grid img{height:210px}
}
@keyframes menuDrop{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

/* Ajuste visual: alinhamento, cards e moderadores */
.wrap{max-width:1220px}
.hero .wrap{max-width:1160px}.section.wrap{max-width:1240px}.post-page-wrap{max-width:1000px}
.hero-card{padding:46px;border-radius:34px}.panel{border-radius:30px}.panel-head{padding:26px 30px}.grid{grid-template-columns:repeat(auto-fit,minmax(290px,1fr));align-items:stretch;padding:26px;gap:20px}.post-card{border-radius:26px;padding:24px;min-height:300px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);box-shadow:0 10px 30px rgba(15,42,83,.07)}.post-card h3{line-height:1.22}.post-card p{font-size:15px}.post-top{margin-bottom:2px}.author-line{padding-top:4px;border-top:1px solid #edf4ff}.meta{padding-top:2px}.post-card .read{align-self:flex-start}
.post-panel{overflow:visible}.post-full{padding:42px 48px}.post-label-row{display:flex;gap:10px;flex-wrap:wrap}.author-card-featured{padding:16px;border:1px solid #dbe7f5;border-radius:22px;background:linear-gradient(180deg,#fff,#f8fbff);margin:18px 0 24px}.content,.tutorial-view{max-width:860px}.comments{border-radius:0 0 30px 30px;padding:30px 48px}.comment{border-radius:20px;box-shadow:0 8px 24px rgba(15,42,83,.05)}
.author-name{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.mod-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:linear-gradient(135deg,#10233f,#0b2d5c);color:#f3b05e;font-size:11px;font-weight:1000;line-height:1;border:1px solid rgba(243,176,94,.35);box-shadow:0 8px 20px rgba(15,42,83,.12)}.mod-badge i{font-size:11px}.user-pill .mod-badge{display:none}
.tutorial-feedback{margin-top:30px;padding:22px;border-radius:24px;background:linear-gradient(135deg,#f8fbff,#fff7ed);border:1px solid #dbe7f5;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.tutorial-feedback h3{margin:0 0 6px;font-size:22px;color:#10233f}.tutorial-feedback p{margin:0;color:#64748b;font-weight:700}.reaction-actions{display:flex;gap:10px;flex-wrap:wrap}.reaction-btn{border:1px solid #d8e6fb;background:#fff;color:#143a75;border-radius:16px;padding:12px 15px;font-weight:1000;cursor:pointer;display:inline-flex;align-items:center;gap:8px;box-shadow:0 10px 25px rgba(15,42,83,.08);transition:.2s}.reaction-btn:hover{transform:translateY(-2px);border-color:#93c5fd}.reaction-btn.active{background:linear-gradient(135deg,#2563eb,#0d4dbc);color:#fff;border-color:#2563eb}.reaction-btn:disabled{opacity:.65;cursor:not-allowed;transform:none}.reaction-btn span{min-width:24px;height:24px;border-radius:999px;background:#eef5ff;color:#143a75;display:grid;place-items:center;font-size:12px}.reaction-btn.active span{background:rgba(255,255,255,.2);color:#fff}.feedback-login{width:100%;color:#8a4b0f;font-weight:800}
@media(max-width:920px){.wrap{max-width:100%;padding-left:18px;padding-right:18px}.hero-card{padding:30px}.post-full{padding:28px}.comments{padding:24px}.tutorial-feedback{align-items:flex-start}.reaction-actions{width:100%}.reaction-btn{flex:1;justify-content:center}.post-card .read{width:100%}}
@media(max-width:560px){.hero{padding:18px 0}.hero-card{padding:22px 18px;border-radius:24px}.hero h1{font-size:34px}.hero p{font-size:15px}.stats{gap:10px}.stat{padding:14px}.panel-head{padding:18px}.grid{padding:14px;gap:14px}.post-card{padding:18px;border-radius:20px;min-height:auto}.post-full{padding:20px}.post-full h1{font-size:30px}.author-card-featured{align-items:flex-start}.comments{padding:18px}.comment{padding:14px}.tutorial-feedback{padding:16px}.reaction-actions{display:grid;grid-template-columns:1fr;width:100%}.mod-badge span{display:none}.mod-badge{padding:5px 7px}.line-card img{max-height:230px;object-fit:contain}}

/* Ajustes finais: tutoriais, moderação e visual dos cards */
.grid{align-items:stretch;gap:22px}.post-card{position:relative;overflow:hidden;border:1px solid #d7e7ff;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 18px 45px rgba(15,44,82,.08);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.post-card:hover{transform:translateY(-3px);box-shadow:0 24px 60px rgba(15,44,82,.14);border-color:#bcd6ff}.post-card h3{font-size:1.25rem;line-height:1.25;margin:18px 0 10px}.post-card h3 a{text-decoration:none;color:#061b3a}.post-card h3 a:hover{color:#1d5ee6}.post-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.card-tags{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.tutorial-card{background:radial-gradient(circle at top right,rgba(31,102,236,.10),transparent 35%),linear-gradient(180deg,#fff,#f7fbff)}.tutorial-card:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,#f3b05e,#1f66ec)}.tutorial-excerpt{color:#435b7c;font-size:.98rem;margin-bottom:14px}.tutorial-mini-stats{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 14px}.tutorial-mini-stats span,.reaction-summary-card span{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:999px;background:#eef6ff;color:#103b73;font-weight:800;font-size:.85rem}.reaction-summary-card{display:flex;gap:8px;margin:8px 0 14px}.reaction-summary-card span:first-child{background:#ecfdf5;color:#047857}.reaction-summary-card span:last-child{background:#fff1f2;color:#be123c}.card-actions-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px}.chip.danger,.btn.danger{background:#fff1f2!important;color:#be123c!important;border-color:#fecdd3!important}.btn.danger:hover{background:#ffe4e6!important}.post-card.is-deleted,.comment.is-deleted{opacity:.72;background:repeating-linear-gradient(-45deg,#fff,#fff 9px,#fff7f7 9px,#fff7f7 18px);border-color:#fecdd3}.post-card.is-deleted h3 a,.comment.is-deleted p{text-decoration:line-through;color:#6b7280}.moderator-actions{margin:24px 0;padding:16px;border:1px dashed #fecdd3;background:#fff7f7;border-radius:18px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.moderator-actions small{color:#7f1d1d;font-weight:700}.link-danger{border:0;background:transparent;color:#be123c;font-weight:900;cursor:pointer;padding:6px 0}.link-danger:hover{text-decoration:underline}.tutorial-view{background:#fff;border:1px solid #dbeafe;border-radius:24px;padding:22px;margin-top:20px}.tutorial-intro{font-size:1.08rem;line-height:1.75;color:#263b5a;background:#f8fbff;border:1px solid #e3efff;border-radius:18px;padding:18px;margin-bottom:18px}.steps-view{display:grid;gap:14px;margin:18px 0}.step-view{display:grid;grid-template-columns:44px 1fr;gap:14px;align-items:flex-start;background:#f9fbff;border:1px solid #e5efff;border-radius:18px;padding:16px}.step-view span{width:44px;height:44px;border-radius:14px;background:#1f66ec;color:#fff;display:grid;place-items:center;font-weight:1000;box-shadow:0 10px 25px rgba(31,102,236,.2)}.step-view p{margin:0;line-height:1.65;color:#203657}.tutorial-view h3{margin:24px 0 12px;color:#08244c}.media-grid,.image-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.video-box{position:relative;padding-top:56.25%;border-radius:18px;overflow:hidden;background:#0f172a;border:1px solid #dbeafe}.video-box iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.image-grid img{width:100%;height:190px;object-fit:cover;border-radius:18px;border:1px solid #dbeafe;box-shadow:0 12px 30px rgba(15,44,82,.10)}.links-list{display:flex;gap:10px;flex-wrap:wrap}.tutorial-feedback{margin-top:24px;border:1px solid #dbeafe;background:linear-gradient(135deg,#f8fbff,#fff);border-radius:22px;padding:18px;display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}.tutorial-feedback h3{margin:0 0 5px}.tutorial-feedback p{margin:0;color:#607391}.reaction-actions{display:flex;gap:10px;flex-wrap:wrap}.reaction-btn{border:1px solid #d5e6ff;background:#fff;border-radius:16px;padding:12px 16px;font-weight:1000;color:#0b2a55;cursor:pointer}.reaction-btn:hover,.reaction-btn.active{background:#1f66ec;color:#fff;border-color:#1f66ec}.reaction-btn[disabled]{opacity:.55;cursor:not-allowed}.feedback-login{display:block;width:100%;color:#64748b;font-weight:700}.post-panel{max-width:1040px;margin-inline:auto}.post-full h1{font-size:clamp(2rem,5vw,3.4rem);line-height:1.05}.comments .comment{border:1px solid #e3efff;border-radius:20px;padding:16px;background:#fff;box-shadow:0 10px 24px rgba(15,44,82,.06)}
@media (max-width:760px){.panel-head{align-items:stretch}.searchbar{width:100%}.searchbar input{width:100%}.post-card{padding:18px}.post-top{align-items:flex-start}.tutorial-feedback{align-items:stretch}.reaction-actions,.reaction-btn{width:100%}.reaction-btn{justify-content:center}.step-view{grid-template-columns:1fr}.step-view span{width:36px;height:36px}.card-actions-row .btn{width:100%;justify-content:center}.moderator-actions .btn{width:100%;justify-content:center}}

/* Caixa de novas dúvidas para moderadores */
.notify-link{position:relative;display:inline-flex;align-items:center;gap:8px}
.notify-badge{min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#ffb433;color:#0f2544;font-size:12px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(255,180,51,.35)}
.moderator-box-wrap{margin-top:-22px;margin-bottom:28px}
.moderator-box{background:linear-gradient(135deg,#10284b,#1e4d86);color:#fff;border-radius:28px;padding:24px;border:1px solid rgba(255,255,255,.16);box-shadow:0 24px 55px rgba(16,40,75,.22);overflow:hidden;position:relative}
.moderator-box:before{content:"";position:absolute;right:-80px;top:-80px;width:220px;height:220px;border-radius:50%;background:rgba(255,180,51,.16)}
.moderator-box-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;position:relative;z-index:1}
.mod-title{display:flex;align-items:center;gap:15px}
.mod-title h2{margin:0;font-size:25px;color:#fff}
.mod-title p{margin:5px 0 0;color:#dbeafe;font-weight:600}
.mod-notify-icon{width:58px;height:58px;border-radius:20px;background:rgba(255,255,255,.13);display:flex;align-items:center;justify-content:center;position:relative;font-size:24px;color:#ffcf70;border:1px solid rgba(255,255,255,.18)}
.mod-notify-icon b{position:absolute;right:-7px;top:-7px;background:#ffb433;color:#10284b;border-radius:999px;min-width:25px;height:25px;display:flex;align-items:center;justify-content:center;font-size:12px;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.mod-question-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;position:relative;z-index:1}
.mod-question-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;text-decoration:none;color:#fff;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.17);border-radius:20px;padding:15px;transition:.2s ease;backdrop-filter:blur(8px)}
.mod-question-card:hover{transform:translateY(-2px);background:rgba(255,255,255,.16)}
.mod-question-main strong{display:block;font-size:16px;color:#fff;margin-bottom:4px}
.mod-question-main span{display:block;color:#dbeafe;font-size:13px;line-height:1.35;margin-bottom:6px}
.mod-question-main small{color:#b7d4ff;font-weight:700;font-size:12px}
.mod-question-card em{font-style:normal;font-weight:900;color:#ffcf70;white-space:nowrap;font-size:13px}
.mod-question-avatar .avatar,.mod-question-avatar .avatar.tiny{width:40px;height:40px}
.moderator-empty{position:relative;z-index:1;display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);border-radius:20px;padding:18px;color:#fff}
.moderator-empty i{font-size:28px;color:#7ee2a8}
.moderator-empty b{display:block;font-size:18px;margin-bottom:3px}.moderator-empty span{color:#dbeafe;font-weight:600}
@media(max-width:800px){.moderator-box-wrap{margin-top:14px}.moderator-box{border-radius:22px;padding:18px}.moderator-box-head{align-items:flex-start;flex-direction:column}.mod-question-list{grid-template-columns:1fr}.mod-question-card{grid-template-columns:auto 1fr}.mod-question-card em{grid-column:2;color:#ffcf70}.mod-title h2{font-size:21px}.mod-title{align-items:flex-start}.mod-notify-icon{width:48px;height:48px;border-radius:16px}}

/* Botão suspenso e barra lateral de dúvidas dos moderadores */
.moderator-box-wrap{display:none!important}
.mod-float-btn{position:fixed;right:22px;bottom:22px;z-index:9990;border:0;border-radius:999px;background:linear-gradient(135deg,#10284b,#1f66ec);color:#fff;display:flex;align-items:center;gap:10px;padding:14px 17px;box-shadow:0 20px 45px rgba(14,41,82,.30);font-weight:1000;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}.mod-float-btn:hover{transform:translateY(-2px);box-shadow:0 25px 60px rgba(14,41,82,.40)}.mod-float-btn i{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.16);font-size:17px}.mod-float-btn b{min-width:26px;height:26px;border-radius:999px;background:#f3b05e;color:#081d3c;display:grid;place-items:center;padding:0 7px;font-size:13px;box-shadow:0 8px 20px rgba(243,176,94,.28)}.mod-float-btn b.is-zero{background:rgba(255,255,255,.22);color:#fff}.mod-drawer-overlay{position:fixed;inset:0;background:rgba(3,13,32,.40);backdrop-filter:blur(3px);z-index:9991;opacity:0;transition:opacity .18s ease}.mod-drawer-overlay.open{opacity:1}.mod-drawer{position:fixed;top:0;right:0;width:min(440px,94vw);height:100dvh;z-index:9992;background:#f7fbff;border-left:1px solid #d7e7ff;box-shadow:-30px 0 80px rgba(9,30,66,.22);transform:translateX(104%);transition:transform .22s ease;display:flex;flex-direction:column}.mod-drawer.open{transform:translateX(0)}.mod-drawer-head{padding:24px;background:linear-gradient(135deg,#10284b,#1e4d86);color:#fff;display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.mod-kicker{display:inline-flex;align-items:center;gap:7px;background:rgba(243,176,94,.16);border:1px solid rgba(243,176,94,.28);color:#ffcf70;border-radius:999px;padding:7px 11px;font-weight:1000;font-size:12px;margin-bottom:12px}.mod-drawer-head h2{margin:0 0 6px;font-size:28px;line-height:1}.mod-drawer-head p{margin:0;color:#dbeafe;line-height:1.45;font-weight:650}.mod-drawer-close{width:42px;height:42px;border:0;border-radius:14px;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;font-size:18px}.mod-drawer-close:hover{background:rgba(255,255,255,.22)}.mod-drawer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #dbeafe;background:#fff}.mod-drawer-toolbar span{font-weight:1000;color:#0b2a55}.mod-drawer-list{padding:16px;overflow:auto;display:grid;gap:12px}.mod-drawer-item{display:grid;grid-template-columns:42px 1fr 18px;gap:12px;align-items:center;text-decoration:none;background:#fff;border:1px solid #dbeafe;border-radius:20px;padding:14px;box-shadow:0 12px 28px rgba(15,44,82,.07);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.mod-drawer-item:hover{transform:translateY(-2px);border-color:#9bc2ff;box-shadow:0 16px 38px rgba(15,44,82,.13)}.mod-item-body strong{display:block;color:#061b3a;font-size:16px;margin-bottom:5px;line-height:1.25}.mod-item-body span{display:block;color:#4a6385;line-height:1.45;font-weight:650;margin-bottom:9px}.mod-item-body small,.mod-item-body em{display:block;color:#64748b;font-size:12px;font-style:normal;font-weight:750;margin-top:3px}.mod-item-arrow{color:#1f66ec}.mod-drawer-empty{height:55vh;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:10px;color:#5b6f8e;background:#fff;border:1px dashed #cfe1fb;border-radius:24px;padding:28px}.mod-drawer-empty i{font-size:42px;color:#16a34a}.mod-drawer-empty b{font-size:20px;color:#0b2a55}.mod-drawer-empty span{line-height:1.45;font-weight:650;max-width:300px}@media(max-width:640px){.mod-float-btn{right:14px;bottom:14px;padding:12px 13px}.mod-float-btn span{display:none}.mod-float-btn i{width:38px;height:38px}.mod-drawer{width:100vw}.mod-drawer-head{padding:20px}.mod-drawer-head h2{font-size:24px}.mod-drawer-item{grid-template-columns:38px 1fr 14px;padding:12px;border-radius:17px}}

/* Ajustes Centro de Aprendizagem / Tutorial editável */
.learning-view{display:grid;grid-template-columns:260px 1fr;gap:28px;align-items:start}.learning-breadcrumb{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;font-size:14px;color:var(--muted,#64748b);margin-bottom:4px}.learning-breadcrumb a{color:inherit;text-decoration:none}.learning-index{position:sticky;top:90px;border:1px solid rgba(15,23,42,.10);border-radius:18px;padding:18px;background:rgba(255,255,255,.82);box-shadow:0 10px 25px rgba(15,23,42,.06)}.learning-index b{display:block;margin-bottom:10px}.learning-index ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}.learning-index a{text-decoration:none;color:#24456b;font-weight:600;font-size:14px}.learning-content{min-width:0}.learning-section{padding:8px 0 26px;margin-bottom:14px;border-bottom:1px solid rgba(15,23,42,.10)}.learning-section h2{font-size:25px;margin:0 0 12px;color:#1d3557}.learning-section p,.tutorial-intro{font-size:16px;line-height:1.75;color:#334155}.learning-image{display:block;border-radius:16px;overflow:hidden;border:1px solid rgba(15,23,42,.12);background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.08)}.learning-image img{display:block;max-width:100%;height:auto;margin:auto}.caption{font-size:13px!important;color:#64748b!important;margin-top:8px}.tutorial-items-list{display:grid;gap:12px}.tutorial-item{display:grid;grid-template-columns:42px 1fr 104px;gap:12px;align-items:start;border:1px solid rgba(15,23,42,.12);border-radius:16px;padding:12px;background:#fff}.tutorial-item.dragging{opacity:.55}.item-handle{display:grid;place-items:center;height:42px;border-radius:12px;background:#f8fafc;color:#64748b;cursor:grab}.item-body label{font-weight:800;margin-bottom:6px;display:block}.item-body textarea{min-height:96px}.item-body input,.item-body textarea{width:100%}.item-actions{display:flex;gap:6px;justify-content:flex-end}.item-actions button{border:0;border-radius:10px;background:#eef2f7;padding:9px 10px;cursor:pointer}.item-thumb{max-width:180px;border-radius:12px;border:1px solid rgba(15,23,42,.12);display:block;margin:6px 0}.builder-buttons{display:flex;gap:8px;flex-wrap:wrap}.muted{color:#64748b;font-size:13px}.drop-zone{display:grid;place-items:center;text-align:center;gap:8px;border:2px dashed rgba(25,37,55,.25);border-radius:18px;padding:28px;background:#f8fafc;cursor:pointer}.drop-zone input{display:none}.drop-zone i{font-size:34px;color:#1d3557}.drop-zone span{color:#64748b;font-size:13px}.upload-preview{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.upload-preview img{width:92px;height:72px;object-fit:cover;border-radius:12px;border:1px solid rgba(15,23,42,.12)}.history-list{display:grid;gap:10px}.history-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(15,23,42,.10);border-radius:14px;padding:12px;background:#fff}.history-item small{display:block;color:#64748b;margin-top:3px}@media(max-width:900px){.learning-view{display:block}.learning-index{position:relative;top:auto;margin-bottom:18px}.tutorial-item{grid-template-columns:34px 1fr}.item-actions{grid-column:1/-1;justify-content:flex-start}}

/* =========================================================
   AJUSTE 100% - FORMULÁRIO DE TUTORIAL BONITO E SEM BUG VISUAL
   ========================================================= */
.tutorial-admin-shell{max-width:980px;margin:0 auto;background:rgba(255,255,255,.94);border:1px solid #dbeafe;border-radius:30px;box-shadow:0 24px 70px rgba(15,42,83,.14);overflow:hidden}
.tutorial-admin-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:30px;background:linear-gradient(135deg,#061a35,#123d7a);color:#fff;position:relative;overflow:hidden}
.tutorial-admin-hero:after{content:"";position:absolute;right:-70px;top:-80px;width:230px;height:230px;border-radius:50%;background:rgba(243,176,94,.16)}
.tutorial-admin-hero>*{position:relative;z-index:1}.tutorial-admin-kicker{display:inline-flex;align-items:center;gap:9px;padding:8px 13px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);font-weight:900;color:#dbeafe}.tutorial-admin-hero h1{margin:13px 0 8px;font-size:32px;line-height:1.08;color:#fff}.tutorial-admin-hero p{margin:0;color:#dbeafe;line-height:1.55;max-width:620px}.tutorial-admin-tips{display:grid;gap:9px;min-width:230px}.tutorial-admin-tips span{display:flex;align-items:center;gap:9px;padding:10px 12px;border-radius:15px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);font-weight:800;white-space:nowrap}.tutorial-admin-form{padding:24px!important;display:grid!important;gap:20px!important;background:linear-gradient(180deg,#fff,#f8fbff)}.tutorial-admin-card{padding:22px;border:1px solid #dceafe;border-radius:24px;background:#fff;box-shadow:0 14px 35px rgba(15,42,83,.06)}.tutorial-card-title{display:flex;align-items:flex-start;gap:13px;margin-bottom:18px}.tutorial-card-title>i,.tutorial-card-title>div:first-child>i{width:42px;height:42px;display:grid;place-items:center;border-radius:15px;background:#eff6ff;color:#1d5ee6;font-size:18px;flex:0 0 auto}.tutorial-card-title h2{margin:0;color:#061a35;font-size:21px}.tutorial-card-title p{margin:4px 0 0;color:#64748b;font-weight:600;line-height:1.45}.tutorial-card-title.with-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.tutorial-card-title.with-actions>div:first-child{display:flex;align-items:flex-start;gap:13px}.builder-buttons{display:flex!important;gap:9px!important;flex-wrap:wrap!important;justify-content:flex-end}.tutorial-admin-card .field{display:grid;gap:7px;margin-bottom:16px}.tutorial-admin-card .field:last-child{margin-bottom:0}.tutorial-admin-card label{font-weight:900;color:#061a35}.tutorial-admin-card input:not([type="hidden"]):not([type="file"]),.tutorial-admin-card textarea,.tutorial-admin-card select{width:100%!important;border:1px solid #cfe0f8!important;border-radius:17px!important;padding:15px 16px!important;font:inherit!important;background:#fff!important;color:#10233f!important;outline:none!important;box-shadow:none!important}.tutorial-admin-card textarea{min-height:170px!important;resize:vertical!important}.tutorial-admin-card input:focus,.tutorial-admin-card textarea:focus,.tutorial-admin-card select:focus{border-color:#60a5fa!important;box-shadow:0 0 0 4px rgba(96,165,250,.16)!important}.polished-list,.tutorial-items-list{display:grid!important;gap:14px!important}.tutorial-item{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;gap:14px!important;align-items:stretch!important;border:1px solid #dceafe!important;border-radius:20px!important;padding:14px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;box-shadow:0 10px 28px rgba(15,42,83,.06)!important}.tutorial-item.dragging{opacity:.55!important;transform:scale(.99)}.item-handle{width:48px!important;min-height:100%!important;border-radius:16px!important;background:#eef6ff!important;color:#1d5ee6!important;display:grid!important;place-items:center!important;cursor:grab!important;font-size:18px!important}.item-body{min-width:0!important}.item-body label{display:block!important;font-weight:900!important;margin-bottom:8px!important;color:#061a35!important}.item-body textarea,.item-body input:not([type="hidden"]){width:100%!important;border:1px solid #cfe0f8!important;border-radius:16px!important;padding:13px 14px!important;background:#fff!important;font:inherit!important}.item-body textarea{min-height:98px!important}.item-actions{display:flex!important;align-items:flex-start!important;gap:7px!important;justify-content:flex-end!important}.item-actions button{width:38px!important;height:38px!important;border:1px solid #dbeafe!important;border-radius:12px!important;background:#fff!important;color:#174174!important;display:grid!important;place-items:center!important;padding:0!important;cursor:pointer!important;box-shadow:0 8px 18px rgba(15,42,83,.06)!important}.item-actions button:hover{transform:translateY(-1px);border-color:#93c5fd!important}.item-actions button.danger,.item-actions .remove-tutorial-item{color:#b91c1c!important;background:#fff5f5!important;border-color:#fecaca!important}.pretty-drop,.drop-zone{position:relative!important;display:grid!important;place-items:center!important;text-align:center!important;gap:9px!important;border:2px dashed #b8cff2!important;border-radius:22px!important;background:linear-gradient(180deg,#f8fbff,#fff)!important;padding:34px 20px!important;cursor:pointer!important;color:#123d7a!important;transition:.2s!important;min-height:150px!important}.pretty-drop:hover,.drop-zone:hover,.drop-zone.drag{border-color:#2563eb!important;background:#eff6ff!important;transform:translateY(-1px)}.drop-zone input[type="file"],.pretty-drop input[type="file"]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;display:block!important;font-size:0!important}.drop-zone .drop-icon,.pretty-drop .drop-icon{width:58px;height:58px;border-radius:20px;background:#eaf3ff;color:#1d5ee6;display:grid;place-items:center;font-size:25px}.drop-zone b,.pretty-drop b{font-size:17px;color:#061a35}.drop-zone small,.drop-zone span,.pretty-drop small{font-size:13px;color:#64748b;font-weight:700}.upload-preview{display:flex!important;flex-wrap:wrap!important;gap:12px!important;margin-top:14px!important}.upload-preview img{width:108px!important;height:82px!important;object-fit:cover!important;border-radius:15px!important;border:1px solid #dbeafe!important;box-shadow:0 10px 24px rgba(15,42,83,.10)!important}.tutorial-admin-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:2px 0 4px}.publish-btn{min-width:240px}.history-panel{max-width:980px;margin:22px auto 0}.item-thumb{max-width:210px!important;border-radius:14px!important;border:1px solid #dbeafe!important;box-shadow:0 10px 24px rgba(15,42,83,.08)!important;margin-bottom:8px!important}
@media(max-width:820px){.tutorial-admin-hero{display:grid;padding:24px}.tutorial-admin-tips{min-width:0}.tutorial-card-title.with-actions{display:grid}.builder-buttons{justify-content:flex-start}.tutorial-item{grid-template-columns:42px minmax(0,1fr)!important}.item-handle{width:42px!important}.item-actions{grid-column:1/-1;justify-content:flex-start!important}.tutorial-admin-footer{display:grid}.publish-btn{width:100%;min-width:0}.tutorial-admin-form{padding:16px!important}.tutorial-admin-card{padding:18px}.tutorial-admin-hero h1{font-size:26px}}


/* Ajuste final: tutorial ponta a ponta + imagens com texto lateral */
.post-page-wrap.wrap{max-width:none!important;width:100%!important;padding-left:24px!important;padding-right:24px!important}.post-page-wrap .post-panel{max-width:none!important;width:100%!important}.post-page-wrap .post-full{max-width:none!important}.learning-wide{grid-template-columns:290px minmax(0,1fr)!important;gap:32px!important;width:100%!important}.learning-wide .learning-content{width:100%!important}.learning-image-text{display:grid!important;grid-template-columns:minmax(360px,48%) minmax(320px,1fr)!important;gap:28px!important;align-items:center!important;padding:28px!important;border:1px solid rgba(15,23,42,.10)!important;border-radius:26px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;box-shadow:0 18px 42px rgba(15,42,83,.08)!important}.learning-image-text .learning-image{height:100%;min-height:280px}.learning-image-text .learning-image img{width:100%;height:100%;max-height:520px;object-fit:contain}.learning-image-copy h2{font-size:28px!important;margin:0 0 12px!important;color:#10233f!important}.learning-image-copy p{font-size:17px!important;line-height:1.85!important;color:#334155!important;margin:0!important}.learning-intro{padding:28px!important;border-radius:26px!important;background:#fff!important;border:1px solid rgba(15,23,42,.10)!important}.learning-section{scroll-margin-top:100px}@media(max-width:980px){.post-page-wrap.wrap{padding-left:12px!important;padding-right:12px!important}.learning-wide{display:block!important}.learning-index{position:relative!important;top:auto!important;margin-bottom:18px!important}.learning-image-text{grid-template-columns:1fr!important;padding:18px!important}.learning-image-text .learning-image{min-height:0}.learning-image-copy h2{font-size:23px!important}}


/* Ajuste premium: modal de imagem, texto rico e feedback em tempo real */
.learning-image{cursor:zoom-in;position:relative}.learning-image:after{content:"\f065  Ampliar";font-family:"Font Awesome 6 Free",Arial,sans-serif;font-weight:900;position:absolute;right:14px;bottom:14px;background:rgba(6,26,53,.86);color:#fff;border-radius:999px;padding:9px 13px;font-size:13px;box-shadow:0 10px 25px rgba(0,0,0,.20)}
.tutorial-image-modal{position:fixed;inset:0;background:rgba(3,10,24,.78);z-index:99999;display:none;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(6px)}.tutorial-image-modal.is-open{display:flex}.tutorial-image-modal-card{position:relative;max-width:min(1200px,96vw);max-height:92vh;background:#fff;border-radius:24px;padding:14px;box-shadow:0 30px 90px rgba(0,0,0,.35)}.tutorial-image-modal-card img{display:block;max-width:100%;max-height:84vh;object-fit:contain;border-radius:18px}.tutorial-image-modal-close{position:absolute;right:-12px;top:-12px;width:44px;height:44px;border:0;border-radius:999px;background:#fff;color:#061a35;box-shadow:0 14px 32px rgba(0,0,0,.25);cursor:pointer;font-size:18px}.rich-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 8px}.rich-tool{border:1px solid #d8e6fb;background:#fff;color:#0d3269;border-radius:12px;padding:8px 11px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.rich-tool:hover{border-color:#93c5fd;background:#f8fbff}.emoji-pop{position:absolute;z-index:9999;display:none;grid-template-columns:repeat(8,34px);gap:6px;padding:12px;border:1px solid #dbeafe;border-radius:18px;background:#fff;box-shadow:0 18px 46px rgba(15,42,83,.18)}.emoji-pop.is-open{display:grid}.emoji-pop button{width:34px;height:34px;border:0;border-radius:10px;background:#f8fbff;cursor:pointer;font-size:19px}.emoji-pop button:hover{background:#eaf3ff}.tutorial-intro strong,.learning-section strong,.learning-image-copy strong{color:#061a35;font-weight:1000;background:linear-gradient(180deg,transparent 58%,rgba(243,176,94,.38) 0)}.reaction-btn.is-loading{opacity:.78;pointer-events:none}.reaction-btn.just-updated{animation:popFeedback .32s ease}@keyframes popFeedback{50%{transform:scale(1.04)}}
@media(max-width:700px){.tutorial-image-modal{padding:10px}.tutorial-image-modal-card{border-radius:18px;padding:8px}.learning-image:after{font-size:12px;right:10px;bottom:10px}}

/* === AJUSTE FINAL: cadastro/edição de publicações + contador de reações === */
.community-editor-page{padding-top:34px;padding-bottom:70px;background:linear-gradient(180deg,#eef6ff 0%,#ffffff 60%)}
.community-editor-shell{width:min(1180px,calc(100vw - 32px));margin:0 auto;background:#fff;border:1px solid rgba(29,78,216,.14);border-radius:30px;overflow:hidden;box-shadow:0 28px 80px rgba(15,35,70,.14)}
.community-editor-hero{padding:34px 38px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#071b37,#123f7d);color:#fff}
.community-editor-hero h1{margin:14px 0 8px;color:#fff;font-size:34px;line-height:1.05}.community-editor-hero p{margin:0;color:#dbeafe;line-height:1.6;max-width:760px}.editor-kicker{display:inline-flex;align-items:center;gap:9px;padding:9px 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);font-weight:900;color:#eff6ff}.editor-hero-card{min-width:250px;display:grid;gap:7px;padding:18px;border-radius:22px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}.editor-hero-card i{font-size:25px;color:#f3b05e}.editor-hero-card b{font-size:18px}.editor-hero-card span{color:#e0ecff;font-size:14px;line-height:1.45}.community-editor-form{padding:28px 30px 32px}.editor-grid-cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.cat-card{cursor:pointer;display:block}.cat-card input{position:absolute;opacity:0;pointer-events:none}.cat-card span{min-height:132px;display:grid;align-content:start;gap:8px;padding:20px;border-radius:24px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid #d9e8ff;box-shadow:0 14px 38px rgba(14,50,100,.08);transition:.18s ease}.cat-card i{width:42px;height:42px;border-radius:16px;display:grid;place-items:center;background:#edf5ff;color:#185abc;font-size:20px}.cat-card b{font-size:18px;color:#071b37}.cat-card small{line-height:1.45;color:#5d6b80}.cat-card input:checked+span{border-color:#2563eb;background:linear-gradient(180deg,#eef6ff,#fff);box-shadow:0 18px 48px rgba(37,99,235,.18);transform:translateY(-2px)}.cat-card input:checked+span i{background:#2563eb;color:#fff}.editor-field{margin-top:18px}.editor-field label{font-weight:900;color:#071b37}.editor-field input,.editor-field textarea{border-radius:20px;border:1px solid #cfe0fb;background:#fff;box-shadow:0 10px 30px rgba(15,35,70,.05);font-size:16px}.editor-field input:focus,.editor-field textarea:focus{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.12)}.editor-field textarea{min-height:230px;resize:vertical}.editor-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:24px}.editor-actions .publish-btn{min-width:220px;justify-content:center;font-size:16px;border-radius:18px}.reaction-btn{position:relative;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.reaction-btn:not(:disabled):hover{transform:translateY(-1px)}.reaction-btn.is-loading{opacity:.72;pointer-events:none}.reaction-btn.is-loading:after{content:'';width:14px;height:14px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;display:inline-block;margin-left:8px;vertical-align:-2px;animation:spinReaction .7s linear infinite}.reaction-btn.just-updated{animation:popReaction .38s ease}.reaction-btn [data-count]{display:inline-grid;place-items:center;min-width:28px;height:24px;margin-left:6px;padding:0 8px;border-radius:999px;background:rgba(15,35,70,.10);font-weight:900}.reaction-btn.active [data-count]{background:rgba(255,255,255,.22)}@keyframes spinReaction{to{transform:rotate(360deg)}}@keyframes popReaction{0%{transform:scale(.96)}55%{transform:scale(1.06)}100%{transform:scale(1)}}
@media(max-width:900px){.community-editor-hero{display:grid;padding:28px 22px}.editor-grid-cats{grid-template-columns:1fr}.community-editor-form{padding:22px}.community-editor-hero h1{font-size:28px}.editor-actions{display:grid}.editor-actions .btn{width:100%;justify-content:center}.editor-hero-card{min-width:0}}


/* Ajuste final da listagem de tutoriais e aviso do login */
.login-system-info{margin:22px 24px 0;display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border:1px solid #bfdbfe;border-radius:20px;background:linear-gradient(135deg,#eff6ff,#fff7ed);color:#0b2c5e;box-shadow:0 12px 30px rgba(15,42,83,.07)}
.login-system-info i{width:42px;height:42px;border-radius:15px;background:#1f66ec;color:#fff;display:grid;place-items:center;flex:0 0 auto;font-size:18px;box-shadow:0 10px 25px rgba(31,102,236,.25)}
.login-system-info b{display:block;font-size:16px;margin-bottom:3px;color:#061a35}.login-system-info span{display:block;color:#516784;font-weight:700;line-height:1.45}
.post-card.tutorial-card{padding:24px!important;border-radius:28px!important;background:radial-gradient(circle at 8% 0%,rgba(243,176,94,.18),transparent 26%),radial-gradient(circle at 100% 0%,rgba(31,102,236,.15),transparent 34%),linear-gradient(180deg,#ffffff,#f7fbff)!important}
.tutorial-list-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px;align-items:stretch;margin-top:18px}.tutorial-list-thumb{min-height:185px;border-radius:24px;overflow:hidden;border:1px solid #dbeafe;background:linear-gradient(135deg,#eff6ff,#ffffff);box-shadow:0 16px 35px rgba(15,42,83,.10);display:grid;place-items:center;text-decoration:none;position:relative}.tutorial-list-thumb:after{content:"Abrir tutorial";position:absolute;left:12px;bottom:12px;background:rgba(6,26,53,.84);color:#fff;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:900;opacity:0;transform:translateY(6px);transition:.2s}.tutorial-list-thumb:hover:after{opacity:1;transform:translateY(0)}.tutorial-list-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:.25s}.tutorial-list-thumb:hover img{transform:scale(1.04)}.tutorial-list-thumb.no-thumb i{font-size:56px;color:#1f66ec}.tutorial-list-body{min-width:0;display:flex;flex-direction:column;justify-content:center}.tutorial-eyebrow{display:inline-flex;align-items:center;gap:8px;width:max-content;max-width:100%;padding:8px 12px;border-radius:999px;background:#eef6ff;color:#174174;font-weight:1000;font-size:13px;margin-bottom:4px}.tutorial-list-body h3{margin:8px 0 10px!important;font-size:1.45rem!important}.tutorial-list-body .tutorial-excerpt{font-size:1rem;line-height:1.65;color:#405a7c;margin:0 0 14px!important}.tutorial-card .author-line{margin-top:18px;padding-top:16px;border-top:1px solid #dbeafe}.tutorial-card .card-actions-row .read{background:#1f66ec!important;color:#fff!important;border-color:#1f66ec!important;box-shadow:0 14px 30px rgba(31,102,236,.20)}.tutorial-card .card-actions-row .read:hover{filter:brightness(.98);transform:translateY(-1px)}
@media(max-width:860px){.tutorial-list-layout{grid-template-columns:1fr}.tutorial-list-thumb{min-height:220px}.login-system-info{margin-left:16px;margin-right:16px}}
@media(max-width:540px){.post-card.tutorial-card{padding:18px!important}.tutorial-list-thumb{min-height:180px;border-radius:20px}.tutorial-list-body h3{font-size:1.25rem!important}.login-system-info{display:grid}}


/* === AJUSTE 100: formulário de cadastro de usuário amplo e bonito === */
.auth-register-page{max-width:1280px!important;margin:34px auto 58px!important;padding-left:24px!important;padding-right:24px!important}
.register-shell{display:grid!important;grid-template-columns:minmax(280px,390px) minmax(0,1fr)!important;gap:24px!important;align-items:stretch!important}
.register-hero-card{position:relative;overflow:hidden;border-radius:30px;padding:34px 30px;background:linear-gradient(145deg,#061a35,#0c3a7a 72%,#1d5ee6);color:#fff;box-shadow:0 24px 70px rgba(15,42,83,.20);min-height:100%;display:flex;flex-direction:column;justify-content:center}
.register-hero-card:before{content:"";position:absolute;inset:-40%;background:radial-gradient(circle at 30% 10%,rgba(243,176,94,.34),transparent 27%),radial-gradient(circle at 80% 65%,rgba(96,165,250,.28),transparent 30%)}
.register-hero-card>*{position:relative;z-index:1}.register-kicker{width:max-content;max-width:100%;display:inline-flex;align-items:center;gap:9px;padding:9px 13px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);font-weight:1000;color:#eff6ff}.register-hero-card h1{margin:18px 0 10px;font-size:clamp(30px,3.5vw,46px);line-height:1.02;letter-spacing:-.8px}.register-hero-card p{margin:0;color:#dbeafe;line-height:1.7;font-weight:650}.register-info-list{display:grid;gap:12px;margin-top:26px}.register-info-list div{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:18px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);font-weight:850;color:#eff6ff}.register-info-list i{width:34px;height:34px;border-radius:13px;display:grid;place-items:center;background:rgba(243,176,94,.20);color:#f9c87c;flex:0 0 auto}.register-panel{border-radius:30px!important;overflow:hidden!important;background:rgba(255,255,255,.96)!important}.register-panel-head{padding:26px 30px!important;background:linear-gradient(180deg,#fff,#f4f8ff)!important}.register-panel-head h2{font-size:28px!important;margin:0!important;color:#061a35!important}.register-panel-head p{margin:6px 0 0!important;color:#64748b!important;font-weight:750!important}.register-form{padding:30px!important;gap:18px!important}.register-section-title{display:flex;align-items:center;gap:9px;margin:6px 0 -4px;font-weight:1000;color:#08234a;font-size:15px;text-transform:uppercase;letter-spacing:.04em}.register-section-title i{color:#1f66ec}.register-grid{display:grid!important;gap:16px!important}.register-grid.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))!important}.register-grid.three-cols{grid-template-columns:1fr 1.15fr 1fr!important}.register-form .field{min-width:0!important}.register-form .field label{display:flex!important;align-items:center!important;gap:8px!important;margin-bottom:8px!important;font-weight:1000!important;color:#071b37!important}.register-form .field input,.register-form .field select{height:54px!important;border-radius:18px!important;border:1px solid #cfe0fb!important;background:#fff!important;padding:0 16px!important;font-size:15px!important;box-shadow:0 10px 28px rgba(15,42,83,.045)!important}.register-form .field input:focus,.register-form .field select:focus{border-color:#2563eb!important;box-shadow:0 0 0 4px rgba(37,99,235,.12),0 12px 30px rgba(15,42,83,.06)!important}.register-hint{display:flex;align-items:center;gap:12px;padding:15px 16px;border-radius:18px;background:linear-gradient(135deg,#eff6ff,#fff7ed);border:1px solid #dbeafe;color:#38506f;font-weight:800;line-height:1.45}.register-hint i{width:36px;height:36px;border-radius:13px;background:#1f66ec;color:#fff;display:grid;place-items:center;flex:0 0 auto}.register-alert{grid-column:1/-1!important}.register-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;margin-top:8px!important;padding-top:20px!important;border-top:1px solid #e4edf9!important}.register-submit,.register-login{min-height:52px!important;border-radius:18px!important;padding-left:22px!important;padding-right:22px!important}.register-submit{min-width:210px!important}.register-login{min-width:190px!important}
@media(max-width:1050px){.register-shell{grid-template-columns:1fr!important}.register-hero-card{min-height:unset!important}.register-grid.three-cols{grid-template-columns:repeat(2,minmax(0,1fr))!important}.register-grid.three-cols .field:first-child{grid-column:auto!important}}
@media(max-width:720px){.auth-register-page{margin-top:20px!important;padding-left:14px!important;padding-right:14px!important}.register-form{padding:20px!important}.register-panel-head{padding:22px!important}.register-grid.two-cols,.register-grid.three-cols{grid-template-columns:1fr!important}.register-actions{display:grid!important;justify-content:stretch!important}.register-actions .btn{width:100%!important}.register-hero-card{padding:26px 22px;border-radius:24px}.register-panel{border-radius:24px!important}}


/* Ajuste definitivo: edição de publicação ampla e busca em página própria */
.post-edit-wide{padding-left:18px;padding-right:18px}.post-edit-wide .community-editor-shell{width:min(1320px,calc(100vw - 36px));max-width:none}.post-edit-wide .community-editor-form{padding:34px 38px 40px}.post-edit-wide .editor-grid-cats{grid-template-columns:repeat(3,minmax(220px,1fr));gap:18px}.post-edit-wide .cat-card span{min-height:148px}.post-edit-wide .editor-field input{height:60px;font-size:17px}.post-edit-wide .editor-field textarea{min-height:300px;font-size:17px;line-height:1.65}.editor-actions-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.search-results-page{padding:28px 0 70px;background:linear-gradient(180deg,#eef6ff 0%,#fff 62%)}.search-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px;padding:34px 38px;border-radius:30px;background:linear-gradient(135deg,#071b37,#123f7d);color:#fff;box-shadow:0 28px 80px rgba(15,35,70,.14)}.search-hero h1{margin:14px 0 10px;font-size:clamp(28px,4vw,44px);line-height:1.05;color:#fff}.search-hero p{margin:0;color:#dbeafe;font-size:18px;line-height:1.6}.search-hero strong{color:#fff;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.16);padding:3px 9px;border-radius:999px}.search-panel{overflow:hidden}.search-panel-head{align-items:center}.searchbar-wide{min-width:min(520px,100%)}.search-results-grid{grid-template-columns:repeat(auto-fit,minmax(310px,1fr))}@media(max-width:920px){.post-edit-wide .community-editor-form{padding:24px 20px 28px}.post-edit-wide .editor-grid-cats{grid-template-columns:1fr}.post-edit-wide .editor-field textarea{min-height:240px}.search-hero{display:grid;padding:26px 22px}.search-panel-head{align-items:stretch}.editor-actions-right{display:grid;width:100%}.editor-actions-right .btn{width:100%}}


/* Comentários encadeados, negrito e emojis */
.comment .comment-content{flex:1;min-width:0}.comment-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.comment-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:10px}.comment-reply-btn{border:0;background:#eef6ff;color:#0b3b78;border-radius:999px;padding:7px 12px;font-weight:900;cursor:pointer}.comment-reply-btn:hover{background:#dbeafe;color:#0d4dbc}.comment-replies{margin-top:14px;margin-left:8px;padding-left:18px;border-left:3px solid #dbeafe;display:grid;gap:12px}.comment-replies .comment{margin-bottom:0;background:linear-gradient(180deg,#fff,#f8fbff)}.comment-replies .comment-replies{margin-left:0}.replying-to{border:1px solid #bfdbfe;background:#eff6ff;color:#0b2d5c;border-radius:16px;padding:10px 12px;font-weight:800;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.replying-to button{border:0;background:#fff;color:#be123c;border-radius:999px;padding:6px 10px;font-weight:900;cursor:pointer}.comment-form .rich-toolbar{margin:0 0 10px}.comment-form textarea{min-height:130px}.comment p strong{font-weight:1000;color:#061a35}.emoji-pop{position:absolute;z-index:9999;background:#fff;border:1px solid #dbe7f5;border-radius:18px;padding:10px;box-shadow:0 18px 50px rgba(15,42,83,.18);display:none;grid-template-columns:repeat(8,34px);gap:6px}.emoji-pop.is-open{display:grid}.emoji-pop button{width:34px;height:34px;border:0;border-radius:10px;background:#f8fbff;cursor:pointer;font-size:18px}.emoji-pop button:hover{background:#dbeafe;transform:translateY(-1px)}@media(max-width:640px){.comment{gap:10px}.comment-replies{margin-left:0;padding-left:12px}.comment-actions{gap:8px}.comment-reply-btn,.link-danger{font-size:13px}}

/* Ajuste final - respostas de comentários inline */
.comment-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.comment-action-btn{border:0;border-radius:999px;padding:9px 14px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:.18s ease;box-shadow:0 8px 20px rgba(15,42,83,.08)}.comment-reply-btn{background:linear-gradient(135deg,#eef6ff,#dbeafe);color:#0b3b78;border:1px solid #bfdbfe}.comment-reply-btn:hover{background:linear-gradient(135deg,#2563eb,#0d4dbc);color:#fff;transform:translateY(-1px);box-shadow:0 14px 30px rgba(37,99,235,.22)}.comment-delete-btn,.link-danger{background:linear-gradient(135deg,#fff1f2,#ffe4e6)!important;color:#be123c!important;border:1px solid #fecdd3!important;border-radius:999px!important;padding:9px 14px!important;font-weight:900!important;display:inline-flex!important;align-items:center!important;gap:8px!important;cursor:pointer!important;text-decoration:none!important}.comment-delete-btn:hover,.link-danger:hover{background:linear-gradient(135deg,#ef4444,#be123c)!important;color:#fff!important;transform:translateY(-1px);box-shadow:0 14px 30px rgba(239,68,68,.18)}.comment-inline-reply{margin-top:14px;padding:16px;border-radius:22px;background:linear-gradient(180deg,#f8fbff,#fff);border:1px solid #dbeafe;box-shadow:0 16px 38px rgba(15,42,83,.09);animation:replyBoxIn .18s ease}.comment-inline-reply[hidden]{display:none!important}.reply-box-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:10px 12px;border-radius:16px;background:#eff6ff;color:#0b2d5c;font-weight:900}.reply-box-head span{display:inline-flex;align-items:center;gap:8px}.reply-box-head b{color:#0d4dbc}.reply-box-head .cancel-reply{border:0;background:#fff;color:#be123c;border-radius:999px;padding:7px 11px;font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(15,42,83,.07)}.reply-box-head .cancel-reply:hover{background:#ffe4e6}.comment-inline-reply textarea{width:100%;min-height:110px;border-radius:18px;border:1px solid #cfe0fb;background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.8);padding:14px;font-size:15px;line-height:1.55;resize:vertical}.comment-inline-reply textarea:focus{outline:0;border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.12)}.reply-box-actions{display:flex;justify-content:flex-end;margin-top:12px}.comment-inline-reply .rich-toolbar{margin:0 0 10px}@keyframes replyBoxIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}@media(max-width:640px){.reply-box-head{align-items:flex-start;flex-direction:column}.reply-box-actions{justify-content:stretch}.reply-box-actions .btn{width:100%}.comment-action-btn,.comment-delete-btn,.link-danger{width:100%;justify-content:center}}


/* === AJUSTE 2026-06-14: home em largura total + cards com tamanho fixo === */
.community-home{width:100%;overflow-x:hidden;background:linear-gradient(180deg,#eef6ff 0%,#f8fbff 48%,#ffffff 100%)}
.community-home .wrap{width:100%;max-width:none;margin:0 auto;padding-left:clamp(18px,3vw,42px);padding-right:clamp(18px,3vw,42px)}
.community-home .hero{padding-top:34px;padding-bottom:24px}.community-home .hero-card{max-width:none}.community-home .home-publicacoes-section{padding-top:22px;padding-bottom:44px}.community-home .home-publicacoes-panel{width:100%;border-radius:30px}
.community-home .grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(380px,1fr))!important;gap:22px!important;align-items:stretch!important;padding:26px!important}.community-home .post-card{height:640px;min-height:640px;max-height:640px;width:100%;min-width:0;overflow:hidden;display:flex!important;flex-direction:column!important}.community-home .post-card:hover{transform:translateY(-4px)}
.community-home .post-card.tutorial-card{padding:24px!important}.community-home .post-top{flex:0 0 auto}.community-home .card-tags{min-width:0;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.community-home .chip{white-space:nowrap}.community-home .tutorial-list-layout{grid-template-columns:1fr!important;gap:16px!important;align-items:start!important;margin-top:12px!important;min-height:0!important;flex:1 1 auto!important;overflow:hidden!important}.community-home .tutorial-list-thumb{width:100%!important;height:265px!important;min-height:265px!important;max-height:265px!important;border-radius:24px!important}.community-home .tutorial-list-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:top center!important}.community-home .tutorial-list-body{min-height:0!important;justify-content:flex-start!important;overflow:hidden!important}.community-home .tutorial-eyebrow{font-size:12px!important;margin-bottom:2px!important}.community-home .tutorial-list-body h3{font-size:1.35rem!important;line-height:1.18!important;margin:7px 0 8px!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;word-break:normal;overflow-wrap:anywhere}.community-home .tutorial-list-body .tutorial-excerpt{font-size:.98rem!important;line-height:1.5!important;margin-bottom:12px!important;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.community-home .tutorial-mini-stats,.community-home .reaction-summary-card{flex:0 0 auto}.community-home .author-line{flex:0 0 auto;margin-top:12px!important}.community-home .meta{flex:0 0 auto}.community-home .card-actions-row{flex:0 0 auto;margin-top:auto!important;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.community-home .card-actions-row .read{min-width:180px}.community-home .post-card:not(.tutorial-card) h3{font-size:1.45rem;line-height:1.2;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.community-home .post-card:not(.tutorial-card)>p{display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden;line-height:1.55}.community-home .post-card:not(.tutorial-card) .post-icon{margin-bottom:4px}
@media(min-width:1500px){.community-home .grid{grid-template-columns:repeat(auto-fill,minmax(410px,1fr))!important}.community-home .post-card{height:660px;min-height:660px;max-height:660px}.community-home .tutorial-list-thumb{height:285px!important;min-height:285px!important;max-height:285px!important}}
@media(max-width:920px){.community-home .grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))!important;padding:18px!important}.community-home .post-card{height:auto;min-height:560px;max-height:none}.community-home .tutorial-list-thumb{height:230px!important;min-height:230px!important;max-height:230px!important}.community-home .panel-head{align-items:stretch}.community-home .searchbar{width:100%}}
@media(max-width:560px){.community-home .wrap{padding-left:12px;padding-right:12px}.community-home .grid{grid-template-columns:1fr!important;padding:14px!important;gap:16px!important}.community-home .post-card{min-height:0;height:auto;max-height:none}.community-home .tutorial-list-thumb{height:210px!important;min-height:210px!important;max-height:210px!important}.community-home .card-actions-row .read{width:100%}.community-home .tutorial-list-body h3{-webkit-line-clamp:4}.community-home .tutorial-list-body .tutorial-excerpt{-webkit-line-clamp:5}}

/* Ajuste final: home com 3 posts por linha + cards padronizados + paginação */
.community-home .home-publicacoes-section{
  max-width: none !important;
  width: 100% !important;
  padding-left: clamp(18px, 4vw, 56px) !important;
  padding-right: clamp(18px, 4vw, 56px) !important;
}
.community-home .home-publicacoes-panel{
  max-width: 1440px !important;
  margin: 0 auto !important;
}
.community-home .grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  padding: 28px !important;
  align-items: stretch !important;
}
.community-home .post-card{
  width: 100% !important;
  min-width: 0 !important;
  height: 660px !important;
  min-height: 660px !important;
  max-height: 660px !important;
  overflow: hidden !important;
  border-radius: 30px !important;
}
.community-home .tutorial-list-thumb{
  width: 100% !important;
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
  overflow: hidden !important;
}
.community-home .tutorial-list-thumb img,
.community-home .image-grid img,
.community-home .post-card img{
  object-fit: cover !important;
  object-position: top center !important;
}
.posts-page-info{
  margin: 18px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg,#f8fbff,#eef6ff);
  border: 1px solid #dbeafe;
  color: #143a75;
  font-weight: 900;
}
.posts-page-info span{display:inline-flex;align-items:center;gap:8px}
.pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  padding: 0 28px 30px;
}
.page-numbers{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.page-btn,.page-num,.page-dots{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius: 14px;
  border: 1px solid #d8e8ff;
  background: #fff;
  color: #123a75;
  font-weight: 1000;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(15,44,82,.07);
}
.page-num{min-width:42px;padding:10px 12px}
.page-num.active,.page-btn:hover,.page-num:hover{
  background: linear-gradient(135deg,var(--blue),#1250bb);
  border-color: transparent;
  color: #fff;
}
.page-btn.disabled{
  opacity:.45;
  pointer-events:none;
  box-shadow:none;
}
.page-dots{border-color:transparent;background:transparent;box-shadow:none;min-width:auto;padding:8px;color:#64748b}
@media(max-width:1180px){
  .community-home .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  .community-home .home-publicacoes-section{padding-left:12px!important;padding-right:12px!important}
  .community-home .grid{grid-template-columns:1fr!important;padding:16px!important;gap:18px!important}
  .community-home .post-card{height:auto!important;min-height:0!important;max-height:none!important}
  .community-home .tutorial-list-thumb{height:220px!important;min-height:220px!important;max-height:220px!important}
  .posts-page-info{margin:16px 16px 0;align-items:flex-start;flex-direction:column}
  .pagination{padding:0 16px 24px}.page-btn{width:100%}
}


/* === AJUSTE FINAL 2026-06-14: card de publicações com a mesma largura do card principal === */
.community-home .home-publicacoes-section{
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(18px,3vw,42px) !important;
  padding-right: clamp(18px,3vw,42px) !important;
}
.community-home .home-publicacoes-panel{
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.community-home .hero .wrap,
.community-home .home-publicacoes-section{
  max-width: none !important;
}
@media(max-width:720px){
  .community-home .home-publicacoes-section{
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
