:root {
    /* Colors */
    --primary-blue-start: #2D8CFF;
    --primary-blue-end: #0A4CBF;
    --accent-red-start: #FF4D66;
    --accent-red-end: #FF1A3C;
    --bg-color: #F0F5FA;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #F0F0F0;
    --heading-color: #04328A;

    /* Gradients */
    --gradient-blue: linear-gradient(90deg, var(--primary-blue-start) 0%, var(--primary-blue-end) 100%);
    --gradient-red: linear-gradient(90deg, var(--accent-red-start) 0%, var(--accent-red-end) 100%);

    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: "Microsoft JhengHei", "Arial Black", sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Header */
.main-header {
    background: var(--gradient-blue);
    color: var(--white);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Navigation */
.main-nav {
    background: var(--gradient-red);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav ul {
    display: flex;
    justify-content: center;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 12px 24px;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-cta {
    background-color: var(--white);
    color: var(--primary-blue-end);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--gradient-red);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: filter 0.2s, transform 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-lg);
}

/* Intro Card specific */
.intro-card {
    text-align: center;
    border-top: 4px solid var(--primary-blue-start);
}

/* Divider */
.divider {
    border-top: 1px solid #eee;
    margin: 24px 0;
}

/* Feature Grid (Why Choose Us) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.feature-item {
    background: #f8fafd;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-item h3 {
    color: var(--primary-blue-end);
}

/* Pillar Grid (Four Pillars) */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pillar-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    text-align: center;
}

.pillar-card:hover {
    background: #fff;
    box-shadow: 0 8px 16px rgba(45, 140, 255, 0.15);
    border-color: var(--primary-blue-start);
    transform: translateY(-3px);
}

.pillar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* Provider List */
.provider-list {
    margin: 20px 0;
    padding-left: 20px;
    line-height: 1.8;
}

.provider-list li {
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--accent-red-start);
}

/* CTA Card */
.cta-card {
    text-align: center;
    background: linear-gradient(to bottom right, #fff, #f0f5fa);
    border: 1px solid #dce4ef;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #052a7a 0%, #021a50 100%);
    color: var(--white);
    padding-top: 60px;
    margin-top: auto;
    border-top: 5px solid var(--accent-red-start);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-red-start);
}

.footer-col p {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #cbd5e1;
    transition: color 0.3s, padding-left 0.3s;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 5px;
    text-decoration: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.copyright-bar {
    background: #01123a;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {

    /* Layout */
    .container {
        padding: 0 15px;
        /* Reduce side padding */
    }

    /* Header */
    .header-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: auto;
        /* Allow natural height */
        padding: 10px 15px;
        /* CRITICAL: Restore side padding */
        gap: 15px;
    }

    .logo {
        display: flex;
        align-items: center;
        /* Remove flex: 1 to prevent stretching, let it be natural */
    }

    .logo a {
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 36px;
        /* slightly taller */
        width: auto;
    }

    .btn-cta {
        /* Polish the button */
        padding: 8px 18px;
        font-size: 0.85rem;
        border-radius: 25px;
        /* More rounded */
        margin: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        white-space: nowrap;
    }

    /* Navigation */
    .main-nav ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 0;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 5px;
        /* Reduced side padding, rely on grid width */
        font-size: 0.8rem;
        /* Slightly smaller to fit "Free Kredit" */
        text-align: center;
        white-space: nowrap;
        height: 100%;
        border-bottom: 2px solid transparent;
        /* Prepare for active state or hover */
    }

    /* Content */
    .main-content {
        padding: 20px 0;
    }

    .card {
        padding: 20px;
        margin-bottom: 20px;
    }

    /* Typography */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Grids - Stack them */
    .footer-content,
    .feature-grid,
    .pillar-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 20px;
    }

    /* Footer adjustments */
    .footer-content {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
        /* Center underline */
    }

    .contact-info li {
        justify-content: center;
    }

    /* Provider List */
    .provider-list li {
        border-left: none;
        border-top: 3px solid var(--accent-red-start);
        padding-left: 0;
        padding-top: 10px;
    }

    /* Promo List (Free Kredit Page) */
    .promo-card {
        flex-direction: column;
    }

    .promo-img {
        width: 100%;
        height: 180px;
    }
}

/* Banner Styles */
/* Banner Styles */
.banner-16-9 {
    width: 100%;
    max-width: 800px;
    /* Reduced width per user request */
    margin: 20px auto;
    /* Center with spacing */
    aspect-ratio: 16 / 9;
    background-color: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    /* Dark text for placeholder if needed */
    border: 4px solid var(--white);
    /* Inner white border */
    outline: 4px solid var(--primary-blue-end);
    /* Outer blue frame */
    border-radius: 12px;
    /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Carousel within 16:9 Banner */
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the frame completely */
    display: block;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(45, 140, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* Withdrawal Table Styles */
.withdrawal-section {
    width: 100%;
    max-width: var(--container-width);
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.withdrawal-table {
    width: 100%;
    margin-top: var(--spacing-sm);
    display: block;
    /* Essential for body scrolling */
}

.withdrawal-table thead,
.withdrawal-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
    /* Ensures columns stay aligned */
}

.withdrawal-table tbody {
    display: block;
    height: 300px;
    /* visible height */
    overflow: hidden;
    /* JS will scroll it */
}

.withdrawal-table th,
.withdrawal-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.withdrawal-table th {
    background-color: #f8f9fa;
    color: var(--primary-blue-end);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.withdrawal-table tr:hover {
    background-color: #f0f8ff;
}

.withdrawal-amount {
    color: var(--accent-red-end);
    font-weight: bold;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-processing {
    background-color: #fff3cd;
    color: #856404;
}

/* Bonus Calculator Styles */
.calculator-card {
    background: linear-gradient(135deg, #ffffffee 0%, #f0f8ffaa 100%);
    border: 2px solid var(--primary-blue-start);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--heading-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.calc-results {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
}

.result-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-value {
    font-weight: bold;
    color: var(--primary-blue-end);
    font-size: 1.1rem;
}

.btn-calc {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.3s;
}

.btn-calc:hover {
    opacity: 0.9;
}

/* Server Status Widget Styles */
.server-status-card {
    background: #1a1a2e;
    /* Dark theme for tech feel */
    color: #fff;
    border: 1px solid #333;
}

.server-status-card h2 {
    color: #00d2ff;
    /* Tech cyan */
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.server-item {
    background: #16213e;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.server-name {
    font-weight: bold;
    font-size: 0.95rem;
}

.server-ping {
    font-family: monospace;
    font-size: 0.9rem;
    color: #aaa;
}

.ping-value {
    font-weight: bold;
    color: #00ff88;
    /* Green for good ping */
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: #555;
    /* Default gray */
}

.status-indicator.online {
    background-color: #00ff88;
    box-shadow: 0 0 8px #00ff88;
}

.status-indicator.checking {
    background-color: #ffaa00;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

.btn-check-server {
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-check-server:hover {
    transform: scale(1.05);
}

/* Free Kredit Page Styles */
.promo-list {
    display: grid;
    gap: 20px;
}

.promo-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-direction: column;
}

.promo-img {
    height: 150px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

.promo-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promo-title {
    font-size: 1.2rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

@media (min-width: 600px) {
    .promo-card {
        flex-direction: row;
    }

    .promo-img {
        width: 200px;
        height: auto;
    }
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.login-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--heading-color);
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--primary-blue-start);
}

/* Content Links Styling */
/* Applied to anchor tags within card paragraphs */
.card p a {
    color: var(--primary-blue-end);
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s;
}

.card p a:hover {
    color: var(--accent-red-end);
}

/* Step-by-Step Layout Optimization */
.step-layout-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.step-text {
    flex: 1;
}

.step-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .step-layout-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .step-text {
        flex: 3;
        /* 60% approx space */
    }

    .step-image {
        flex: 2;
        /* 40% approx space */
        justify-content: flex-end;
        /* Align image to right */
    }

    font-family: monospace;
    font-size: 0.9rem;
    color: #aaa;
}

.ping-value {
    font-weight: bold;
    color: #00ff88;
    /* Green for good ping */
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: #555;
    /* Default gray */
}

.status-indicator.online {
    background-color: #00ff88;
    box-shadow: 0 0 8px #00ff88;
}

.status-indicator.checking {
    background-color: #ffaa00;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

.btn-check-server {
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-check-server:hover {
    transform: scale(1.05);
}

/* Free Kredit Page Styles */
.promo-list {
    display: grid;
    gap: 20px;
}

.promo-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-direction: column;
}

.promo-img {
    height: 150px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

.promo-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promo-title {
    font-size: 1.2rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

@media (min-width: 600px) {
    .promo-card {
        flex-direction: row;
    }

    .promo-img {
        width: 200px;
        height: auto;
    }
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.login-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--heading-color);
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--primary-blue-start);
}

/* Content Links Styling */
/* Applied to anchor tags within card paragraphs */
.card p a {
    color: var(--primary-blue-end);
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s;
}

.card p a:hover {
    color: var(--accent-red-end);
}

/* Step-by-Step Layout Optimization */
.step-layout-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.step-text {
    flex: 1;
}

.step-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .step-layout-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .step-text {
        flex: 3;
        /* 60% approx space */
    }

    .step-image {
        flex: 2;
        /* 40% approx space */
        justify-content: flex-end;
        /* Align image to right */
    }

    .step-image img {
        margin: 0 !important;
        /* Override inline margin */
    }
}

/* FAQ Accordion Styles */
.faq-accordion {
    margin-top: 10px;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-blue-end);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-blue-start);
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent-red-start);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0;
}

.faq-item.active .faq-answer {
    padding-bottom: 15px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}