@font-face {
    font-family: 'LINESeedSansTH';
    src: url('/fonts/LINESeedSansTH_W_Th.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINESeedSansTH';
    src: url('/fonts/LINESeedSansTH_W_Rg.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINESeedSansTH';
    src: url('/fonts/LINESeedSansTH_W_Bd.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINESeedSansTH';
    src: url('/fonts/LINESeedSansTH_W_XBd.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'LINESeedSansTH', 'Noto Sans Thai', 'Prompt', sans-serif;
}

body {
    background: #fff;
    color: #1a1a1a;
    overflow-x: hidden;
}

.navbar {
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1150px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo img {
    height: 45px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s;
    vertical-align: middle;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00b3b3;
}

html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #111;
    transition: 0.3s;
}

.menu-toggle.active i::before {
    content: "\f00d";
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-horizontal {
    margin-top: auto;
}

.status {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
}

.status .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00c853;
    margin-right: 6px;
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.6);
    animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


@media (min-width: 993px) {
    .nav-container {
        justify-content: space-between;
    }

    .nav-left {
        display: flex;
        align-items: center;
        gap: 35px;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: #fff;
        backdrop-filter: blur(10px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 0 30px;
        border-top: 1px solid #fff;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;

        opacity: 0;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;

        transition:
            max-height 0.55s cubic-bezier(0.25, 0.8, 0.25, 1),
            opacity 0.4s ease-in-out,
            padding 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        opacity: 1;
        max-height: 400px;
        padding: 25px 30px;
        pointer-events: auto;
    }

    .nav-links li a {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .btn.primary {
        font-size: 0.95rem;
        padding: 8px 16px;
    }
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    width: 220px;
    padding: 15px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 9999;
}

.dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.user-avatar-small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.user-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.user-info p {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
}

.dropdown .btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.25s;
}

.dropdown .btn.setting {
    background: #e8f9f9;
    color: #007d7d;
}

.dropdown .btn.setting:hover {
    background: #d4f3f3;
}

.dropdown .btn.logout {
    background: #ffebeb;
    color: #c0392b;
}

.dropdown .btn.logout:hover {
    background: #ffdede;
}


.btn {
    border: none;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #fff;
}

.btn.primary:hover {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    transform: translateY(-3px);
}

.btn.dark {
    background: #242424;
    color: #fff;
}

.btn.dark:hover {
    background: #242424;
    transform: translateY(-3px);
}

.btn.secondary {
    background: #D1D1D1;
    color: #000;
}

.btn.secondary:hover {
    transform: translateY(-3px);
}

.banner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 40px;
    overflow: hidden;
    color: #000;
    animation: fadeIn 1.2s ease-in-out;
    min-height: 400px;
    background: #f3f3f3;
}

.banner::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg,
            #f5f5f5,
            #cccccc,
            #8f8f8f,
            #5c5c5c,
            #2b2b2b,
            #000000);
    animation: rotateGradient 18s linear infinite;
    filter: blur(100px);
    transform-origin: center;
    z-index: 0;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    z-index: 1;
}

.floating-dots {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.floating-dots span {
    position: absolute;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    opacity: 0;
    animation: floatDot 6s ease-in-out forwards;
}

.banner-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.banner-content p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #222;
    opacity: 0.9;
}

.banner-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

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

    25% {
        background-position: 100% 0%;
    }

    50% {
        background-position: 50% 100%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 50% 0%;
    }
}

@keyframes floatDot {
    0% {
        transform: translateY(0) scale(0.6);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(-10px) scale(1);
        opacity: 1;
    }

    80% {
        transform: translateY(-15px) scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: translateY(-20px) scale(0.5);
        opacity: 0;
    }
}

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

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats {
    text-align: center;
    padding: 90px 30px;
    background: #fff;
}

.stats h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.stats-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 2px solid #F0F0F0;
    border-radius: 20px;
    padding: 40px 20px;
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.stats-card:hover {
    transform: translateY(-8px);
}

.stats-card i {
    font-size: 2.2rem;
    margin-bottom: 15px;
    background: #4e4e4e;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.stats-card p {
    color: #333;
    margin-top: 5px;
    font-weight: 500;
}

.features {
    text-align: center;
    padding: 100px 30px;
}

.features h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 35px 20px;
    border: 2px solid #F0F0F0;
    backdrop-filter: blur(10px);
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card i {
    font-size: 2rem;
    background: #4e4e4e;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: #333;
    font-weight: 400;
    font-size: 0.95rem;
}

.footer-horizontal {
    width: 100%;
    background: #111;
    color: #ccc;
    padding: 15px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container {
    width: 100%;
    max-width: 1150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-container p {
    font-size: 0.95rem;
    color: #aaa;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 18px;
}

.footer-socials a {
    color: #ccc;
    font-size: 1.4rem;
    transition: all 0.25s ease;
}

.footer-socials a:hover {
    color: #00b3b3;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .banner {
        padding: 70px 25px;
    }

    .banner h1 {
        font-size: 2.2rem;
    }

    .stats-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.server-info {
    background: #fff;
    padding: 100px 30px;
    display: flex;
    justify-content: center;
}

.server-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1150px;
    flex-wrap: wrap;
}

.server-left {
    position: relative;
    display: inline-block;
    border-radius: 20px;
    overflow: hidden;
    border: 5px solid #e4e4e4;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

.server-left img {
    width: 460px;
    height: auto;
    display: block;
    transform: scale(1.06);
    transition: transform 0.25s ease;
}

.server-left:hover img {
    transform: scale(1.08);
}

.server-right {
    max-width: 500px;
}

.server-right h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.server-right span {
    color: #3b3b3b;
}

.server-right p {
    color: #444;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.server-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #f0f0f0;
    text-align: center;
    transition: 0.15s cubic-bezier(0.3, 1, 0.5, 1);
}

.stat-box:hover {
    transform: translateY(-8px);
}

.stat-box h3 {
    font-size: 1.2rem;
    color: #222;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 0.9rem;
    color: #444;
}

@media (max-width: 992px) {
    .server-info {
        padding: 70px 20px;
    }

    .server-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .server-left img {
        width: 100%;
        max-width: 420px;
        transform: scale(1);
    }

    .server-left:hover img {
        transform: scale(1.03);
    }

    .server-right {
        max-width: 100%;
    }

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

    .stat-box {
        padding: 18px 15px;
    }
}

@media (max-width: 576px) {
    .server-info {
        padding: 60px 15px;
    }

    .server-left img {
        max-width: 100%;
        border-radius: 16px;
    }

    .server-right h2 {
        font-size: 1.3rem;
    }

    .server-right p {
        font-size: 0.95rem;
    }

    .stat-box h3 {
        font-size: 1.05rem;
    }
}

.stat-box {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #F0F0F0;
    text-align: center;
    transition: 0.15s cubic-bezier(0.3, 1, 0.5, 1);
}

.stat-box:hover {
    transform: translateY(-8px);
}

.stat-box h3 {
    font-size: 1.3rem;
    color: #222;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 0.9rem;
    color: #444;
}

.community {
    text-align: center;
    padding: 100px 30px;
    background: #FFF;
}

.community h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111;
}

.community p {
    color: #555;
    margin-bottom: 60px;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.community-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    border: 2px solid #eaeaea;
    padding: 40px 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.15s cubic-bezier(0.3, 1, 0.5, 1);
}

.community-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.community-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.community-card p {
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.community-card .btn.dark {
    padding: 10px 18px;
    border-radius: 10px;
    color: #fff;
    background: #242424;
    font-weight: 600;
    transition: all 0.2s ease;
}

.community-card .btn.dark:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
}

a {
    text-decoration: none;
}

.tos-section {
    background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
    padding: 100px 30px;
    display: flex;
    justify-content: center;
}

.tos-container {
    max-width: 1150px;
    width: 100%;
    color: #222;
    font-family: "Kanit", sans-serif;
}

.tos-container h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111;
    letter-spacing: -0.5px;
}

.tos-container h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.tos-desc {
    color: #444;
    line-height: 1.8;
    margin-bottom: 60px;
    max-width: 850px;
}

.tos-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
    position: relative;
}

.tos-tabs .tab {
    padding: 10px 22px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    transition: 0.25s;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tos-tabs .tab:hover {
    background: #eaeaea;
    transform: translateY(-2px);
}

.tos-tabs .tab.active {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.tos-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 15px;
    margin-left: auto;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.tos-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 10px;
    font-size: 1rem;
    color: #333;
}

.tos-search i {
    color: #666;
    font-size: 1rem;
    margin-right: 10px;
}

.tos-rules-grid ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.tos-rules-grid li {
    background: #f9fefe;
    border: 1px solid #b6e7e0;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 10px;
    color: #111;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: center;
    position: relative;
}

.tos-rules-grid li::before {
    content: "✔";
    color: #32d1b0;
    font-size: 1rem;
    font-weight: bold;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .tos-section {
        padding: 60px 20px;
    }

    .tos-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .tos-search {
        order: 10;
        width: 100%;
        margin-left: 0;
    }

    .tos-tabs .tab {
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }

    .tos-content {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .tos-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }

    .tos-tabs::-webkit-scrollbar {
        height: 6px;
    }

    .tos-tabs::-webkit-scrollbar-thumb {
        background: #bbb;
        border-radius: 6px;
    }

    .tos-tabs .tab {
        flex-shrink: 0;
    }

    .tos-search {
        min-width: 100%;
        margin-top: 15px;
    }
}

.tos-content {
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.tos-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #111;
}

.tos-content p {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

.tos-image img {
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.tos-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.rule-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.rule-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.rule-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.rule-card p {
    font-size: 0.96rem;
    color: #444;
    line-height: 1.6;
}

.rule-card i {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 12px;
    display: block;
}


.team-section {
    background: #fafafa;
    padding: 100px 30px;
    display: flex;
    justify-content: center;
}

.team-container {
    max-width: 1150px;
    width: 100%;
}

.team-container h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111;
}

.team-container h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.team-desc {
    color: #444;
    line-height: 1.7;
    margin-bottom: 60px;
    max-width: 800px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 40px;
    justify-content: center;
}

.team-card {
    background: #fff;
    border-radius: 16px;
    border-top: 4px solid #000000;
    text-align: center;
    padding: 35px 20px;
    transition: 0.3s;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #353535;
    margin-bottom: 15px;
}

.team-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

.team-card .role {
    font-size: 0.9rem;
    color: #222222;
    font-weight: 600;
    margin-bottom: 20px;
}

.team-card blockquote {
    background: #f7f9fb;
    border-left: 3px solid #313131;
    padding: 10px 15px;
    font-style: italic;
    font-size: 0.9rem;
    color: #444;
    border-radius: 8px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    color: #555;
    font-size: 1.2rem;
    transition: 0.25s;
}

.social-links a:hover {
    color: #2e2e2e;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .team-section {
        padding: 60px 20px;
    }

    .team-container h1 {
        font-size: 2rem;
    }

    .team-card {
        padding: 25px 15px;
    }

    .team-avatar {
        width: 80px;
        height: 80px;
    }

    .team-card blockquote {
        font-size: 0.85rem;
    }
}

.topup-section {
    background: #fafafa;
    padding: 100px 30px;
    display: flex;
    justify-content: center;
}

.topup-container {
    width: 100%;
    max-width: 1150px;
}

.topup-container h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.topup-container h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.topup-container .desc {
    color: #444;
    line-height: 1.7;
    margin-bottom: 50px;
    max-width: 800px;
}

.topup-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    overflow: hidden;
    width: 100%;
}

.topup-card .card-header {
    background: #1a1a1a;
    color: #fff;
    padding: 15px 25px;
    font-weight: 700;
    font-size: 1.05rem;
}

.topup-card .card-body {
    padding: 25px;
}

.topup-card .card-body p {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.example-preview {
    width: 100%;
    display: flex;
    justify-content: center;
}

.example-preview img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.example-preview img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .topup-card .card-body {
        padding: 18px;
    }

    .topup-card .card-header {
        font-size: 1rem;
        padding: 12px 18px;
    }

    .example-preview img {
        max-width: 100%;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .topup-card .card-header {
        font-size: 0.95rem;
    }

    .topup-card .card-body p {
        font-size: 0.9rem;
    }
}

.note-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.note-list li {
    background: #e9e9e9;
    margin: 6px 0;
    padding: 10px 14px;
    border-left: 3px solid #303030;
    border-radius: 8px;
    font-size: 0.95rem;
}

input[type="text"],
input[type="file"] {
    width: 100%;
    border: 1.5px solid #e3e3e3;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 8px 0 20px;
    font-size: 1rem;
    transition: 0.25s ease;
}

input:focus {
    border-color: #303030;
    outline: none;
}

.method-select {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.method-box {
    flex: 1;
    min-width: 220px;
    border: 2px solid #e3e3e3;
    border-radius: 12px;
    text-align: center;
    padding: 20px 10px;
    cursor: pointer;
    transition: 0.35s ease;
    background: #fff;
    position: relative;
}

.method-box i {
    font-size: 1.6rem;
    color: #1d1d1d;
    margin-bottom: 8px;
}

.method-box p {
    font-weight: 600;
    color: #222;
    margin: 0;
}

.method-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 179, 179, 0.1);
}

.method-box.active {
    background: #dddddd;
    border-color: #292929;
    transform: scale(1.02);
}

.method-content {
    display: none !important;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.method-content.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.bank-info {
    margin-bottom: 25px;
    font-weight: 500;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bank-item {
    background: #f9f9f9;
    border: 1.5px solid #eee;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    transition: 0.25s ease;
}

.bank-item .bank-label {
    font-weight: 600;
    color: #222;
    min-width: 90px;
}

.bank-item .bank-value {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #000;
    font-weight: 700;
}

.bank-item-id {
    background: #f9f9f9;
    border: 1.5px solid #eee;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    transition: 0.25s ease;
}

.bank-item-id:hover {
    border-color: #242424;
    background: #b8b8b8;
}

.bank-label {
    font-weight: 600;
    color: #222;
}

.bank-value {
    color: #000;
    font-weight: 700;
    word-break: break-all;
}

.copy-btn {
    background: #2e2e2e;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}

.copy-btn:hover {
    background: #000000;
}

.bank-info .warn {
    background: #ffeaea;
    color: #d00;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 15px;
    border-left: 4px solid #ff6b6b;
}

@media (max-width: 600px) {
    .bank-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .copy-btn {
        align-self: flex-end;
    }
}

.upload-area {
    border: 2px dashed #4facfe;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area.dragover {
    background: #e8f5ff;
    border-color: #00c6ff;
}

.preview-area img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.upload-result {
    display: flex;
    margin-top: 15px;
    gap: 8px;
}

.upload-result input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.upload-result button {
    background: #4facfe;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
}

.upload-area i {
    font-size: 2rem;
    color: #303030;
    margin-bottom: 10px;
    display: block;
}

.upload-area input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.wallet-steps h4 {
    margin-bottom: 10px;
    color: #292929;
}

.wallet-steps ol {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #333;
}

@media (max-width: 768px) {
    .topup-section {
        padding: 70px 20px;
    }

    .method-select {
        flex-direction: column;
        gap: 15px;
    }

    .method-box {
        min-width: 100%;
    }
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.upload-container,
.history-container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
}

.upload-card,
.history-card,
.result-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    margin-bottom: 20px;
    transition: 0.3s ease;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    color: #fff;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 12px 12px 0 0;
    font-size: 15px;
}

.card-header i {
    margin-right: 6px;
    color: #fff;
}

.card-header button {
    background: #f54f4f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.card-header button:hover {
    background: #e43b3b;
}


.upload-area {
    border: 2px dashed #4facfe;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    background: #f7fcff;
    transition: 0.3s ease;
}

.upload-area.dragover {
    background: #eaf6ff;
    border-color: #2196f3;
}

.result-container {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    background: #f8fbff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 0;
}

.result-container .card-header {
    background: #222;
    color: #fff;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 30px 20px 40px;
    background: #f8fbff;
}

.result-card img {
    max-width: 85%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    margin-top: 10px;
}

.result-card img:hover {
    transform: scale(1.02);
}

.link-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#uploaded-link {
    flex: 1;
    min-width: 280px;
    max-width: 700px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px;
}

.history-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: 0.2s ease;
}

.history-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.history-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.history-item input {
    width: 100%;
    font-size: 12px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
}

.upload-sub {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

.upload-btns {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.upload-btn {
    background: #353535;
    color: #fff;
    transition: 0.2s ease;
}

.upload-btn:hover {
    background: #000000;
}

@media (max-width: 1024px) {

    .upload-container,
    .history-container,
    .result-container {
        max-width: 90%;
    }

    .result-card img {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .upload-area {
        padding: 25px 15px;
    }

    .result-card {
        padding: 20px 10px 30px;
    }

    .result-card img {
        max-width: 95%;
    }

    #uploaded-link {
        width: 100%;
        font-size: 13px;
    }

    .upload-btns {
        flex-direction: column;
        gap: 10px;
    }

    .card-header {
        font-size: 15px;
    }

    .upload-section h1 {
        font-size: 1.4rem;
        text-align: center;
    }

    .upload-section h3 {
        font-size: 1.1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 20px 10px;
    }

    .upload-text,
    .upload-sub {
        font-size: 0.85rem;
    }

    .result-card img {
        max-width: 100%;
        border-radius: 10px;
    }

    #uploaded-link {
        font-size: 12px;
    }

    .history-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .history-item img {
        height: 100px;
    }
}

.admin-section {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.admin-container {
    width: 100%;
    max-width: 1100px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0 20px;
}

.left-tools .btn {
    margin-right: 8px;
}

.right-tools {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input,
.select {
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    outline: none;
}

.search-input {
    min-width: 260px;
}

.search-input:focus {
    border-color: #222;
}

.rows-label {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #444;
}

.table-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    text-align: left;
    font-weight: 700;
    color: #222;
    background: #f7f7f7;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.table thead th:last-child,
.table tbody td:last-child {
    text-align: right;
    width: 160px;
}

.table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f2f2f2;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #fafafa;
}

.table-empty {
    padding: 28px;
    text-align: center;
    color: #777;
}

.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.actions {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.btn.danger {
    background: #ffe9e9;
    color: #c01010;
    border-color: #ffd9d9;
}

.btn.danger:hover {
    background: #ffdcdc;
}

.btn.small {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
}

.btn.edit-btn {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.btn.edit-btn:hover {
    background: #222;
}

.btn.del-btn {
    background: #ffe4e4;
    color: #d11;
    border: 1px solid #f6c9c9;
}

.btn.del-btn:hover {
    background: #ffcccc;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px 18px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    background: #f5f5f5;
}

.tab-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .right-tools {
        width: 100%;
        justify-content: space-between;
    }

    .search-input {
        flex: 1;
        min-width: 0;
    }

    .table thead {
        display: none;
    }

    .table tbody td {
        display: block;
        width: 100%;
        border-bottom: 1px dashed #eee;
    }

    .table tbody tr {
        display: block;
        padding: 10px 0;
    }

    .actions {
        justify-content: flex-end;
    }
}

footer,
.footer-horizontal {
    position: relative;
    z-index: 1;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.modal-box h2 {
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-box input,
.modal-box textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.modal-box label {
    display: block;
    font-weight: 600;
    margin: 10px 0 6px;
}

.modal-box select,
.modal-box input,
.modal-box textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    box-sizing: border-box;
}

.modal-box textarea {
    resize: vertical;
    min-height: 70px;
}

.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    padding: 12px 18px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 99999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #00c853;
}

.toast.error {
    background: #e53935;
}

.toast.warn {
    background: #ffb300;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chart-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: 0.3s;
}

.chart-card:hover {
    transform: translateY(-4px);
}

#financeChart {
    width: 100%;
    height: 500px;
    overflow: visible;
}

.chart-legend {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-weight: 600;
    color: #333;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.dot.income {
    background: #4fc3f7;
}

.dot.expense {
    background: #ef5350;
}

.dot.net {
    background: #fdd835;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s;
}

.filter-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-save:hover {
    background: #0056b3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.total-box {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    font-weight: 600;
    font-size: 1.1rem;
}

.total-box .total {
    display: flex;
    align-items: center;
    gap: 5px;
}

.total.income {
    color: #0288d1;
}

.total.expense {
    color: #d32f2f;
}

.total.net {
    color: #fbc02d;
}

@media (max-width: 768px) {
    #financeChart {
        height: 350px;
    }

    .chart-filters {
        flex-wrap: wrap;
        gap: 10px;
    }

    .total-box {
        flex-direction: column;
        align-items: center;
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .admin-container {
        padding: 0 10px;
    }

    .chart-card {
        padding: 20px;
    }

    .chart-legend {
        flex-wrap: wrap;
        gap: 15px;
        font-size: 0.9rem;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table.table {
        width: 100%;
        border-collapse: collapse;
        min-width: 600px;
    }

    .modal-content {
        width: 90%;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.3rem;
        text-align: center;
    }

    .tab-header {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .tab-btn {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .chart-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    #financeChart {
        height: 280px;
    }

    .list-header {
        justify-content: center;
    }

    .table-wrap {
        overflow-x: auto;
    }

    table.table th,
    table.table td {
        font-size: 0.85rem;
        padding: 8px 6px;
        white-space: nowrap;
    }
}

.status-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease;
}

.status-content {
    width: 350px;
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: popIn 0.3s ease;
}

.status-content h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.status-content p {
    margin-bottom: 20px;
    color: #555;
}

@keyframes popIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.status-success h2 {
    color: #2e7d32;
}

.status-error h2 {
    color: #d32f2f;
}

.status-warning h2 {
    color: #f9a825;
}

.policy-section {
    padding: 60px 20px;
    background: #fafafa;
    font-family: "Prompt", sans-serif;
    color: #222;
}

.policy-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 45px 50px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.policy-container h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.5;
}

.policy-container h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffaa00;
    margin-bottom: 5px;
}

.policy-updated {
    font-size: 14px;
    color: #888;
    text-align: right;
    margin-bottom: 30px;
}

.policy-desc {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 35px;
}

.policy-toc {
    background: #f0f0f0;
    border: 1px solid #d4d4d4;
    border-radius: 12px;
    padding: 22px 28px;
    margin-bottom: 45px;
}

.policy-toc h3 {
    font-size: 18px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 12px;
}

.policy-toc ol {
    padding-left: 20px;
    margin: 0;
}

.policy-toc li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.policy-toc a {
    text-decoration: none;
    color: #333;
    transition: 0.2s ease;
}

.policy-toc a:hover {
    color: #3b3b3b;
    text-decoration: underline;
}

.policy-content {
    margin-top: 30px;
}

.policy-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.policy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.policy-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
}

.policy-card p {
    font-size: 15.5px;
    color: #444;
    line-height: 1.9;
}

@media (max-width: 768px) {
    .policy-container {
        padding: 25px 20px;
    }

    .policy-container h1 {
        font-size: 22px;
    }

    .policy-card {
        padding: 20px;
    }

    .policy-desc {
        font-size: 15px;
    }
}

.meta-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 25px 28px;
    margin-bottom: 35px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.meta-box:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.meta-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px 25px;
    margin-bottom: 16px;
}

.meta-box label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: block;
    color: #333;
}

.meta-box input,
.meta-box textarea {
    width: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.meta-box input:focus,
.meta-box textarea:focus {
    outline: none;
    border-color: #4b64e8;
    background: #fff;
}

.meta-box textarea {
    resize: vertical;
    min-height: 90px;
}

.meta-box button.btn.primary {
    background: #4b64e8;
    color: #fff;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.meta-box button.btn.primary:hover {
    background: #3a52cf;
}

@media (max-width: 768px) {
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .meta-box {
        padding: 20px;
    }

    .meta-box h3 {
        font-size: 1.1rem;
    }
}

.policy-card p,
.policy-card li {
    font-size: 15.5px;
    color: #444;
    line-height: 1.9;
    margin-bottom: 10px;
}

.policy-card p {
    text-indent: 24px;
    margin-bottom: 12px;
}

.policy-card ul {
    padding-left: 35px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.policy-card li {
    list-style-type: disc;
    margin-bottom: 5px;
}

.policy-card li+li {
    margin-top: 5px;
}

.policy-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 18px;
    line-height: 1.6;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    gap: 15px;
    flex-wrap: wrap;
}

.table-controls label {
    font-size: 14px;
    color: #333;
}

.table-controls select {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

#searchInput {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 240px;
}

.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
}

.pagination button {
    border: 1px solid #ddd;
    background: #f8f8f8;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button.active {
    background: #4b64e8;
    color: white;
    border-color: #4b64e8;
}

.pagination button:hover {
    background: #eaeaea;
}

input[type="number"] {
    width: 100%;
    border: 1.5px solid #e3e3e3;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 8px 0 20px;
    font-size: 1rem;
    transition: 0.25s ease;
    appearance: none;
    -moz-appearance: textfield;
}

input[type="number"]:focus {
    border-color: #303030;
    outline: none;
    background: #fff;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.statusTitle {
    text-align: center;
}

/* กล่องตัวอย่าง Roblox */
.example-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 35px;
    overflow: hidden;
    width: 100%;
}

.example-card .card-header {
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    padding: 14px 22px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-card .card-body {
    padding: 25px;
    text-align: center;
    color: #333;
}

.example-card p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.6;
}

.example-preview img {
    width: 100%;
    max-width: 700px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: 0.25s ease;
}

.example-preview img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* หมายเหตุสำคัญ */
.note-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    margin-top: 40px;
    overflow: hidden;
    width: 100%;
}

.note-card .card-header {
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    padding: 14px 22px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-card .card-body {
    padding: 25px;
    color: #333;
}

.note-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.note-list li {
    background: #f9f9f9;
    margin: 6px 0;
    padding: 10px 14px;
    border-left: 3px solid #000;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {

    .example-card .card-body,
    .note-card .card-body {
        padding: 18px;
    }

    .example-preview img {
        max-width: 100%;
    }
}
/* PRODUCTS */
.products-container {
    max-width: 1150px;
    margin: 0 auto;
}
.products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}
.products-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}
.products-header p {
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}
.products-header p strong { color: #111; }
.products-filter { position: relative; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; }
.filter-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #fff;
    border: 1.5px solid #e3e3e3;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 99;
}
.filter-dropdown button {
    width: 100%;
    text-align: left;
    padding: 12px 18px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}
.filter-dropdown button:hover { background: #f5f5f5; }
.filter-dropdown.hidden { display: none; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 22px;
}
.product-card {
    background: rgba(255,255,255,0.9);
    border: 2px solid #F0F0F0;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.25,1,0.5,1), box-shadow 0.2s ease, border-color 0.2s;
}
.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.09);
    border-color: #d0d0d0;
}
.product-image { width: 100%; aspect-ratio: 1; overflow: hidden; background: #f5f5f5; }
.product-image img, .product-image video, .product-image iframe {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease; display: block;
}
.product-card:hover .product-image img,
.product-card:hover .product-image video { transform: scale(1.05); }
.product-info { padding: 14px 14px 12px; }
.product-info h3 {
    font-size: 0.88rem; font-weight: 700; color: #111;
    margin-bottom: 8px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 4px; }
.product-id { font-size: 0.75rem; color: #bbb; font-family: monospace; }
.product-price { font-size: 1rem; font-weight: 800; color: #111; }
.product-actions { display: flex; align-items: center; gap: 8px; }
.btn-sm {
    font-size: 0.83rem !important; padding: 7px 12px !important;
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-icon {
    border: none; width: 34px; height: 34px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s; font-size: 0.82rem; flex-shrink: 0;
}
.btn-warn { background: #fff4e0; color: #c07800; }
.btn-warn:hover { background: #ffe0a0; }
.btn-danger { background: #ffebeb; color: #c0392b; }
.btn-danger:hover { background: #ffdede; }

.product-card.skeleton { pointer-events: none; cursor: default; animation: skeletonPulse 1.5s ease-in-out infinite; }
.skeleton-img { width: 100%; aspect-ratio: 1; background: #e8e8e8; }
.skeleton-line { height: 13px; background: #e8e8e8; border-radius: 8px; margin-bottom: 10px; }
.w-75 { width: 75%; } .w-50 { width: 50%; } .w-35 { width: 35%; }
@keyframes skeletonPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

@media (max-width: 768px) {
    .products-section { padding: 60px 20px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(145px,1fr)); gap: 16px; }
    .products-header { margin-bottom: 30px; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
}

/* ADMIN MODALS */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px); display: flex; align-items: center;
    justify-content: center; z-index: 9999; padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
    background: #fff; border-radius: 24px; width: 100%; max-width: 460px;
    padding: 28px; box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    max-height: 90vh; overflow-y: auto; animation: modalFadeIn 0.25s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-header h3 { font-size: 1.25rem; font-weight: 800; color: #111; }
.modal-close {
    background: none; border: none; width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; color: #555; font-size: 1.05rem;
    display: inline-flex; align-items: center; justify-content: center;
    transition: 0.2s; font-family: inherit;
}
.modal-close:hover { background: #f0f0f0; color: #111; }
.modal-footer { display: flex; gap: 12px; margin-top: 6px; }
.modal-footer .btn { flex: 1; display: flex; align-items: center; justify-content: center; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: #444; margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%; border: 1.5px solid #e3e3e3; border-radius: 12px;
    padding: 11px 14px; font-size: 0.95rem; font-family: inherit;
    transition: border 0.2s, box-shadow 0.2s; background: #fff; color: #111;
    box-sizing: border-box; margin: 0;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: #111; box-shadow: 0 0 0 3px rgba(0,0,0,0.07);
}
.form-group textarea { resize: vertical; }
.products-section { padding: 80px 30px; background: #fff; }
