:root {
    --uk-blue: #012169;
    --uk-blue-dark: #001052;
    --uk-blue-light: #003580;
    --uk-red: #C8102E;
    --uk-red-dark: #a00d24;
    --uk-red-light: #e8334a;
    --uk-white: #FFFFFF;
    --uk-off-white: #f4f6f9;
    --uk-gray-100: #e9ecef;
    --uk-gray-200: #dee2e6;
    --uk-gray-300: #ced4da;
    --uk-gray-500: #6c757d;
    --uk-gray-700: #495057;
    --uk-gray-900: #212529;
    --gradient-blue: linear-gradient(135deg, var(--uk-blue) 0%, var(--uk-blue-light) 100%);
    --gradient-red: linear-gradient(135deg, var(--uk-red) 0%, var(--uk-red-light) 100%);
    --gradient-hero: linear-gradient(160deg, rgba(1,33,105,0.95) 0%, rgba(0,53,128,0.82) 40%, rgba(200,16,46,0.55) 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--uk-gray-900);
    overflow-x: hidden;
    background: var(--uk-white);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--uk-gray-100); }
::-webkit-scrollbar-thumb { background: var(--uk-blue); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--uk-red); }

/* ========== TOPBAR ========== */
.topbar {
    background: var(--uk-blue-dark);
    padding: 8px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1001;
}
.topbar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.3s;
}
.topbar a:hover { color: var(--uk-red-light); }
.topbar .bi { color: var(--uk-red-light); font-size: 14px; }
.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-left: 6px;
    transition: all 0.3s;
}
.topbar-social a:hover {
    background: var(--uk-red);
    color: #fff;
    transform: translateY(-2px);
}

/* ========== NAVBAR ========== */
.main-navbar {
    background: var(--uk-white);
    padding: 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--uk-blue) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    /* gap: 8px; */
    padding: 16px 0;
}
.navbar-brand .brand-icon {
    width: 42px; height: 42px;
    background: var(--gradient-blue);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}
.navbar-brand span { color: var(--uk-red); }
.main-navbar .nav-link {
    color: var(--uk-gray-700) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 28px 18px !important;
    position: relative;
    transition: all 0.3s;
    letter-spacing: 0.2px;
}
.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 18px; right: 18px;
    height: 3px;
    background: var(--gradient-red);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: var(--uk-blue) !important; }
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after { transform: scaleX(1); }
.main-navbar .nav-link .bi-chevron-down {
    font-size: 10px; margin-left: 4px; transition: transform 0.3s;
}
.main-navbar .dropdown:hover .bi-chevron-down { transform: rotate(180deg); }
.main-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px;
    margin-top: 0 !important;
    min-width: 220px;
    animation: dropFade 0.3s ease;
    border-top: 3px solid var(--uk-red);
}
@keyframes dropFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.main-navbar .dropdown-item {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--uk-gray-700);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.main-navbar .dropdown-item:hover {
    background: var(--uk-off-white);
    color: var(--uk-blue);
    padding-left: 20px;
}
.main-navbar .dropdown-item .bi { color: var(--uk-red); font-size: 16px; }
.dropdown-item.active, .dropdown-item:active {
    /* color: var(--bs-dropdown-link-active-color); */
    text-decoration: none;
    background-color: #d2e4ff;
}
.nav-cta {
    background: var(--gradient-red) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    margin-left: 10px;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(200,16,46,0.3);
    text-decoration: none;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(200,16,46,0.4) !important;
}

/* ========== PAGE HERO ========== */
.page-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    background: url('../img/uk/12.jpg') center/cover no-repeat;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--uk-white), transparent);
    z-index: 2;
}
.page-hero-content {
    position: relative;
    z-index: 3;
    padding: 110px 80px 70px;
}
.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 7px 16px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 16px;
}
.page-hero-badge .bi { color: var(--uk-red-light); }
.page-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 12px;
}
.page-hero h1 span {
    background: linear-gradient(135deg, var(--uk-red-light), #ff6b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 550px;
    line-height: 1.7;
    margin: 0;
}
.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.breadcrumb-custom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s;
}
.breadcrumb-custom a:hover { color: var(--uk-red-light); }
.breadcrumb-custom .bi { font-size: 10px; color: rgba(255,255,255,0.4); }
.breadcrumb-custom span {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ========== LAST UPDATED BANNER ========== */
.updated-banner {
    background: rgba(200,16,46,0.06);
    border: 1px solid rgba(200,16,46,0.12);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}
.updated-banner .bi { color: var(--uk-red); font-size: 20px; }
.updated-banner p { font-size: 0.9rem; color: var(--uk-gray-700); margin: 0; font-weight: 500; }
.updated-banner p strong { color: var(--uk-blue); }

/* ========== T&C CONTENT ========== */
.tc-section { background: var(--uk-white); }
.toc-card {
    background: var(--uk-off-white);
    border: 1px solid var(--uk-gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}
.toc-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--uk-blue);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--uk-red);
    display: flex;
    align-items: center;
    gap: 10px;
}
.toc-title .bi { color: var(--uk-red); font-size: 18px; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 6px; }
.toc-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: var(--uk-gray-700);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s;
    border: 1px solid transparent;
}
.toc-list a:hover {
    background: var(--uk-white);
    color: var(--uk-blue);
    border-color: var(--uk-gray-200);
    padding-left: 18px;
}
.toc-list a .toc-num {
    width: 24px; height: 24px;
    background: rgba(200,16,46,0.08);
    color: var(--uk-red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tc-content { padding-left: 0; }
.tc-content h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--uk-blue);
    margin: 48px 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--uk-gray-100);
    scroll-margin-top: 80px;
}
.tc-content h2:first-child { margin-top: 0; scroll-margin-top: 0; }
.tc-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--uk-gray-900);
    margin: 32px 0 12px;
}
.tc-content p {
    color: var(--uk-gray-500);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.tc-content ul, .tc-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}
.tc-content li {
    color: var(--uk-gray-500);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.tc-content ul li::marker { color: var(--uk-red); }
.tc-content ol li::marker { color: var(--uk-blue); font-weight: 700; }
.tc-content strong { color: var(--uk-gray-900); }
.tc-content a {
    color: var(--uk-red);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: all 0.3s;
}
.tc-content a:hover { color: var(--uk-red-dark); text-decoration-style: solid; }
.tc-content .highlight-box {
    background: rgba(1,33,105,0.04);
    border-left: 4px solid var(--uk-red);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px;
    margin: 20px 0;
}
.tc-content .highlight-box p:last-child { margin-bottom: 0; }
.tc-content .warning-box {
    background: rgba(200,16,46,0.06);
    border-left: 4px solid #f59e0b;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px;
    margin: 20px 0;
}
.tc-content .warning-box p:last-child { margin-bottom: 0; }
.tc-content .info-box {
    background: rgba(1,33,105,0.06);
    border-left: 4px solid var(--uk-blue);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px;
    margin: 20px 0;
}
.tc-content .info-box p:last-child { margin-bottom: 0; }
.tc-content .contact-box {
    background: var(--uk-off-white);
    border: 1px solid var(--uk-gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 20px 0;
}
.tc-content .contact-box p { margin-bottom: 8px; }
.tc-content .contact-box p:last-child { margin-bottom: 0; }
.tc-content .contact-box a {
    color: var(--uk-red);
    text-decoration: none;
    font-weight: 600;
}
.tc-content .contact-box a:hover { text-decoration: underline; }
.tc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.92rem;
}
.tc-content th,
.tc-content td {
    border: 1px solid var(--uk-gray-200);
    padding: 12px 16px;
    text-align: left;
}
.tc-content th {
    background: var(--uk-blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tc-content td { color: var(--uk-gray-700); }
.tc-content tr:nth-child(even) td { background: var(--uk-off-white); }

/* ========== FOOTER ========== */
.footer-section {
    background: var(--uk-blue-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}
.footer-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--uk-blue) 0%, var(--uk-red) 50%, var(--uk-blue) 100%);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-brand .brand-icon {
    width: 46px; height: 46px;
    background: var(--uk-red);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
}
.footer-brand span { font-size: 1.4rem; font-weight: 800; color: #fff; }
.footer-brand .red { color: var(--uk-red-light); }
.footer-about p { font-size: 0.9rem; line-height: 1.75; margin-bottom: 20px; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
    text-decoration: none;
}
.footer-social a:hover { background: var(--uk-red); color: #fff; transform: translateY(-3px); }
.footer-title {
    color: #fff; font-weight: 700; font-size: 1.05rem;
    margin-bottom: 22px; position: relative; padding-bottom: 12px;
}
.footer-title::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 35px; height: 3px;
    background: var(--uk-red); border-radius: 3px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none; font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.3s;
}
.footer-links a .bi {
    font-size: 10px; color: var(--uk-red);
    opacity: 0; transform: translateX(-5px); transition: all 0.3s;
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-links a:hover .bi { opacity: 1; transform: translateX(0); }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 16px; font-size: 0.9rem;
}
.footer-contact li .bi { color: var(--uk-red-light); font-size: 16px; margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; }
.footer-contact a:hover { color: #fff; }
.footer-payments { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.footer-payments span {
    background: rgba(255,255,255,0.08);
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 0.78rem; font-weight: 600;
    color: rgba(255,255,255,0.7);
    display: flex; align-items: center; gap: 5px;
}
.footer-payments span .bi { font-size: 16px; }
.footer-bottom {
    margin-top: 50px; padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.45); margin: 0; }
.footer-bottom a { color: var(--uk-red-light); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom-links { display: flex; gap: 20px; justify-content: flex-end; }
.footer-bottom-links a { font-size: 0.85rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.3s; }
.footer-bottom-links a:hover { color: #fff; }

.copyright-section { background: #000a1f; padding: 14px 0; text-align: center; }
.copyright-section p { font-size: 0.82rem; color: rgba(255,255,255,0.35); margin: 0; }
.copyright-section a { color: var(--uk-red-light); text-decoration: none; }
.copyright-section a:hover { color: #fff; }

.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    background: var(--gradient-red); color: #fff;
    border: none; border-radius: 50%;
    font-size: 20px; cursor: pointer;
    z-index: 999; display: none;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(200,16,46,0.4);
    transition: all 0.3s;
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(200,16,46,0.5); }
.back-to-top.show { display: flex; }

.custom-toast {
    position: fixed; top: 100px; right: 30px;
    background: var(--uk-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 18px 24px;
    z-index: 9999; display: none;
    align-items: center; gap: 12px;
    border-left: 4px solid var(--uk-red);
    max-width: 380px;
    animation: slideInRight 0.4s ease;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
.custom-toast .bi { font-size: 22px; color: var(--uk-red); }
.custom-toast .toast-msg { font-size: 0.9rem; font-weight: 500; color: var(--uk-gray-700); }
.custom-toast .toast-close { background: none; border: none; font-size: 18px; color: var(--uk-gray-500); cursor: pointer; margin-left: auto; padding: 0; }

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .toc-card { position: static; margin-bottom: 30px; }
    .tc-layout { display: block !important; }
    .tc-sidebar-col { display: none !important; }
    .page-hero h1 { font-size: 2.2rem; }
    .footer-bottom-links { justify-content: flex-start; margin-top: 10px; }
}
@media (max-width: 767px) {
    .page-hero { min-height: 260px; }
    .page-hero-content { padding: 100px 0 60px; }
    .page-hero h1 { font-size: 1.8rem; }
    .toc-card { padding: 24px; }
    .footer-bottom .d-flex { flex-direction: column; gap: 10px; text-align: center; }
}

.page-loader {
    position: fixed; inset: 0;
    background: var(--uk-blue-dark);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s;
}
.page-loader.hide { opacity: 0; pointer-events: none; }
.loader-plane { font-size: 48px; color: #fff; animation: flyPlane 1.5s ease-in-out infinite; }
@keyframes flyPlane {
    0%, 100% { transform: translateX(-20px) translateY(10px) rotate(-5deg); }
    50% { transform: translateX(20px) translateY(-10px) rotate(5deg); }
}