/* ============================================================
   CLB PICKLEBALL DOANH NHÂN TRẺ VIỆT NAM – Custom Styles
   ============================================================ */

:root {
  --primary: #0b7a45;
  --primary-dark: #055f35;
  --primary-light: #11a05b;
  --accent: #f8c93e;
  --accent-dark: #d9ab2f;
  --cta: #e53935;
  --cta-dark: #bf2622;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --bg-light: #f6faf7;
  --border-color: #dce7df;
  --card-shadow: 0 4px 20px rgba(11,122,69,.1);
  --font: 'Be Vietnam Pro', sans-serif;
}

/* ---- Reset & Base ---- */
html { font-size: 15px; position: relative; min-height: 100%; }
body { font-family: var(--font); color: var(--text-dark); background: #fff; margin: 0; }

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(11,122,69,.28);
}

/* ---- Bootstrap Overrides ---- */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-light);
  border-color: var(--primary-light);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: #04663a;
  color: rgba(255,255,255,.8);
  font-size: 0.8rem;
}
.top-bar .top-bar-social {
  color: rgba(255,255,255,.7);
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  font-size: 0.7rem;
  text-decoration: none;
  transition: all .2s;
}
.top-bar .top-bar-social:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.1); z-index: 1030; }
.site-header .navbar { padding: 0.6rem 0; }
.site-header .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem !important;
  position: relative;
  transition: color .2s;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--primary) !important; }
.site-header .nav-link::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: -0.45rem;
  height: 3px;
  background: var(--primary);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s;
}
.site-header .nav-link:hover::before,
.site-header .nav-link.active::before { transform: scaleX(1); }
.site-header .nav-item.dropdown > .nav-link::after {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  content: "▾";
  font-size: 0.7em;
  border: none;
}
.site-header .dropdown-menu {
  border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-radius: 8px;
  padding: 0.5rem 0;
}
.site-header .dropdown-item {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  color: var(--text-dark);
  transition: background .15s;
}
.site-header .dropdown-item:hover { background: var(--bg-light); color: var(--primary); }

.site-header .navbar-toggler {
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: .35rem .55rem;
}

.site-header .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(11,122,69,.2);
}

.site-header .navbar-toggler-icon {
    width: 1.15rem;
    height: 1.15rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815,23,42,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Logo */
.logo-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.logo-icon img{
    max-height:60px;
}
    .logo-icon-sm {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .logo-text {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .logo-title {
        font-size: 0.75rem;
        font-weight: 800;
        color: var(--primary);
        letter-spacing: 0.5px;
    }

    .logo-subtitle {
        font-size: 0.6rem;
        font-weight: 600;
        color: var(--accent);
        letter-spacing: 0.3px;
    }
    /* ============================================================
   HERO / BANNER
   ============================================================ */
    .hero-section {
        position: relative;
        min-height: 320px;
        background: linear-gradient(135deg, #07713f 0%, #045d34 58%, #024427 100%);
        overflow: hidden;
        display: flex;
        align-items: center;
    }

        .hero-section::before {
            content: '';
            position: absolute;
            inset: 0;
            opacity: 0.2;
        }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(6,102,58,.95) 0%, rgba(6,102,58,.6) 60%, transparent 100%);
    }

    .hero-content {
        position: relative;
        z-index: 2;
        color: #fff;
    }

    .hero-split {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 2rem;
    }

    .hero-copy {
        flex: 1 1 65%;
        max-width: 750px;
        max-height: 360px;
    }

    .hero-event-carousel {
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
        background: #031f13;
        max-height: 320px;
    }

    .hero-carousel-card {
        position: relative;
        min-height: 320px;
        height: 320px;
    }

    .hero-carousel-image {
        width: 100%;
        height: 320px;
        object-fit: cover;
        display: block;
    }

    .hero-carousel-overlay {
        inset: 0;
        background: linear-gradient(90deg, rgba(2, 36, 22, .92) 0%, rgba(2, 36, 22, .72) 48%, rgba(2, 36, 22, .25) 100%);
    }

.hero-carousel-content {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: flex-start;
        padding: 1rem 1rem 2rem;
        flex-direction: column;
        justify-content: flex-end;
        gap: .55rem;
        z-index: 2;
    }

    .hero-carousel-content .hero-actions {
        margin-top: auto;
    }

    .hero-carousel-content .hero-title {
        margin-bottom: 0;
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .hero-carousel-content .hero-subtitle {
        margin-bottom: 0;
        max-width: 560px;
        font-size: .78rem;
        line-height: 1.35;
        opacity: .92;
    }

    .hero-meta-row {
        display: flex;
        flex-wrap: wrap;
        gap: .35rem .8rem;
        font-size: .74rem;
        color: rgba(255, 255, 255, .9);
    }

    .hero-carousel-indicators {
        margin-bottom: .45rem;
        z-index: 3;
    }

    .hero-carousel-indicators [data-bs-target] {
        width: 26px;
        height: 5px;
        border-radius: 999px;
        border: 0;
        margin: 0 4px;
        background-color: rgba(255, 255, 255, .48);
    }

    .hero-carousel-indicators .active {
        background-color: #ffffff;
    }

.hero-carousel-empty {
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    min-height: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem 1rem 2rem;
    gap: .55rem;
    background-image: url('/images/heroImage.jpg');
    box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
}

/* Hero countdown */
.hero-countdown-wrap {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.hero-countdown-label {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .75);
    text-transform: uppercase;
    padding: .2rem .55rem;
    background: rgba(0, 0, 0, .28);
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.hero-countdown {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.hero-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 2.6rem;
    background: rgba(0, 0, 0, .38);
    border-radius: 8px;
    padding: .35rem .5rem .25rem;
}

.hero-countdown-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-countdown-unit-label {
    font-size: .52rem;
    font-weight: 700;
    letter-spacing: .07em;
    color: rgba(255, 255, 255, .72);
    margin-top: .2rem;
    text-transform: uppercase;
}

.hero-countdown-sep {
    font-size: 1.4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .7);
    line-height: 1;
    margin-bottom: .6rem;
}

.hero-auth-frame {
    width: 100%;
}

/* ============================================================
   HOME AUTH SIDEBAR LAYOUT
   ============================================================ */
.home-shell {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
    gap: 1.25rem;
    align-items: start;
}

.home-main {
    min-width: 0;
}

.home-sidebar {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    min-width: 0;
    width: 100%;
}

.home-sidebar-modal-body {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    background: #f8fafc;
}

.home-sidebar-modal .modal-content {
    background: #f8fafc;
}

.home-side-card {
    border-radius: 14px;
    border: 1px solid rgba(11,122,69,.08);
}

.home-side-profile {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
}

.home-side-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(11,122,69,.12);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.home-side-links {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.home-side-link-item {
    font-size: .83rem;
    text-decoration: none;
    color: var(--text-dark);
    padding: .35rem .5rem;
    border-radius: 8px;
    background: #f8fafc;
}

.home-side-link-item:hover {
    color: var(--primary);
    background: #edf8f1;
}

.home-side-list li {
    font-size: .83rem;
    padding: .45rem 0;
    border-bottom: 1px solid rgba(15,23,42,.06);
}

.home-side-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 1199.98px) {
    .home-shell {
        grid-template-columns: minmax(0, 68fr) minmax(280px, 32fr);
    }
}

@media (max-width: 991.98px) {
    .home-shell {
        grid-template-columns: 1fr;
    }

    .home-sidebar {
        display: none;
    }
}
/*@keyframes slideBackground {
    from {
        background-position: 100% center;
    }

    to {
        background-position: 0% center;
    }
}

.hero-carousel-empty {
    background-size: 120% auto !important;*/ /* Increase size to allow sliding */
    /*animation: slideBackground 10s linear infinite;
}*/
    .hero-login-shell {
        flex: 0 0 360px;
        display: flex;
        justify-content: flex-end;
        align-self: stretch;
        z-index: 2;
    }

    .hero-login-shell .login-card {
        width: 100%;
        max-width: 360px;
        height: 100%;
        background: rgba(255,255,255,.98);
        color: var(--text-dark);
        border-radius: 16px;
        padding: .8rem .9rem .7rem;
        box-shadow: 0 14px 35px rgba(0,0,0,.18);
        overflow-y: auto;
    }

    .hero-login-shell .login-title {
        font-size: 1.05rem;
        font-weight: 800;
        color: #0f172a;
        letter-spacing: -.01em;
        margin-bottom: .1rem;
    }

    .hero-login-shell .login-subtitle {
        font-size: .67rem;
        color: #64748b;
        margin-bottom: .5rem;
    }

    .hero-login-shell .form-group {
        margin-bottom: .45rem;
    }

    .hero-login-shell .form-label {
        display: block;
        font-size: .68rem;
        font-weight: 600;
        color: #334155;
        margin-bottom: .2rem;
    }

    .hero-login-shell .input-wrap {
        display: flex;
        align-items: center;
        gap: .45rem;
        border: 1.5px solid #cbd5e1;
        border-radius: 8px;
        padding: .35rem .55rem;
        background: #f8fafc;
        transition: border-color .2s, box-shadow .2s;
    }

    .hero-login-shell .input-wrap:focus-within {
        border-color: #1e3a8a;
        box-shadow: 0 0 0 3px rgba(30,58,138,.08);
        background: #fff;
    }

    .hero-login-shell .input-wrap.is-invalid {
        border-color: #ef4444;
    }

    .hero-login-shell .input-wrap .icon {
        color: #94a3b8;
        font-size: .72rem;
        flex-shrink: 0;
    }

    .hero-login-shell .input-wrap input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-family: inherit;
        font-size: .74rem;
        color: #0f172a;
    }

    .hero-login-shell .input-wrap input::placeholder {
        color: #94a3b8;
    }

    .hero-login-shell .toggle-pw {
        background: none;
        border: none;
        cursor: pointer;
        color: #94a3b8;
        padding: 0;
        line-height: 1;
    }

    .hero-login-shell .toggle-pw:hover {
        color: #1e3a8a;
    }

    .hero-login-shell .form-row-check {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: .5rem;
    }

    .hero-login-shell .form-check {
        display: flex;
        align-items: center;
        gap: .25rem;
        cursor: pointer;
    }

    .hero-login-shell .form-check input[type=checkbox] {
        width: 13px;
        height: 13px;
        accent-color: #1e3a8a;
        cursor: pointer;
        flex-shrink: 0;
    }

    .hero-login-shell .form-check label {
        font-size: .68rem;
        color: #475569;
        cursor: pointer;
    }

    .hero-login-shell .forgot-link {
        font-size: .68rem;
        color: #1e3a8a;
        text-decoration: none;
        font-weight: 500;
    }

    .hero-login-shell .forgot-link:hover {
        text-decoration: underline;
    }

    .hero-login-shell .validation-summary {
        background: #fef2f2;
        border: 1px solid #fca5a5;
        border-radius: 8px;
        padding: .35rem .5rem;
        margin-bottom: .5rem;
        font-size: .68rem;
        color: #b91c1c;
    }

    .hero-login-shell .validation-summary ul {
        list-style: none;
    }

    .hero-login-shell .btn-login {
        width: 100%;
        padding: .45rem .55rem;
        font-size: .74rem;
        font-weight: 700;
        color: #fff;
        background: #1e3a8a;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        letter-spacing: .03em;
        transition: background .2s, transform .1s;
    }

    .hero-login-shell .btn-login:hover {
        background: #1e40af;
    }

    .hero-login-shell .btn-login:active {
        transform: scale(.99);
    }

    .hero-login-shell .btn-login:disabled {
        opacity: .65;
        cursor: not-allowed;
    }

    .hero-login-shell .or-separator {
        display: flex;
        align-items: center;
        gap: .75rem;
        margin: 1.5rem 0;
        color: #94a3b8;
        font-size: .8rem;
    }

    .hero-login-shell .or-separator::before,
    .hero-login-shell .or-separator::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e2e8f0;
    }

    .hero-login-shell .social-grid {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: .75rem;
        margin-bottom: 1.75rem;
    }

    .hero-login-shell .btn-social {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        padding: .6rem .5rem;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
        font-size: .82rem;
        font-weight: 600;
        color: #334155;
        text-decoration: none;
        transition: border-color .2s, box-shadow .2s;
    }

    .hero-login-shell .btn-social:hover {
        border-color: #93c5fd;
        box-shadow: 0 2px 8px rgba(0,0,0,.06);
    }

    .hero-login-shell .btn-social img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .hero-login-shell .register-row {
        text-align: center;
        font-size: .67rem;
        color: #64748b;
        margin-bottom: .35rem;
        margin-top: .35rem;
    }

    .hero-login-shell .register-row a {
        color: #1e3a8a;
        font-weight: 700;
        text-decoration: none;
    }

    .hero-login-shell .register-row a:hover {
        text-decoration: underline;
    }

    .hero-login-shell .secure-note {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .4rem;
        font-size: .62rem;
        color: #94a3b8;
        line-height: 1.2;
    }

    .hero-badge {
        display: inline-block;
        background: var(--cta);
        color: #fff;
        font-size: 0.62rem;
        font-weight: 700;
        padding: 3px 10px;
        border-radius: 50px;
        letter-spacing: 1px;
        margin-bottom: .35rem;
        text-transform: uppercase;
    }

    .hero-title {
        font-size: 2.8rem;
        font-weight: 800;
        line-height: 1.15;
        margin-bottom: 1rem;
    }

        .hero-title .accent {
            color: var(--accent);
        }

    .hero-subtitle {
        font-size: 1rem;
        opacity: .85;
        max-width: 480px;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .hero-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .btn-hero-primary {
        background: var(--cta);
        border: 2px solid var(--cta);
        color: #fff;
        font-weight: 700;
        padding: 0.38rem .85rem;
        font-size: .72rem;
        border-radius: 50px;
        transition: all .2s;
    }

        .btn-hero-primary:hover {
            background: var(--cta-dark);
            border-color: var(--cta-dark);
            color: #fff;
        }

    .btn-hero-outline {
        border: 2px solid rgba(255,255,255,.85);
        color: #fff;
        font-weight: 600;
        padding: 0.38rem .85rem;
        font-size: .72rem;
        border-radius: 50px;
        transition: all .2s;
        background: rgba(255,255,255,.08);
    }

        .btn-hero-outline:hover {
            border-color: #fff;
            background: rgba(255,255,255,.1);
            color: #fff;
        }
    
    /* Stats bar */
    .stats-bar {
        background: #fff;
        box-shadow: 0 -4px 24px rgba(0,0,0,.1), var(--card-shadow);
        border-radius: 12px;
        position: relative;
        z-index: 3;
        margin-top: -20px;
    }

    .stat-item {
        padding: 1.5rem 1rem;
        text-align: center;
    }

        .stat-item + .stat-item {
            border-left: 1px solid var(--border-color);
        }

    .stat-number {
        font-size: 2rem;
        font-weight: 800;
        color: var(--primary);
        line-height: 1;
    }

    .stat-label {
        font-size: 0.8rem;
        color: var(--text-muted);
        margin-top: 4px;
    }
    /* ============================================================
   SECTION COMMONS
   ============================================================ */
    .section-badge {
        display: inline-block;
        background: rgba(11,122,69,.1);
        color: var(--primary);
        font-size: 0.75rem;
        font-weight: 700;
        padding: 4px 14px;
        border-radius: 50px;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-bottom: 0.75rem;
    }

    .section-title {
        font-size: 1.85rem;
        font-weight: 800;
        color: var(--text-dark);
    }

        .section-title .accent {
            color: var(--accent);
        }

    .section-divider {
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        border-radius: 2px;
        margin: 0.75rem 0 1rem;
    }

        .section-divider.center {
            margin: 0.75rem auto 1rem;
        }
    /* ============================================================
   NEWS CARDS
   ============================================================ */
    .news-card {
        border: none;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--card-shadow);
        transition: transform .2s, box-shadow .2s;
        height: 100%;
    }

        .news-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(11,122,69,.18);
        }

        .news-card .card-img-top {
            height: 200px;
            object-fit: cover;
        }

        .news-card .card-body {
            padding: 1.25rem;
        }

        .news-card .news-date {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .news-card .card-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-dark);
            line-height: 1.4;
        }

    .news-tag {
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 600;
        padding: 2px 10px;
        border-radius: 50px;
        background: rgba(11,122,69,.12);
        color: var(--primary);
        margin-bottom: 0.5rem;
    }
    /* ============================================================
   SPONSOR LOGOS
   ============================================================ */
    .sponsor-bar {
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }

    .sponsor-logo {
        height: 65px;
        width: auto;
        max-width: 110px;
        object-fit: contain;
        transition: all .2s;
    }

        .sponsor-logo:hover {
            filter: none;
            opacity: 1;
        }
    /* ============================================================
   TOURNAMENT SECTION
   ============================================================ */
    .tournament-card {
        border: none;
        border-radius: 12px;
        background: #fff;
        box-shadow: var(--card-shadow);
        overflow: hidden;
        transition: transform .2s;
    }

        .tournament-card:hover {
            transform: translateY(-3px);
        }

        .tournament-card .tc-header {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: #fff;
            padding: 1.25rem;
        }

        .tournament-card .tc-date {
            background: var(--cta);
            color: #fff;
            border-radius: 8px;
            padding: 0.5rem;
            text-align: center;
            min-width: 56px;
        }

    .tc-date .day {
        font-size: 1.5rem;
        font-weight: 800;
        line-height: 1;
    }

    .tc-date .month {
        font-size: 0.65rem;
        text-transform: uppercase;
    }

    .tournament-dashboard {
        background: linear-gradient(180deg, rgba(11,122,69,.04), rgba(11,122,69,0));
    }

    .tournament-kicker {
        max-width: 760px;
        color: var(--text-muted);
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .tournament-shell {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .tournament-filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
        align-items: flex-end;
        background: #fff;
        border-radius: 20px;
        padding: 1rem 1.2rem;
        box-shadow: var(--card-shadow);
        border: 1px solid rgba(11,122,69,.08);
    }

    .filter-bar-field {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        flex: 1;
        min-width: 160px;
    }

    .filter-bar-search {
        flex: 2;
        min-width: 240px;
    }

    .filter-bar-actions {
        display: flex;
        gap: 0.5rem;
        align-items: flex-end;
        padding-bottom: 1px;
    }

    .sidebar-card {
        background: #fff;
        border-radius: 20px;
        padding: 1.1rem;
        box-shadow: var(--card-shadow);
        border: 1px solid rgba(11,122,69,.08);
    }

    .sidebar-card-ghost {
        background: linear-gradient(180deg, rgba(11,122,69,.06), rgba(11,122,69,.02));
    }

    .sidebar-title {
        font-size: 0.92rem;
        font-weight: 800;
        color: var(--text-dark);
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: .6px;
    }

    .tournament-search-group .input-group-text {
        background: #fff;
        border-color: var(--border-color);
        color: var(--text-muted);
        border-radius: 12px 0 0 12px;
    }

    .tournament-search-group .form-control {
        border-left: 0;
        border-radius: 0 12px 12px 0;
    }

    .tournament-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

    .tournament-status-tabs .nav-link {
        border-radius: 999px;
        padding: 0.6rem 1rem;
        font-weight: 700;
        background: #fff;
        border: 1px solid rgba(11,122,69,.12);
        color: var(--text-dark);
        box-shadow: 0 2px 10px rgba(11,122,69,.06);
    }

    .tournament-status-tabs .nav-link.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .tournament-count-label {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--primary);
        background: rgba(11,122,69,.08);
        border-radius: 999px;
        padding: 0.55rem 0.9rem;
    }

    .tournament-result-host {
        min-height: 220px;
    }

    .tournament-loading {
        text-align: center;
        color: var(--text-muted);
        padding: 2rem 1rem;
        background: rgba(255,255,255,.75);
        border: 1px dashed rgba(11,122,69,.18);
        border-radius: 18px;
    }

    .tournament-workflow-section {
        background: linear-gradient(180deg, rgba(11,122,69,.03), rgba(11,122,69,0));
    }

    .workflow-panel {
        background: #fff;
        border: 1px solid rgba(11,122,69,.08);
        border-radius: 24px;
        padding: 1.5rem;
        box-shadow: var(--card-shadow);
    }

    .workflow-intro {
        max-width: 760px;
        color: var(--text-muted);
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .workflow-approval-note {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        max-width: 320px;
        padding: 1rem 1.1rem;
        border-radius: 18px;
        background: rgba(11,122,69,.08);
        color: var(--primary-dark);
        font-size: 0.92rem;
        font-weight: 700;
        line-height: 1.55;
    }

    .workflow-approval-note i {
        color: var(--primary);
        font-size: 1.1rem;
        margin-top: 0.15rem;
        flex-shrink: 0;
    }

    .workflow-steps {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    .workflow-step {
        height: 100%;
        padding: 1.25rem;
        border-radius: 20px;
        background: linear-gradient(180deg, #f9fcfa 0%, #fff 100%);
        border: 1px solid rgba(11,122,69,.1);
        box-shadow: 0 10px 24px rgba(11,122,69,.05);
    }

    .workflow-step-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .workflow-step-index {
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--primary);
        color: #fff;
        font-size: 0.95rem;
        font-weight: 800;
        flex-shrink: 0;
    }

    .workflow-step-icon {
        width: 3rem;
        height: 3rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: rgba(11,122,69,.08);
        color: var(--primary);
        font-size: 1rem;
    }

    .workflow-step h3 {
        margin: 0.9rem 0 0.5rem;
        font-size: 1rem;
        font-weight: 800;
        color: var(--text-dark);
    }

    .workflow-step p {
        margin: 0;
        color: var(--text-muted);
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .workflow-step.is-emphasis {
        border-color: rgba(248,201,62,.55);
        background: linear-gradient(180deg, rgba(248,201,62,.14), #fff);
    }

    .workflow-step.is-emphasis .workflow-step-index {
        background: var(--accent-dark);
        color: #fff;
    }

    .workflow-step.is-emphasis .workflow-step-icon {
        background: rgba(248,201,62,.24);
        color: #8a6700;
    }

    .workflow-side-card {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        border-radius: 24px;
        background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
        box-shadow: var(--card-shadow);
        color: #fff;
    }

    .workflow-side-badge {
        display: inline-flex;
        align-self: flex-start;
        align-items: center;
        border-radius: 999px;
        padding: 0.35rem 0.8rem;
        background: rgba(255,255,255,.16);
        color: rgba(255,255,255,.9);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: .6px;
        text-transform: uppercase;
    }

    .workflow-side-title {
        font-size: 1.35rem;
        font-weight: 800;
        margin: 0;
    }

    .workflow-side-description {
        margin: 0;
        color: rgba(255,255,255,.85);
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .workflow-side-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .workflow-side-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        font-size: 0.95rem;
        line-height: 1.6;
        color: rgba(255,255,255,.92);
    }

    .workflow-side-list i {
        margin-top: 0.2rem;
        color: var(--accent);
        flex-shrink: 0;
    }

    .workflow-side-action {
        margin-top: auto;
        border-radius: 999px;
        font-weight: 800;
        color: var(--primary-dark);
    }

    .workflow-side-action:hover,
    .workflow-side-action:focus {
        color: var(--primary-dark);
    }

    @media (max-width: 991.98px) {
        .workflow-approval-note {
            max-width: none;
        }

        .workflow-steps {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 575.98px) {
        .workflow-panel,
        .workflow-side-card {
            padding: 1.25rem;
            border-radius: 20px;
        }

        .workflow-steps {
            grid-template-columns: 1fr;
        }
    }

    .group-card {
        display: grid;
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 0;
        background: #fff;
        border-radius: 22px;
        overflow: hidden;
        box-shadow: var(--card-shadow);
        border: 1px solid rgba(11,122,69,.08);
    }

    .group-card-media {
        position: relative;
        min-height: 280px;
        background: #0f4f32;
    }

    .group-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: saturate(1.05);
    }

    .group-card-media-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.45) 100%);
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 1.1rem;
        gap: 0.35rem;
    }

    .group-status-pill {
        align-self: flex-start;
        background: #e11d48;
        border-radius: 999px;
        padding: 0.28rem 0.65rem;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .6px;
    }

    .group-card-overlay-title {
        font-size: 1.3rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .group-card-overlay-meta {
        font-size: 0.8rem;
        opacity: .88;
    }

    .group-card-body {
        padding: 1.2rem;
        display: flex;
        flex-direction: column;
        gap: 0;
        min-width: 0;
    }

    .group-summary {
        padding-bottom: 0.9rem;
        border-bottom: 1px solid rgba(11,122,69,.1);
        margin-bottom: 0.9rem;
    }

    .group-summary-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 0.45rem;
    }

    .group-summary-kicker {
        font-size: 0.68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .9px;
        color: var(--primary);
        margin-bottom: 0.2rem;
    }

    .group-card-name {
        margin: 0 0 0.3rem;
        font-size: 1.05rem;
        font-weight: 800;
        line-height: 1.25;
    }

    .group-detail-btn {
        border-radius: 999px;
        font-weight: 700;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .group-summary-desc {
        font-size: 0.85rem;
        color: var(--text-muted);
        margin: 0 0 0.65rem;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .group-summary-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem 1.1rem;
        font-size: 0.82rem;
        color: var(--text-muted);
    }

    .group-meta-item {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .group-events-section {
        flex: 1;
        min-width: 0;
    }

    .group-events-label {
        font-size: 0.68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .9px;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
    }

    .group-events-table {
        font-size: 0.82rem;
    }

        .group-events-table thead th {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-muted);
            border-bottom: 1px solid rgba(11,122,69,.15);
            padding: 0.4rem 0.55rem;
            white-space: nowrap;
            background: transparent;
        }

        .group-events-table tbody td {
            padding: 0.45rem 0.55rem;
            vertical-align: middle;
            border-bottom: 1px solid rgba(11,122,69,.06);
        }

    .tournament-name-cell {
        font-weight: 600;
        min-width: 140px;
    }

    .skill-level-badge {
        display: inline-block;
        border-radius: 999px;
        background: rgba(11,122,69,.12);
        color: var(--primary);
        font-weight: 800;
        font-size: 0.78rem;
        padding: 0.15rem 0.55rem;
    }

    .status-chip {
        border-radius: 999px;
        background: rgba(11,122,69,.08);
        color: var(--primary);
        font-weight: 700;
        padding: 0.18rem 0.55rem;
        font-size: 0.78rem;
    }

    .tournament-register-btn {
        border-radius: 999px;
        font-weight: 700;
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.25rem 0.65rem;
    }

    .tournament-detail-btn {
        border-radius: 999px;
        font-weight: 700;
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.25rem 0.75rem;
    }

    .tournament-register-btn:disabled,
    .tournament-register-btn[aria-disabled="true"] {
        opacity: .65;
        cursor: not-allowed;
        pointer-events: none;
    }

    /* Mobile Tournament Cards */
    .tournament-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .tournament-mobile-card {
        background: #fff;
        border: 1px solid rgba(11,122,69,.12);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,.05);
    }

    .tournament-mobile-card-header {
        padding: 0.75rem;
        background: rgba(11,122,69,.04);
        border-bottom: 1px solid rgba(11,122,69,.08);
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tournament-mobile-title {
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--text);
        flex: 1;
        line-height: 1.3;
    }

    .tournament-mobile-card-body {
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .tournament-mobile-info-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .tournament-mobile-label {
        color: var(--text-muted);
        font-weight: 600;
        flex-shrink: 0;
    }

    .tournament-mobile-card-footer {
        padding: 0.75rem;
        border-top: 1px solid rgba(11,122,69,.08);
        background: #fff;
    }

    .tournament-mobile-card-footer .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }

    .event-date-tabs {
        border-bottom: 1px solid rgba(11,122,69,.15);
        flex-wrap: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

        .event-date-tabs::-webkit-scrollbar {
            display: none;
        }

        .event-date-tabs .nav-link {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--text-muted);
            border: none;
            border-bottom: 2px solid transparent;
            border-radius: 0;
            padding: 0.5rem 0.9rem;
            background: transparent;
            white-space: nowrap;
        }

        .event-date-tabs .nav-link.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
            background: transparent;
        }

    .event-date-tab-content {
        border: 1px solid rgba(11,122,69,.1);
        border-top: none;
        border-radius: 0 0 10px 10px;
        overflow: hidden;
    }

    .partner-registration-modal {
        border: 0;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(15, 79, 50, .18);
    }

    .partner-registration-kicker {
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: .9px;
        text-transform: uppercase;
        color: var(--primary);
        margin-bottom: 0.2rem;
    }

    .partner-registration-target {
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(11,122,69,.08), rgba(11,122,69,.03));
        border: 1px solid rgba(11,122,69,.12);
        padding: 0.9rem 1rem;
        font-weight: 700;
        color: var(--text-dark);
    }

    .partner-registration-result {
        margin-top: 1rem;
        margin-bottom: 0;
        border-radius: 14px;
        font-size: 0.9rem;
    }


    @media (max-width: 991.98px) {
        .group-card {
            grid-template-columns: 1fr;
        }

        .group-card-media {
            min-height: 220px;
        }
    }

    @media (max-width: 575.98px) {
        .tournament-filter-bar {
            padding: 0.85rem 1rem;
        }

        .filter-bar-field,
        .filter-bar-search {
            min-width: 100%;
        }

        .tournament-toolbar {
            align-items: stretch;
        }

        .tournament-status-tabs {
            width: 100%;
        }

        .tournament-status-tabs .nav-item,
        .tournament-status-tabs .nav-link {
            width: 100%;
        }

        .group-events-table thead th,
        .group-events-table tbody td {
            padding: 0.4rem 0.4rem;
        }

        .tournament-register-btn {
            width: 100%;
        }
    }
    /* ============================================================
   RANKING TABLE
   ============================================================ */
    .ranking-table {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--card-shadow);
    }

        .ranking-table thead th {
            background: var(--primary);
            color: #fff;
            font-weight: 600;
            font-size: 0.85rem;
            border: none;
            padding: 0.85rem 1rem;
        }

        .ranking-table tbody td {
            padding: 0.85rem 1rem;
            font-size: 0.875rem;
            border-color: var(--border-color);
        }

        .ranking-table tbody tr:hover {
            background: var(--bg-light);
        }

    .rank-badge {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.8rem;
    }

    .rank-1 {
        background: #ffd700;
        color: #7a5c00;
    }

    .rank-2 {
        background: #c0c0c0;
        color: #555;
    }

    .rank-3 {
        background: #cd7f32;
        color: #fff;
    }

    .rank-n {
        background: var(--bg-light);
        color: var(--text-muted);
    }
    /* Member badges */
    .badge-member {
        background: #dee2e6;
        color: #495057;
    }

    .badge-silver {
        background: linear-gradient(135deg,#c0c0c0,#e8e8e8);
        color: #555;
    }

    .badge-gold {
        background: linear-gradient(135deg,#f5a623,#ffd700);
        color: #7a5c00;
    }

    .badge-platinum {
        background: linear-gradient(135deg,#0b7a45,#0ea85f);
        color: #fff;
    }
    /* ============================================================
   MEMBER PORTAL
   ============================================================ */
    .portal-sidebar {
        background: var(--primary);
        color: #fff;
        min-height: 100vh;
        padding: 1.5rem 0;
    }

        .portal-sidebar .nav-link {
            color: rgba(255,255,255,.75) !important;
            padding: 0.65rem 1.5rem;
            font-size: 0.875rem;
            font-weight: 500;
            border-left: 3px solid transparent;
            transition: all .2s;
        }

            .portal-sidebar .nav-link:hover,
            .portal-sidebar .nav-link.active {
                color: #fff !important;
                background: rgba(255,255,255,.1);
                border-left-color: var(--accent);
            }

            .portal-sidebar .nav-link i {
                width: 20px;
                text-align: center;
                margin-right: 8px;
            }
    /* ============================================================
   REGISTRATION FORM
   ============================================================ */
    /* Hero banner for registration page */
    .reg-hero {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #034325 100%);
        background-image: linear-gradient(135deg, rgba(11,122,69,.92) 0%, rgba(4,76,43,.95) 60%), url('/images/reg-hero-bg.jpg');
        background-size: cover;
        background-position: center;
        border-bottom: 3px solid var(--accent);
    }

    .reg-sidebar {
        background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
        min-height: 100vh;
        padding: 3rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

        .reg-sidebar .reg-benefit {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 1.5rem;
        }

        .reg-sidebar .benefit-icon {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            background: rgba(255,255,255,.12);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            color: var(--accent);
            flex-shrink: 0;
        }

        .reg-sidebar h5 {
            color: #fff;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

        .reg-sidebar p {
            color: rgba(255,255,255,.75);
            font-size: 0.85rem;
            margin: 0;
        }

    .reg-main {
        padding: 3rem 2.5rem;
        background: #fff;
    }

    .form-section-title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary);
        border-left: 4px solid var(--accent);
        padding-left: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .form-label {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 0.35rem;
    }

    .form-control, .form-select {
        font-size: 0.875rem;
        border-color: var(--border-color);
        border-radius: 8px;
        padding: 0.55rem 0.85rem;
    }

        .form-control:focus, .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 0.15rem rgba(11,122,69,.16);
        }

    .upload-box {
        border: 2px dashed var(--border-color);
        border-radius: 12px;
        padding: 1.5rem;
        text-align: center;
        cursor: pointer;
        transition: border-color .2s;
        background: var(--bg-light);
    }

        .upload-box:hover {
            border-color: var(--primary);
        }

        .upload-box i {
            font-size: 2rem;
            color: var(--text-muted);
        }
    /* ============================================================
   ABOUT / INTRO PAGE
   ============================================================ */
    .page-hero {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: #fff;
        padding: 3.5rem 0 2rem;
    }

        .page-hero h1 {
            font-size: 2.2rem;
            font-weight: 800;
        }

        .page-hero .breadcrumb {
            --bs-breadcrumb-divider-color: rgba(255,255,255,.5);
        }

        .page-hero .breadcrumb-item {
            color: rgba(255,255,255,.75);
            font-size: 0.85rem;
        }

            .page-hero .breadcrumb-item.active {
                color: #fff;
            }

            .page-hero .breadcrumb-item + .breadcrumb-item::before {
                color: rgba(255,255,255,.5);
            }

            /* ============================================================
               GIAI DAU DETAILS PAGE
               ============================================================ */
            .giai-dau-details-page {
                background: #f5f8f6;
                min-height: 100vh;
            }

            .giai-dau-details-hero {
                padding: 1.25rem 0 1rem;
            }

            .giai-dau-breadcrumb .breadcrumb-item,
            .giai-dau-breadcrumb .breadcrumb-item a {
                color: rgba(15, 23, 42, .65);
                text-decoration: none;
            }

            .giai-dau-breadcrumb .breadcrumb-item.active {
                color: var(--primary);
                font-weight: 600;
            }

            .giai-dau-hero-grid {
                display: grid;
                grid-template-columns: minmax(0, 1fr) 300px;
                gap: 1rem;
                align-items: start;
            }

            .giai-dau-hero-banner {
                position: relative;
                min-height: 410px;
                border-radius: 18px;
                overflow: hidden;
                box-shadow: 0 20px 40px rgba(15, 23, 42, .10);
                background: #0b1f16;
            }

            .giai-dau-hero-image {
                position: absolute;
                inset: 0;
                background-size: cover;
                background-position: center;
                transform: scale(1.02);
            }

            .giai-dau-hero-overlay {
                position: absolute;
                inset: 0;
                background: linear-gradient(90deg, rgba(3, 36, 22, .92) 0%, rgba(3, 36, 22, .68) 48%, rgba(3, 36, 22, .28) 100%);
            }

            .giai-dau-hero-content {
                position: relative;
                z-index: 2;
                color: #fff;
                padding: 2rem 2rem 1.5rem;
                display: flex;
                flex-direction: column;
                justify-content: flex-end;
                min-height: 410px;
                gap: .85rem;
                max-width: 760px;
            }

            .giai-dau-status-pill {
                align-self: flex-start;
                background: #0ea35f;
                color: #fff;
                border-radius: 999px;
                padding: .35rem .8rem;
                font-size: .72rem;
                font-weight: 800;
                letter-spacing: .6px;
                text-transform: uppercase;
            }

            .giai-dau-hero-content h1 {
                margin: 0;
                font-size: clamp(2rem, 4vw, 3.2rem);
                font-weight: 900;
                line-height: 1.05;
                text-transform: uppercase;
            }

            .giai-dau-hero-content h2 {
                margin: 0;
                font-size: clamp(1.15rem, 2.2vw, 1.7rem);
                font-weight: 900;
                color: #ffd86b;
                text-transform: uppercase;
                letter-spacing: .4px;
            }

            .giai-dau-hero-content p {
                margin: 0;
                max-width: 560px;
                color: rgba(255,255,255,.9);
                font-size: .92rem;
                line-height: 1.55;
            }

            .giai-dau-hero-meta {
                display: flex;
                flex-wrap: wrap;
                gap: .7rem 1.2rem;
                font-size: .85rem;
                color: rgba(255,255,255,.9);
            }

            .giai-dau-hero-meta span {
                display: inline-flex;
                align-items: center;
                gap: .45rem;
                white-space: nowrap;
            }

            .giai-dau-hero-actions {
                display: flex;
                gap: .75rem;
                flex-wrap: wrap;
            }

            .giai-dau-side-stack {
                display: flex;
                flex-direction: column;
                gap: 1rem;
            }

            .giai-dau-side-card {
                background: #fff;
                border-radius: 18px;
                box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
                border: 1px solid rgba(11, 122, 69, .08);
                padding: 1rem;
            }

            .organizer-card-head h3,
            .quick-action-card h3,
            .video-card h3,
            .news-card h3 {
                margin: 0;
                font-size: 1rem;
                font-weight: 800;
                color: #0f172a;
            }

            .organizer-logo {
                width: 56px;
                height: 56px;
                object-fit: cover;
                border-radius: 50%;
                border: 1px solid rgba(11,122,69,.12);
            }

            .organizer-contact ul {
                list-style: none;
                padding: 0;
                margin: 0;
                display: grid;
                gap: .45rem;
                font-size: .85rem;
                color: #334155;
            }

            .organizer-contact li {
                display: flex;
                gap: .5rem;
                align-items: center;
            }

            .quick-action-card .btn {
                border-radius: 12px;
                justify-content: flex-start;
            }

            .video-thumb {
                position: relative;
                border-radius: 14px;
                overflow: hidden;
                height: 150px;
                background: #0b1f16;
            }

            .video-thumb img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
                opacity: .92;
            }

            .video-play {
                position: absolute;
                inset: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1.25rem;
                color: #fff;
                background: rgba(15, 23, 42, .22);
            }

            .related-news-item {
                display: flex;
                gap: .7rem;
                text-decoration: none;
                color: inherit;
                padding: .55rem 0;
                border-top: 1px solid rgba(15, 23, 42, .06);
            }

            .related-news-item:first-of-type {
                border-top: 0;
                padding-top: 0;
            }

            .related-news-item img {
                width: 68px;
                height: 54px;
                object-fit: cover;
                border-radius: 10px;
                flex-shrink: 0;
            }

            .giai-dau-summary-strip {
                padding: 0 0 1rem;
            }

            .giai-dau-summary-grid {
                display: grid;
                grid-template-columns: repeat(5, minmax(0, 1fr));
                gap: .75rem;
            }

            .giai-dau-summary-card {
                background: #fff;
                border-radius: 16px;
                padding: 1rem;
                box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
                border: 1px solid rgba(11, 122, 69, .08);
                min-height: 132px;
            }

            .summary-card-icon {
                width: 34px;
                height: 34px;
                border-radius: 50%;
                background: rgba(11,122,69,.10);
                color: var(--primary);
                display: inline-flex;
                align-items: center;
                justify-content: center;
                margin-bottom: .6rem;
            }

            .summary-card-kicker {
                font-size: .68rem;
                font-weight: 800;
                text-transform: uppercase;
                letter-spacing: .7px;
                color: #64748b;
                margin-bottom: .3rem;
            }

            .summary-card-value {
                font-size: .98rem;
                font-weight: 800;
                color: #0f172a;
                line-height: 1.35;
            }

            .summary-card-subtitle {
                font-size: .76rem;
                color: #64748b;
                margin-top: .25rem;
            }

            .giai-dau-content-section {
                padding: .5rem 0 2rem;
            }

            .giai-dau-tabs {
                display: flex;
                flex-wrap: nowrap;
                overflow-x: auto;
                gap: .25rem;
                border-bottom: 1px solid rgba(11,122,69,.12);
                padding-bottom: .25rem;
                margin-bottom: 1rem;
            }

            .giai-dau-tabs .nav-link {
                border: 0;
                background: transparent;
                color: #475569;
                font-weight: 700;
                white-space: nowrap;
                border-bottom: 2px solid transparent;
                border-radius: 0;
            }

            .giai-dau-tabs .nav-link.active {
                color: var(--primary);
                border-bottom-color: var(--primary);
            }

            .giai-dau-tab-content .tab-pane {
                min-height: 320px;
            }

            .giai-dau-panel {
                background: #fff;
                border-radius: 18px;
                padding: 1rem;
                box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
                border: 1px solid rgba(11, 122, 69, .08);
            }

            .overview-table thead th {
                font-size: .75rem;
                text-transform: uppercase;
                letter-spacing: .4px;
                color: #64748b;
                font-weight: 800;
                border-bottom: 1px solid rgba(11,122,69,.12);
            }

            .overview-table tbody td {
                padding-top: .8rem;
                padding-bottom: .8rem;
            }

            .giai-dau-note-panel {
                background: linear-gradient(180deg, #f8fcf9 0%, #ffffff 100%);
            }

            @media (max-width: 1199.98px) {
                .giai-dau-hero-grid {
                    grid-template-columns: 1fr 280px;
                }

                .giai-dau-summary-grid {
                    grid-template-columns: repeat(3, minmax(0, 1fr));
                }
            }

            @media (max-width: 991.98px) {
                .giai-dau-hero-grid {
                    grid-template-columns: 1fr;
                }

                .giai-dau-hero-banner {
                    min-height: 360px;
                }

                .giai-dau-hero-content {
                    min-height: 360px;
                }

                .giai-dau-summary-grid {
                    grid-template-columns: repeat(2, minmax(0, 1fr));
                }
            }

            @media (max-width: 575.98px) {
                .giai-dau-hero-content {
                    padding: 1.35rem 1rem 1rem;
                }

                .giai-dau-hero-banner,
                .giai-dau-hero-content {
                    min-height: 330px;
                }

                .giai-dau-summary-grid {
                    grid-template-columns: 1fr;
                }
            }

    .value-card {
        border: none;
        border-radius: 12px;
        background: #fff;
        box-shadow: var(--card-shadow);
        padding: 2rem 1.5rem;
        text-align: center;
        transition: transform .2s;
    }

        .value-card:hover {
            transform: translateY(-4px);
        }

    .value-icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: rgba(11,122,69,.12);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        color: var(--primary);
        margin-bottom: 1rem;
    }
    /* ============================================================
   FOOTER
   ============================================================ */
    .site-footer {
        background: #0c4d30;
        color: rgba(255,255,255,.8);
    }

    .footer-main {
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .footer-heading {
        color: #fff;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        margin-bottom: 1rem;
    }

    .footer-desc {
        font-size: 0.85rem;
        line-height: 1.6;
        color: rgba(255,255,255,.65);
    }

    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            color: rgba(255,255,255,.65);
            text-decoration: none;
            font-size: 0.875rem;
            transition: color .2s;
        }

            .footer-links a:hover {
                color: var(--accent);
            }

    .footer-bottom {
        background: #073720;
        color: rgba(255,255,255,.55);
        font-size: 0.8rem;
    }

    .social-btn {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.25);
        color: rgba(255,255,255,.75);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        text-decoration: none;
        transition: all .2s;
    }

        .social-btn:hover {
            background: var(--accent);
            border-color: var(--accent);
            color: #fff;
        }
    /* ============================================================
   REUSABLE ALERT UI
   ============================================================ */
    .app-alert-stack {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .app-alert {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        border: 1px solid;
        border-radius: 10px;
        background: #fff;
        padding: 12px 14px;
        position: relative;
    }

    .app-alert-icon {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        color: #fff;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .app-alert-title {
        font-weight: 700;
        font-size: 0.92rem;
        margin-bottom: 2px;
    }

    .app-alert-message {
        font-size: 0.82rem;
        color: #4b5563;
    }

    .app-alert-close {
        border: none;
        background: transparent;
        color: #6b7280;
        font-size: 0.95rem;
        line-height: 1;
        margin-left: auto;
        padding: 2px;
    }

    .app-alert-success {
        border-color: #bde8cf;
        background: #f4fbf7;
    }

        .app-alert-success .app-alert-icon {
            background: #22a55d;
        }

        .app-alert-success .app-alert-title {
            color: #167647;
        }

    .app-alert-info {
        border-color: #c9dbff;
        background: #f3f7ff;
        transition: width 1s, height 1s, background-color 1s, rotate 1s;
    }

        .app-alert-info .app-alert-icon {
            background: #0b7a45;
        }

        .app-alert-info .app-alert-title {
            color: #085f35;
        }

    .app-alert-warning {
        border-color: #f7dfb5;
        background: #fff9ef;
    }

        .app-alert-warning .app-alert-icon {
            background: #f59e0b;
        }

        .app-alert-warning .app-alert-title {
            color: #b45309;
        }

    .app-alert-error {
        border-color: #f6c9cf;
        background: #fff5f6;
    }

        .app-alert-error .app-alert-icon {
            background: #ef4444;
        }

        .app-alert-error .app-alert-title {
            color: #b91c1c;
        }

    .app-toast-container {
        position: fixed;
        top: 18px;
        right: 18px;
        width: min(360px, calc(100vw - 24px));
        z-index: 1090;
    }

    .app-toast {
        box-shadow: 0 10px 22px rgba(15, 35, 70, 0.16);
        animation: appToastIn .22s ease;
    }

    @keyframes appToastIn {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    /* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
    .lang-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border: 1px solid #d2e5d8;
        border-radius: 20px;
        font-size: 0.78rem;
        font-weight: 600;
        color: #18422c;
        text-decoration: none;
        background: #ffffff;
        transition: all 0.18s ease;
        white-space: nowrap;
    }

        .lang-toggle-btn:hover {
            background: #f3faf6;
            border-color: #b7d8c2;
            color: #0f2f20;
        }

        .lang-toggle-btn::after {
            margin-left: 2px;
            font-size: 0.7rem;
        }

    .lang-flag {
        font-size: 0.95rem;
        line-height: 1;
    }

    .lang-label {
        letter-spacing: 0.03em;
    }

    .lang-menu {
        min-width: 170px;
        border: 1px solid #d6e7dc;
        border-radius: 10px;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
        padding: 6px;
    }

    .lang-menu-item {
        display: flex;
        align-items: center;
        gap: 8px;
        border-radius: 8px;
        font-size: 0.86rem;
        padding: 7px 10px;
        color: #173a27;
    }

        .lang-menu-item.active,
        .lang-menu-item:active {
            background: #edf8f1;
            color: #0d6b3d;
        }
    /* ============================================================
   MEMBER DROPDOWN (PUBLIC LAYOUT)
   ============================================================ */
    .pub-member-toggle {
        border: none;
        background: transparent;
        padding: 0;
    }

    .pub-member-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #e3f1e9;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
    }

    .pub-member-name {
        font-size: 0.85rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.15;
    }

    .pub-member-sub {
        font-size: 0.72rem;
        color: #5f7d6a;
    }

    .pub-noti-btn {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid #d2e3d8;
        background: #fff;
        color: #2d4638;
        position: relative;
    }

    .pub-noti-dot {
        position: absolute;
        top: -3px;
        right: -2px;
        background: #ef4444;
        color: #fff;
        border-radius: 999px;
        min-width: 16px;
        height: 16px;
        font-size: 0.62rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }

    .pub-member-menu {
        width: min(360px, 92vw);
        border: none;
        border-radius: 12px;
        box-shadow: 0 18px 32px rgba(17, 39, 77, 0.2);
        overflow: hidden;
        padding: 0;
    }

    @media (max-width: 767.98px) {
        .pub-member-menu {
            width: 85vw !important;
            max-width: 280px;
            left: 50% !important;
            transform: translateX(-50%);
            right: auto !important;
        }
    }

    .pub-member-menu-head {
        background: linear-gradient(115deg, #06683b 0%, #0b8a4f 100%);
        color: #fff;
        padding: 12px 14px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .pub-member-menu-head .pub-member-avatar {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
        }

    .pub-member-menu-body {
        padding: 10px 14px;
    }

    .pub-member-meta {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        font-size: 0.77rem;
        color: #3f5b4a;
        padding: 6px 0;
        border-bottom: 1px solid #e7efe9;
    }

    .pub-member-links {
        list-style: none;
        margin: 8px 0 0;
        padding: 0;
    }

        .pub-member-links li a,
        .pub-member-links li button {
            width: 100%;
            border: none;
            background: transparent;
            display: flex;
            align-items: center;
            gap: 8px;
            text-align: left;
            color: #203429;
            font-size: 0.84rem;
            padding: 8px 2px;
        }

            .pub-member-links li a:hover,
            .pub-member-links li button:hover {
                color: var(--primary);
            }

        .pub-member-links .pub-logout-btn {
            color: #dc2626;
        }
    /* ============================================================
   RESPONSIVE
   ============================================================ */
    @media (max-width: 767.98px) {
        .site-header .navbar-collapse {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
            padding: .75rem;
            margin-top: .6rem;
        }

        .site-header .navbar-nav {
            gap: .2rem;
        }

        .site-header .nav-link::before {
            display: none;
        }

        .pub-member-toggle {
            transform: scale(0.8);
            transform-origin: right center;
            margin: 0 auto;
        }

        .pub-member-name,
        .pub-member-sub {
            display: none;
        }

        .hero-split {
            flex-direction: column;
            align-items: stretch;
            gap: 1.25rem;
        }

        .hero-copy {
            max-width: none;
            width: 100%;
        }

        .hero-carousel-card,
        .hero-carousel-image,
        .hero-carousel-empty {
            min-height: 320px;
        }

        .hero-carousel-content {
            padding: 1.25rem 1rem 2.35rem;
            gap: .65rem;
        }

        .hero-carousel-content .hero-title {
            font-size: 1.5rem;
        }

        .hero-carousel-content .hero-subtitle {
            font-size: .88rem;
        }

        .hero-login-shell {
            flex: 1 1 auto;
            width: 100%;
            justify-content: stretch;
        }

        .hero-login-shell .login-card {
            max-width: none;
            border-radius: 14px;
            padding: .75rem .8rem .65rem;
        }

        .hero-title {
            font-size: 1.9rem;
        }

        .stat-item + .stat-item {
            border-left: none;
            border-top: 1px solid var(--border-color);
        }

        .reg-main {
            padding: 2rem 1.25rem;
        }

        .reg-sidebar {
            min-height: auto;
            padding: 2.5rem 1.5rem;
        }
    }

    @media (max-width: 575.98px) {
        .hero-title {
            font-size: 1.5rem;
        }
    }