@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('scrollbar.css');

:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --accent-blue: #2563eb;
    --accent-blue-dark: #1d4ed8;
    --accent-blue-light: #eff6ff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-premium: 0 10px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    --shadow-hover: 0 20px 40px rgba(37, 99, 235, 0.08), 0 1px 10px rgba(37, 99, 235, 0.04);
    --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, button, input, select, textarea, table, th, td, code, pre, span, div, a, label, p, h1, h2, h3, h4, h5, h6 {
    font-family: 'Kanit', sans-serif;
}

.btn-text-mobile {
    display: none;
}

.btn-text-desktop {
    display: inline;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(29, 78, 216, 0.95));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 9px 0;
    transition: var(--transition-smooth);
}

.navbar .container {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    color: var(--text-white);
    display: flex;
    align-items: center;
}

.navbar .logo span {
    color: var(--text-white);
    text-shadow: none;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 8px 0;
    transition: var(--transition-smooth);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: var(--transition-smooth);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}



.navbar .btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text-white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition-smooth);
    font-weight: 500;
    cursor: pointer;
}

.navbar .btn-login:hover {
    background: #ffffff;
    color: var(--accent-blue);
    border-color: #ffffff;
    box-shadow: var(--shadow-premium), var(--shadow-glow);
    transform: translateY(-1px);
}

.navbar .btn-login i {
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'Kanit', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    max-width: 550px;
    width: 90%;
    height: 380px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.btn-close-promo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    z-index: 2010;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--accent-blue);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
}

.btn-close-promo:hover {
    background: var(--accent-blue);
    color: var(--text-white);
    transform: rotate(90deg) scale(1.05);
}

#promoModalLink {
    display: block;
    width: 100%;
    height: calc(100% - 48px);
    overflow: hidden;
}

.promo-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-modal-footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    box-sizing: border-box;
    z-index: 2005;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    background-color: var(--bg-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.form-check-input:hover {
    border-color: var(--accent-blue);
}

.form-check-input:checked {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.form-check-input:checked::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--text-white);
    font-size: 10px;
}

.form-check-label {
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    line-height: 18px;
    margin: 0;
    display: inline-block;
}

.stats-section {
    padding: 80px 0;
    position: relative;
    background-color: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--accent-blue-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(37, 99, 235, 0.05);
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.footer {
    background-color: #0b0f19;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px;
    color: #f8fafc;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand .footer-logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-brand .footer-logo span {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.footer-desc {
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 25px;
    max-width: 400px;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    color: var(--text-white);
    transform: translateY(-3px);
}

.social-icon-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.5);
}

.social-icon-line:hover {
    background: #06c755;
    border-color: #06c755;
    box-shadow: 0 0 15px rgba(6, 199, 85, 0.5);
}

.social-icon-discord:hover {
    background: #5865f2;
    border-color: #5865f2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

.social-icon-youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.social-icon-tiktok:hover {
    background: #010101;
    border-color: #010101;
    box-shadow: 0 0 15px rgba(1, 1, 1, 0.5);
}

.social-icon-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.5);
}

.social-icon-twitter:hover {
    background: #0f1419;
    border-color: #0f1419;
    box-shadow: 0 0 15px rgba(15, 20, 25, 0.5);
}

.footer-nav h4, .footer-contact h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: var(--text-white);
}

.footer-nav h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #94a3b8;
    font-size: 15px;
}

.contact-item i {
    font-size: 18px;
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #94a3b8;
}

.footer-link {
    color: var(--accent-blue);
    font-weight: 600;
}

.footer-link:hover {
    color: var(--accent-blue-dark);
}

#loginModal .modal-dialog {
    max-width: 450px;
    height: auto;
}

#loginModal .modal-content {
    padding: 0;
    width: 100%;
    max-width: 450px;
    height: auto;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 40px;
    text-align: center;
    margin-bottom: 0;
}

.login-header h2 {
    font-size: 21px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-header h2 i {
    color: var(--text-white);
    font-size: 20px;
}

.login-form {
    padding: 30px 40px 40px 40px;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.login-form .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    transition: var(--transition-smooth);
}

.login-form .form-input:focus {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.login-form .form-input.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.forgot-link {
    color: var(--accent-blue);
    font-weight: 500;
}

.forgot-link:hover {
    color: var(--accent-blue-dark);
    text-decoration: underline;
}

.btn-submit-login {
    width: 100%;
    padding: 12px;
    border: none;
    font-family: 'Kanit', sans-serif;
}

.login-register-prompt {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.register-link,
.login-link-toggle {
    color: var(--accent-blue);
    font-weight: 600;
    margin-left: 5px;
}

.register-link:hover,
.login-link-toggle:hover {
    color: var(--accent-blue-dark);
    text-decoration: underline;
}

@media (max-width: 576px) {
    #loginModal .modal-dialog {
        max-width: 320px;
    }
    #loginModal .modal-content {
        padding: 30px 20px;
    }
}

.page-header {
    position: relative;
    height: 240px;
    margin-top: 60px;
    background-image: url('../images/bg/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

.page-header .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

@media (max-width: 768px) {
    .page-header {
        height: 180px;
    }
}

.login-social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.login-social-divider::before,
.login-social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid var(--border-color);
}

.login-social-divider span {
    padding: 0 10px;
}

.login-social-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.btn-social {
    flex: 1;
    min-width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-main);
}

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

.btn-social i {
    font-size: 14px;
}

.btn-social-google:hover {
    background: #f8fafc;
    border-color: #ea4335;
    color: #ea4335;
}

.btn-social-google:hover i {
    color: #ea4335;
}

.btn-social-discord:hover {
    background: #5865f2;
    border-color: #5865f2;
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.btn-social-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

@media (max-width: 576px) {
    .login-social-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .form-input {
    padding-right: 46px;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-smooth);
    outline: none;
}

.btn-toggle-password:hover {
    color: var(--accent-blue);
}

#promoModal .modal-dialog {
    max-width: 420px;
    height: 600px;
}

@media (max-width: 576px) {
    #promoModal .modal-dialog {
        max-width: 320px;
        height: 460px;
    }
}

#promoModal #promoModalLink {
    display: block;
    width: 100%;
    height: 100%;
}

#promoModal .promo-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#promoModal .promo-modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 20px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

#promoModal .promo-modal-footer .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

#promoModal .promo-modal-footer .form-check-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

#promoModal .promo-modal-footer .form-check-input {
    cursor: pointer;
    accent-color: var(--accent-blue);
    width: 16px;
    height: 16px;
}

.floating-contact-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.widget-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.widget-trigger:hover {
    transform: rotate(15deg) scale(1.05);
    background: var(--accent-blue-dark);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.6);
}

.widget-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: absolute;
    bottom: 75px;
    z-index: 1;
    pointer-events: none;
}

.widget-items::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -10px;
    right: -10px;
    height: 30px;
    background: transparent;
}

.floating-contact-widget:hover .widget-items {
    pointer-events: auto;
}

.widget-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-contact-widget:hover .widget-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.widget-item:nth-child(1) { transition-delay: 0s; }
.widget-item:nth-child(2) { transition-delay: 0.05s; }
.widget-item:nth-child(3) { transition-delay: 0.1s; }

.widget-tooltip {
    position: absolute;
    right: 60px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.widget-item:hover .widget-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.widget-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
    transform: scale(1.1);
}

.widget-discord:hover {
    background: #5865f2;
    border-color: #5865f2;
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    transform: scale(1.1);
}

.widget-line:hover {
    background: #06c755;
    border-color: #06c755;
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
    transform: scale(1.1);
}

.widget-youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    transform: scale(1.1);
}

.widget-tiktok:hover {
    background: #010101;
    border-color: #010101;
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(1, 1, 1, 0.4);
    transform: scale(1.1);
}

.widget-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
    transform: scale(1.1);
}

.widget-twitter:hover {
    background: #0f1419;
    border-color: #0f1419;
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(15, 20, 25, 0.4);
    transform: scale(1.1);
}

.floating-contact-widget:hover .widget-item:nth-child(1) { transition-delay: 0.3s; }
.floating-contact-widget:hover .widget-item:nth-child(2) { transition-delay: 0.25s; }
.floating-contact-widget:hover .widget-item:nth-child(3) { transition-delay: 0.2s; }
.floating-contact-widget:hover .widget-item:nth-child(4) { transition-delay: 0.15s; }
.floating-contact-widget:hover .widget-item:nth-child(5) { transition-delay: 0.1s; }
.floating-contact-widget:hover .widget-item:nth-child(6) { transition-delay: 0.05s; }
.floating-contact-widget:hover .widget-item:nth-child(7) { transition-delay: 0s; }

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-label-row .forgot-link {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.form-label-row .forgot-link:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

#notificationModal.show .notif-icon-wrapper {
    animation: popAndRotate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popAndRotate {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.user-dropdown-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-trigger {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.user-avatar-trigger:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.user-avatar-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.user-avatar-trigger:hover .avatar-placeholder {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1);
}

.user-credits {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.user-credits:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-credits i {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.user-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.user-submenu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    left: auto;
    width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.user-submenu.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.submenu-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.submenu-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.submenu-email {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.submenu-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.submenu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu-list li a i {
    font-size: 14px;
    color: var(--text-muted);
    width: 16px;
    text-align: center;
    transition: color 0.2s ease;
}

.submenu-list li a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-light);
}

.submenu-list li a:hover i {
    color: var(--accent-light);
}

.submenu-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

.submenu-list li a.logout-link:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.submenu-list li a.logout-link:hover i {
    color: #ef4444;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-submenu-list {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px 0;
    min-width: 230px;
    box-shadow: var(--shadow-premium);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    list-style: none;
}

.nav-submenu-list::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-dropdown:hover .nav-submenu-list {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(2px);
}

.nav-submenu-list li {
    padding: 2px 8px;
}

.nav-submenu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-submenu-list li a i {
    font-size: 14px;
    width: 20px;
    text-align: center;
    color: var(--accent-blue);
    transition: transform 0.2s ease;
}

.nav-submenu-list li a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
}

.nav-submenu-list li a:hover i {
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar .logo {
        margin-left: 0;
    }
    
    .nav-menu {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

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

.swal2-container {
    backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.75) !important;
    z-index: 999999 !important;
}

.swal2-popup {
    background: var(--bg-secondary) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 20px !important;
    padding: 28px 24px !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35) !important;
    font-family: 'Kanit', sans-serif !important;
    color: var(--text-main) !important;
}

.swal2-title {
    font-family: 'Kanit', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    margin-bottom: 8px !important;
}

.swal2-html-container {
    font-family: 'Kanit', sans-serif !important;
    font-size: 14px !important;
    color: var(--text-muted) !important;
    line-height: 1.6 !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    font-family: 'Kanit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    border: none !important;
    outline: none !important;
}

.swal2-cancel {
    background: var(--bg-tertiary) !important;
    color: var(--text-main) !important;
    font-family: 'Kanit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    border: 1px solid var(--border-color) !important;
    outline: none !important;
}

.swal2-icon {
    margin: 12px auto 16px auto !important;
}

.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 20px) scale(0.95);
    background: var(--bg-secondary);
    color: var(--text-main);
    backdrop-filter: blur(12px);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
}

.toast-notification.success {
    border-color: rgba(16, 185, 129, 0.4);
}

.toast-notification.success i {
    color: #10b981;
}

.toast-notification.error {
    border-color: rgba(239, 68, 68, 0.4);
}

.toast-notification.error i {
    color: #ef4444;
}

.toast-notification.warning {
    border-color: rgba(245, 158, 11, 0.4);
}

.toast-notification.warning i {
    color: #f59e0b;
}

.toast-notification.info {
    border-color: rgba(37, 99, 235, 0.4);
}

.toast-notification.info i {
    color: var(--accent-blue);
}

.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--accent-blue);
    transform-origin: left;
    animation: toast-countdown 2.5s linear forwards;
}

.toast-notification.error .toast-progress-bar {
    background: #ef4444;
}

.toast-notification.warning .toast-progress-bar {
    background: #f59e0b;
}

.toast-notification.info .toast-progress-bar {
    background: var(--accent-blue);
}

.toast-notification.success .toast-progress-bar {
    background: #10b981;
}

@keyframes toast-countdown {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.mobile-bottom-nav {
    display: none !important;
}
