/* =========================================================
   01. BASE / GLOBAL LAYOUT
   ========================================================= */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Noto Sans JP', sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    padding-top: 60px;

    font-family: 'Noto Sans JP', sans-serif;

    display: flex;
    flex-direction: column;

    color: #fff;

    background:
        radial-gradient(circle at 15% 20%,
            rgba(95, 231, 255, 0.24),
            transparent 28%
        ),

        radial-gradient(circle at 82% 18%,
            rgba(255, 105, 180, 0.22),
            transparent 30%
        ),

        radial-gradient(circle at 50% 75%,
            rgba(255, 190, 220, 0.14),
            transparent 42%
        ),

        linear-gradient(
            135deg,
            #25425f 0%,
            #44536a 28%,
            #68506b 58%,
            #7d6279 100%
        );

main {
    margin-left: 20px;
    margin-right: 20px;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    text-align: center;
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* =========================================================
   02. DESKTOP NAVBAR / BALANCE
   ========================================================= */

#desktop-navbar {
    display: block;
}

#mobile-navbar {
    display: none;
}

#desktop-navbar .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;

    padding: 4px 20px;
    margin: 0 auto;

    background: rgba(6, 10, 35, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.18),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    padding: 0 34px 0 0;
}

.navbar::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(95,231,255,0.04),
            transparent 30%,
            transparent 70%,
            rgba(255,105,180,0.05)
        );

    pointer-events: none;
}

.navbar-left,
.navbar-right,
.navbar-left ul,
.navbar ul {
    display: flex;
    align-items: center;
}

.navbar-left ul,
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-right {
    display: flex;
    align-items: center;

    gap: 22px;

    height: 72px;

    margin-right: 22px;
}
.navbar .logo {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 72px;
    width: 180px;

    margin: 0 10px 0 0;
    padding-left: 18px;

    border-right: 1px solid rgba(255,255,255,0.08);
}

.navbar .logo img {
    height: 58px;
    width: auto;
    display: block;

    filter: drop-shadow(0 0 10px rgba(95,231,255,0.18));
}

.navbar li {
    position: relative;
}

.navbar-left ul {
    gap: 0;
}

.navbar-left ul li::after {
    content: "";

    position: absolute;
    right: 0;
    top: 50%;

    width: 1px;
    height: 28px;

    transform: translateY(-50%);

    background: rgba(255,255,255,0.16);
}

.navbar-left ul li a,
.navbar a {
    position: relative;

    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    color: rgba(255,255,255,0.9);
    text-decoration: none;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.03em;

    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.navbar-left ul li {
    position: relative;
}

.navbar-left ul li a::after {
    content: "";
    right: -2px;
    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 2px;

    border-radius: 999px;

    transform: translateX(-50%);

    background: linear-gradient(
        90deg,
        #5fe7ff,
        #4db8ff,
        #ff69b4
    );

    box-shadow:
        0 0 10px rgba(95,231,255,0.8),
        0 0 18px rgba(255,105,180,0.35);

    transition: width 0.22s ease;
}

.navbar-left ul li a:hover::after {
    width: 58%;
}

/* remove last separator */
.navbar-left ul li:last-child::after {
    display: none;
}

.login-btn {
    height: 48px;
    min-width: 96px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;

    border-radius: 14px;

    position: relative;
    overflow: hidden;

    text-decoration: none;

    color: white;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.08),
            rgba(255,105,210,0.12)
        );

    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 0 18px rgba(255,105,210,0.10),
        inset 0 1px 0 rgba(255,255,255,0.06);

    transition: all 0.22s ease;
}

.login-btn::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(95,231,255,0.08),
            rgba(255,105,210,0.14),
            rgba(95,231,255,0.08)
        );

    opacity: 0.85;
}

.login-btn span,
.login-btn {
    position: relative;
    z-index: 2;
}

.login-btn:hover {
    transform: translateY(-1px);

    border-color: rgba(255,255,255,0.14);

    box-shadow:
        0 0 24px rgba(255,105,210,0.16),
        0 0 36px rgba(95,231,255,0.10),
        inset 0 1px 0 rgba(255,255,255,0.08);
}


.balance-boxnav {
    height: 40px;

    display: inline-flex;
    align-items: center;

    padding: 0 10px 0 14px;

    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.04)
        );

    border: 1px solid rgba(255,255,255,0.06);

    backdrop-filter: blur(10px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 4px 14px rgba(0,0,0,0.18);
}

.balance-boxnav .top-up {
    width: 26px;
    height: 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: 12px;
    padding: 0;

    border-radius: 8px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.10),
            rgba(255,255,255,0.05)
        );

    border: 1px solid rgba(255,255,255,0.08);

    color: rgba(255,255,255,0.82);
    text-decoration: none;

    font-size: 18px;
    font-weight: 700;
    line-height: 1;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05);

    transition:
        all 0.2s ease;
}

.balance-boxnav .top-up:hover {
    background:
        linear-gradient(
            180deg,
            rgba(95,231,255,0.18),
            rgba(95,231,255,0.08)
        );

    border-color: rgba(95,231,255,0.22);

    color: #5fe7ff;

    box-shadow:
        0 0 14px rgba(95,231,255,0.16);
}

.navbar-balance-text {
    display: flex;
    align-items: center;
    gap: 7px;

    color: white;

    font-size: 14px;
    font-weight: 800;
}

.navbar-koin-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 5px rgba(255, 220, 90, 0.35));
}

.logout-btn {
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;

    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.04)
        );

    border: 1px solid rgba(255,255,255,0.06);

    color: white;
    text-decoration: none;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 4px 14px rgba(0,0,0,0.18);
}

/* =========================================================
   03. DESKTOP NAVBAR DROPDOWN
   ========================================================= */

.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    min-width: 150px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    z-index: 1001;

    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.7);

    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.navbar .dropdown:hover .dropdown-content {
    max-height: 500px;
    opacity: 1;
}

.navbar .dropdown-content a {
    display: block;
    text-align: center;
    padding: 10px;
    margin-right: 20px;
    color: #ffffff;
    text-decoration: none;
}

.navbar .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fabcdb;
    transform: scale(1.05);
}

.navbar .dropdown-content .long-item {
    width: auto;
    word-break: break-word;
}

/* =========================================================
   04. PREMIUM FOOTER
   Requires footer.html structure with:
   footer > .footer-inner > .footer-top / .footer-brand / .footer-links / .footer-social
   ========================================================= */

footer {
    position: relative;
    margin-top: auto;
    padding: 40px 30px 24px;
    overflow: hidden;

    color: #ffffff;
    text-align: center;
    font-size: 14px;

    background:
        radial-gradient(circle at left, rgba(95,231,255,0.12), transparent 30%),
        radial-gradient(circle at right, rgba(255,105,180,0.12), transparent 30%),
        linear-gradient(135deg, #07111f 0%, #0b1630 35%, #14122c 65%, #1a1330 100%);

    border-top: 1px solid rgba(255,255,255,0.08);
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(95,231,255,0.08), transparent 25%),
        radial-gradient(circle at 80% 50%, rgba(255,105,180,0.08), transparent 25%);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 34px 40px;
    border-radius: 28px;

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);

    box-shadow:
        0 0 40px rgba(95,231,255,0.05),
        0 0 80px rgba(255,105,180,0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
}

.footer-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.footer-brand-text h3 {
    margin: 0;
    color: white;
    font-size: 28px;
    font-weight: 900;
}

.footer-brand-text p {
    margin: 6px 0 0;
    color: rgba(255,255,255,0.62);
    font-size: 14px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 60px;

    flex-wrap: wrap;

    margin: 0 auto;
}

.footer-links a,
footer a {
    position: relative;
    color: white;
    text-decoration: none;
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    transition: all 0.25s ease;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff9eb8, #5fe7ff);
    transition: width 0.25s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow:
        0 0 20px rgba(255,105,180,0.3),
        0 0 30px rgba(95,231,255,0.2);
}

.footer-social img,
.social-icons a img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-divider {
    height: 1px;
    margin: 28px 0 18px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.footer-bottom {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 600;
}

/* fallback support for old footer.html before replacing it */
.social-icons {
    margin-bottom: 10px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.12);
}

/* =========================================================
   05. FOOTER MODAL
   ========================================================= */

.footer-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
}

.footer-modal-box {
    width: 100%;
    max-width: 720px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(180deg, #111827, #080d1c);
    border: 1px solid rgba(95,231,255,0.28);
    color: white;
    text-align: left;
    box-shadow: 0 24px 70px rgba(0,0,0,0.6);
}

.footer-modal-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

.footer-modal-close {
    display: block;
    margin: 28px auto 0;
    padding: 12px 28px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff9eb8, #5fe7ff);
    color: white;
    font-weight: 900;
    cursor: pointer;
}

/* =========================================
   PREMIUM MODAL SCROLLBAR
========================================= */

.footer-modal-box {
    scrollbar-width: thin;
    scrollbar-color: rgba(95,231,255,0.35) transparent;
}

/* Chrome / Edge / Opera */
.footer-modal-box::-webkit-scrollbar {
    width: 10px;
}

.footer-modal-box::-webkit-scrollbar-track {
    background: transparent;
}

.footer-modal-box::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(255,105,180,0.55),
        rgba(95,231,255,0.55)
    );

    border-radius: 999px;

    border: 2px solid rgba(8, 13, 28, 0.85);
}

.footer-modal-box::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(255,105,180,0.8),
        rgba(95,231,255,0.8)
    );
}

/* =========================================================
   09. NOTICE PAGE - KORIPA PREMIUM
   ========================================================= */

.notice-page-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 55px auto 90px;
    position: relative;
}

.notice-page-shell::before {
    content: "";

    position: absolute;
    inset: -120px -200px;

    z-index: -1;

    background:
        radial-gradient(circle at 20% 25%,
            rgba(95,231,255,0.22),
            transparent 26%
        ),

        radial-gradient(circle at 80% 15%,
            rgba(255,105,180,0.24),
            transparent 28%
        ),

        radial-gradient(circle at 50% 90%,
            rgba(168,85,247,0.16),
            transparent 34%
        );

    filter: blur(20px);
    pointer-events: none;
}

.notice-hero {
    text-align: center;
    margin-bottom: 40px;
}

.notice-hero h1 {
    margin: 0;

    font-size: 58px;
    font-weight: 900;
    letter-spacing: 0.05em;

    color: white;

    text-shadow:
        0 0 24px rgba(95,231,255,0.25),
        0 0 32px rgba(255,105,180,0.18);
}

.notice-hero p {
    margin-top: 12px;

    color: rgba(255,255,255,0.65);

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* =========================================
   FEATURED NOTICE
========================================= */

.notice-featured {
    position: relative;

    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 28px;

    min-height: 250px;

    padding: 22px;

    border-radius: 30px;

    overflow: visible;
    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            rgba(9,16,38,0.96),
            rgba(28,18,50,0.96)
        );

    border: 1px solid rgba(255,255,255,0.1);

    backdrop-filter: blur(18px);

    box-shadow:
        0 25px 80px rgba(0,0,0,0.45),
        0 0 40px rgba(95,231,255,0.10),
        0 0 40px rgba(255,105,180,0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.notice-featured:hover {
    transform: translateY(-6px);

    border-color: rgba(95,231,255,0.32);

    box-shadow:
        0 35px 90px rgba(0,0,0,0.55),
        0 0 50px rgba(95,231,255,0.18),
        0 0 50px rgba(255,105,180,0.14);
}

.notice-featured::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at left,
            rgba(95,231,255,0.08),
            transparent 30%
        ),

        radial-gradient(circle at right,
            rgba(255,105,180,0.10),
            transparent 30%
        );

    pointer-events: none;
}

.featured-visual {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    height: 250px;
    min-height: 0;
    box-sizing: border-box;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(70,110,255,0.45),
            rgba(255,105,180,0.40)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 10px 35px rgba(0,0,0,0.35);
}

.featured-banner-image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    z-index: 0;
}

.featured-visual::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.05),
            rgba(0,0,0,0.48)
        );
}

.featured-category-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 5;

    min-width: 90px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;

    border-radius: 10px;

    color: white;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;

    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.22),
        0 0 16px rgba(0,0,0,0.2);

    backdrop-filter: blur(12px);
}

/* maintenance */
.notice-featured.maintenance .featured-category-badge {
    background: linear-gradient(135deg, #5fe7ff, #4db8ff);
}

/* event */
.notice-featured.event .featured-category-badge {
    background: linear-gradient(135deg, #ff4fd8, #5fe7ff);
}

/* update */
.notice-featured.update .featured-category-badge {
    background: linear-gradient(135deg, #49ff9a, #00b86b);
}

/* normal */
.notice-featured.normal .featured-category-badge {
    background: linear-gradient(135deg, #7aa2ff, #b56cff);
}

.featured-important-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;

    width: 74px;
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        radial-gradient(circle at top, #ff7bd5, #ff3eb5);

    color: white;
    font-size: 15px;
    font-weight: 900;

    border: 2px solid rgba(255,255,255,0.18);

    box-shadow:
        0 0 22px rgba(255,62,181,0.55),
        inset 0 2px 8px rgba(255,255,255,0.18);

    backdrop-filter: blur(14px);
}

.featured-info {
    display: flex;
    flex-direction: column;
}

.featured-info button {
    margin-top: auto;
    align-self: flex-end;
}

.featured-big-text {
    position: absolute;
    left: 26px;
    bottom: 22px;
    z-index: 3;

    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    color: white;
}

.featured-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
    z-index: 5;

    padding: 10px 6px;
}

.featured-info .notice-date {
    margin-bottom: 10px;

    color: rgba(255,255,255,0.55);

    font-size: 13px;
    font-weight: 700;
}

.featured-info h2 {
    margin: 0 0 18px;

    font-size: 36px;
    line-height: 1.35;
    font-weight: 900;

    color: white;
}

.featured-desc {
    margin: 0 0 24px;

    color: rgba(255,255,255,0.72);

    font-size: 15px;
    line-height: 1.8;
    font-weight: 600;
}

.featured-info button {
    width: fit-content;

    padding: 14px 26px;

    border: none;
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(95,231,255,0.25),
            rgba(255,105,180,0.25)
        );

    border: 1px solid rgba(255,255,255,0.12);

    color: white;

    font-size: 14px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.featured-info button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 25px rgba(95,231,255,0.18);
}

/* =========================================
   NORMAL NOTICE ROWS
========================================= */

.notice-board {
    display: flex;
    flex-direction: column;
}

.notice-featured {
    margin-bottom: 28px;
}

.notice-row + .notice-row {
    margin-top: 10px;
}
.notice-row {
    display: grid;
    grid-template-columns: 210px minmax(260px, 1fr) 340px 30px;
    align-items: center;
    gap: 24px;

    min-height: 110px;

    padding: 0 26px;

    border-radius: 24px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            rgba(10,16,36,0.92),
            rgba(17,13,34,0.94)
        );

    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(16px);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.35);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.notice-row:hover {
    transform: translateY(-4px);

    border-color: rgba(95,231,255,0.22);

    box-shadow:
        0 22px 60px rgba(0,0,0,0.45),
        0 0 28px rgba(95,231,255,0.10);
}

.notice-icon {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
}

.notice-icon img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.notice-row:hover .notice-icon img {
    transform: scale(1.08);

    filter:
        drop-shadow(0 0 12px rgba(255,255,255,0.18))
        drop-shadow(0 0 18px rgba(255,79,216,0.25));
}

.notice-row-main h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-row-main .notice-date {
    margin: 0;

    color: rgba(255,255,255,0.48);

    font-size: 13px;
    font-weight: 700;
}

.notice-preview {
    color: rgba(255,255,255,0.60);

    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

.notice-arrow {
    color: rgba(255,255,255,0.78);

    font-size: 42px;
    font-weight: 300;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}

.notice-row:hover .notice-arrow {
    transform: translateX(6px);

    color: #5fe7ff;
}

/* =========================================
   PAGINATION
========================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 14px;

    margin-top: 36px;
}

.page-btn,
.current-page {
    min-width: 50px;
    height: 50px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    color: white;

    font-weight: 900;
    text-decoration: none;

    background: rgba(255,255,255,0.06);

    border: 1px solid rgba(255,255,255,0.08);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.page-btn:hover {
    transform: translateY(-2px);

    border-color: rgba(95,231,255,0.26);
}

.current-page {
    background:
        linear-gradient(
            135deg,
            rgba(95,231,255,0.18),
            rgba(255,105,180,0.18)
        );
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .notice-featured {
        grid-template-columns: 1fr;
    }

    .notice-row {
        grid-template-columns: 72px 1fr 30px;
    }

    .notice-preview {
        display: none;
    }
}

@media (max-width: 768px) {

    .notice-page-shell {
        width: calc(100% - 24px);
    }

    .notice-hero h1 {
        font-size: 42px;
    }

    .notice-featured {
        padding: 20px;
    }

    .featured-big-text {
        font-size: 42px;
    }

    .featured-info h2 {
        font-size: 28px;
    }

    .notice-row {
        min-height: 92px;

        grid-template-columns: 58px 1fr 20px;

        gap: 16px;

        padding: 0 18px;
    }

    .notice-icon {
        width: 46px;
        height: 46px;

        font-size: 20px;
    }

    .notice-row-main h2 {
        font-size: 18px;
    }
}

/* =========================================================
   10. NOTICE MODAL / PAGINATION
   ========================================================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: min(680px, 100%);
    max-height: 82vh;
    overflow-y: auto;
    padding: 38px 34px;
    border-radius: 28px;

    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(95,231,255,0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(255,105,180,0.18), transparent 34%),
        linear-gradient(180deg, rgba(17,24,39,0.98), rgba(8,13,28,0.98));

    border: 1px solid rgba(95,231,255,0.28);

    box-shadow:
        0 30px 90px rgba(0,0,0,0.68),
        0 0 35px rgba(95,231,255,0.16),
        0 0 45px rgba(255,105,180,0.10);

    animation: noticeModalPop 0.25s ease both;
}

.modal-title {
    margin: 0 0 22px;
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.45;
}

.modal-body {
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.9;
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 20px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);

    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);

    font-size: 30px;
    font-weight: 300;
    cursor: pointer;

    transition: all 0.25s ease;
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.05);
    color: #fff;
    background: rgba(255,105,180,0.18);
    box-shadow: 0 0 18px rgba(255,105,180,0.22);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
    gap: 12px;
    flex-wrap: wrap;
}

.page-btn,
.current-page {
    min-width: 42px;
    height: 42px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);

    background: rgba(255,255,255,0.06);
    color: #fff;

    text-decoration: none;
    font-weight: 900;
    transition: all 0.25s ease;
}

.page-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(95,231,255,0.4);
    box-shadow: 0 0 18px rgba(95,231,255,0.16);
}

.page-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.current-page {
    background: linear-gradient(135deg, rgba(95,231,255,0.18), rgba(255,105,180,0.18));
}

@keyframes noticeModalPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .notice-container {
        width: min(100% - 26px, 1180px);
        margin: 42px auto 70px;
    }

    .notice-title {
        font-size: 32px;
    }

    .notice-item {
        grid-template-columns: 1fr 28px;
        gap: 10px;
        padding: 20px;
    }

    .notice-item::before {
        grid-column: 1 / -1;
        width: 88px;
        height: 30px;
        font-size: 12px;
    }

    .notice-heading,
    .notice-date {
        grid-column: 1;
    }

    .notice-heading {
        font-size: 18px;
    }

    .modal-content {
        padding: 34px 22px 26px;
        border-radius: 24px;
    }
}

/* =========================================================
   11. FEEDBACK PAGE - KORIPA PREMIUM
   ========================================================= */

.feedback-page-shell {
    width: min(760px, calc(100% - 32px));
    margin: 62px auto 100px;
    position: relative;
}

.feedback-page-shell::before {
    content: "";
    position: absolute;
    inset: -100px -220px;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(95,231,255,0.22), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(255,105,180,0.24), transparent 30%),
        radial-gradient(circle at 50% 88%, rgba(168,85,247,0.16), transparent 36%);
    filter: blur(20px);
    pointer-events: none;
}

.feedback-hero {
    text-align: center;
    margin-bottom: 34px;
}

.feedback-kicker {
    margin: 0 0 10px;
    color: #ff9ed8;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-shadow: 0 0 14px rgba(255,105,180,0.35);
}

.feedback-hero h1 {
    margin: 0;
    color: white;
    font-size: 46px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-shadow:
        0 0 24px rgba(95,231,255,0.25),
        0 0 34px rgba(255,105,180,0.18);
}

.feedback-hero p {
    margin: 14px 0 0;
    color: rgba(255,255,255,0.72);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.9;
}

.feedback-card {
    position: relative;
    padding: 34px;
    border-radius: 22px;

    background:
        radial-gradient(circle at top left, rgba(95,231,255,0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(255,105,180,0.14), transparent 34%),
        linear-gradient(135deg, rgba(12,18,42,0.72), rgba(45,29,68,0.74));

    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(18px);

    box-shadow:
        0 28px 80px rgba(0,0,0,0.42),
        0 0 34px rgba(95,231,255,0.08),
        0 0 42px rgba(255,105,180,0.08);
}

.feedback-field label {
    display: block;
    margin-bottom: 14px;
    color: white;
    font-size: 16px;
    font-weight: 900;
}

.feedback-textarea-wrap {
    position: relative;
}

.feedback-form textarea,
.feedback-card textarea {
    width: 100%;
    min-height: 190px;
    box-sizing: border-box;

    padding: 18px 18px 42px;

    resize: vertical;

    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);

    color: white;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    font-family: inherit;

    background:
        linear-gradient(180deg, rgba(7,11,30,0.56), rgba(18,13,35,0.58));

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 28px rgba(0,0,0,0.20);

    outline: none;
    transition: all 0.25s ease;
}

.feedback-card textarea::placeholder {
    color: rgba(255,255,255,0.42);
}

.feedback-card textarea:focus {
    border-color: rgba(95,231,255,0.38);
    box-shadow:
        0 0 0 3px rgba(95,231,255,0.08),
        0 0 24px rgba(95,231,255,0.13),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.feedback-counter {
    position: absolute;
    right: 16px;
    bottom: 13px;

    color: rgba(255,255,255,0.58);
    font-size: 13px;
    font-weight: 900;
}

.feedback-note {
    margin: 22px 0 24px;
    text-align: center;
    color: rgba(255,255,255,0.58);
    font-size: 13px;
    font-weight: 700;
}

.feedback-btn {
    width: min(420px, 100%);
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    border: none;
    border-radius: 13px;

    background: linear-gradient(135deg, #35b7ff, #8b7cff 45%, #ff5fc8);

    color: white;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.04em;

    cursor: pointer;

    box-shadow:
        0 14px 34px rgba(0,0,0,0.30),
        0 0 24px rgba(95,231,255,0.20),
        0 0 24px rgba(255,105,180,0.14);

    transition: all 0.25s ease;
}

.feedback-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow:
        0 18px 42px rgba(0,0,0,0.36),
        0 0 32px rgba(95,231,255,0.28),
        0 0 32px rgba(255,105,180,0.20);
}

@media (max-width: 768px) {
    .feedback-page-shell {
        width: calc(100% - 24px);
        margin: 42px auto 72px;
    }

    .feedback-hero h1 {
        font-size: 34px;
    }

    .feedback-hero p {
        font-size: 13px;
    }

    .feedback-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .feedback-card textarea {
        min-height: 170px;
    }
}

.feedback-category-section {
    margin-top: 24px;
}

.feedback-section-label {
    display: block;
    margin-bottom: 14px;

    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 900;
}

.feedback-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.feedback-category-option {
    position: relative;

    min-height: 105px;
    padding: 18px 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 11px;

    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);

    color: white;
    text-align: center;

    cursor: pointer;

    transition: all 0.25s ease;
}

.feedback-category-option input {
    display: none;
}

.feedback-category-option:hover,
.feedback-category-option.active {
    transform: translateY(-2px);

    border-color: rgba(255,105,180,0.45);

    background:
        linear-gradient(
            135deg,
            rgba(255,105,180,0.14),
            rgba(95,231,255,0.10)
        );

    box-shadow:
        0 0 22px rgba(255,105,180,0.14),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.category-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    font-size: 18px;
}

.feedback-category-option strong {
    font-size: 14px;
    font-weight: 900;
}

.feedback-category-option small {
    color: rgba(255,255,255,0.58);
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .feedback-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feedback-upload-section {
    margin-top: 24px;
}

.feedback-upload-box {
    min-height: 86px;
    padding: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,0.24);

    background: rgba(255,255,255,0.035);

    color: white;
    text-align: center;

    cursor: pointer;

    transition: all 0.25s ease;
}

.feedback-upload-box:hover,
.feedback-upload-box.dragging {
    border-color: rgba(95,231,255,0.48);
    background: rgba(95,231,255,0.07);
    box-shadow: 0 0 22px rgba(95,231,255,0.12);
}

.upload-icon {
    font-size: 34px;
    line-height: 1;
    color: rgba(255,255,255,0.82);
    text-shadow: 0 0 16px rgba(95,231,255,0.28);
}

.feedback-upload-box strong {
    font-size: 14px;
    font-weight: 900;
}

.feedback-upload-box small {
    color: rgba(255,255,255,0.58);
    font-size: 12px;
    font-weight: 700;
}

.feedback-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.feedback-preview-item {
    position: relative;
    overflow: hidden;

    height: 92px;
    border-radius: 12px;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
}

.feedback-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feedback-remove-image {
    position: absolute;
    top: 6px;
    right: 6px;

    width: 24px;
    height: 24px;

    border: none;
    border-radius: 50%;

    background: rgba(0,0,0,0.55);
    color: white;

    font-size: 16px;
    cursor: pointer;
}

/* =========================================================
   12. RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .notice-item {
        width: 100%;
    }

    .modal-content {
        max-width: 300px;
        max-height: 90vh;
        padding: 20px;
        margin-right: 35px;
    }

    .footer-inner {
        padding: 28px 22px;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 18px;
    }

    .footer-links a {
        display: flex;
        align-items: center;
        gap: 10px;

        padding: 14px 18px;

        border-radius: 999px;

        background: rgba(255,255,255,0.04);

        border: 1px solid rgba(255,255,255,0.06);

        color: white;
        text-decoration: none;

        font-weight: 800;
        font-size: 14px;

        transition: all 0.28s ease;

        position: relative;
        overflow: hidden;
    }

    .footer-links a::before {
        content: "";

        position: absolute;
        inset: 0;

        background:
            linear-gradient(
                135deg,
                rgba(255,105,180,0.12),
                rgba(95,231,255,0.12)
            );

        opacity: 0;

        transition: opacity 0.3s ease;
    }

    .footer-links a:hover::before {
        opacity: 1;
    }

    .footer-links a:hover {
        transform: translateY(-3px);

        border-color: rgba(95,231,255,0.25);

        box-shadow:
            0 0 20px rgba(95,231,255,0.12),
            0 0 26px rgba(255,105,180,0.12);
    }

    .footer-links a span {
        position: relative;
        z-index: 2;
    }

    .footer-link-icon {
        font-size: 15px;
    }
}

@media (max-width: 760px) {
    body {
        padding-top: 0;
    }

    #desktop-navbar {
        display: none;
    }

    #mobile-navbar {
        display: block;
    }

    .tab-btn {
        height: 20px;
        padding: 10px 10px 23px;
        font-size: 10px;
    }

}

/* =========================================================
   13. KEYFRAMES
   ========================================================= */

@keyframes diagonalShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   FOOTER MODAL GLOBAL FIX
   For index / notice / feedback / login
========================================= */

#footerModalSources {
    display: none !important;
}

.footer-modal {
    display: none;
    position: fixed;
    inset: 0;

    z-index: 100000;

    align-items: center;
    justify-content: center;

    padding: 24px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.footer-modal-box {
    width: 100%;
    max-width: 760px;
    max-height: 82vh;

    overflow-y: auto;

    padding: 34px;

    border-radius: 26px;

    background:
        radial-gradient(circle at top, rgba(95,231,255,0.14), transparent 34%),
        radial-gradient(circle at right, rgba(255,105,180,0.12), transparent 34%),
        linear-gradient(180deg, #111827, #080d1c);

    border: 1px solid rgba(95,231,255,0.28);

    color: white;

    box-shadow:
        0 24px 70px rgba(0,0,0,0.6),
        0 0 32px rgba(95,231,255,0.14);
}

.footer-modal-box h2 {
    text-align: center;
    margin-bottom: 22px;

    color: white;

    font-size: 28px;
    font-weight: 900;
}

.footer-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 28px auto 0;

    min-width: 120px;
    height: 46px;

    border: none;
    border-radius: 999px;

    background: linear-gradient(135deg, #ff9eb8, #5fe7ff);

    color: white;

    font-weight: 900;
    cursor: pointer;
}

.notice-row {
    position: relative;
}

/* =========================================
   NOTICE CATEGORY BORDERS
========================================= */

.notice-featured,
.notice-row {
    position: relative;
    overflow: hidden;
    border: none;
}

/* remove old left glowing line */
.notice-row::before {
    display: none !important;
}

/* =========================================
   MAIN BORDER SYSTEM
========================================= */

.notice-corners {
    position: absolute;
    inset: 0;

    border-radius: inherit;

    padding: 2px;

    pointer-events: none;
    z-index: 20;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);

    -webkit-mask-composite: xor;

    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);

    mask-composite: exclude;

    opacity: 0.95;
}

/* =========================================
   EVENT
   pink + blue
========================================= */

.notice-row.event .notice-corners,
.notice-featured.event .notice-corners {
    background:
        linear-gradient(
            135deg,
            #5fe7ff 0%,
            #5fe7ff 10%,
            transparent 20%,
            transparent 80%,
            #ff4fd8 90%,
            #ff4fd8 100%
        );

    filter:
        drop-shadow(0 0 6px rgba(95,231,255,0.6))
        drop-shadow(0 0 12px rgba(255,79,216,0.4));
}

/* =========================================
   MAINTENANCE
   cyan / blue
========================================= */

.notice-row.maintenance .notice-corners,
.notice-featured.maintenance .notice-corners {
    background:
        linear-gradient(
            135deg,
            #5fe7ff 0%,
            #5fe7ff 10%,
            transparent 20%,
            transparent 80%,
            #4db8ff 90%,
            #4db8ff 100%
        );

    filter:
        drop-shadow(0 0 6px rgba(95,231,255,0.75))
        drop-shadow(0 0 12px rgba(77,184,255,0.35));
}

/* =========================================
   UPDATE
   green
========================================= */

.notice-row.update .notice-corners,
.notice-featured.update .notice-corners {
    background:
        linear-gradient(
            135deg,
            #49ff9a 0%,
            #49ff9a 10%,
            transparent 20%,
            transparent 80%,
            #00d26a 90%,
            #00d26a 100%
        );

    filter:
        drop-shadow(0 0 6px rgba(73,255,154,0.65))
        drop-shadow(0 0 12px rgba(0,210,106,0.3));
}

/* =========================================
   NORMAL NOTICE
   soft blue/purple
========================================= */

.notice-row.normal .notice-corners,
.notice-featured.normal .notice-corners {
    background:
        linear-gradient(
            135deg,
            #7aa2ff 0%,
            #7aa2ff 10%,
            transparent 20%,
            transparent 80%,
            #b56cff 90%,
            #b56cff 100%
        );

    filter:
        drop-shadow(0 0 6px rgba(122,162,255,0.65))
        drop-shadow(0 0 12px rgba(181,108,255,0.25));
}

.notice-left {
    width: 210px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.notice-category-tag {
    flex-shrink: 0;
    transform: translateX(-4px);
}

.notice-row.event .notice-category-tag {
    background: linear-gradient(135deg, rgba(255,79,216,0.85), rgba(95,231,255,0.75));
}

.notice-row.maintenance .notice-category-tag {
    background: linear-gradient(135deg, rgba(95,231,255,0.85), rgba(77,184,255,0.65));
}

.notice-row.update .notice-category-tag {
    background: linear-gradient(135deg, rgba(73,255,154,0.75), rgba(0,210,106,0.65));
}

.notice-row.normal .notice-category-tag {
    background: linear-gradient(135deg, rgba(122,162,255,0.75), rgba(181,108,255,0.65));
}

.notice-row-main {
    min-width: 0;
}

.notice-category-tag {
    min-width: 76px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 12px;
    border-radius: 8px;

    color: white;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;

    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 0 12px rgba(0,0,0,0.15);

    flex-shrink: 0;
    transform: translateX(-6px);
}

.notice-row.event .notice-category-tag {
    background: linear-gradient(135deg, #ff4fd8, #5fe7ff);
}

.notice-row.maintenance .notice-category-tag {
    background: linear-gradient(135deg, #5fe7ff, #4db8ff);
}

.notice-row.update .notice-category-tag {
    background: linear-gradient(135deg, #49ff9a, #00b86b);
}

.notice-row.normal .notice-category-tag {
    background: linear-gradient(135deg, #7aa2ff, #b56cff);
}

.notice-hero {
    position: relative;
    width: fit-content;
    margin: 0 auto 42px;
    padding: 0 74px;
    text-align: center;
}

.notice-hero::before,
.notice-hero::after {
    content: "✦";
    position: absolute;
    top: 14px;
    font-size: 26px;
    color: #8f7cff;
    text-shadow:
        0 0 10px rgba(143,124,255,0.9),
        0 0 18px rgba(95,231,255,0.45);
}

.notice-hero::before {
    left: 28px;
}

.notice-hero::after {
    right: 28px;
}

.notice-hero h1 {
    margin: 0;
    font-size: 46px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #fff;

    text-shadow:
        0 0 18px rgba(255,255,255,0.20),
        0 0 26px rgba(95,231,255,0.26),
        0 0 32px rgba(255,79,216,0.18);
}

.notice-hero p {
    margin-top: 10px;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

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

.nav-user-main {
    position: relative;

    min-width: 138px;
    width: auto;
    height: 40px !important;

    display: inline-flex !important;
    align-items: center;

    padding: 0 12px 0 42px !important;

    border-radius: 12px !important;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.10),
            rgba(255,255,255,0.04)
        ) !important;

    border: 1px solid rgba(255,255,255,0.08) !important;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.18);

    color: white !important;
    text-decoration: none;

    overflow: visible;
    white-space: nowrap;
}

.nav-user-main span:not(.nav-user-arrow) {
    flex: 1;

    display: flex;
    justify-content: center;

    white-space: nowrap;
}

.nav-user-avatar {
    position: absolute;

    left: -8px;
    top: 50%;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border-radius: 50%;
    object-fit: cover;

    border: 2px solid rgba(255,255,255,0.12);

    box-shadow:
        0 0 0 3px rgba(16,20,48,0.55),
        0 0 18px rgba(255,105,180,0.32);

    background: #111;
}

.nav-user-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 14px;
    height: 14px;

    margin-left: 2px;

    color: rgba(255,255,255,0.72);

    font-size: 9px;
    line-height: 1;

    transform: translateY(1px);

    flex-shrink: 0;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.nav-user-menu:hover .nav-user-arrow {
    transform: translateY(1px) rotate(180deg);
    color: #ffffff;
}

.nav-user-main span:not(.nav-user-arrow) {
    flex-shrink: 0;

    white-space: nowrap;

    overflow: visible;

    text-overflow: unset;
}

.nav-user-dropdown {
    position: absolute;
    top: 100%;
    padding-top: 14px;
    right: 0;

    min-width: 170px;
    padding: 8px;

    display: none;

    border-radius: 14px;
    background: rgba(10, 14, 38, 0.92);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(16px);

    box-shadow:
        0 18px 40px rgba(0,0,0,0.35),
        0 0 20px rgba(95,231,255,0.10);

    z-index: 2000;
}

.nav-user-dropdown::before {
    content: "";
    position: absolute;

    top: -14px;
    left: 0;
    right: 0;

    height: 14px;
}

.nav-user-menu:hover .nav-user-dropdown {
    display: block;
}

.nav-user-dropdown a {
    height: 38px !important;
    padding: 0 12px !important;

    display: flex !important;
    align-items: center !important;

    border-radius: 10px !important;

    color: rgba(255,255,255,0.86) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.nav-user-dropdown a:hover {
    background: rgba(95,231,255,0.12) !important;
    color: #ffffff !important;
    transform: none !important;
}

/* =========================
   ACTIVE DESKTOP NAV ITEM
========================= */

.navbar-left ul li a.nav-active {
    color: #ffffff !important;

    background:
        radial-gradient(
            circle at bottom,
            rgba(95,231,255,0.18),
            rgba(95,231,255,0.06) 34%,
            transparent 72%
        ) !important;

    text-shadow:
        0 0 12px rgba(95,231,255,0.55),
        0 0 18px rgba(255,105,180,0.25);
}

.navbar-left ul li a.nav-active::after {
    width: 58% !important;
    height: 3px;

    background: linear-gradient(
        90deg,
        transparent,
        #5fe7ff,
        #4db8ff,
        transparent
    );

    box-shadow:
        0 0 10px rgba(95,231,255,0.95),
        0 0 22px rgba(95,231,255,0.65),
        0 0 34px rgba(255,105,180,0.30);
}

.navbar-left ul li:has(a.nav-active)::before {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -1px;

    width: 78px;
    height: 32px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            ellipse at center,
            rgba(95,231,255,0.28),
            rgba(95,231,255,0.10) 38%,
            transparent 72%
        );

    filter: blur(6px);
    pointer-events: none;
}

/* =========================
   NEW MOBILE NAVBAR + SLIDE DRAWER
========================= */

@media (max-width: 760px) {
    body {
        padding-top: 72px;
    }

    .mobile-koripa-nav {
        display: block;
    }

    .mobile-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 5000;

        height: 72px;
        display: flex;
        align-items: center;
        gap: 16px;

        padding: 0 18px;
        box-sizing: border-box;

        background: rgba(7, 12, 34, 0.86);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        border-bottom: 1px solid rgba(255,255,255,0.08);

        box-shadow:
            0 10px 30px rgba(0,0,0,0.35),
            inset 0 -1px 0 rgba(255,255,255,0.04);
    }

    .mobile-logo img {
        width: 56px;
        height: 56px;
        object-fit: contain;
        display: block;
    }

    .mobile-menu-btn {
        width: 44px;
        height: 44px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;

        border: none;
        border-radius: 14px;
        background: rgba(255,255,255,0.04);

        box-shadow:
            inset 0 0 0 1px rgba(255,255,255,0.08),
            0 0 14px rgba(255,105,180,0.08);

        cursor: pointer;
    }

    .mobile-menu-btn span {
        width: 22px;
        height: 3px;
        border-radius: 999px;
        background: white;
        box-shadow: 0 0 8px rgba(95,231,255,0.3);
    }

    .mobile-main-icons {
        flex: 1;

        display: flex;
        align-items: center;
        justify-content: space-around;

        height: 52px;

        padding: 0 8px;
        border-radius: 18px;

        background:
            linear-gradient(
                135deg,
                rgba(8,14,40,0.72),
                rgba(23,14,55,0.72)
            );

        border: 1px solid rgba(255,255,255,0.06);
    }

    .mobile-nav-icon {
        position: relative;

        width: 42px;
        height: 42px;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 50%;

        color: rgba(255,255,255,0.48);
        text-decoration: none;
        font-size: 25px;
        font-weight: 900;
    }

    .mobile-nav-icon.active.cyan {
        color: #5fe7ff;
        text-shadow: 0 0 14px rgba(95,231,255,0.9);
    }

    .mobile-nav-icon.active.purple {
        color: #d65cff;
        text-shadow: 0 0 14px rgba(214,92,255,0.9);
    }

    .mobile-nav-icon.active.pink {
        color: #ff69d2;
        text-shadow: 0 0 14px rgba(255,105,210,0.9);
    }

    .mobile-nav-icon.active::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -5px;

        width: 32px;
        height: 3px;

        transform: translateX(-50%);

        border-radius: 999px;
        background: currentColor;

        box-shadow:
            0 0 10px currentColor,
            0 0 20px currentColor;
    }

    .mobile-nav-icon.active::before {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -10px;

        width: 8px;
        height: 8px;

        transform: translateX(-50%);

        border-radius: 50%;
        background: white;

        box-shadow:
            0 0 10px currentColor,
            0 0 20px currentColor;
    }

    .mobile-drawer-overlay {
        position: fixed;
        inset: 0;
        z-index: 6000;

        opacity: 0;
        pointer-events: none;

        background: rgba(0,0,0,0.56);
        backdrop-filter: blur(4px);

        transition: opacity 0.28s ease;
    }

    .mobile-drawer-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-slide-drawer {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 7000;

        width: min(84vw, 430px);
        height: 100vh;

        transform: translateX(-105%);
        transition: transform 0.34s ease;

        overflow: hidden;

        border-right: 1px solid rgba(255,105,255,0.35);
        border-radius: 0 28px 28px 0;

        box-shadow:
            18px 0 50px rgba(0,0,0,0.55),
            0 0 28px rgba(255,105,255,0.22);
    }

    .mobile-slide-drawer.show {
        transform: translateX(0);
    }

    .drawer-bg {
        position: absolute;
        inset: 0;

        background:
            linear-gradient(
                90deg,
                rgba(4,8,25,0.92),
                rgba(8,10,34,0.76)
            ),
            url("../images/mobile-drawer-bg.1247bc5803f1.png");

        background-size: auto 100%;
        background-position: right center;
        background-repeat: no-repeat;
    }

    .drawer-content {
        position: relative;
        z-index: 2;

        height: 100%;
        overflow-y: auto;

        padding: 24px 26px 34px;
        box-sizing: border-box;
    }

    .drawer-close-btn {
        position: absolute;
        top: 24px;
        right: 24px;

        width: 58px;
        height: 58px;

        border-radius: 16px;
        border: 1px solid rgba(255,105,255,0.38);

        background: rgba(255,255,255,0.04);
        color: white;

        font-size: 42px;
        font-weight: 300;
        line-height: 1;

        box-shadow:
            0 0 18px rgba(255,105,255,0.28),
            inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .drawer-brand img {
        width: 120px;
        height: auto;
        display: block;
        margin-bottom: 28px;
    }

    .drawer-user-area {
        display: flex;
        align-items: center;
        gap: 18px;

        margin-bottom: 30px;
    }

    .drawer-avatar {
        width: 92px;
        height: 92px;

        border-radius: 50%;
        object-fit: cover;

        border: 2px solid rgba(95,231,255,0.65);

        box-shadow:
            0 0 0 4px rgba(255,105,255,0.22),
            0 0 28px rgba(95,231,255,0.46),
            0 0 34px rgba(255,105,255,0.34);
    }

    .drawer-user-info {
        min-width: 0;
    }

    .drawer-name {
        color: white;
        font-size: 30px;
        font-weight: 800;
        line-height: 1;
        margin-bottom: 10px;
    }

    .drawer-vip {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        min-width: 72px;
        height: 30px;

        margin-bottom: 10px;

        border-radius: 999px;
        border: 1px solid rgba(255,105,255,0.75);

        color: white;
        font-size: 15px;
        font-weight: 900;

        background: rgba(255,105,255,0.12);
        box-shadow: 0 0 12px rgba(255,105,255,0.28);
    }

    .drawer-balance {
        height: 34px;

        display: inline-flex;
        align-items: center;

        border-radius: 999px;
        overflow: hidden;

        background: rgba(0,0,0,0.34);
        border: 1px solid rgba(255,255,255,0.12);
    }

    .drawer-balance span {
        padding: 0 12px;
        font-size: 13px;
        font-weight: 800;
        white-space: nowrap;
    }

    .drawer-balance-text {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .drawer-koin-icon {
        width: 18px;
        height: 18px;
        object-fit: contain;

        filter:
            drop-shadow(0 0 6px rgba(255,105,255,0.35))
            drop-shadow(0 0 10px rgba(95,231,255,0.25));
    }

    .drawer-balance a {
        width: 34px;
        height: 34px;

        display: flex;
        align-items: center;
        justify-content: center;

        color: white;
        text-decoration: none;
        font-size: 23px;
        font-weight: 700;

        border-left: 1px solid rgba(255,255,255,0.12);
        background: rgba(255,255,255,0.06);
    }

    .drawer-menu-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .drawer-menu-list a {
        position: relative;

        min-height: 62px;

        display: flex;
        align-items: center;
        gap: 18px;

        padding: 0 18px;

        border-radius: 18px;

        color: white;
        text-decoration: none;

        font-size: 23px;
        font-weight: 900;

        border: 1px solid transparent;

        transition: all 0.22s ease;
    }

    .drawer-menu-list a strong {
        margin-left: auto;
        font-size: 42px;
        font-weight: 300;
        opacity: 0.9;
    }

    .drawer-icon {
        width: 34px;

        display: flex;
        justify-content: center;

        font-size: 32px;
        color: #5fe7ff;

        text-shadow: 0 0 14px rgba(95,231,255,0.72);
    }

    .drawer-menu-list a.active {
        background:
            linear-gradient(
                100deg,
                rgba(95,231,255,0.22),
                rgba(255,105,255,0.26)
            );

        border-color: rgba(95,231,255,0.38);

        box-shadow:
            0 0 18px rgba(95,231,255,0.25),
            0 0 24px rgba(255,105,255,0.18),
            inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .drawer-menu-list a.purple .drawer-icon {
        color: #d65cff;
        text-shadow: 0 0 14px rgba(214,92,255,0.72);
    }

    .drawer-menu-list a.pink .drawer-icon {
        color: #ff69d2;
        text-shadow: 0 0 14px rgba(255,105,210,0.72);
    }

    .drawer-divider {
        height: 1px;
        margin: 26px 0;

        background:
            linear-gradient(
                90deg,
                transparent,
                rgba(255,255,255,0.16),
                transparent
            );
    }

    .drawer-menu-list.secondary a {
        min-height: 54px;
        font-size: 21px;
    }

    .drawer-menu-list.secondary .drawer-icon {
        color: #8a7cff;
        text-shadow: 0 0 14px rgba(138,124,255,0.72);
    }

    .drawer-logout-form {
        margin-top: 26px;
    }

    .drawer-logout-form button,
    .drawer-login-btn {
        width: 100%;
        height: 62px;

        border-radius: 18px;
        border: 1px solid rgba(255,58,164,0.45);

        background:
            linear-gradient(
                135deg,
                rgba(255,58,164,0.20),
                rgba(255,58,164,0.08)
            );

        color: white;
        font-size: 22px;
        font-weight: 900;

        box-shadow:
            0 0 18px rgba(255,58,164,0.18),
            inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .drawer-login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        margin-top: 26px;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }
}

.mobile-nav-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;

    opacity: 0.72;
    transition: all 0.22s ease;
}

.mobile-nav-icon.active img {
    opacity: 1;

    filter:
        drop-shadow(0 0 8px currentColor)
        drop-shadow(0 0 18px currentColor);
}

.drawer-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;

    opacity: 0.92;
}

.drawer-menu-list.secondary .drawer-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;

    opacity: 0.92;

    filter:
        drop-shadow(0 0 8px rgba(180,140,255,0.35))
        drop-shadow(0 0 16px rgba(180,140,255,0.18));
}

.feedback-success-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.68);
    backdrop-filter: blur(8px);
}

.feedback-success-box {
    width: min(420px, calc(100% - 32px));
    padding: 34px 28px;
    border-radius: 20px;

    text-align: center;
    color: white;

    background:
        radial-gradient(circle at top, rgba(95,231,255,0.18), transparent 36%),
        radial-gradient(circle at right, rgba(255,105,180,0.16), transparent 36%),
        linear-gradient(180deg, rgba(18,24,48,0.96), rgba(10,12,28,0.96));

    border: 1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.55),
        0 0 34px rgba(95,231,255,0.15);
}

.feedback-success-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: linear-gradient(135deg, #35b7ff, #ff5fc8);

    font-size: 30px;
    font-weight: 900;

    box-shadow:
        0 0 24px rgba(95,231,255,0.28),
        0 0 24px rgba(255,105,180,0.22);
}

.feedback-success-box h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 900;
}

.feedback-success-box p {
    margin: 0 0 24px;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

.feedback-success-box button {
    min-width: 150px;
    height: 44px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(135deg, #35b7ff, #8b7cff 45%, #ff5fc8);

    color: white;
    font-weight: 900;
    cursor: pointer;
}

.navbar-right .login-btn {
    height: 40px !important;
    min-width: 104px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 22px !important;

    border-radius: 12px !important;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.10),
            rgba(255,255,255,0.04)
        ) !important;

    border: 1px solid rgba(255,255,255,0.08) !important;

    color: white !important;
    text-decoration: none !important;

    font-size: 14px !important;
    font-weight: 900 !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 4px 14px rgba(0,0,0,0.18),
        0 0 16px rgba(255,105,180,0.10) !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transform: none !important;
}

/* =========================
   HARD FIX: hide mobile navbar on desktop/login desktop
========================= */

.mobile-koripa-nav,
.mobile-topbar,
.mobile-drawer-overlay,
.mobile-slide-drawer {
    display: none !important;
}

@media (max-width: 760px) {
    .mobile-koripa-nav {
        display: block !important;
    }

    .mobile-topbar {
        display: flex !important;
    }

    .mobile-drawer-overlay,
    .mobile-slide-drawer {
        display: block !important;
    }
}

@media (max-width: 760px) {

    .login-page-wrapper,
    .login-container,
    .login-shell {
        position: relative;
        z-index: 5;
    }

    footer {
        margin-top: 40px !important;
    }

    body.login-page {
        display: block;
        min-height: auto;
    }
}

/* =========================================
   NOTICE MOBILE FIX
========================================= */

@media (max-width: 768px) {

    .notice-page-shell {
        width: calc(100% - 24px) !important;
        margin: 38px auto 70px !important;
    }

    .notice-row {
        min-height: 104px !important;
        padding: 14px 46px 14px 14px !important;

        display: grid !important;
        grid-template-columns: 76px 1fr !important;
        gap: 12px !important;
        align-items: center !important;

        border-radius: 20px !important;
        overflow: hidden !important;
    }

    .notice-left {
        position: relative !important;
        width: 76px !important;
        height: 76px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .notice-icon {
        width: 64px !important;
        height: 64px !important;
        flex: 0 0 64px !important;
    }

    .notice-icon img {
        width: 64px !important;
        height: 64px !important;
        object-fit: contain !important;
    }

    .notice-category-tag {
        position: absolute !important;
        left: 50% !important;
        bottom: -4px !important;
        transform: translateX(-50%) !important;

        min-width: 72px !important;
        height: 24px !important;
        padding: 0 10px !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-radius: 999px !important;

        color: white !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        white-space: nowrap !important;

        z-index: 5 !important;
    }

    .notice-row-main {
        min-width: 0 !important;
        text-align: left !important;
    }

    .notice-row-main .notice-date {
        margin: 0 0 5px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .notice-row-main h2 {
        margin: 0 !important;
        font-size: 15px !important;
        line-height: 1.35 !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .notice-preview {
        display: none !important;
    }

    .notice-arrow {
        position: absolute !important;
        right: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;

        font-size: 34px !important;
        line-height: 1 !important;
    }

    .pagination {
        margin-top: 28px !important;
        gap: 12px !important;
    }

    .page-btn,
    .current-page {
        min-width: 64px !important;
        height: 44px !important;
        padding: 0 14px !important;
        font-size: 15px !important;
    }
}

.dropdown-logout-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.dropdown-logout-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 14px 18px;

    background: transparent;
    border: none;

    color: #ff7b93;

    font-size: 14px;
    font-weight: 800;
    font-family: inherit;

    text-align: center;

    cursor: pointer;

    transition:
        background 0.22s ease,
        color 0.22s ease;
}

.dropdown-logout-btn:hover {
    background: rgba(255, 70, 100, 0.12);
    color: #ffb0be;
}

.footer-link-icon {
    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.footer-link-icon img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(0 0 6px rgba(95,231,255,0.35));
}

.footer-links a {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    text-align: center;
}

.footer-link-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.footer-link-icon img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    display: block;

    filter:
        drop-shadow(0 0 10px rgba(95,231,255,0.45));
}

/* ===== SMALL MOBILE DRAWER USER INFO FIX ===== */
@media (max-width: 452px) {
    .drawer-user-info {
        min-width: 0;
        max-width: calc(100% - 100px);
    }

    .drawer-name-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        min-width: 0;
    }

    .drawer-name {
        margin-bottom: 0 !important;
        font-size: 27px;
        line-height: 1;
        max-width: 135px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hamburger-vip-badge {
        flex-shrink: 0;
        margin-bottom: 0 !important;
        height: 24px;
        min-width: 42px;
        padding: 0 8px;
        font-size: 12px;
        line-height: 24px;
    }

    .drawer-balance {
        max-width: 190px;
    }

    .drawer-balance span {
        padding: 0 9px;
        font-size: 12px;
    }

    .drawer-koin-icon {
        width: 16px;
        height: 16px;
    }
}

/* =========================================
   MOBILE BROWSER SAFE AREA FIX
========================================= */

@media (max-width: 768px) {

    .drawer-content {
        padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
        box-sizing: border-box !important;
    }

    .drawer-logout-form {
        margin-bottom: env(safe-area-inset-bottom) !important;
    }

}

.modal-body p {
    margin: 0 0 10px;
    line-height: 1.8;
}

.modal-body p:empty {
    display: none;
}

.modal-body a {
    color: #5fe7ff;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Rich-text (CKEditor) images embedded in a notice body had no width
   cap, so their natural width (often 800px+) overflowed the modal on
   mobile and forced broken horizontal scroll. Constrain to the content
   width; height:auto (!important to beat CKEditor's inline height attr)
   keeps aspect ratio. Applies to any embedded media/tables too. */
.modal-body img {
    max-width: 100%;
    height: auto !important;
    display: block;
    margin: 14px auto;
    border-radius: 12px;
}

.modal-body iframe,
.modal-body video,
.modal-body table {
    max-width: 100%;
}

.modal-body table {
    display: block;
    overflow-x: auto;
}

/* =========================================
   DAILY LOGIN BONUS MODAL
========================================= */

.daily-login-bonus-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.daily-login-bonus-modal.show {
    display: flex;
}

.daily-login-card-modal {
    position: relative;
    width: min(1060px, 94vw);
    padding: 34px 34px 30px;
    border-radius: 30px;
    overflow: hidden;
    color: white;
    text-align: center;

    background:
        radial-gradient(circle at 16% 18%, rgba(95,231,255,0.22), transparent 30%),
        radial-gradient(circle at 86% 15%, rgba(255,105,180,0.24), transparent 32%),
        radial-gradient(circle at 50% 100%, rgba(168,85,247,0.18), transparent 42%),
        linear-gradient(135deg, rgba(8,14,34,0.98), rgba(29,18,53,0.98));

    border: 1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 30px 90px rgba(0,0,0,0.62),
        0 0 36px rgba(95,231,255,0.18),
        0 0 48px rgba(255,105,180,0.15);

    animation: dailyLoginPop 0.3s ease both;
}

.daily-login-card-modal::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    pointer-events: none;

    background: linear-gradient(135deg, #5fe7ff, rgba(255,255,255,0.12), #ff69b4);

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.daily-login-close-x {
    position: absolute;
    top: 22px;
    right: 28px;
    z-index: 5;

    width: 42px;
    height: 42px;

    border: none;
    background: transparent;
    color: #ff7bd5;

    font-size: 44px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
    transition: all 0.22s ease;
}

.daily-login-close-x:hover {
    transform: rotate(90deg) scale(1.05);
    color: #ffffff;
    text-shadow: 0 0 18px rgba(255,105,180,0.6);
}

.daily-login-header {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    margin-bottom: 24px;
}

.daily-login-gift img {
    width: 92px;
    height: 92px;
    object-fit: contain;

    filter:
        drop-shadow(0 0 14px rgba(95,231,255,0.45))
        drop-shadow(0 0 20px rgba(255,105,180,0.35));

    animation: dailyGiftFloat 3s ease-in-out infinite;
}

.daily-login-header h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 0.04em;

    text-shadow:
        0 0 18px rgba(95,231,255,0.28),
        0 0 24px rgba(255,105,180,0.18);
}

.daily-login-header p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.78);
    font-size: 15px;
    font-weight: 800;
}

.daily-login-main {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 26px;

    padding: 24px;

    border-radius: 22px;
    background: rgba(0,0,0,0.16);
    border: 1px solid rgba(255,255,255,0.08);
}

.daily-login-left {
    min-width: 0;
}

.daily-login-step-title {
    margin: 0 0 18px;
    color: rgba(255,255,255,0.78);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.daily-login-step-title span {
    color: #ff7bd5;
}

.daily-login-stamp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.daily-login-stamp-card {
    position: relative;
    min-height: 190px;
    padding: 14px 8px 12px;
    border-radius: 10px;

    background:
        linear-gradient(180deg, rgba(16,28,58,0.9), rgba(10,15,35,0.92));

    border: 1px solid rgba(255,255,255,0.10);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 10px 24px rgba(0,0,0,0.24);

    transition: all 0.22s ease;
}

.daily-login-stamp-card.claimed {
    border-color: rgba(255,105,180,0.42);
    box-shadow:
        0 0 18px rgba(255,105,180,0.14),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.daily-login-stamp-card.today {
    transform: translateY(-4px);
    border-color: rgba(95,231,255,0.9);
    box-shadow:
        0 0 22px rgba(95,231,255,0.35),
        0 0 24px rgba(255,105,180,0.25),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.daily-login-stamp-card.today::before {
    content: "本日";
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    padding: 4px 12px;
    border-radius: 7px;

    color: white;
    font-size: 12px;
    font-weight: 900;

    background: linear-gradient(135deg, #35b7ff, #ff5fc8);
    box-shadow: 0 0 16px rgba(95,231,255,0.35);
}

.daily-login-stamp-card.locked {
    opacity: 0.45;
}

.daily-login-day {
    color: rgba(255,255,255,0.75);
    font-size: 18px;
    font-weight: 900;
}

.daily-login-stamp-icon {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 16px auto 12px;

    border-radius: 50%;

    color: white;
    font-size: 21px;
    font-weight: 900;

    background:
        radial-gradient(circle at top, rgba(255,255,255,0.22), transparent 35%),
        linear-gradient(135deg, rgba(255,105,180,0.7), rgba(168,85,247,0.55));

    border: 2px solid rgba(255,145,215,0.8);

    box-shadow:
        0 0 18px rgba(255,105,180,0.32),
        inset 0 0 16px rgba(255,255,255,0.08);
}

.daily-login-stamp-card.today .daily-login-stamp-icon {
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.28), transparent 35%),
        linear-gradient(135deg, rgba(95,231,255,0.82), rgba(93,120,255,0.66));
    border-color: rgba(95,231,255,0.95);
    box-shadow:
        0 0 20px rgba(95,231,255,0.42),
        inset 0 0 16px rgba(255,255,255,0.1);
}

.daily-login-stamp-card.locked .daily-login-stamp-icon {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.16);
    box-shadow: none;
}

.daily-login-stamp-status {
    min-height: 20px;
    color: #ff7bd5;
    font-size: 13px;
    font-weight: 900;
}

.daily-login-stamp-card.today .daily-login-stamp-status {
    color: #5fe7ff;
}

.daily-login-stamp-card.locked .daily-login-stamp-status {
    color: rgba(255,255,255,0.35);
}

.daily-login-stamp-points {
    margin-top: 12px;
    color: white;
    font-size: 23px;
    font-weight: 900;
}

.daily-login-stamp-card.today .daily-login-stamp-points {
    color: #ffe082;
    text-shadow: 0 0 14px rgba(255,216,107,0.35);
}

.daily-login-stamp-points small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: rgba(255,255,255,0.72);
}

.daily-login-note {
    margin-top: 20px;
    padding: 14px 18px;

    border-radius: 999px;

    color: rgba(255,255,255,0.82);
    font-size: 14px;
    font-weight: 800;

    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}

.daily-login-right {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 22px;

    border-radius: 20px;

    background:
        radial-gradient(circle at 50% 35%, rgba(255,216,107,0.18), transparent 34%),
        linear-gradient(180deg, rgba(27,20,50,0.88), rgba(9,14,34,0.92));

    border: 1px solid rgba(255,255,255,0.10);
}

.daily-login-ribbon {
    padding: 8px 22px;
    margin-bottom: 18px;

    border-radius: 8px;

    color: white;
    font-size: 15px;
    font-weight: 900;

    background:
        linear-gradient(135deg, rgba(255,105,180,0.45), rgba(95,231,255,0.20));

    border: 1px solid rgba(255,255,255,0.12);
}

.daily-login-big-points {
    color: #ffe082;
    font-size: 58px;
    font-weight: 900;
    line-height: 1;

    text-shadow:
        0 0 18px rgba(255,216,107,0.42),
        0 0 30px rgba(255,105,180,0.18);
}

.daily-login-point-label {
    margin-top: 10px;
    color: white;
    font-size: 22px;
    font-weight: 900;
}

.daily-login-divider {
    width: 100%;
    height: 1px;
    margin: 24px 0 18px;

    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}

.daily-login-current-label {
    margin: 0 0 10px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 900;
}

.daily-login-total-box {
    min-width: 180px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 14px;

    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,105,180,0.28);

    font-size: 18px;
    font-weight: 900;
}

.daily-login-total-box strong {
    font-size: 34px;
}

.daily-login-point-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;

    filter:
        drop-shadow(0 0 10px rgba(255,105,180,0.45))
        drop-shadow(0 0 14px rgba(95,231,255,0.25));
}

.daily-login-ok-btn {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 260px;
    height: 56px;

    margin: 26px auto 0;

    border: none;
    border-radius: 999px;

    color: white;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.05em;

    cursor: pointer;

    background: linear-gradient(135deg, #35b7ff, #8b7cff 45%, #ff5fc8);

    box-shadow:
        0 16px 38px rgba(0,0,0,0.34),
        0 0 26px rgba(95,231,255,0.22),
        0 0 28px rgba(255,105,180,0.18);

    transition: all 0.22s ease;
}

.daily-login-ok-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

@keyframes dailyLoginPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .daily-login-card-modal {
        max-height: 88vh;
        overflow-y: auto;
        padding: 28px 18px 24px;
    }

    .daily-login-header h2 {
        font-size: 26px;
    }

    .daily-login-main {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .daily-login-stamp-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .daily-login-stamp-card {
        min-height: 150px;
    }

    .daily-login-right {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .daily-login-stamp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .daily-login-header {
        flex-direction: column;
        gap: 8px;
    }

    .daily-login-big-points {
        font-size: 46px;
    }

    .daily-login-ok-btn {
        min-width: 220px;
    }
}

.daily-login-stamp-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.points-boxnav {
    height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.04)
        );

    border: 1px solid rgba(255,105,180,0.14);
    backdrop-filter: blur(10px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 4px 14px rgba(0,0,0,0.18),
        0 0 14px rgba(255,105,180,0.08);
}

.navbar-points-text {
    display: flex;
    align-items: center;
    gap: 7px;

    color: white;
    font-size: 14px;
    font-weight: 900;
}

.navbar-point-icon {
    width: 21px;
    height: 21px;
    object-fit: contain;
    display: block;

    filter:
        drop-shadow(0 0 6px rgba(255,105,180,0.45))
        drop-shadow(0 0 8px rgba(95,231,255,0.28));
}

.drawer-points {
    margin-top: 8px;
}

.drawer-points-text {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 6px 10px;
    border-radius: 999px;

    color: white;
    font-size: 13px;
    font-weight: 900;

    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,105,180,0.16);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 0 12px rgba(255,105,180,0.10);
}

.drawer-point-icon {
    width: 19px;
    height: 19px;
    object-fit: contain;

    filter:
        drop-shadow(0 0 6px rgba(255,105,180,0.45))
        drop-shadow(0 0 8px rgba(95,231,255,0.28));
}

@media (max-width: 520px) {
    .daily-login-bonus-modal {
        padding: 10px;
        align-items: center;
    }

    .daily-login-card-modal {
        width: 94vw;
        max-height: 92dvh;
        padding: 22px 14px 16px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .daily-login-header {
        flex-shrink: 0;
        margin-bottom: 14px;
    }

    .daily-login-gift img {
        width: 76px;
        height: 76px;
    }

    .daily-login-header h2 {
        font-size: 24px;
    }

    .daily-login-header p {
        font-size: 12px;
    }

    .daily-login-main {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        padding: 14px 10px;
        margin-bottom: 14px;
    }

    .daily-login-stamp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .daily-login-stamp-card {
        min-height: 142px;
    }

    .daily-login-ok-btn {
        flex-shrink: 0;
        width: 70%;
        min-width: 0;
        height: 52px;
        margin: 0 auto;
    }
}

@media (min-width: 901px) {
    .daily-login-stamp-card.today::before {
        top: -10px;
        z-index: 5;
    }

    .daily-login-stamp-card.today {
        padding-top: 24px;
    }

    .daily-login-day {
        margin-top: 4px;
    }
}

.admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 42px;
    padding: 0 18px;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #ffb347,
        #ff6b6b
    );

    color: white;
    font-weight: 700;
    text-decoration: none;

    margin-right: 12px;

    transition: all 0.25s ease;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(255, 179, 71, 0.45);
}

/* Unread badge on the お問い合わせ nav link.
   NOTE: the badge ALSO carries these as an inline style attribute in
   partials/navbar.html. That is deliberate, not redundancy — 23 templates load
   style.css with no ?v= cache-buster, so a change here does not reach those
   pages and the badge rendered as bare text ("お問い合わせ2") on them. The
   inline copy is immune to that. Keep the two in sync if you restyle it. */
.nav-unread-badge {
    display: inline-block;
    min-width: 18px;
    padding: 1px 6px;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    color: #fff;
    background: #ff4d6d;
    border-radius: 999px;
    vertical-align: middle;
}
