:root {
    --bg: #051937;
    --bg-soft: #0b234f;
    --surface: rgba(8, 24, 54, 0.72);
    --surface-light: #f6fbff;
    --text: #eff8ff;
    --text-dark: #12233e;
    --muted: #9fb4cf;
    --line: rgba(255, 255, 255, 0.08);
    --primary: #11c5f3;
    --secondary: #10a3d9;
    --accent: #ff9f1c;
    --shadow: 0 28px 80px rgba(4, 12, 27, 0.35);
    --radius: 28px;
    --font-body: "Segoe UI Variable", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --font-display: "Bahnschrift", "Trebuchet MS", "Arial Narrow", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(17, 197, 243, 0.16), transparent 22rem),
        radial-gradient(circle at right center, rgba(255, 159, 28, 0.12), transparent 18rem),
        linear-gradient(180deg, #031028 0%, #081a3c 52%, #0b1f46 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    background: rgba(3, 16, 40, 0.72);
    border-bottom: 1px solid var(--line);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 88px;
    position: relative;
}

.brand img,
.footer-logo {
    height: auto;
}

.main-nav {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    color: var(--muted);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.menu-toggle:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
}

.menu-toggle-bars {
    display: grid;
    gap: 4px;
}

.menu-toggle-bar {
    display: block;
    width: 1.2rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.main-nav a:hover,
.header-cta:hover,
.share-actions a:hover,
.sidebar-link:hover {
    color: white;
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.9rem 1.3rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.header-cta:hover,
.floating-contact:hover {
    transform: translateY(-2px);
}

.header-cta,
.btn-primary,
.floating-contact {
    background: linear-gradient(135deg, var(--primary), #47ddff);
    color: #042143;
    box-shadow: 0 16px 36px rgba(17, 197, 243, 0.25);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.hero,
.page-hero {
    padding: 5.4rem 0 3rem;
}

.page-hero.compact {
    padding-top: 4rem;
}

.hero-grid,
.dual-grid,
.article-grid,
.footer-grid {
    display: grid;
    gap: 2rem;
}

.hero-grid,
.dual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.hero-copy h1,
.page-hero h1,
.article-header h1,
.section-heading h2,
.admin-top h1 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.page-hero h1,
.article-header h1 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.footer-copy,
.article-meta,
.article-content,
.comment-item p,
.support-card,
.feature-card p,
.post-card p,
.admin-top p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions,
.share-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-stats {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-stats div,
.glass-panel,
.feature-card,
.post-card,
.support-card,
.sidebar-card,
.comments-box,
.share-box,
.admin-stat-card,
.admin-form-card,
.admin-login-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-stats div {
    padding: 1rem 1.2rem;
}

.hero-stats strong {
    display: block;
    margin-bottom: 0.4rem;
    color: white;
}

.glass-panel {
    padding: 2rem;
}

.card-badge,
.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.chip-accent,
.card-badge {
    background: rgba(255, 159, 28, 0.16);
    color: #ffd49b;
}

.section {
    padding: 2rem 0 4rem;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.feature-grid,
.service-grid,
.post-grid,
.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.feature-card,
.service-card,
.post-card,
.support-card,
.sidebar-card,
.comments-box,
.share-box,
.admin-stat-card,
.admin-form-card,
.admin-login-card {
    padding: 1.4rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(17, 197, 243, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.service-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 159, 28, 0.08);
    filter: blur(10px);
}

.service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(17, 197, 243, 0.14);
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 700;
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.08rem;
}

.service-card p {
    margin: 0;
}

.post-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-card-media {
    display: block;
    margin-bottom: 1rem;
    border-radius: 22px;
    overflow: hidden;
}

.post-card-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
}

.article-cover {
    width: 100%;
    height: auto;
    object-position: center;
}

.article-cover {
    border-radius: 22px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.post-card-body h2,
.post-card-body h3,
.feature-card h3,
.sidebar-card h3,
.share-box h2,
.comments-box h2 {
    margin-top: 0;
}

.post-meta,
.article-meta,
.footer-bottom-inner,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.post-meta,
.article-meta {
    color: var(--muted);
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.98rem;
    line-height: 1.2;
}

.post-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    color: var(--primary);
    flex: 0 0 1.2rem;
}

.post-meta-icon svg {
    width: 100%;
    height: 100%;
}

.post-card-link {
    display: block;
    height: 100%;
}

.post-card-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 6px;
}

.post-card-body {
    display: grid;
    gap: 0.85rem;
}

.post-card-body h2,
.post-card-body h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.18;
}

.post-card-body p {
    margin: 0;
}

.post-card-actions {
    margin-top: 1.4rem;
    display: flex;
    justify-content: center;
}

.post-card-actions .btn {
    min-width: 150px;
}

.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    text-align: center;
}

.ad-slot span {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.ad-slot-horizontal {
    min-height: 110px;
    margin-bottom: 1.5rem;
}

.ad-slot-vertical {
    min-height: 280px;
}

.article-page {
    padding: 3.5rem 0 4rem;
}

.article-grid {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
    align-items: start;
}

.post-rating-panel {
    margin: 2rem 0;
}

.post-rating-widget {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    padding: 1.8rem 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.post-rating-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 999px;
    border: 1px dashed rgba(255, 255, 255, 0.34);
    font-family: "Sora", sans-serif;
    font-size: 2rem;
    color: white;
}

.post-rating-title,
.post-rating-meta,
.post-rating-feedback {
    margin: 0;
    color: var(--muted);
}

.post-rating-stars {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.post-rating-star {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.28);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 0.1rem;
}

.post-rating-star:hover,
.post-rating-star:focus-visible,
.post-rating-star.is-active {
    color: #ffd166;
    transform: translateY(-1px);
}

.post-rating-star:focus-visible {
    outline: 2px solid rgba(17, 197, 243, 0.5);
    outline-offset: 4px;
    border-radius: 8px;
}

.post-rating-feedback {
    min-height: 1.3rem;
    text-align: center;
}

.article-sidebar {
    position: sticky;
    top: 112px;
    align-self: start;
}

.article-content {
    font-size: 1.04rem;
}

.article-content p,
.article-content li {
    margin-top: 0;
    margin-bottom: 1rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: "Sora", sans-serif;
    color: white;
}

.article-content a {
    color: #7fe4ff;
}

.sidebar-link {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.comment-form,
.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full,
.comment-form .full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    font: inherit;
}

textarea {
    resize: vertical;
}

.comment-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.comment-item {
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.comment-item span,
.muted {
    color: var(--muted);
}

.alert-error-box,
.alert-success-box {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
}

.alert-error-box {
    background: rgba(255, 76, 76, 0.14);
    border: 1px solid rgba(255, 76, 76, 0.24);
}

.alert-success-box {
    background: rgba(36, 212, 124, 0.14);
    border: 1px solid rgba(36, 212, 124, 0.24);
}

.pagination {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a {
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.pagination a.active {
    background: var(--primary);
    color: #05203d;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 10, 24, 0.8);
}

.footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    padding: 2.6rem 0;
}

.site-footer h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.site-footer a {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--muted);
}

.footer-bottom {
    border-top: 1px solid var(--line);
}

.footer-bottom-inner {
    justify-content: space-between;
    min-height: 68px;
}

.footer-icons {
    display: flex;
    gap: 0.5rem;
}

.mini-icon {
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--primary);
}

.floating-contact {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    min-width: 150px;
    gap: 0.7rem;
    white-space: nowrap;
}

.floating-contact-icon {
    width: 1.8rem;
    height: 1.8rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(4, 33, 67, 0.14);
    flex-shrink: 0;
}

.floating-contact-icon svg {
    width: 1rem;
    height: 1rem;
}

.blogNotifyBox {
    position: fixed;
    right: 1rem;
    bottom: 5.9rem;
    z-index: 45;
    width: min(360px, calc(100vw - 1.5rem));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem 1rem 1rem 1.1rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at top right, rgba(17, 197, 243, 0.12), transparent 40%),
        rgba(7, 21, 46, 0.96);
    box-shadow: 0 18px 46px rgba(1, 10, 24, 0.42);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.97);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.blogNotifyBox.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.blogNotifyLink {
    min-width: 0;
}

.blogNotifyLink:focus-visible {
    outline: 2px solid rgba(71, 221, 255, 0.9);
    outline-offset: 5px;
    border-radius: 16px;
}

.blogNotifyContent {
    display: grid;
    gap: 0.45rem;
}

.blogNotifyBadge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: rgba(17, 197, 243, 0.16);
    color: #94ecff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blogNotifyTitle {
    display: block;
    color: #ffffff;
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    line-height: 1.35;
}

.blogNotifyCategories,
.blogNotifySummary {
    margin: 0;
    line-height: 1.55;
}

.blogNotifyCategories {
    color: #7fe4ff;
    font-size: 0.86rem;
    font-weight: 700;
}

.blogNotifySummary {
    color: #c4d6eb;
    font-size: 0.92rem;
}

.blogNotifyClose {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.blogNotifyClose:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.04);
}

.blogNotifyClose:focus-visible {
    outline: 2px solid rgba(71, 221, 255, 0.9);
    outline-offset: 3px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.honeypot {
    display: none;
}

.admin-body {
    min-height: 100vh;
}

.admin-login-wrap,
.admin-panel-wrap {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0;
}

.admin-login-wrap {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.admin-login-card {
    width: min(480px, 100%);
}

.admin-top {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.6rem;
}

.admin-stat-card strong {
    display: block;
    font-size: 2.1rem;
    margin-bottom: 0.4rem;
}

@media (max-width: 980px) {
    .hero-grid,
    .dual-grid,
    .article-grid,
    .footer-grid,
    .feature-grid,
    .service-grid,
    .post-grid,
    .admin-card-grid {
        grid-template-columns: 1fr;
    }

    .admin-top {
        flex-direction: column;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.7rem);
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(3, 16, 40, 0.97);
        box-shadow: var(--shadow);
        z-index: 25;
    }

    .main-nav.is-open {
        display: flex;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .hero,
    .page-hero,
    .article-page,
    .section {
        padding-top: 2.4rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .floating-contact {
        left: 1rem;
        right: 1rem;
        text-align: center;
    }

    .blogNotifyBox {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 6.35rem;
        width: auto;
        padding: 0.95rem;
        border-radius: 22px;
    }

    .post-card-media {
        margin-bottom: 0.9rem;
    }
}
