/* Avatar menu refinements */
.site-header .header-user-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-header .header-user {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-header .header-user-avatar {
    font-size: 0.9rem;
    line-height: 1;
}

.site-header .header-user-wrapper.show-menu .header-user-dropdown {
    display: block;
}

/* DevAgent Auth layout + auth overlay */
:root {
    --bg: #020617;
    --surface: rgba(15,23,42,0.96);
    --border: #1e293b;
    --accent: #4f46e5;
    --accent-soft: rgba(79,70,229,0.15);
    --text: #e5e7eb;
    --muted: #9ca3af;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #4c1d95 0, #020617 55%, #000 100%);
}

.frame {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 32px 56px 28px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: relative;
    overflow: hidden;
}

.frame::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0 0, rgba(56,189,248,0.18), transparent 55%),
                radial-gradient(circle at 100% 0, rgba(129,140,248,0.22), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.frame-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148,163,184,0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #e5e7eb, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #020617;
    box-shadow: 0 0 0 1px rgba(148,163,184,0.5), 0 10px 22px rgba(15,23,42,0.85);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 600;
}

.brand-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.55);
    background: rgba(15,23,42,0.92);
}

.brand-sub {
    font-size: 0.78rem;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--muted);
}

.nav a {
    color: inherit;
    text-decoration: none;
    padding: 3px 0;
}

.nav a:hover {
    color: #e5e7eb;
}

.site-main {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-title {
    font-size: 2.4rem;
    line-height: 1.1;
    letter-spacing: 0.03em;
    margin: 0;
}

.hero-title span {
    display: block;
}

.hero-highlight {
    color: #a5b4fc;
}

.hero-text {
    max-width: 34rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hero-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 10px;
}

.hero-meta code {
    background: rgba(15,23,42,0.92);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.sections {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 20px;
}

.content-block {
    background: rgba(15,23,42,0.82);
    border-radius: 18px;
    border: none;
    padding: 16px 18px 14px;
    font-size: 0.82rem;
    color: var(--muted);
}

.content-block h2 {
    font-size: 1rem;
    margin: 0 0 6px;
    color: #e5e7eb;
}

.content-block h3 {
    font-size: 0.88rem;
    margin: 0 0 4px;
    color: #e5e7eb;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pill {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.35);
    padding: 4px 10px;
    font-size: 0.72r
/* Header user dropdown */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user-wrapper {
    position: relative;
}

.header-user {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 999px;
}

.header-user-avatar {
    font-size: 1rem;
    line-height: 1;
}

.header-user-email {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 180px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(148,163,184,0.45);
    box-shadow: 0 12px 30px rgba(15,23,42,0.9);
    display: none;
    z-index: 20;
}

.header-user-dropdown.show {
    display: block;
}

.header-user-dropdown .dropdown-item {
    display: block;
    width: 100%;
    padding: 6px 8px;
    font-size: 0.8rem;
    color: var(--text);
    text-decoration: none;
}

.header-user-dropdown .dropdown-item:hover {
    background: rgba(55,65,81,0.65);
}

.logout-form {
    margin: 0;
}

.logout-button {
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
}
em;
    color: var(--muted);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(148,163,184,0.18);
    font-size: 0.75rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover {
    color: #e5e7eb;
}

/* Overlay login/registro */
.overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(15,23,42,0.55), rgba(15,23,42,0.85));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 50;
}

.overlay.hidden {
    display: none;
}

.auth-modal {
    width: 100%;
    max-width: 420px;
    background: rgba(15,23,42,0.98);
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,0.45);
    box-shadow: 0 26px 60px rgba(15,23,42,0.95);
    padding: 18px 18px 16px;
}

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

.modal-title {
    font-size: 1rem;
    font-weight: 600;
}

.modal-tabs {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.4);
}

.modal-tab {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.modal-tab.active {
    background: linear-gradient(135deg,#4f46e5,#6366f1);
    color: #f9fafb;
}

.modal-close {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: rgba(15,23,42,0.95);
    color: var(--muted);
    cursor: pointer;
}

.modal-body {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--muted);
}

.modal-body p {
    margin: 0 0 10px;
}

label {
    display: block;
    margin-bottom: 2px;
    font-size: 0.75rem;

/* Área pessoal (/Me) */
.me-sidebar {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

.me-sidebar {
    width: 220px;
    background: transparent;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.35);
    padding: 12px 10px;
}

.me-sidebar-title {
    font-size: 0.9rem;
    margin: 0 0 8px;
    color: #e5e7eb;
}

.me-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.me-nav-item {
    width: 100%;
    text-align: left;
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.45);
    padding: 8px 10px;
    font-size: 0.8rem;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.me-nav-item:hover {
    border-color: rgba(148,163,184,0.85);
}

.me-nav-item.is-active {
    border-color: var(--accent);
    color: #e5e7eb;
}

.me-content {
    flex: 1;
    min-height: 220px;
    padding: 4px 0;
    background: transparent;
    border: none;
}

.me-panel {
    display: none;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.45);
    padding: 14px 16px;
    background: transparent;
}

.me-panel.is-active {
    display: block;
}
    color: var(--muted);
}

input {
    width: 100%;
    padding: 7px 9px;
    margin-bottom: 7px;
    border-radius: 9px;
    border: 1px solid #334155;
    background: #020617;
    color: var(--text);
    font-size: 0.8rem;
}

input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.4);
}

.modal-actions {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
}

.status {
    font-size: 0.78rem;
    margin-top: 6px;
    min-height: 18px;
    color: #a5b4fc;
}

.status.error {
    color: #f97373;
}

.status.ok {
    color: #4ade80;
}

@media (max-width: 880px) {
    .frame {
        padding: 20px 18px 18px;
    }

    .site-header {
        flex-wrap: wrap;
    }


/* Área pessoal (/Me) */
.me-root {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

.me-sidebar {
    width: 220px;
    background: transparent;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.35);
    padding: 12px 10px;
}

.me-sidebar-title {
    font-size: 0.9rem;
    margin: 0 0 8px;
    color: #e5e7eb;
}

.me-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.me-nav-item {
    width: 100%;
    text-align: left;
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.45);
    padding: 8px 10px;
    font-size: 0.8rem;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.me-nav-item:hover {
    border-color: rgba(148,163,184,0.85);
}

.me-nav-item.is-active {
    border-color: var(--accent);
    color: #e5e7eb;
}

.me-content {
    flex: 1;
    min-height: 220px;
    padding: 4px 0;
    background: transparent;
    border: none;
}

.me-panel {
    display: none;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.45);
    padding: 14px 16px;
    background: transparent;
}

.me-panel.is-active {
    display: block;
}
.me-panel.is-active {
    display: block;
}
    .hero-title {
        font-size: 2rem;
    }

    .sections {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* DevAgent Auth layout + auth overlay */
:root {
    --bg: #020617;
    --surface: rgba(15,23,42,0.96);
    --border: #1e293b;
    --accent: #4f46e5;
    --accent-soft: rgba(79,70,229,0.15);
    --text: #e5e7eb;
    --muted: #9ca3af;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #4c1d95 0, #020617 55%, #000 100%);
}

.frame {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 32px 56px 28px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: relative;
    overflow: hidden;
}

.frame::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0 0, rgba(56,189,248,0.18), transparent 55%),
                radial-gradient(circle at 100% 0, rgba(129,140,248,0.22), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.frame-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148,163,184,0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #e5e7eb, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #020617;
    box-shadow: 0 0 0 1px rgba(148,163,184,0.5), 0 10px 22px rgba(15,23,42,0.85);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 600;
}

.brand-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.55);
    background: rgba(15,23,42,0.92);
}

.brand-sub {
    font-size: 0.78rem;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--muted);
}

.nav a {
    color: inherit;
    text-decoration: none;
    padding: 3px 0;
}

.nav a:hover {
    color: #e5e7eb;
}

.site-main {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-title {
    font-size: 2.4rem;
    line-height: 1.1;
    letter-spacing: 0.03em;
    margin: 0;
}

.hero-title span {
    display: block;
}

.hero-highlight {
    color: #a5b4fc;
}

.hero-text {
    max-width: 34rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hero-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 10px;
}

.hero-meta code {
    background: rgba(15,23,42,0.92);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.sections {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 20px;
}

.content-block {
    background: rgba(15,23,42,0.82);
    border-radius: 18px;
    border: none;
    padding: 16px 18px 14px;
    font-size: 0.82rem;
    color: var(--muted);
}

.content-block h2 {
    font-size: 1rem;
    margin: 0 0 6px;
    color: #e5e7eb;
}

.content-block h3 {
    font-size: 0.88rem;
    margin: 0 0 4px;
    color: #e5e7eb;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pill {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.35);
    padding: 4px 10px;
    font-size: 0.72rem;
    color: var(--muted);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(148,163,184,0.18);
    font-size: 0.75rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover {
    color: #e5e7eb;
}

/* Overlay login/registro */
.overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(15,23,42,0.88), rgba(15,23,42,0.96));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 50;
}

.overlay.hidden {
    display: none;
}

.modal {
    display: block;
    width: 100%;
    max-width: 420px;
    background: rgba(15,23,42,0.98);
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,0.45);
    box-shadow: 0 26px 60px rgba(15,23,42,0.95);
    padding: 18px 18px 16px;
}

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

.modal-title {
    font-size: 1rem;
    font-weight: 600;
}

.modal-tabs {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.4);
}

.modal-tab {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.modal-tab.active {
    background: linear-gradient(135deg,#4f46e5,#6366f1);
    color: #f9fafb;
}

.modal-close {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: rgba(15,23,42,0.95);
    color: var(--muted);
    cursor: pointer;
}

.modal-body {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--muted);
}

.modal-body p {
    margin: 0 0 10px;
}

label {
    display: block;
    margin-bottom: 2px;
    font-size: 0.75rem;
    color: var(--muted);
}

input {
    width: 100%;
    padding: 7px 9px;
    margin-bottom: 7px;
    border-radius: 9px;
    border: 1px solid #334155;
    background: #020617;
    color: var(--text);
    font-size: 0.8rem;
}

input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.4);
}

.modal-actions {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
}

.status {
    font-size: 0.78rem;
    margin-top: 6px;
    min-height: 18px;
    color: #a5b4fc;
}

.status.error {
    color: #f97373;
}

.status.ok {
    color: #4ade80;
}

@media (max-width: 880px) {
    .frame {
        padding: 20px 18px 18px;
    }

    .site-header {
        flex-wrap: wrap;
    }

    .hero-title {
        font-size: 2rem;
    }

    .sections {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* DevAgent Auth layout + auth overlay */
:root {
    --bg: #020617;
    --surface: rgba(15,23,42,0.96);
    --border: #1e293b;
    --accent: #4f46e5;
    --accent-soft: rgba(79,70,229,0.15);
    --text: #e5e7eb;
    --muted: #9ca3af;
}

* {
    box-sizing: border-box;

/* Área pessoal (/Me) – estilos globais */
.me-root {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

.me-sidebar {
    width: 220px;
    background: transparent;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.35);
    padding: 12px 10px;
}

.me-sidebar-title {
    font-size: 0.9rem;
    margin: 0 0 8px;
    color: #e5e7eb;
}

.me-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.me-nav-item {
    width: 100%;
    text-align: left;
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.45);
    padding: 8px 10px;
    font-size: 0.8rem;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.me-nav-item:hover {
    border-color: rgba(148,163,184,0.85);
}

.me-nav-item.is-active {
    border-color: var(--accent);
    color: #e5e7eb;
}

.me-content {
    flex: 1;
    min-height: 220px;
    padding: 4px 0;
    background: transparent;
    border: none;
}

.me-panel {
    display: none;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.45);
    padding: 14px 16px;
    background: transparent;
}

.me-panel.is-active {
    display: block;
}
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #4c1d95 0, #020617 55%, #000 100%);
}

.frame {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 32px 56px 28px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: relative;
    overflow: hidden;
}

.frame::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0 0, rgba(56,189,248,0.18), transparent 55%),
                radial-gradient(circle at 100% 0, rgba(129,140,248,0.22), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.frame-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148,163,184,0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #e5e7eb, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #020617;
    box-shadow: 0 0 0 1px rgba(148,163,184,0.5), 0 10px 22px rgba(15,23,42,0.85);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 600;
}

.brand-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.55);
    background: rgba(15,23,42,0.92);
}

.brand-sub {
    font-size: 0.78rem;
    color: var(--muted);
}

.nav {
.modal {
    display: block;
    width: 100%;
    max-width: 420px;
    background: rgba(15,23,42,0.98);
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,0.45);
    box-shadow: 0 26px 60px rgba(15,23,42,0.95);
    padding: 18px 18px 16px;
}

    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--muted);
}

.nav a {
    color: inherit;
    text-decoration: none;
    padding: 3px 0;
}

.nav a:hover {
    color: #e5e7eb;
}

.site-main {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-title {
    font-size: 2.4rem;
    line-height: 1.1;
    letter-spacing: 0.03em;
    margin: 0;
}

.hero-title span {
    display: block;
}

.hero-highlight {
    color: #a5b4fc;
}

.hero-text {
    max-width: 34rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hero-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 10px;
}

.hero-meta code {
    background: rgba(15,23,42,0.92);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.sections {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 20px;
}

.content-block {
    background: rgba(15,23,42,0.82);
    border-radius: 18px;
    border: none;
    padding: 16px 18px 14px;
    font-size: 0.82rem;
    color: var(--muted);
}

.content-block h2 {
    font-size: 1rem;
    margin: 0 0 6px;
    color: #e5e7eb;
}

.content-block h3 {
    font-size: 0.88rem;
    margin: 0 0 4px;
    color: #e5e7eb;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pill {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.35);
    padding: 4px 10px;
    font-size: 0.72rem;
    color: var(--muted);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(148,163,184,0.18);
    font-size: 0.75rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover {
    color: #e5e7eb;
}

/* Overlay login/registro */
.overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(15,23,42,0.88), rgba(15,23,42,0.96));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 50;
}

.overlay.hidden {
    display: none;
}

.modal {
    width: 100%;
    max-width: 420px;
    background: rgba(15,23,42,0.98);
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,0.45);
    box-shadow: 0 26px 60px rgba(15,23,42,0.95);
    padding: 18px 18px 16px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
}

.modal-tabs {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.4);
}

.modal-tab {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.modal-tab.active {
    background: linear-gradient(135deg,#4f46e5,#6366f1);
    color: #f9fafb;
}

.modal-close {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: rgba(15,23,42,0.95);
    color: var(--muted);
    cursor: pointer;
}

.modal-body {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--muted);
}

.modal-body p {
    margin: 0 0 10px;
}

label {
    display: block;
    margin-bottom: 2px;
    font-size: 0.75rem;
    color: var(--muted);
}

input {
    width: 100%;
    padding: 7px 9px;
    margin-bottom: 7px;
    border-radius: 9px;
    border: 1px solid #334155;
    background: #020617;
    color: var(--text);
    font-size: 0.8rem;
}

input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.4);
}

.modal-actions {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
}

.status {
    font-size: 0.78rem;
    margin-top: 6px;
    min-height: 18px;
    color: #a5b4fc;
}

.status.error {
    color: #f97373;
}

.status.ok {
    color: #4ade80;
}

@media (max-width: 880px) {
    .frame {
        padding: 20px 18px 18px;
    }

    .site-header {
        flex-wrap: wrap;
    }

    .hero-title {
        font-size: 2rem;
    }

    .sections {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Header user / avatar + dropdown */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user-wrapper {
    position: relative;
}

.header-user {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
}

.header-user-avatar {
    font-size: 1.1rem;
}

.header-user-email {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-dropdown {
    position: absolute;
    right: 0;
    top: 120%;
    min-width: 160px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.5);
    background: rgba(15,23,42,0.98);
    box-shadow: 0 18px 40px rgba(15,23,42,0.95);
    z-index: 40;
    display: none;
}

.header-user-wrapper.show-menu .header-user-dropdown {
    display: block;
}

.header-user-dropdown .dropdown-item {
    display: block;
    width: 100%;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: var(--text);
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
}

    .header-user-dropdown .dropdown-item:hover {
        background: rgba(51,65,85,0.9);
    }

.logout-form {
    margin: 0;
}

.logout-button {
    padding: 0;
    width: 100%;
    text-align: left;
}
/* Mostrar dropdown quando o wrapper tem show-menu */
.header-user-wrapper.show-menu .header-user-dropdown {
    display: block;
}


/* Ajustes finos da área pessoal (/Me) */
.me-sidebar {
    width: 170px;
}

.me-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
}

.me-content {
    min-height: 320px;
}

.me-panel {
    min-height: 280px;
}
