* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
}
.container { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #0f172a; text-decoration: none; font-weight: 700; }
.brand img { height: 36px; width: auto; object-fit: contain; }
.menu-toggle {
    display: none;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #5b7cff 0%, #3f60ff 100%);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(63, 96, 255, 0.36);
}
.nav { display: flex; gap: 12px; flex-wrap: wrap; }
.nav a {
    color: #334155; text-decoration: none; border: 1px solid #cbd5e1;
    padding: 8px 12px; border-radius: 999px; background: #fff; font-size: 0.9rem;
}
.hero { padding: 46px 0 22px; }
.eyebrow { color: #475569; text-transform: uppercase; letter-spacing: 1px; font-size: 0.78rem; margin-bottom: 10px; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.8px; }
.lead { color: #334155; max-width: 760px; margin-top: 14px; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px 0 60px; }
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px; overflow: hidden; box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}
.card-cover { aspect-ratio: 16/9; background: #f1f5f9; display: grid; place-items: center; color: #475569; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 16px; }
.meta { color: #64748b; font-size: 0.8rem; margin-bottom: 8px; }
.card h2 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.3; }
.card p { margin: 0 0 12px; color: #475569; font-size: 0.92rem; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    border-radius: 999px; border: 1px solid rgba(142, 167, 255, 0.25);
    background: linear-gradient(135deg, #5b7cff 0%, #3f60ff 100%); color: #fff; padding: 10px 14px; font-weight: 600;
}
.article { padding: 34px 0 70px; }
.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
}
.article-title { font-size: clamp(1.7rem, 4vw, 2.8rem); margin: 0; }
.article-meta { color: #64748b; margin: 10px 0 18px; font-size: 0.9rem; }
.article-cover { border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; margin-bottom: 20px; }
.article-cover img { width: 100%; max-height: 440px; object-fit: cover; display: block; }
.share-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.share-label { color: #475569; font-size: 0.9rem; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    padding: 8px 12px;
    font-size: 0.86rem;
    font-weight: 600;
}
.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}
.share-btn--whatsapp {
    color: #128c4a;
    border-color: rgba(18, 140, 74, 0.3);
    background: rgba(37, 211, 102, 0.09);
}
.share-btn--whatsapp .share-icon { background: #25d366; color: #fff; }

.share-btn--facebook {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.28);
    background: rgba(24, 119, 242, 0.08);
}
.share-btn--facebook .share-icon { background: #1877f2; color: #fff; }

.share-btn--x {
    color: #111;
    border-color: rgba(17, 17, 17, 0.26);
    background: rgba(17, 17, 17, 0.07);
}
.share-btn--x .share-icon { background: #111; color: #fff; }

.share-btn--linkedin {
    color: #0a66c2;
    border-color: rgba(10, 102, 194, 0.3);
    background: rgba(10, 102, 194, 0.08);
}
.share-btn--linkedin .share-icon { background: #0a66c2; color: #fff; }
.prose {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 22px; color: #0f172a; line-height: 1.72;
}
.prose h2, .prose h3 { color: #0f172a; margin-top: 1.6em; }
.prose a { color: #1d4ed8; }
.footer { border-top: 1px solid #e2e8f0; color: #64748b; font-size: 0.85rem; padding: 24px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-nav a {
    color: #334155; text-decoration: none; border: 1px solid #cbd5e1;
    padding: 7px 11px; border-radius: 999px; background: #fff; font-size: 0.82rem;
}
.mobile-drawer {
    display: none;
    position: fixed;
    right: 14px;
    left: 14px;
    bottom: 88px;
    z-index: 60;
    background: #101114;
    border: 1px solid rgba(91, 124, 255, 0.36);
    border-radius: 18px;
    box-shadow: 0 30px 54px rgba(3, 6, 15, 0.5);
    padding: 14px;
    color: #fff;
}
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.mobile-drawer-title {
    color: #5b7cff;
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1;
}
.mobile-drawer-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}
.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-drawer-nav a {
    display: block;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 13px 14px;
    font-weight: 600;
}
.mobile-drawer-nav a:hover { background: rgba(255, 255, 255, 0.1); }
.mobile-open .mobile-drawer { display: block; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
    width: min(860px, 100%);
    display: grid; grid-template-columns: 1.1fr 1fr;
    border-radius: 20px; overflow: hidden; border: 1px solid #dbe3ee;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}
.auth-left, .auth-right { padding: 24px; }
.auth-left { background: #fff; }
.auth-right { background: linear-gradient(160deg, #eff6ff 0%, #e0e7ff 100%); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 0.9rem; margin-bottom: 6px; color: #334155; }
.field input, .field textarea, .field select {
    width: 100%; border-radius: 12px; border: 1px solid #cbd5e1;
    background: #fff; color: #0f172a; padding: 10px 12px;
}
.field textarea { min-height: 260px; font-family: Consolas, monospace; font-size: 0.9rem; }
.alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; border: 1px solid transparent; font-size: 0.92rem; }
.alert.error { background: rgba(122, 37, 52, 0.43); border-color: rgba(249, 115, 115, 0.38); color: #ffdce1; }
.alert.ok { background: rgba(24, 88, 52, 0.43); border-color: rgba(74, 222, 128, 0.32); color: #d4ffe5; }
.table-wrap {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 16px; overflow: hidden;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; }
th { color: #334155; background: #f8fafc; }
td { color: #475569; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-outline { background: #fff; color: #1e293b; border-color: #cbd5e1; }
.empty { padding: 16px; color: #64748b; }

@media (max-width: 980px) {
    .cards { grid-template-columns: 1fr 1fr; }
    .auth-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .cards { grid-template-columns: 1fr; }
    .footer-inner { align-items: flex-start; }
    .header-inner {
        justify-content: center;
    }
    .brand span { display: none; }
    .nav { display: none; }
    .menu-toggle {
        display: inline-flex;
        position: fixed;
        right: 14px;
        bottom: 14px;
        z-index: 65;
    }
}
