/* =========================================================
   HERO ONLINE
========================================================= */

.hero-full {
    position: relative;
    width: 100%;
    min-height: 560px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 20%, rgba(56, 189, 248, 0.26), transparent 22%),
        radial-gradient(circle at 86% 12%, rgba(255, 90, 31, 0.22), transparent 20%),
        radial-gradient(circle at 76% 78%, rgba(6, 182, 212, 0.18), transparent 24%),
        linear-gradient(135deg, #071a36 0%, #0b2a52 38%, #123c73 70%, #1d4ed8 100%);
    box-shadow: inset 0 -40px 80px rgba(8, 22, 46, 0.22);
}

.hero-full::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
}

.hero-online-inner {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 42px 0 65px;
}

.hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: 32px;
    align-items: center;
}

.hero-copy {
    color: #fff;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    margin-bottom: 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .2px;
}

.hero-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 800;
    line-height: 1.08;
}

.hero-highlight {
    color: #ffd3bf;
}

.hero-desc {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 1rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-hero {
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 700;
    transition: all .2s ease;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--brand-orange) 0%, #ff7a45 100%);
    border: none;
    color: #fff;
    box-shadow: 0 14px 28px rgba(255, 90, 31, 0.32);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 18px 34px rgba(255, 90, 31, 0.38);
}

.btn-hero-secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    color: #fff;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-2px);
}

.hero-side {
    display: grid;
    gap: 14px;
}

.glass-card {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 34px rgba(17, 12, 44, 0.18);
    color: #fff;
}

.glass-card-title {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.80);
    font-size: .90rem;
    font-weight: 600;
}

.glass-card-value {
    margin-bottom: 6px;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.glass-card-note {
    color: rgba(255, 255, 255, 0.82);
    font-size: .88rem;
    line-height: 1.65;
}

.status-card-simple {
    padding: 18px 18px 16px;
}

.status-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.status-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.status-dot {
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.is-open {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}

.status-dot.is-closed {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}

.status-title-simple {
    margin-top: 2px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.status-label-simple {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: .80rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-label-simple.is-open {
    color: #bbf7d0;
}

.status-label-simple.is-closed {
    color: #fecaca;
}

.status-desc-simple {
    color: rgba(255, 255, 255, 0.84);
    font-size: .90rem;
    line-height: 1.7;
    margin: 0 0 10px 20px;
}

.status-period-simple {
    color: rgba(255, 255, 255, 0.88);
    font-size: .88rem;
    line-height: 1.6;
    margin-left: 20px;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mini-glass-card .glass-card-value {
    font-size: 1.45rem;
}

.mini-glass-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.mini-glass-icon {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.05rem;
}

@media (max-width: 1199.98px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
        gap: 24px;
    }

    .hero-title {
        font-size: clamp(2rem, 3.6vw, 3rem);
    }

    .hero-desc {
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .hero-full {
        min-height: auto;
    }

    .hero-online-inner {
        min-height: auto;
        padding: 38px 0 30px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-side {
        gap: 16px;
    }
}

@media (max-width: 767.98px) {
    .hero-online-inner {
        padding: 32px 0 24px;
    }

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

    .hero-desc {
        font-size: .96rem;
        line-height: 1.75;
    }

    .hero-actions {
        flex-direction: column;
    }

    @media (max-width: 767.98px) {

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-hero {
        width: 100%;
        justify-content: flex-start; /* 👈 ชิดซ้าย */
        text-align: left;            /* 👈 เผื่อบาง browser */
        padding-left: 18px;
    }

    .hero-actions .btn-hero i {
        width: 20px; /* ทำให้ icon ตรงกันทุกปุ่ม */
        text-align: center;
    }

}

    .status-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .status-title-simple {
        font-size: 1.20rem;
    }

    .status-desc-simple,
    .status-period-simple {
        margin-left: 20px;
    }

    .hero-mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .hero-tag {
        font-size: .82rem;
        padding: 8px 14px;
    }

    .glass-card,
    .status-card-simple {
        padding: 16px;
    }

    .status-title-simple {
        font-size: 1.12rem;
    }

    .status-desc-simple {
        font-size: .86rem;
    }

    .status-period-simple {
        font-size: .84rem;
    }

    .mini-glass-card .glass-card-value {
        font-size: 1.30rem;
    }
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    color: #fff;
    font-size: .90rem;
    font-weight: 500;
}

.hero-meta-link {
    text-decoration: none;
    background: linear-gradient(135deg, var(--brand-orange) 0%, #ff7a45 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(255, 90, 31, 0.20);
    transition: all .2s ease;
    min-width: 204px;
}

.hero-meta-link i {
    color: #fff;
}

.hero-meta-link:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 90, 31, 0.28);
}


/* ===== HERO META / ACTIONS UNIFY ===== */

.hero-meta-item,
.hero-meta-link,
.btn-hero {
    font-weight: 400 !important;
    letter-spacing: 0.2px;
}

/* ถ้าอยากให้ปุ่มเด่นกว่า */
.btn-hero-primary {
    font-weight: 400 !important;
}

/* =========================================================
   ADMIN BUTTON ONLY
========================================================= */
.btn-hero-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 12px 28px;
    border-radius: 999px;

    background: transparent;
    color: #eaf3ff;

    border: 1.6px solid rgba(120, 180, 255, 0.7);

    font-weight: 500;
    letter-spacing: 0.3px;

    line-height: 1;
    backdrop-filter: blur(6px);

    transition: all 0.25s ease;
}

/* hover เฉพาะ admin */
.btn-hero-admin:hover {
    transform: translateY(-1px);

    background: rgba(10, 40, 90, 0.45); /* น้ำเงินเข้ม */
    border-color: rgba(120, 180, 255, 0.9);
    color: #ffffff;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* icon ขยับ เฉพาะ admin */
.btn-hero-admin i {
    transition: transform 0.25s ease;
}

.btn-hero-admin:hover i {
    transform: translateX(2px);
}

@media (max-width: 767.98px) {
    .hero-actions .btn-hero,
    .hero-actions .btn-hero-admin {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        padding: 12px 20px;
        line-height: 1.5; /* ให้เท่าปุ่ม bootstrap */
    }

    .hero-actions .btn-hero i,
    .hero-actions .btn-hero-admin i {
        width: 20px;
        text-align: center;
    }
}

.btn-hero,
.btn-hero-primary,
.btn-hero-secondary,
.btn-hero-admin {
    border-radius: 14px;
}