/* Blockchain grid pattern */
.hero-grid {
    background-image:
        linear-gradient(rgba(0, 74, 153, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 74, 153, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Home hero — mobile-only spacing & CTA layout */
@media (max-width: 767px) {
    .hero-home-inner {
        padding-top: 1rem;
        padding-bottom: 3rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.625rem;
    }

    .hero-cta-primary {
        width: 100%;
        justify-content: center;
    }

    .hero-cta-secondary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.625rem;
        width: 100%;
    }

    .hero-cta-secondary a,
    .hero-cta-secondary button {
        width: 100%;
        justify-content: center;
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .hero-cta-secondary {
        display: contents;
    }
}

/* Soft glow accent */
.glow-cyan {
    box-shadow: 0 0 60px rgba(0, 174, 239, 0.15);
}

/* Chain link decorative element */
.chain-link {
    background: linear-gradient(135deg, #004a99 0%, #0077cc 50%, #00aeef 100%);
    border-radius: 9999px;
}

/* Header / footer logo */
.site-logo {
    height: 2.45rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
@media (max-width: 767px) {
    header .site-logo {
        height: 2.25rem;
        max-width: 12rem;
    }
}
@media (min-width: 768px) {
    .site-logo {
        height: 2.975rem;
    }
}
.site-logo--footer {
    height: 3.75rem;
}

/* Footer navigation — horizontal column layout */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.75rem;
    row-gap: 1.75rem;
}
@media (min-width: 640px) {
    .footer-nav-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .footer-nav-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 2rem;
        row-gap: 2rem;
    }
}

.footer-nav-group {
    min-width: 0;
}

.footer-nav-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.footer-nav-heading--link {
    display: inline-block;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-nav-heading--link:hover {
    color: #00aeef;
}

.footer-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-nav-links a {
    display: inline-block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}
.footer-nav-links a:hover {
    color: #00aeef;
}

/* Smooth scroll */
html {
    scroll-behavior: auto;
}

/* Card hover lift */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 74, 153, 0.1);
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.nav-dropdown-menu {
    z-index: 60;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Header utilities (search / share / connect) */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .header-utilities {
        flex: 1;
        min-width: 0;
        margin-left: 1rem;
    }
}

.auth-search {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.375rem 0.375rem 0.875rem;
    border-radius: 9999px;
    background: #f4f9fc;
    border: 1px solid #e2edf5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .auth-search {
        flex: 1;
        max-width: 28rem;
    }
}

.auth-search:focus-within {
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
}

.auth-search--mobile {
    width: 100%;
}

@media (min-width: 1024px) {
    .auth-search {
        max-width: 40rem;
    }
}

.auth-search-icon {
    color: #94a3b8;
    flex-shrink: 0;
    display: flex;
}

.auth-search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #004a99;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.auth-search-input::placeholder {
    color: #94a3b8;
}

.auth-search-submit {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #004a99 0%, #00aeef 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.auth-search-submit:hover {
    opacity: 0.9;
    transform: scale(1.04);
}

.auth-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #004a99;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.auth-btn-outline {
    background: #fff;
    border: 1px solid #e2edf5;
}

.auth-btn-outline:hover {
    background: #e8f6fc;
    border-color: #b8dff0;
    color: #0077cc;
}

.auth-eth-icon {
    color: #0077cc;
    display: flex;
}

.auth-user-avatar {
    border-radius: 9999px;
    object-fit: cover;
}

.auth-user-menu {
    position: relative;
}

.auth-user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 11rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid #e2edf5;
    box-shadow: 0 12px 32px rgba(0, 74, 153, 0.1);
    z-index: 70;
}

.auth-user-dropdown-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.auth-logout-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: #004a99;
    background: #f4f9fc;
    border: 1px solid #e2edf5;
    cursor: pointer;
}

.auth-logout-btn:hover {
    background: #e8f6fc;
    border-color: #b8dff0;
}

.auth-admin-link {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #004a99;
    text-align: center;
    text-decoration: none;
    background: #f4f9fc;
    border: 1px solid #e2edf5;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-admin-link:hover {
    background: #e8f6fc;
    border-color: #b8dff0;
    color: #0077cc;
}

a.auth-btn-admin {
    text-decoration: none;
}

/* Connect modal */
.auth-modal[hidden] {
    display: none;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.auth-modal-panel {
    position: relative;
    width: 100%;
    max-width: 24rem;
    padding: 1.75rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e2edf5;
    box-shadow: 0 24px 48px rgba(0, 74, 153, 0.15);
}

.auth-modal-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    padding: 0.25rem;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
}

.auth-modal-close:hover {
    color: #004a99;
}

.auth-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #004a99;
    margin-bottom: 0.375rem;
}

.auth-modal-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.auth-modal-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-provider-btn-wrap {
    display: flex;
    justify-content: center;
}

.auth-provider-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: #f4f9fc;
    border: 1px solid #e2edf5;
    color: #004a99;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-provider-btn:hover:not(:disabled) {
    background: #e8f6fc;
    border-color: #b8dff0;
}

.auth-provider-btn--disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-provider-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-google-icon {
    background: #fff;
    color: #4285f4;
    font-weight: 700;
    font-size: 1.125rem;
}

.auth-provider-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.auth-provider-text strong {
    font-size: 0.9375rem;
}

.auth-provider-text small {
    font-size: 0.75rem;
    color: #64748b;
}

.auth-modal-status {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: #64748b;
    min-height: 1.25rem;
}

.auth-modal-status--error {
    color: #f87171;
}

body.auth-modal-open {
    overflow: hidden;
}

/* Contact success modal */
.contact-success-modal[hidden] {
    display: none;
}

.contact-success-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.contact-success-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.contact-success-modal-panel {
    position: relative;
    width: 100%;
    max-width: 24rem;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e2edf5;
    box-shadow: 0 24px 48px rgba(0, 74, 153, 0.15);
    text-align: center;
}

.contact-success-modal-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    padding: 0.25rem;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
}

.contact-success-modal-close:hover {
    color: #004a99;
}

.contact-success-modal-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #004a99 0%, #00aeef 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-success-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #004a99;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.contact-success-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    border: none;
    background: linear-gradient(135deg, #004a99 0%, #0077cc 50%, #00aeef 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.contact-success-modal-btn:hover {
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.3);
}

body.contact-modal-open {
    overflow: hidden;
}

/* Email compose modal */
.email-modal[hidden] {
    display: none;
}

.email-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.email-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.email-modal-panel {
    position: relative;
    width: 100%;
    max-width: 28rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.75rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e2edf5;
    box-shadow: 0 24px 48px rgba(0, 74, 153, 0.15);
}

.email-modal-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    padding: 0.25rem;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
}

.email-modal-close:hover {
    color: #004a99;
}

.email-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #004a99;
    margin-bottom: 0.375rem;
}

.email-modal-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.email-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-modal-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #004a99;
    margin-bottom: 0.375rem;
}

.email-modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #004a99;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-modal-input:focus {
    outline: none;
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
}

.email-modal-textarea {
    resize: vertical;
    min-height: 6rem;
}

.email-modal-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    border: none;
    background: linear-gradient(135deg, #004a99 0%, #0077cc 50%, #00aeef 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.email-modal-submit:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.3);
}

.email-modal-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.email-modal-status {
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
}

.email-modal-status--error {
    color: #ef4444;
}

body.email-modal-open {
    overflow: hidden;
}

.captcha-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.captcha-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #004a99;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.captcha-question {
    flex-shrink: 0;
    min-width: 5.5rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    background: #f4f9fc;
    border: 1px solid #e2edf5;
    font-size: 0.875rem;
    font-weight: 600;
    color: #004a99;
    text-align: center;
}

.captcha-input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2edf5;
    font-size: 0.875rem;
    color: #004a99;
}

.captcha-input:focus {
    outline: none;
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
}

.captcha-refresh {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2edf5;
    background: #fff;
    color: #004a99;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.captcha-refresh:hover {
    background: #e8f6fc;
    border-color: #b8dff0;
}

.captcha-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.email-modal-form .captcha-input,
#contact-form .captcha-input {
    width: 100%;
}

#contact-form .captcha-row {
    flex-wrap: wrap;
}

#contact-form .captcha-question {
    flex: 1;
    min-width: 6rem;
}

/* Forum / alarm notice modal */
.forum-ended-modal[hidden] {
    display: none;
}

.forum-ended-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.forum-ended-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.forum-ended-modal-panel {
    position: relative;
    width: 100%;
    max-width: 28rem;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #e2edf5;
    box-shadow: 0 24px 48px rgba(0, 74, 153, 0.18);
}

.forum-ended-modal-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    padding: 0.25rem;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 0;
}

.forum-ended-modal-close:hover {
    color: #004a99;
}

.forum-ended-modal-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: #e8f6fc;
    color: #004a99;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.forum-ended-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #004a99;
    text-align: center;
    margin-bottom: 0.5rem;
}

.forum-ended-modal-desc {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.forum-notice-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.forum-notice-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #004a99;
    margin-bottom: 0.375rem;
}

.forum-notice-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2edf5;
    font-size: 0.875rem;
    color: #004a99;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forum-notice-input:focus {
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
}

.forum-notice-input::placeholder {
    color: #94a3b8;
}

.forum-notice-submit {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 9999px;
    border: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #004a99 0%, #00aeef 100%);
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.forum-notice-submit:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.forum-notice-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.forum-notice-status {
    min-height: 1.25rem;
    font-size: 0.8125rem;
    text-align: center;
    color: #00aeef;
}

.forum-notice-status--error {
    color: #ef4444;
}

.forum-notice-privacy {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
}

body.forum-modal-open {
    overflow: hidden;
}

.forum-notice-success-desc {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
    margin: -0.5rem 0 1.25rem;
}

.auth-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 110;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    background: #004a99;
    color: #fff;
    font-size: 0.875rem;
    border: 1px solid rgba(0, 174, 239, 0.3);
    box-shadow: 0 8px 24px rgba(0, 74, 153, 0.2);
}

.auth-toast[hidden] {
    display: none;
}

/* Visitor stats (homepage) — 3-column dashboard */
.visitor-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .visitor-dashboard {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        align-items: stretch;
    }
}

.visitor-panel {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d6e6f2;
    border-radius: 1rem;
    padding: 1.25rem 1.125rem;
    min-height: 22rem;
    box-shadow: 0 2px 16px rgba(0, 74, 153, 0.07);
    overflow: hidden;
}

.visitor-panel-head {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef4f8;
}

.visitor-panel-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #004a99;
    line-height: 1.4;
}

.visitor-panel-sub {
    font-weight: 500;
    color: #94a3b8;
    font-size: 0.8125rem;
}

.visitor-panel-desc {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    color: #94a3b8;
    line-height: 1.4;
}

.visitor-chart-wrap {
    position: relative;
    flex: 1;
    min-height: 7.5rem;
    max-height: 9rem;
    margin-bottom: 0.75rem;
}

.visitor-panel-stats {
    margin-top: auto;
    padding-top: 0.875rem;
    border-top: 1px solid #eef4f8;
    display: grid;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.visitor-panel-stats div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.visitor-panel-stats dt {
    color: #94a3b8;
    font-weight: 500;
}

.visitor-panel-stats dd {
    color: #004a99;
    font-weight: 600;
}

.visitor-stat-highlight {
    color: #00aeef;
}

.visitor-stat-sep {
    color: #cbd5e1;
    margin: 0 0.125rem;
}

.visitor-stat-muted {
    color: #94a3b8;
    font-weight: 500;
}

/* 알림 신청 패널 */
.visitor-stat-hero {
    text-align: center;
    padding: 0.75rem 0 1rem;
    border-bottom: 1px solid #eef4f8;
}

.visitor-stat-hero-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00aeef;
    line-height: 1.1;
    text-shadow: 0 0 24px rgba(0, 174, 239, 0.2);
}

.visitor-stat-hero-label {
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    color: #94a3b8;
}

.visitor-stat-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eef4f8;
}

.visitor-stat-split-item {
    text-align: center;
}

.visitor-stat-split-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #004a99;
    line-height: 1.2;
}

.visitor-stat-split-value--accent {
    color: #e879a8;
}

.visitor-stat-split-label {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    color: #94a3b8;
}

.visitor-stat-bottom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
    margin-top: auto;
}

.visitor-stat-bottom-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #004a99 0%, #00aeef 100%);
    color: #fff;
}

.visitor-stat-bottom-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f97316;
    line-height: 1.2;
}

.visitor-stat-bottom-label {
    font-size: 0.6875rem;
    color: #94a3b8;
    margin-top: 0.125rem;
}

/* 알림 신청 통합 패널 (포럼 + 새 기사) */
.visitor-panel--notify .visitor-panel-head {
    margin-bottom: 0.625rem;
    padding-bottom: 0.5rem;
}

.visitor-notify-table {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    border: 1px solid #e8f0f5;
    border-radius: 0.625rem;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfdfe 0%, #fff 100%);
}

.visitor-notify-table-row {
    display: grid;
    grid-template-columns: 3.25rem 1fr 1fr;
    align-items: center;
    min-height: 2rem;
    border-top: 1px solid #eef4f8;
}

.visitor-notify-table--triple .visitor-notify-table-row {
    grid-template-columns: 3.25rem 1fr 1fr 1fr;
}

.visitor-notify-table-row:first-child {
    border-top: none;
}

.visitor-notify-table-row--head {
    min-height: 1.75rem;
    background: #f3f9fc;
}

.visitor-notify-table-label,
.visitor-notify-table-col,
.visitor-notify-table-num {
    padding: 0.375rem 0.5rem;
    text-align: center;
}

.visitor-notify-table-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: left;
    padding-left: 0.625rem;
    border-right: 1px solid #eef4f8;
    background: rgba(248, 251, 253, 0.6);
}

.visitor-notify-table-col {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #004a99;
}

.visitor-notify-table-num {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #004a99;
    line-height: 1.2;
}

.visitor-notify-table-row--hero {
    min-height: 2.75rem;
    background: rgba(0, 174, 239, 0.04);
}

.visitor-notify-table-num--hero {
    font-size: 1.75rem;
    font-weight: 700;
    color: #00aeef;
    text-shadow: 0 0 16px rgba(0, 174, 239, 0.15);
}

.visitor-notify-table-num--accent {
    color: #e879a8;
}

.visitor-notify-table-row--today {
    background: rgba(249, 115, 22, 0.04);
}

.visitor-notify-table-num--today {
    color: #f97316;
}

.visitor-notify-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.visitor-notify-actions--triple {
    grid-template-columns: 1fr 1fr 1fr;
}

.visitor-notify-btn {
    display: block;
    padding: 0.5rem 0.375rem;
    border-radius: 9999px;
    border: 1px solid #cce8f5;
    background: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #0077cc;
    text-align: center;
    text-decoration: none;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.visitor-notify-btn:hover {
    background: #e8f6fc;
    border-color: #00aeef;
    color: #004a99;
}

.visitor-notify-btn--link {
    background: linear-gradient(135deg, #004a99 0%, #0077cc 55%, #00aeef 100%);
    border-color: transparent;
    color: #fff;
}

.visitor-notify-btn--link:hover {
    background: linear-gradient(135deg, #003d7a 0%, #0066aa 55%, #0099cc 100%);
    border-color: transparent;
    color: #fff;
}

/* 회원 통계 패널 */
.visitor-member-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.visitor-member-hero {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eef4f8;
}

.visitor-member-count {
    font-size: 3rem;
    font-weight: 700;
    color: #00aeef;
    line-height: 1;
    text-shadow: 0 0 28px rgba(0, 174, 239, 0.25);
}

.visitor-member-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.visitor-member-cards {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

.visitor-member-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid #e8f0f5;
    border-radius: 0.75rem;
    background: #f8fbfd;
}

.visitor-member-card-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.visitor-member-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #004a99;
}

.visitor-member-card-value {
    font-size: 0.75rem;
    color: #00aeef;
    font-weight: 600;
    margin-top: 0.125rem;
}

.visitor-member-card-desc {
    font-size: 0.6875rem;
    color: #94a3b8;
    margin-top: 0.125rem;
}

.visitor-panel-link {
    display: block;
    margin-top: auto;
    padding-top: 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #00aeef;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

button.visitor-panel-link {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
}

.visitor-panel-link:hover {
    color: #004a99;
}

@media (max-width: 767px) {
    .header-main {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 0.5rem;
        row-gap: 0.5rem;
        padding-top: 0.5rem;
        padding-bottom: 0.625rem;
    }

    .header-utilities {
        display: contents;
    }

    .header-utilities .auth-toolbar-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        gap: 0.25rem;
        min-width: 0;
        max-width: 100%;
    }

    .auth-user-menu {
        min-width: 0;
        max-width: 100%;
    }

    .auth-btn-user {
        min-width: 0;
        max-width: 100%;
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }

    .auth-btn-user .auth-user-label {
        max-width: 4.75rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.75rem;
    }

    .auth-toolbar-actions .auth-btn:not(.auth-btn-user) {
        padding: 0.4375rem 0.375rem;
        flex-shrink: 0;
    }

    .header-utilities .auth-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 2.875rem;
        padding: 0.5rem 0.5rem 0.5rem 1rem;
        gap: 0.625rem;
    }

    .header-utilities .auth-search-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }

    .header-utilities .auth-search-input {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .header-utilities .auth-search-input::placeholder {
        font-size: 0.875rem;
    }

    .header-utilities .auth-search-submit {
        width: 2.25rem;
        height: 2.25rem;
    }

    .header-utilities .auth-search-submit svg {
        width: 1rem;
        height: 1rem;
    }

    .header-main > a:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    #mobile-menu-btn {
        grid-column: 3;
        grid-row: 1;
        flex-shrink: 0;
    }

    .auth-btn {
        padding: 0.4375rem 0.5rem;
    }
}
