.hidden {
    display: none !important
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    letter-spacing: -.015em;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6;
    min-width: 375px;
    color: var(--tc);
    background-color: var(--main-bg);
    overflow-x: hidden
}

.dark .btn {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

.dark {
    --main-bg: #2e3036;
    --second-bg: #1b1c1d;
    --white-bg: #1e1f20;
    --border: #3a4752;
    --tw: #ffffff;
    --tc: #94a3b8;
    --mc: #3b82f6;
    --mc-hover: #599bff;
    --mc-trans: rgb(59, 130, 246, 0.25);
    --radius: 15px;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h6,
.dark p,
.dark ul,
.dark ol,
.dark li,
.dark li::marker,
.dark li::before,
.dark div,
.dark .history-title,
.dark strong,
.dark .fas.fa-search,
.dark b {
    color: var(--tw)
}

.dark select {
    background-color: var(--main-bg);
    color: var(--tw);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 14px;
}

.dark select option {
    background-color: var(--main-bg);
    color: var(--tw);
}

.dark .sidebar .active i,
.dark .sidebar .active span {
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
}

.hbtn-currency span {
    font-size: 14px;
    font-weight: 500;
}

.dark .hbtn-currency span {
    font-size: 14px;
    font-weight: 500;
}

/* --- Extracted from 2fa.twig, child_panel.twig --- */
.page-outside {
    padding: 100px 0px 40px 0px
}

/* --- Extracted from aboutus.twig --- */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-bg: #f3f4f6;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --radius-card: 20px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Utilities */
.text-primary-custom {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 6px 25px;
    font-weight: 500;
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 1. Hero Section */
.about-hero {
    background-color: var(--primary-color);
    color: white;
    /* เธเธฃเธฑเธ padding-top เน€เธเนเธ 20px เน€เธเธทเนเธญเนเธซเนเธ•เธดเธ” Navbar เธ•เธฒเธกเธ—เธตเนเธเธญ */
    padding: 20px 0 180px;
    position: relative;
    overflow: visible;
    /* Important for overlap */
}

.about-hero h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* 2. Overlap Card Section */
.overlap-section {
    margin-top: -120px;
    /* Pull up to overlap hero */
    padding-bottom: 80px;
    position: relative;
    z-index: 10;
}

.white-card {
    background: white;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.story-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.story-content h2 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.story-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* 3. Two Column Text Section */
.vision-section {
    padding: 80px 0;
    background-color: #f9fafb;
}

/* Modified Heading Style: Black Text + Blue Underline */
.vision-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    /* Black/Dark text */
    display: inline-block;
    border-bottom: 4px solid var(--primary-color);
    /* Blue underline */
    padding-bottom: 5px;
}

.vision-text {
    color: var(--text-muted);
    line-height: 1.7;
}

/* 4. Features Grid */
.features-grid-section {
    padding: 80px 0;
    background: white;
    border-top: 1px solid #eee;
}

.section-title-blue {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-col h4 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
}

.feature-list li i {
    color: var(--primary-color);
    margin-top: 5px;
    margin-right: 10px;
    font-size: 0.8rem;
}

@media (max-width: 991.98px) {
    .about-hero {
        padding-top: 40px;
        text-align: center;
    }

    /* Mobile padding adjustments */
    .white-card {
        padding: 30px;
    }

    .story-img {
        margin-bottom: 30px;
        height: 300px;
    }

    .overlap-section {
        margin-top: -80px;
    }
}

@media (max-width: 767.98px) {
    .about-hero h1 {
        font-size: 2.2rem;
    }

    /* Center Content on Mobile */
    .vision-section,
    .vision-section .row,
    .features-grid-section,
    .story-content {
        text-align: center;
    }

    .feature-list li {
        justify-content: center;
        /* Center list items */
    }

    .feature-list li i {
        margin-top: 3px;
        /* Adjust icon align for centered text */
    }
}

/* --- Extracted from account.twig --- */
/* เธเธณเธซเธเธ”เธชเธตเธซเธฅเธฑเธ (Main Color) */
:root {
    --mc: #3b82f6;
    /* เธชเธตเธเนเธฒ */
    --mc-hover: #2563eb;
    --bg-light: #f9fafb;
    --text-gray: #6b7280;
}

/* --- 1. Nav Pills Styling (เธชเนเธงเธ Tab เธ”เนเธฒเธเธเธ) --- */
.nav-custom {
    background-color: var(--bg-light);
    padding: 5px;
    border-radius: 12px;
}

.nav-custom .nav-link {
    color: var(--text-gray);
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    padding: 10px 15px;
    border: 1px solid transparent;
    margin-bottom: 0 !important;
    /* เนเธเนเนเธ bootstrap default */
}

.nav-custom .nav-link:hover {
    color: var(--mc);
    background-color: rgba(59, 130, 246, 0.05);
}

.nav-custom .nav-link.active {
    background-color: #fff !important;
    color: var(--mc) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: #e5e7eb;
    font-weight: 600;
}

/* --- 2. Card Styling (เธเธฅเนเธญเธเธเธญเธเน€เธ—เธเธ•เน) --- */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    background-color: #fff;
    margin-bottom: 20px;
    overflow: hidden;
    /* เน€เธเธทเนเธญเนเธซเน corner-radius เธ—เธณเธเธฒเธเธชเธกเธเธนเธฃเธ“เน */
}

.card-body {
    padding: 1.5rem;
}

/* --- 3. Form Styling (เธเนเธญเธเธเธฃเธญเธเธเนเธญเธกเธนเธฅ) --- */
.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0.6rem 1rem;
    height: auto;
    /* เนเธซเนเธชเธนเธเธ•เธฒเธกเน€เธเธทเนเธญเธซเธฒ */
    font-size: 0.95rem;
    color: #1f2937;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--mc);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* เธชเธณเธซเธฃเธฑเธ Input เธ—เธตเนเน€เธเนเธ Readonly เนเธ Twig (Username/Email) */
.form-control[readonly] {
    background-color: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

/* --- 4. Button Styling (เธเธธเนเธกเธ•เนเธฒเธเน) --- */
.btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
}

/* เธเธธเนเธก Primary (เธชเธตเธซเธฅเธฑเธ) */
.btn-primary {
    background-color: var(--mc);
    color: #fff;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--mc-hover);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* เธเธธเนเธก Danger (เธชเธณเธซเธฃเธฑเธ 2FA) */
.btn-danger {
    background-color: #ef4444;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

/* --- 5. Alerts Styling (เธเธฅเนเธญเธเธเนเธญเธเธงเธฒเธกเนเธเนเธเน€เธ•เธทเธญเธ) --- */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}


/* RTL Support (เธ•เธฒเธกเน€เธเธทเนเธญเธเนเธเนเธ Twig) */
.rtl-form {
    direction: rtl;
    text-align: right;
}

.rtl-alert {
    text-align: right;
}

/* --- 6. Legacy Support (เนเธเนเธ”เน€เธ”เธดเธกเธเธญเธเธเธธเธ“ เน€เธเนเธเนเธงเนเน€เธเธทเนเธญเนเธเน) --- */
.custom-table thead th {
    background-color: #f9fafb;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    border-bottom: 2px solid #e5e7eb;
}

.custom-table tbody tr:hover {
    background-color: #f8f9fa;
}

.custom-control-label::before,
.custom-control-label::after {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    border-radius: 4px;
    /* เธ—เธณเนเธซเน checkbox เธ”เธนเธ—เธฑเธเธชเธกเธฑเธขเธเธถเนเธ */
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background-color: var(--mc);
    border-color: var(--mc);
}

/* --- Extracted from addfunds.twig --- */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-bg: #f3f4f6;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --radius-card: 20px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --mc: #3b82f6;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --border: #e5e7eb;
}

/* Page Wrapper */
.addfunds-page-wrapper {
    padding: 20px 30px;
}

/* Section Header */
.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: inline-block;
    border-bottom: 4px solid var(--mc);
    padding-bottom: 5px;
}

.section-header p {
    color: var(--text-muted);
    margin-bottom: 0;
    margin-top: 5px;
}

/* Feature Cards */
.card-border {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: white;
    margin-bottom: 20px;
    height: 100%;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.card-border:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--mc);
}

.dh-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-info {
    background: #e0f2fe;
    color: #0284c7;
}

.icon-secondary {
    background: #fce7f3;
    color: #db2777;
}

.icon-primary {
    background: #dcfce7;
    color: #16a34a;
}

.af-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Custom Card */
.custom-card {
    background: white;
    border-radius: var(--radius-card);
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
    position: relative;
}

.card-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.card-title i {
    margin-right: 10px;
    color: var(--mc);
}

/* Form Elements */
.form-control-custom {
    background-color: #f9fafb;
    border: 1px solid var(--border);
    color: var(--text-dark);
    border-radius: 10px;
    padding: 12px 15px;
    height: auto;
    transition: all 0.3s;
}

.form-control-custom:focus {
    background-color: white;
    color: var(--text-dark);
    border-color: var(--mc);
    box-shadow: 0 0 0 4px var(--mc-trans);
    outline: none;
}

/* Buttons */
.btn-submit-order {
    background-color: var(--mc);
    color: white;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    width: 100%;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.btn-submit-order:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

/* System Content Wrapper */
.system-content-wrapper {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.system-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: 0.2s;
}

.history-item:hover {
    transform: translateY(-2px);
    border-color: var(--mc);
}

.history-badge-id {
    background-color: #f9fafb;
    color: var(--text-dark);
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-right: 10px;
}

.history-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.history-amount {
    border: 1px solid #22c55e;
    color: #22c55e;
    background-color: rgba(34, 197, 94, 0.05);
    padding: 4px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.history-date-badge {
    background-color: #f9fafb;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
}

.history-date-badge i {
    margin-right: 8px;
}



/* Empty State */
.nothing-found {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.nothing-found i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

@media (max-width: 991px) {
    .addfunds-page-wrapper {
        padding: 5px !important;
    }

    .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .col-lg-12,
    .col-lg-6,
    .col-lg-4,
    .col-md-6 {
        padding-left: 5px;
        padding-right: 5px;
    }

    .custom-card {
        padding: 1.25rem !important;
    }

    .card-border {
        margin-bottom: 10px;
    }
}

/* --- Extracted from affiliates.twig --- */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-bg: #f3f4f6;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --radius-card: 15px;
    --mc: #3b82f6;
    --mc-hover: #2563eb;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --border-color: #e5e7eb;
}

/* Page Wrapper */
.affiliates-page-wrapper {
    padding: 20px 30px;
}

/* Section Header */
.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.75rem;
    display: inline-block;
    border-bottom: 4px solid var(--mc);
    padding-bottom: 5px;
}

.section-header p {
    color: var(--text-muted);
    margin-bottom: 0;
    margin-top: 5px;
}

/* 1. Affiliate Banner */
.affiliate-banner {
    background: linear-gradient(135deg, var(--mc) 0%, #2563eb 100%);
    border-radius: var(--radius-card);
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
}

.affiliate-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.aff-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.aff-subtitle {
    opacity: 0.9;
    margin-bottom: 25px;
}

.referral-input-group {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 600px;
}

.referral-url {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

.referral-url::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-copy-main {
    background: white;
    color: var(--mc);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-copy-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.aff-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.aff-badge {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.aff-badge i {
    margin-right: 8px;
    color: #fbbf24;
}

/* 2. Wallet & Action Section */
.wallet-action-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.wallet-card {
    flex: 1;
    background: var(--mc-trans);
    border: 1px solid var(--mc);
    border-radius: var(--radius-card);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 300px;
}

.wallet-info h5 {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.wallet-info h2 {
    margin: 0;
    color: var(--mc);
    font-weight: 700;
    font-size: 2rem;
}

.btn-withdraw {
    background: var(--mc);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-withdraw:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-withdraw.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 3. Stats Panel */
.stats-overview-panel {
    background: white;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stats-grid-clean {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item-clean {
    display: flex;
    flex-direction: column;
}

.stat-label-clean {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value-clean {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-icon-clean {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Icon Colors */
.ic-blue {
    background: #e0f2fe;
    color: #0284c7;
}

.ic-green {
    background: #dcfce7;
    color: #16a34a;
}

.ic-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.ic-orange {
    background: #ffedd5;
    color: #ea580c;
}

/* Payout Table */
.table-custom {
    background: white;
    border-radius: var(--radius-card);
    overflow: hidden;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.table-custom thead th {
    background: var(--mc-trans);
    color: var(--mc);
    padding: 15px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.table-custom tbody td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: middle;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-paid {
    background: #dcfce7;
    color: #16a34a;
}

/* Success/Paid */
.status-pending {
    background: #fef9c3;
    color: #ca8a04;
}

/* Pending */
.status-cancel {
    background: #fee2e2;
    color: #991b1b;
}

/* Canceled */

/* Mobile Card */
.payout-card-mobile {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payout-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.payout-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mc);
}

/* Empty State */
.nothing-found {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    background: white;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
}

.nothing-found i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

@media (max-width: 991px) {
    .affiliates-page-wrapper {
        padding: 5px;
    }

    .affiliate-banner {
        padding: 20px;
        text-align: center;
    }

    .aff-title {
        font-size: 1.3rem;
    }

    .referral-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-copy-main {
        width: 100%;
    }

    .aff-badges {
        justify-content: center;
    }

    .wallet-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

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

    .stat-value-clean {
        font-size: 1.3rem;
    }
}

/* --- Extracted from api.twig --- */
:root {
    /* Light Mode Default */
    --main-bg: #f3f4f6;
    --second-bg: #ffffff;
    --white-bg: #ffffff;
    --border: #e5e7eb;
    --tw: #1f2937;
    /* Text Main */
    --tc: #6b7280;
    /* Text Content/Muted */
    --mc: #3b82f6;
    /* Main Color */
    --mc-hover: #2563eb;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --radius: 15px;
}


/* --- API Page Specific Styles --- */
/* เธเธฃเธฑเธเธฃเธฐเธขเธฐเธซเนเธฒเธเธเนเธฒเธขเธเธงเธฒเนเธซเนเธ”เธนเธ”เธตเธเธถเนเธ */
.main-content {
    padding: 20px 30px;
}

.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    font-weight: 700;
    color: var(--mc);
    margin-bottom: 5px;
}

.section-header p {
    color: var(--tc);
    margin-bottom: 0;
}

/* API Info Card */
.api-info-card {
    background: var(--white-bg);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

.api-info-table {
    width: 100%;
    margin-bottom: 0;
}

.api-info-table td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--tw);
}

.api-info-table tr:last-child td {
    border-bottom: none;
}

.api-info-table td:first-child {
    width: 30%;
    font-weight: 600;
    color: var(--tc);
}

/* Documentation Sections */
.doc-section {
    background: var(--white-bg);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 25px;
}

.doc-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tw);
    margin-bottom: 15px;
    border-left: 4px solid var(--mc);
    padding-left: 15px;
}

.doc-table {
    width: 100%;
    margin-bottom: 15px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.doc-table th {
    background: var(--mc-trans);
    color: var(--mc);
    padding: 12px 15px;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    /* เธเนเธญเธเธเธฑเธเธซเธฑเธงเธ•เธฒเธฃเธฒเธเธ•เธฑเธ”เธเธณ */
}

.doc-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--tw);
    font-size: 0.9rem;
}

.doc-table tr:last-child td {
    border-bottom: none;
}

/* Code Block */
.code-block {
    background: #1e1e1e;
    /* Dark theme for code */
    color: #d4d4d4;
    /* Default text color */
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    margin-bottom: 15px;
    position: relative;
}

/* Ensure PRE inside Code Block is also Gray */
.code-block pre {
    color: #d4d4d4;
    margin: 0;
    white-space: pre-wrap;
}

.code-label {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-bottom-left-radius: 8px;
}

.btn-php-example {
    background-color: #8892BF;
    /* PHP Color */
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-php-example:hover {
    background-color: #727ca8;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

@media (max-width: 767.98px) {

    /* เธเธฃเธฑเธเธฃเธฐเธขเธฐเธซเนเธฒเธเนเธเธกเธทเธญเธ–เธทเธญ */
    .main-content {
        padding: 20px 15px;
    }

    /* เธชเนเธ•เธฅเนเธชเธณเธซเธฃเธฑเธ api-info-table (เธชเนเธงเธเธเธ) เนเธซเนเน€เธฃเธตเธขเธเนเธเธงเธ•เธฑเนเธ */
    .api-info-table td {
        display: block;
        width: 100% !important;
        border: none;
        padding-bottom: 5px;
    }

    .api-info-table td:first-child {
        color: var(--mc);
        padding-top: 15px;
    }

    /* เนเธเนเนเธ doc-table (เธชเนเธงเธเธ•เธฒเธฃเธฒเธ parameters) เนเธซเนเธเธฑเธเธเธฑเธเนเธเธงเน Header เนเธฅเธฐเน€เธฅเธทเนเธญเธเนเธ”เน */
    .doc-table {
        min-width: 500px;
        /* เธเธฑเธเธเธฑเธเธเธงเธฒเธกเธเธงเนเธฒเธเธเธฑเนเธเธ•เนเธณเน€เธเธทเนเธญเนเธซเนเน€เธเธดเธ” Scroll */
    }

    .doc-table thead {
        display: table-header-group !important;
        /* เธเธฑเธเธเธฑเธเนเธชเธ”เธเธชเนเธงเธเธซเธฑเธง */
    }

    .doc-table th,
    .doc-table td {
        display: table-cell !important;
        /* เธเธฑเธเธเธฑเธเนเธชเธ”เธเน€เธเนเธเน€เธเธฅเธฅเนเธ•เธฒเธฃเธฒเธเธเธเธ•เธด */
    }
}

/* --- Extracted from blog.twig --- */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-bg: #f3f4f6;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --radius-card: 20px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Utilities */
.text-primary-custom {
    color: var(--primary-color) !important;
}

/* Blog Section */
.blog-section {
    padding: 10px 0 80px;
    flex: 1;
}

/* Blog Card Styles */
.blog-card {
    background: white;
    border: none;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

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

.blog-thumb {
    height: 220px;
    background-color: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.blog-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: 0.2s;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-meta {
    margin-top: 15px;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 3rem;
}

/* Styles for Pagination - Adapted for the new logic */
.pagination {
    justify-content: center;
    display: flex;
    list-style: none;
    padding: 0;
}

.pagination li {
    display: inline-block;
    margin: 0 5px;
}

.pagination li a,
.pagination li span {
    border: none;
    color: var(--text-muted);
    border-radius: 50px;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: 0.3s;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.pagination li a:hover {
    background-color: #e5e7eb;
    color: var(--text-dark);
}

.pagination li.active a,
.pagination li.active span {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

@media (max-width: 991.98px) {
    .blog-section {
        padding-top: 10px;
    }
}

/* --- Extracted from blogpost.twig --- */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-bg: #f3f4f6;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --radius-card: 20px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Utilities */
.text-primary-custom {
    color: var(--primary-color) !important;
}

/* Blog Post Specific Styles */
.blog-post-section {
    padding: 20px 0 80px;
    flex: 1;
}

.blog-header {
    text-align: center;
    margin-bottom: 30px;
}

.blog-category-badge {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.blog-post-title {
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.blog-post-meta {
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.blog-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
}

.blog-content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    word-wrap: break-word;
}

.blog-content-body h2 {
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.6rem;
}

.blog-content-body h3 {
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.4rem;
}

.blog-content-body p {
    margin-bottom: 20px;
}

.blog-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.blog-content-body ul,
.blog-content-body ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.blog-content-body li {
    margin-bottom: 10px;
}

/* Share Section */
.share-section {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 30px 0;
    margin: 50px 0;
    text-align: center;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    color: white;
    transition: 0.3s;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

.bg-facebook {
    background-color: #1877f2;
}

.bg-twitter {
    background-color: #1da1f2;
}

.bg-line {
    background-color: #00c300;
}

.bg-link {
    background-color: #6b7280;
}

/* Back Button Style */
.btn-back-blog {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    transition: 0.2s;
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.btn-back-blog:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(-5px);
    text-decoration: none;
}

.blog-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 3rem;
    border-radius: 20px;
    margin-bottom: 40px;
}

@media (max-width: 991.98px) {
    .blog-post-section {
        padding-top: 20px;
    }

    .blog-post-title {
        font-size: 1.8rem;
    }

    .blog-content-body {
        font-size: 1rem;
    }
}

/* --- Extracted from child_panel_order.twig --- */
/* =========================================
       CHILD PANEL PAGE SPECIFIC STYLES
       (Synced with Theme Style)
       ========================================= */
:root {
    --mc: #3b82f6;
    /* Main Color */
    --mc-hover: #2563eb;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --tc: #6b7280;
    /* Text Content/Muted */
    --tw: #1f2937;
    /* Text Main */
    --white-bg: #ffffff;
    --main-bg: #f3f4f6;
    --border: #e5e7eb;
    --radius: 15px;
}


/* Page Wrapper */
.child-panel-wrapper {
    padding: 20px 30px;
}

/* Section Header */
.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    font-weight: 700;
    color: var(--tw);
    margin-bottom: 5px;
    display: inline-block;
    border-bottom: 4px solid var(--mc);
    padding-bottom: 5px;
}

.section-header p {
    color: var(--tc);
    margin-bottom: 0;
}

/* Custom Cards - Compact Version */
.custom-card {
    background: var(--white-bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Info Card Styles */
.info-card-header {
    font-weight: 700;
    color: var(--mc);
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.info-card-header i {
    margin-right: 8px;
}

.ns-box {
    background: var(--main-bg);
    border: 1px dashed var(--mc);
    padding: 8px;
    border-radius: 8px;
    color: var(--tw);
    font-family: monospace;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 10px;
}

/* 2 Column Feature Grid for Compactness */
.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Columns */
    gap: 5px 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 0;
    color: var(--tc);
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.feature-list li i {
    color: #10b981;
    /* Green check */
    margin-right: 6px;
    font-size: 0.9rem;
}

/* FAQ Section - Accordion Style */
details.faq-item {
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

details.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

summary.faq-question {
    font-weight: 600;
    color: var(--tw);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    /* Remove default marker */
    font-size: 0.85rem;
    outline: none;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

/* Chrome/Safari */

summary.faq-question::after {
    content: '\f107';
    /* FontAwesome down arrow */
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    transition: transform 0.2s;
    color: var(--mc);
    font-size: 0.8rem;
}

details[open] summary.faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 8px;
    color: var(--tc);
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 8px;
    background: var(--main-bg);
    border-radius: 6px;
}

/* Form Controls */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    font-weight: 600;
    color: var(--tc);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.form-control-custom {
    background-color: var(--main-bg);
    border: 1px solid var(--border);
    color: var(--tw);
    border-radius: 8px;
    padding: 8px 12px;
    height: auto;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.form-control-custom:focus {
    background-color: var(--white-bg);
    color: var(--tw);
    border-color: var(--mc);
    box-shadow: 0 0 0 3px var(--mc-trans);
    outline: none;
}

.input-group-text {
    background-color: var(--border);
    border-color: var(--border);
    color: var(--tc);
    border-radius: 8px 0 0 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.alert {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.h4 {
    font-size: 1.25rem;
}

/* Buttons */
.btn-submit {
    background-color: var(--mc);
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    width: 100%;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
    font-size: 0.95rem;
}

.btn-submit:hover {
    background-color: var(--mc-hover);
    transform: translateY(-2px);
}

.btn-renew {
    background-color: #10b981;
    color: white;
    border: 1px solid #10b981;
}

.btn-renew:hover {
    background-color: #059669;
    color: white;
    text-decoration: none;
}

/* Table History */
.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom th {
    text-align: left;
    padding: 10px;
    color: var(--tc);
    font-size: 0.85rem;
    background: var(--main-bg);
}

.table-custom td {
    padding: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--tw);
    vertical-align: middle;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .child-panel-wrapper {
        padding: 10px;
    }

    .container-fluid {
        padding: 1px !important;
    }

    .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    .col-lg-6 {
        padding-left: 15px;
        padding-right: 15px;
    }

    .custom-card {
        padding: 15px;
        height: auto;
    }

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

    /* Stack features on mobile */
}

/* --- Extracted from child_panel.twig --- */
.custom-table thead th {
    letter-spacing: 0.5px;
}

.custom-table tbody tr {
    transition: background-color 0.2s ease;
}

.custom-table tbody tr:hover {
    background-color: #f8f9fa;
}

.custom-table td {
    vertical-align: middle !important;
}

/* --- Extracted from confirmemail.twig --- */
.confirm-email__description p {
    line-height: 1.6;
}

.btn-link:hover {
    text-decoration: none;
    color: var(--mc, #3b82f6) !important;
}

.modal-content {
    overflow: hidden;
}

/* --- Extracted from dashboard.twig --- */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-bg: #f3f4f6;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --radius-card: 20px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --mc: #3b82f6;
    --mc-trans: rgba(59, 130, 246, 0.15);
}

/* Dashboard Wrapper */
.dashboard-page-wrapper {
    padding: 20px 0 80px;
    /* Padding Top 20px เนเธซเนเธ•เธดเธ” Navbar */
}

/* 1. Header Card (Overview) */
.dashboard-header-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-card);
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
    margin-bottom: 40px;
}

.dashboard-header-card .bg-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
    pointer-events: none;
}

/* Progress Bar */
.rank-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.rank-progress-bar {
    height: 100%;
    background-color: #fbbf24;
    /* Amber 400 */
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    transition: width 0.5s ease;
}

/* 2. Benefits Grid (Tiers) */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.tier-card {
    background: white;
    border-radius: var(--radius-card);
    padding: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

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

/* Active Tier Highlight */
.tier-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, #eff6ff, #ffffff);
}

.tier-card.active::before {
    content: "Current";
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
}

.tier-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 15px;
}

.tier-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-price {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Tier Colors */
.tier-new .tier-name {
    color: #6b7280;
}

.tier-member .tier-name {
    color: #3b82f6;
}

.tier-born .tier-name {
    color: #10b981;
}

.tier-gold .tier-name {
    color: #f59e0b;
}

.tier-diamond .tier-name {
    background: -webkit-linear-gradient(45deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tier-enchant .tier-name {
    background: -webkit-linear-gradient(45deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tier-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier-benefits li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: start;
}

.tier-benefits li i {
    color: var(--primary-color);
    /* Green or Primary */
    margin-right: 10px;
    margin-top: 3px;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header-card {
        padding: 20px;
        text-align: center;
    }

    .rank-progress {
        margin: 10px auto;
    }
}

/* --- Extracted from drip_feed.twig --- */
:root {
    --primary-color: #3b82f6;
    --secondary-bg: #f3f4f6;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --white-bg: #ffffff;
    --radius-card: 15px;
}

/* Page Wrapper */
.dripfeed-page-wrapper {
    padding: 20px 30px;
}

/* Custom Pills (Tabs) */
.nav-custom-2 {
    background: white;
    padding: 5px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    display: inline-flex;
    border: 1px solid var(--border-color);
}

.nav-custom-2 .nav-item {
    margin-right: 5px;
}

.nav-custom-2 .nav-item:last-child {
    margin-right: 0;
}

.nav-custom-2 .nav-link {
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 8px 20px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-custom-2 .nav-link:hover {
    background: var(--secondary-bg);
    color: var(--text-dark);
}

.nav-custom-2 .nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
}

.nav-custom-2 .nav-link i {
    margin-right: 6px;
}

/* Search Box */
.services-search {
    position: relative;
}

.services-search .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.services-search .form-control {
    padding-left: 45px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    height: 45px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.services-search .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Table Styling */
.table-responsive {
    background: white;
    border-radius: var(--radius-card);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.custom-table {
    margin-bottom: 0;
    width: 100%;
}

.custom-table thead th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    padding: 15px 20px;
    white-space: nowrap;
}

.custom-table tbody tr {
    transition: background-color 0.2s;
}

.custom-table tbody tr:hover {
    background-color: #f9fafb;
}

.custom-table td {
    padding: 15px 20px;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 0.95rem;
}

.custom-table .link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.custom-table .link:hover {
    text-decoration: underline;
}

/* Status Badges */
.os-widget {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.os-widget.completed {
    background-color: #d1fae5;
    color: #059669;
}

/* Green */
.os-widget.active {
    background-color: #dbeafe;
    color: #2563eb;
}

/* Blue */
.os-widget.processing {
    background-color: #ffedd5;
    color: #ea580c;
}

/* Orange */
.os-widget.canceled {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Red */

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
}

.page-link {
    color: var(--text-muted);
    border: none;
    margin: 0 2px;
    border-radius: 8px !important;
    font-weight: 500;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-link:hover {
    background-color: var(--secondary-bg);
    color: var(--primary-color);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .dripfeed-page-wrapper {
        padding: 15px;
    }

    .services-search .form-control {
        font-size: 16px;
        /* prevent zoom */
    }
}

/* --- Extracted from faq.twig --- */
/* =========================================
   FAQ PAGE SPECIFIC STYLES
   (Synced with Theme Style)
   ========================================= */
:root {
    --mc: #3b82f6;
    /* Main Color */
    --mc-hover: #2563eb;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --tc: #6b7280;
    /* Text Content/Muted */
    --tw: #1f2937;
    /* Text Main */
    --white-bg: #ffffff;
    --main-bg: #f3f4f6;
    --border: #e5e7eb;
    --radius: 15px;
}


/* Page Wrapper */
.faq-page-wrapper {
    /* No generic padding here, header handles it */
}

/* 1. Header Section */
.faq-header {
    background: linear-gradient(135deg, var(--mc) 0%, var(--mc-hover) 100%);
    padding: 60px 0 80px;
    color: #fff;
    text-align: center;
    margin-bottom: -40px;
    /* Pull content up */
}

.faq-header h1 {
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 2. Sidebar Navigation */
.faq-sidebar {
    background: var(--white-bg);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
}

.faq-sidebar .nav-link {
    color: var(--tc);
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 5px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.faq-sidebar .nav-link:hover {
    background: var(--main-bg);
    color: var(--tw);
}

.faq-sidebar .nav-link.active {
    background: var(--mc);
    color: #fff;
    box-shadow: 0 4px 10px var(--mc-trans);
}

/* 3. FAQ Content Area */
.faq-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--tw);
    padding-top: 10px;
}

.faq-category-title i {
    color: var(--mc);
    margin-right: 10px;
}

/* Accordion Card Customization */
.custom-accordion .card {
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    margin-bottom: 15px;
    background: var(--white-bg);
    box-shadow: none;
    overflow: hidden;
}

.custom-accordion .card-header {
    background: transparent;
    padding: 0;
    border-bottom: 0;
}

.custom-accordion .btn-link {
    color: var(--tw);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
}

.custom-accordion .btn-link:hover {
    background: var(--main-bg);
}

.custom-accordion .card-body {
    padding: 0 20px 20px 20px;
    color: var(--tc);
    line-height: 1.6;
}

/* Icon Toggle */
.icon-toggle {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--main-bg);
    color: var(--tc);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

/* Admin Content Well */
.admin-content-well {
    background: var(--white-bg);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* --- Extracted from layout.twig --- */
/* เนเธเนเธ•เธฑเธงเนเธเธฃเธเธฒเธ style.css เธ•เธฒเธกเธ—เธตเนเธฃเธฐเธเธธ 
   เนเธ•เนเธเธณเธซเธเธ”เธเนเธฒ Default เนเธงเนเธเธฑเธเธเธฅเธฒเธ”เธซเธฒเธเนเธซเธฅเธ” style.css เนเธกเนเธ—เธฑเธ 
*/
:root {
    --primary: #3b82f6;
    --primary-light: #eff6ff;
    --primary-dark: #2563eb;
    --sidebar-width: 260px;
    --header-height: 70px;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}

.dark {
    --main-bg: #2e3036;
    --second-bg: #1b1c1d;
    --white-bg: #1e1f20;
    --border: #3a4752;
    --tw: #ffffff;
    --tc: #94a3b8;
    --mc: #3b82f6;
    --mc-hover: #599bff;
    --mc-trans: rgb(59, 130, 246, 0.25);
    --radius: 15px;

    /* Override Root Vars for Consistency */
    --bg-body: var(--main-bg);
    --bg-card: var(--white-bg);
    --text-main: var(--tw);
    --text-muted: var(--tc);
    --border-color: var(--border);
    --primary: var(--mc);
    --primary-light: var(--mc-trans);
}

/* Base Styles */
body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    font-size: 0.95rem;
}

a {
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* =========================================
   DASHBOARD LAYOUT STYLES
   ========================================= */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* 1. SIDEBAR */
.app-sidebar {
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dark .app-sidebar {
    background: var(--bg-card);
    border-right-color: var(--border-color);
}

/* Sidebar Header */
.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 25px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

/* Sidebar Content (Scrollable) */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 15px;
}

.sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Sidebar Menu Groups */
.menu-category-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none !important;
}

.menu-category-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.menu-category-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.sidebar-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.sidebar-content ul li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 4px;
    color: var(--text-main);
    border-radius: 12px;
    font-weight: 400;
}

.sidebar-content ul li a:hover {
    background-color: var(--bg-body);
    color: var(--primary);
}

.sidebar-content ul li a.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.menu-icon {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.active .menu-icon {
    color: var(--primary);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.user-account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-body);
    border-radius: 12px;
}

.user-details {
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.user-avatar-small {
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.user-name-small {
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn-icon {
    color: #ef4444;
    padding: 5px;
    transition: transform 0.2s;
}

.logout-btn-icon:hover {
    transform: scale(1.1);
}


/* 2. MAIN CONTENT AREA */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-width));
    transition: all 0.3s ease;
}

/* Header */
.app-header {
    height: var(--header-height);
    background: var(--bg-card);
    /* White/Dark */
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 900;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Header Right Actions */
.mode-toggle-card {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.mode-toggle-card:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.hbtn-currency {
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.hbtn-currency:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

/* =========================================
   RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 991px) {

    /* Sidebar Mobile State */
    .app-sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .app-sidebar.active {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    .mobile-toggle {
        display: block;
    }

    .sidebar-header {
        justify-content: space-between;
    }

    /* Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
        backdrop-filter: blur(2px);
    }

    .mobile-overlay.active {
        display: block;
    }
}

/* =========================================
   GUEST LAYOUT STYLES (เธซเธเนเธฒเธเนเธฒเธ)
   ========================================= */
.guest-body {
    background: #ffffff;
}

/* Navbar */
.guest-navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: all 0.3s;
}

.guest-navbar .nav-link {
    color: var(--text-main);
    font-weight: 500;
    margin: 0 10px;
    font-size: 1rem;
}

.guest-navbar .nav-link:hover {
    color: var(--primary);
}

.btn-primary-custom {
    background: var(--primary);
    color: white;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    border: none;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 6px 23px;
    font-weight: 500;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: white;
}

/* Footer */
.guest-footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
}

.guest-footer h4,
.guest-footer h6 {
    font-weight: 700;
    margin-bottom: 20px;
}

.guest-footer a {
    color: #9ca3af;
    margin-bottom: 10px;
    display: block;
}

.guest-footer a:hover {
    color: white;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    display: none;
    /* Show only on mobile via media query if needed, or JS toggle */
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        background: white;
        padding: 30px;
        z-index: 1100;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: block;
        /* Bootstrap default overrides need check */
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .mobile-menu-close {
        display: block;
    }

    /* Hide desktop buttons in menu */
    .d-lg-flex {
        display: none !important;
    }
}

/* --- Extracted from massorder.twig --- */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-bg: #f3f4f6;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --radius-card: 20px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --mc: #3b82f6;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --border: #e5e7eb;
}

/* Page Wrapper */
.massorder-page-wrapper {
    padding: 20px 30px;
}

/* Header */
.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-weight: 700;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-muted);
}

/* Instruction Card */
.instruction-card {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.instruction-title {
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.instruction-text {
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.6;
}

.code-example {
    background: #fff;
    padding: 2px 8px;
    border-radius: 5px;
    font-family: monospace;
    border: 1px solid #bfdbfe;
    color: #d946ef;
    font-weight: bold;
}

/* Form Card */
.custom-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.form-control-custom {
    background-color: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #374151;
    resize: vertical;
    transition: all 0.3s;
}

.form-control-custom:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-submit-order {
    background: var(--primary-color);
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-submit-order:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .massorder-page-wrapper {
        padding: 15px;
    }

    .custom-card {
        padding: 20px;
    }
}

/* --- Extracted from neworder.twig --- */
/* =========================================
   NEW ORDER PAGE SPECIFIC STYLES
   ========================================= */

/* Layout Adjustments */
@media (max-width: 991px) {
    .container-fluid {
        padding: 1px !important;
    }

    .row {
        margin-left: -20px;
        margin-right: -20px;
    }

    .col-lg-7,
    .col-lg-5 {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card-body {
        padding: 1.25rem !important;
    }

    /* Mobile: Adjust Service Card Spacing inside form */
    #service-info-card-wrapper .card {
        margin-bottom: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
        border: 1px solid #e2e8f0;
    }
}

/* 1. Category Filter Icons */
.nwo-categories {
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nwo-categories::-webkit-scrollbar {
    display: none;
}

.nwo-cat-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.nwo-cat-btn:hover {
    background: #fff;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

.nwo-cat-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* 2. Stats Widgets (Top Row) */
.no-widget {
    background: #ffffff;
    border-radius: 15px;
    padding: 15px;
    border: 1px solid #eef2f7;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.no-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.no-widget h5 {
    font-weight: 700;
    margin-bottom: 0;
    color: #1f2937;
}

.no-widget span {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.no-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.widget-balance {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: none;
}

.widget-balance h5,
.widget-balance span {
    color: white !important;
}

.widget-balance .no-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 3. Form Styling */
.card.border-blue-custom {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-custom {
    background: #f1f5f9;
    padding: 5px;
    border-radius: 10px;
}

.nav-custom .nav-link {
    border-radius: 8px;
    padding: 8px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
}

.nav-custom .nav-link.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 6px;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 10px 15px;
    height: auto;
    font-size: 0.95rem;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* 4. Service Description Card (Right Column) */
.sticky-desktop {
    position: sticky;
    top: 90px;
    z-index: 10;
}

.service-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
}

.service-meta-item {
    display: flex;
    flex-direction: column;
}

.service-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 2px;
}

.service-meta-value {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

#service_description {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

#service_description ul {
    padding-left: 20px;
}

#service_description strong {
    color: #1e293b;
}

.desc-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px dashed #e2e8f0;
}

/* --- Extracted from notifications.twig --- */
/* Custom Pills Styling */
.nav-custom .nav-link {
    color: #6b7280;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    padding: 10px 15px;
}

.nav-custom .nav-link.active {
    background-color: var(--mc, #3b82f6) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.nav-custom .nav-link:hover:not(.active) {
    background-color: rgba(59, 130, 246, 0.05);
    color: var(--mc, #3b82f6);
}

/* Table Customization */
.custom-table thead th {
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.custom-table tbody tr:hover {
    background-color: #f9fafb;
}

/* Checkbox Customization */
.custom-control-input:checked~.custom-control-label::before {
    background-color: var(--mc, #3b82f6);
    border-color: var(--mc, #3b82f6);
}

/* Icon Circle */
.icon-circle {
    font-size: 1.25rem;
}

/* Alerts */
.alert {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* --- Extracted from orders.twig --- */
:root {
    --main-bg: #f3f4f6;
    --white-bg: #ffffff;
    --border: #e5e7eb;
    --tw: #1f2937;
    --tc: #6b7280;
    --mc: #3b82f6;
    --mc-hover: #2563eb;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --radius: 15px;
}

/* Page Wrapper */
.orders-page-wrapper {
    padding: 20px 30px;
}

/* 1. Filter Bar & Search */
.filter-status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 25px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.btn-filter {
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tc);
    background: var(--main-bg);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-filter:hover {
    background: #e2e8f0;
    color: var(--tw);
    text-decoration: none;
}

.btn-filter.active {
    background: var(--mc);
    color: white;
    box-shadow: 0 4px 10px var(--mc-trans);
}

/* Search Box */
.search-box-container {
    margin-left: auto;
    position: relative;
}

.search-box-container input {
    border-radius: 50px;
    border: 1px solid var(--border);
    padding: 8px 15px 8px 35px;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.2s;
}

.search-box-container input:focus {
    width: 300px;
    border-color: var(--mc);
    outline: none;
}

.search-box-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* 2. Desktop Table */
.table-custom {
    width: 100%;
    background: #fff;
    border-radius: var(--radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
}

.table-custom thead th {
    background: #f8fafc;
    color: var(--tc);
    font-weight: 600;
    padding: 15px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table-custom tbody td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--tw);
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.table-custom tbody tr:hover {
    background: #f9fbff;
}

/* Link truncate */
.link-text-truncate {
    display: block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--mc);
}

.link-text-truncate:hover {
    text-decoration: underline;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-completed {
    background: #dcfce7;
    color: #15803d;
}

.status-pending {
    background: #f3f4f6;
    color: #6b7280;
}

.status-processing,
.status-inprogress {
    background: #dbeafe;
    color: #1e40af;
}

.status-canceled {
    background: #fee2e2;
    color: #b91c1c;
}

.status-partial {
    background: #ffedd5;
    color: #c2410c;
}

/* 3. Mobile Card View */
.order-card-mobile {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}

.order-id-mob {
    font-weight: bold;
    font-size: 1rem;
    color: var(--tw);
}

.service-name-mob {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.order-info-label {
    color: var(--tc);
}

.order-info-value {
    font-weight: 500;
    color: var(--tw);
}

/* 4. Mass Action Bar */
.mass-action-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 90%;
    max-width: 400px;
    justify-content: space-between;
}

.mass-action-bar.active {
    transform: translateX(-50%) translateY(0);
}

.btn-copy-ids {
    background: var(--mc);
    border: none;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .orders-page-wrapper {
        padding: 15px;
    }

    .filter-status-bar {
        overflow-x: auto;
        padding-bottom: 5px;
        flex-wrap: nowrap;
    }

    .search-box-container {
        width: 100%;
        margin-top: 10px;
    }

    .search-box-container input {
        width: 100%;
    }

    .search-box-container input:focus {
        width: 100%;
    }
}

/* --- Extracted from services.twig --- */
/* CSS Styles สำหรับจัดระเบียบตาราง */

/* Page Wrapper - Adjusted for Fluid Layout */
.services-page-wrapper {
    padding: 20px 30px;
}

/* Section Header Style (เหมือนหน้าอื่นๆ) */
.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
    display: inline-block;
    border-bottom: 4px solid #3b82f6;
    /* สีน้ำเงิน */
    padding-bottom: 5px;
}

.section-header p {
    color: #6b7280;
    margin-bottom: 0;
}

/* การ์ด Filter */
.filters-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    background: #fff;
    margin-bottom: 20px;
}

.form-control-custom,
.custom-select-custom {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 10px 15px;
    height: auto;
    box-shadow: none;
}

/* การ์ดตาราง */
.services-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    background: #fff;
    overflow: hidden;
}

/* ปรับแต่งตาราง */
.table-custom {
    width: 100%;
    margin-bottom: 0;
}

.table-custom thead th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 15px;
    white-space: nowrap;
    vertical-align: middle;
}

.table-custom tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.9rem;
}

/* หัวข้อหมวดหมู่ */
.category-header {
    background-color: #eff6ff !important;
    color: #1e3a8a;
}

.category-header td {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 15px !important;
}

/* Icon Styles */
.category-icon-img {
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
}

/* Badge ID Service */
.badge-service-id {
    background-color: #f1f5f9;
    color: #64748b;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: inline-block;
    min-width: 35px;
    text-align: center;
}

/* ตัดคำยาวๆ */
.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.service-name-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    white-space: normal;
    font-weight: 500;
    min-width: 200px;
    /* บังคับความกว้างขั้นต่ำให้อ่านชื่อรู้เรื่อง */
}

/* Modal ปรับแต่ง */
.modal-content-custom {
    border: none;
    border-radius: 16px;
}

.modal-header {
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid #e2e8f0;
}

/* Mobile Responsive Fixes */
@media (max-width: 991px) {
    .services-page-wrapper {
        padding: 10px;
    }

    .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .col-md-6,
    .col-md-8,
    .col-md-4 {
        padding-left: 5px;
        padding-right: 5px;
    }

    .service-name-text {
        -webkit-line-clamp: 3;
        font-size: 0.85rem;
    }
}

/* --- Extracted from signup.twig --- */
/* Scoped to guest-body as well */
.guest-body .signup-container {
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Card Styling */
.card-custom {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #fff;
}

/* Header Underline */
.auth-header {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 10px;
    color: #333;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #3b82f6;
    /* Blue underline */
    border-radius: 2px;
}

/* Form Inputs */
.form-control-custom {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    font-size: 0.95rem;
    height: auto;
}

.form-control-custom:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group-text {
    border-radius: 10px 0 0 10px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #64748b;
    border-right: none;
}

.input-group .form-control-custom {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

/* Buttons */
.btn-custom {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Google Button */
.btn-google {
    background-color: #fff;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 15px;
}

.btn-google:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* Divider */
.divider-text {
    position: relative;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.divider-text span {
    padding: 0 10px;
    font-size: 12px;
    position: relative;
    z-index: 2;
    background-color: #fff;
    color: #9ca3af;
    text-transform: uppercase;
}

.divider-text::after {
    content: '';
    position: absolute;
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
    top: 50%;
    left: 0;
    z-index: 1;
}

/* Right Column Highlights */
.hlight-box {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.hlight-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.hlight-box .icon {
    font-size: 2rem;
    color: #3b82f6;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
}

.hlight-first {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.hlight-second {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.5;
}

.signup-card-body {
    padding: 3rem 2.5rem;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .signup-container {
        margin-top: 10px;
    }

    .signup-card-body {
        padding: 2rem 1.5rem;
    }
}

/* --- Extracted from signin.twig --- */
.guest-body {
    font-family: 'Kanit', sans-serif;
    background-color: #f9fafb;
    color: var(--text-dark);
    font-size: 18px;
    overflow-x: hidden;
}

.guest-body p,
.guest-body .btn,
.guest-body .form-control,
.guest-body li {
    font-size: 1.05rem;
}

/* Utilities */
.bg-primary-custom {
    background-color: var(--primary-color);
}

/* Reminder: .text-primary-custom, .btn-primary-custom, .btn-outline-custom are in style.css already but check values */

.guest-body .btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.guest-body .btn-primary-custom:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.guest-body .btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 500;
}

.guest-body .btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Navbar Override/Custom styles if needed inside layout */
.guest-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    padding: 30px 0 120px;
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* Showcase Card in Hero */
.showcase-wrapper {
    position: relative;
    padding: 20px;
}

.showcase-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
    border: 2px solid var(--primary-color);
    transform: rotate(-2deg);
    transition: transform 0.3s;
}

.showcase-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.floating-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.icon-fb {
    top: -20px;
    left: -20px;
    color: #1877f2;
    animation-delay: 0s;
}

.icon-tk {
    top: 30%;
    right: -30px;
    color: #000000;
    animation-delay: 1s;
}

.icon-ig {
    bottom: -20px;
    right: 20px;
    color: #E1306C;
    animation-delay: 2s;
}

.icon-yt {
    bottom: 40px;
    left: -40px;
    color: #ff0000;
    animation-delay: 1.5s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Login Section */
.login-section {
    background-color: var(--primary-color);
    padding: 100px 0 30px;
    position: relative;
    z-index: 2;
    margin-top: -60px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.1);
}

.login-section-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 20px 20px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
}

.login-card-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    padding: 40px;
}

.btn-google {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Custom Card Styling */
.custom-card {
    background: white;
    border: none;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 100%;
}

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

/* Blog Card */
.blog-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
    box-shadow: var(--shadow-soft);
    height: 100%;
}

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

.blog-img {
    height: 200px;
    background-color: #eee;
    position: relative;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Service Icons & Review Marquee */
.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.marquee-item {
    width: 400px;
    flex-shrink: 0;
    padding: 0 15px;
    white-space: normal;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-card);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 1px solid #f3f4f6;
}

.stars {
    color: #ffc107;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Features */
.feature-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.section-padding {
    padding: 90px 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 5px;
    background: var(--primary-color);
    border-radius: 2px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ */
.btn-link {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none !important;
    display: block;
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
}

.btn-link:hover {
    color: var(--primary-color);
}

.form-control {
    border-radius: 12px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 12px 20px;
    height: auto;
    font-size: 1rem;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    border-color: var(--primary-color);
    background-color: white;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 30px;
        text-align: center;
        padding-bottom: 100px;
    }

    .hero-text {
        margin-bottom: 60px;
    }

    .showcase-wrapper {
        margin-top: 30px;
        margin-bottom: 50px;
    }

    .login-section {
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
        padding-top: 60px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px !important;
    }

    .hero-btns .btn {
        width: 100%;
        margin-right: 0 !important;
    }

    .hero-badge-wrap {
        white-space: normal !important;
        display: inline-block;
        text-align: left;
        line-height: 1.5;
        max-width: 100%;
    }
}


/* --- Extracted from viewticket.twig --- */
.view-ticket-wrapper {
    --mc: #3b82f6;
    /* Main Color */
    --mc-hover: #2563eb;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --tc: #6b7280;
    /* Text Content/Muted */
    --tw: #1f2937;
    /* Text Main */
    --white-bg: #ffffff;
    --main-bg: #f3f4f6;
    --border: #e5e7eb;
    --radius: 15px;
}

/* Dark Mode Support */
.dark.view-ticket-wrapper {
    --white-bg: #1e1f20;
    --main-bg: #2e3036;
    --border: #3a4752;
    --tw: #ffffff;
    --tc: #94a3b8;
    --mc-trans: rgba(59, 130, 246, 0.25);
}

/* Page Wrapper - Matches Tickets/Orders */
.view-ticket-wrapper {
    padding: 20px 30px;
}

/* Custom Cards */
.custom-card {
    background: var(--white-bg);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--mc);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Chat Styles */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* เพิ่มระยะห่างระหว่างข้อความ */
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    /* เพิ่ม Padding รอบคอนเทนเนอร์ */
    margin-bottom: 20px;
    background-color: var(--main-bg);
    border-radius: 15px;
    border: 1px solid var(--border);
}

/* Message Row Layout */
.message-row {
    display: flex;
    width: 100%;
    align-items: flex-end;
    /* ให้ Bubble อยู่ระดับล่างเสมอ */
}

.message-row.user {
    justify-content: flex-end;
}

.message-row.admin {
    justify-content: flex-start;
}

/* Message Bubble Design */
.message-bubble {
    max-width: 75%;
    /* ลดความกว้างลงเพื่อให้ดูเป็นแชท */
    padding: 15px 20px;
    /* เพิ่ม Padding ภายใน */
    border-radius: 18px;
    /* เพิ่มความโค้งมน */
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    /* เพิ่มระยะบรรทัดให้อ่านง่าย */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    word-wrap: break-word;
}

/* User Bubble Style (Right) */
.message-row.user .message-bubble {
    background-color: var(--mc-trans);
    color: var(--tw);
    border-bottom-right-radius: 4px;
    /* มุมแหลมที่ขวาล่าง */
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-left: auto;
}

/* Admin Bubble Style (Left) */
.message-row.admin .message-bubble {
    background-color: var(--white-bg);
    color: var(--tw);
    border-bottom-left-radius: 4px;
    /* มุมแหลมที่ซ้ายล่าง */
    border: 1px solid var(--border);
    margin-right: auto;
}

/* Header inside Bubble (Name) */
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    opacity: 0.9;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 5px;
}

.message-text {
    white-space: pre-wrap;
    /* รักษารูปแบบการขึ้นบรรทัดใหม่ */
}

/* Footer inside Bubble (Time) */
.message-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* เวลาอยู่ขวาล่างเสมอ */
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--tc);
    opacity: 0.8;
}

.admin-badge {
    color: #f59e0b;
    margin-left: 5px;
}

.sender-name {
    font-weight: 600;
    margin-right: 8px;
    color: var(--mc);
}

.message-row.user .sender-name {
    color: var(--tw);
    /* ชื่อ User สีเดียวกับข้อความ */
}

/* File Attachment Style */
.chat-attachment {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
    color: var(--tw);
    font-size: 0.85rem;
    transition: 0.2s;
}

.chat-attachment:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-attachment i {
    color: var(--mc);
    font-size: 1.1rem;
}

/* Chat Input Area */
.chat-input-area {
    background-color: var(--main-bg);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid var(--border);
    margin-top: auto;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.chat-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    resize: none;
    height: 80px;
    background: var(--white-bg);
    color: var(--tw);
    transition: 0.2s;
    font-family: inherit;
}

.chat-textarea:focus {
    outline: none;
    border-color: var(--mc);
    box-shadow: 0 0 0 3px var(--mc-trans);
}

/* Styling for the System Uploader */
.tickets-uploader {
    margin-top: 5px;
}

.btn-send {
    width: auto;
    min-width: 120px;
    border-radius: 50px;
    background: var(--mc);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    padding: 10px 25px;
    font-weight: 600;
    margin-left: auto;
    /* ชิดขวา */
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    background: var(--mc-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

/* Right Side Info Cards */
.info-card {
    background: var(--white-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.info-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--mc-trans);
    color: var(--mc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-content small {
    display: block;
    color: var(--tc);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.info-content strong {
    display: block;
    color: var(--tw);
    font-size: 1.1rem;
}

/* Alert Box */
.alert-closed {
    background-color: var(--main-bg);
    color: var(--tc);
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
    padding: 20px;
}

/* Mobile Responsive Adjustments (Matching Orders/Refill) */
@media (max-width: 991px) {
    .view-ticket-wrapper {
        padding: 10px;
    }

    /* Fix container padding from global styles */
    .container-fluid {
        padding: 1px !important;
    }

    /* .row { margin-left: -20px; margin-right: -20px; } */
    /* Removed to prevent side scroll issues if global already handles it */

    .chat-container {
        height: 400px;
        padding: 15px;
    }

    .message-bubble {
        max-width: 85%;
    }

    .custom-card {
        padding: 20px;
    }
}


/* --- Extracted from updates.twig --- */
.updates-page-wrapper {
    --mc: #3b82f6;
    /* Main Color */
    --mc-hover: #2563eb;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --tc: #6b7280;
    /* Text Content/Muted */
    --tw: #1f2937;
    /* Text Main */
    --white-bg: #ffffff;
    --main-bg: #f3f4f6;
    --border: #e5e7eb;
    --radius: 15px;
}

/* Dark Mode Support */
.dark .updates-page-wrapper {
    --white-bg: #1e1f20;
    --main-bg: #2e3036;
    --border: #3a4752;
    --tw: #ffffff;
    --tc: #94a3b8;
    --mc-trans: rgba(59, 130, 246, 0.25);
}

/* Page Wrapper */
.updates-page-wrapper {
    padding: 20px 30px;
}

/* Section Header */
.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    font-weight: 700;
    color: var(--tw);
    margin-bottom: 5px;
    display: inline-block;
    border-bottom: 4px solid var(--mc);
    padding-bottom: 5px;
}

.section-header p {
    color: var(--tc);
    margin-bottom: 0;
}

/* Notice Card */
.notice-card {
    background: var(--white-bg);
    border-left: 4px solid var(--mc);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    color: var(--tc);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    border-left-width: 4px;
}

.notice-card i {
    color: var(--mc);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Filters & Search Bar */
.filter-status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--white-bg);
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    align-items: center;
}

.btn-filter {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--tc);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: 0.2s;
    white-space: nowrap;
    text-decoration: none !important;
    display: inline-block;
    font-weight: 500;
}

/* Dynamic Filter Colors */
/* All - Main Color */
.btn-filter[data-type="all"]:hover,
.btn-filter[data-type="all"].active {
    background: var(--mc-trans) !important;
    color: var(--mc) !important;
    border-color: var(--mc) !important;
}

/* New Service - Green */
.btn-filter[data-type="new_service"]:hover,
.btn-filter[data-type="new_service"].active {
    background: #dcfce7 !important;
    color: #15803d !important;
    border-color: #22c55e !important;
}

/* Price Down - Blue */
.btn-filter[data-type="rate_decreased"]:hover,
.btn-filter[data-type="rate_decreased"].active {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #0ea5e9 !important;
}

/* Price Up - Orange */
.btn-filter[data-type="rate_increased"]:hover,
.btn-filter[data-type="rate_increased"].active {
    background: #ffedd5 !important;
    color: #c2410c !important;
    border-color: #f97316 !important;
}

/* Enabled - Purple */
.btn-filter[data-type="service_enabled"]:hover,
.btn-filter[data-type="service_enabled"].active {
    background: #f3e8ff !important;
    color: #7e22ce !important;
    border-color: #a855f7 !important;
}

/* Disabled - Red */
.btn-filter[data-type="service_disabled"]:hover,
.btn-filter[data-type="service_disabled"].active {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #ef4444 !important;
}

/* Search Box */
.search-box-container {
    margin-left: auto;
    position: relative;
    min-width: 250px;
}

.search-box-container input {
    background: var(--main-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 15px 8px 35px;
    color: var(--tw);
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.search-box-container input:focus {
    border-color: var(--mc);
}

.search-box-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tc);
    font-size: 0.9rem;
}

/* Desktop Table */
.table-custom {
    background: var(--white-bg);
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.table-custom thead th {
    background: var(--mc-trans);
    color: var(--mc);
    padding: 15px 12px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.table-custom tbody td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--tw);
    font-size: 0.9rem;
    vertical-align: middle;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.table-custom tbody tr:hover {
    background-color: #f9fafb;
}

/* Service ID Badge */
.service-id-badge {
    background: var(--main-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--tc);
    margin-right: 5px;
    border: 1px solid var(--border);
    font-weight: 600;
}

.service-name-text {
    font-weight: 500;
    color: var(--tw);
}

/* Update Status Badges - ปรับสีให้ชัดขึ้น */
.update-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 4px;
    border: 1px solid transparent;
    /* เพิ่มขอบ */
}

/* Dynamic Badge Colors (High Contrast) */
.badge-new {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

/* New Service (Green) */
.badge-down {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

/* Rate Decreased (Blue) */
.badge-up {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fed7aa;
}

/* Rate Increased (Orange) */
.badge-enabled {
    background: #f3e8ff;
    color: #7e22ce;
    border-color: #e9d5ff;
}

/* Service Enabled (Purple) */
.badge-disabled {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* Service Disabled (Red) */
.badge-default {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #e5e7eb;
}

/* Other (Gray) */

/* Mobile Update Card */
.update-card-mobile {
    background: var(--white-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    position: relative;
}

.update-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 10px;
}

.update-service-name {
    font-weight: 600;
    color: var(--tw);
    font-size: 0.95rem;
    line-height: 1.4;
    padding-right: 10px;
    flex: 1;
}

.update-detail-row {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--tc);
}

.update-detail-text {
    color: var(--tw);
    font-weight: 500;
}

.update-date {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--tc);
    text-align: right;
}

/* Pagination */
/* .pagination { justify-content: center; margin-top: 30px; } */
/* Removed to avoid conflict with global pagination */
/* .pagination li a { ... } */
/* Assuming global pagination covers this or use specific if needed */

/* Mobile Adjustments */
@media (max-width: 991px) {
    .updates-page-wrapper {
        padding: 10px;
    }

    /* Horizontal Scroll for Filters on Mobile */
    .filter-status-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .btn-filter {
        flex: 0 0 auto;
    }
}


/* --- Extracted from tickets.twig --- */
.tickets-page-wrapper {
    --mc: #3b82f6;
    /* Main Color */
    --mc-hover: #2563eb;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --tc: #6b7280;
    /* Text Content/Muted */
    --tw: #1f2937;
    /* Text Main */
    --white-bg: #ffffff;
    --main-bg: #f3f4f6;
    --border: #e5e7eb;
    --radius: 15px;
}

/* Dark Mode Support */
.dark .tickets-page-wrapper {
    --white-bg: #1e1f20;
    --main-bg: #2e3036;
    --border: #3a4752;
    --tw: #ffffff;
    --tc: #94a3b8;
    --mc-trans: rgba(59, 130, 246, 0.25);
}

/* Page Wrapper - Consistent Padding */
.tickets-page-wrapper {
    padding: 20px 30px;
}

/* Form Controls */
.form-control-custom {
    background-color: var(--main-bg);
    border: 1px solid var(--border);
    color: var(--tw);
    border-radius: 10px;
    padding: 12px 15px;
    height: auto;
    transition: all 0.3s;
}

.form-control-custom:focus {
    background-color: var(--white-bg);
    color: var(--tw);
    border-color: var(--mc);
    box-shadow: 0 0 0 4px var(--mc-trans);
    outline: none;
}

/* Form File Input Custom - Using System Uploader Style */
.tickets-uploader {
    margin-bottom: 15px;
}

/* Buttons */
.btn-submit-ticket {
    background-color: var(--mc);
    color: white;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    width: 100%;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.btn-submit-ticket:hover {
    background-color: var(--mc-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

/* Ticket List Items */
.ticket-list-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.ticket-list-container::-webkit-scrollbar {
    width: 5px;
}

.ticket-list-container::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 10px;
}

.ticket-item {
    background: var(--main-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    /* Increased Spacing */
    transition: 0.2s;
    cursor: pointer;
    display: block;
    text-decoration: none !important;
    position: relative;
}

.ticket-item:hover {
    background: var(--white-bg);
    border-color: var(--mc);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ticket-item.unread {
    border-left: 4px solid var(--mc);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.ticket-id {
    font-weight: 700;
    color: var(--mc);
    font-size: 0.95rem;
}

.ticket-category {
    font-size: 0.9rem;
    color: var(--tw);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.ticket-date {
    font-size: 0.8rem;
    color: var(--tc);
    display: flex;
    align-items: center;
}

/* Ticket Status Badges - Distinct Colors */
.status-badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    border: 1px solid transparent;
}

/* Pending / New / Open - ORANGE (Warning) */
.status-pending,
.status-open,
.status-new,
.status-รอดำเนินการ {
    background-color: #fff7ed !important;
    color: #c2410c !important;
    border-color: #fdba74 !important;
}

/* Answered - GREEN (Success) */
.status-answered,
.status-admin-reply,
.status-ตอบแล้ว {
    background-color: #f0fdf4 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}

/* Closed - GRAY (Secondary) */
.status-closed,
.status-ปิดแล้ว {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
    border-color: #d1d5db !important;
}

/* Search Box in Card */
.card-search-box {
    position: relative;
}

.card-search-box .input-group-text {
    background: transparent;
    border-right: 0;
    border-color: var(--border);
    color: var(--tc);
}

.card-search-box .form-control {
    border-left: 0;
}

.card-search-box .form-control:focus {
    box-shadow: none;
    border-color: var(--border);
}

.card-search-box:focus-within .input-group-text,
.card-search-box:focus-within .form-control {
    border-color: var(--mc);
}

/* Mobile Responsive Adjustments (Matching Orders/Refill) */
@media (max-width: 991px) {
    .tickets-page-wrapper {
        padding: 10px;
    }

    /* Fix container padding from global styles */
    /* .container-fluid { padding: 1px !important; } */
    /* .row { margin-left: -20px; margin-right: -20px; } */

    .custom-card {
        padding: 20px;
    }
}


/* --- Extracted from terms.twig --- */
.terms-page-wrapper {
    --mc: #3b82f6;
    /* Main Color */
    --mc-hover: #2563eb;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --tc: #6b7280;
    /* Text Content/Muted */
    --tw: #1f2937;
    /* Text Main */
    --white-bg: #ffffff;
    --main-bg: #f3f4f6;
    --border: #e5e7eb;
    --radius: 15px;
}

/* Dark Mode Support */
.dark .terms-page-wrapper {
    --white-bg: #1e1f20;
    --main-bg: #2e3036;
    --border: #3a4752;
    --tw: #ffffff;
    --tc: #94a3b8;
    --mc-trans: rgba(59, 130, 246, 0.25);
}

/* Page Wrapper */
.terms-page-wrapper {
    padding: 20px 30px;
}

/* Terms Specific Styles */
.terms-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.terms-title {
    color: var(--mc);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.terms-subtitle {
    color: var(--tc);
    font-size: 1rem;
}

.term-section {
    margin-bottom: 35px;
}

.term-heading {
    color: var(--tw);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.term-heading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background-color: var(--mc);
    margin-right: 10px;
    border-radius: 4px;
}

.term-content {
    color: var(--tc);
    line-height: 1.7;
    padding-left: 14px;
    font-size: 0.95rem;
}

.term-content ul {
    padding-left: 20px;
    margin-top: 10px;
}

.term-content li {
    margin-bottom: 8px;
}

.term-content p {
    margin-bottom: 10px;
}

/* Badges Legend */
.badge-legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: var(--main-bg);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.badge-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

/* Highlight Boxes */
.highlight-box {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid var(--mc-trans);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.highlight-box.warning {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.highlight-title {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.text-danger-custom {
    color: #ef4444;
}

.text-success {
    color: #10b981;
}

/* Admin Content Well (for dynamic content) */
.admin-content-well {
    background: var(--main-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed var(--border);
    margin-bottom: 30px;
}

/* Back Button Style - Custom Outline Secondary */
.btn-back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    padding: 10px 30px;
    border: 1px solid var(--border);
    color: var(--tc);
    background: transparent;
    transition: all 0.2s;
    font-weight: 500;
    text-decoration: none !important;
    /* Ensure no underline */
}

.btn-back-home:hover {
    border-color: #6c757d;
    /* Standard secondary color or var(--tc) */
    color: #fff;
    background: #6c757d;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .terms-page-wrapper {
        padding: 10px;
    }

    /* .container-fluid { padding: 1px !important; } */
    /* .row { margin-left: -20px; margin-right: -20px; } */

    .terms-title {
        font-size: 1.5rem;
    }
}


/* --- Extracted from subscriptions.twig --- */
.subscriptions-page-wrapper {
    --mc: #3b82f6;
    --mc-hover: #2563eb;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --tc: #6b7280;
    --tw: #1f2937;
    --white-bg: #ffffff;
    --main-bg: #f3f4f6;
    --border: #e5e7eb;
    --radius: 15px;
}

.dark .subscriptions-page-wrapper {
    --white-bg: #1e1f20;
    --main-bg: #2e3036;
    --border: #3a4752;
    --tw: #ffffff;
    --tc: #94a3b8;
    --mc-trans: rgba(59, 130, 246, 0.25);
}

.subscriptions-page-wrapper {
    padding: 20px 30px;
}

/* Nav Pills */
.nav-pills .nav-link {
    border-radius: 50px;
    padding: 8px 20px;
    color: var(--tc);
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background-color: var(--mc-trans);
    color: var(--mc);
    font-weight: 700;
}

.nav-pills .nav-link.active {
    border-color: var(--mc);
}

/* Search Box */
.search-box-container {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-box-container input {
    background: var(--white-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px 10px 40px;
    width: 100%;
    color: var(--tw);
    outline: none;
    transition: 0.3s;
}

.search-box-container input:focus {
    border-color: var(--mc);
    box-shadow: 0 0 0 3px var(--mc-trans);
}

.search-box-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tc);
}

/* Table Styles */
.table-custom {
    background: var(--white-bg);
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    margin-bottom: 0;
}

.table-custom thead th {
    background: var(--mc-trans);
    color: var(--mc);
    padding: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 0.85rem;
    white-space: nowrap;
}

.table-custom tbody td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--tw);
    vertical-align: middle;
    font-size: 0.95rem;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.service-id {
    font-weight: 600;
    color: var(--mc);
    background: var(--mc-trans);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Status Widget */
.status-widget {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-canceled {
    background: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background: #fef9c3;
    color: #854d0e;
}

.status-expired {
    background: #f3f4f6;
    color: #374151;
}

/* Mobile Cards */
.mobile-card {
    background: var(--white-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 8px;
}

.mobile-card-body p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--tc);
}

.mobile-card-body strong {
    color: var(--tw);
}

/* Pagination */
/* Using global .pagination or ensure valid scope */

/* Responsive */
@media (max-width: 991px) {
    .subscriptions-page-wrapper {
        padding: 10px;
    }

    .search-box-container {
        margin-bottom: 15px;
        max-width: 100%;
    }

    /* .container-fluid { padding: 1px !important; } */
    /* .row { margin-left: -20px; margin-right: -20px; } */
}


/* --- Extracted from refunds.twig --- */
.refunds-page-wrapper {
    --mc: #3b82f6;
    --mc-hover: #2563eb;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --tc: #6b7280;
    --tw: #1f2937;
    --white-bg: #ffffff;
    --main-bg: #f3f4f6;
    --border: #e5e7eb;
    --radius: 15px;
}

.dark .refunds-page-wrapper {
    --white-bg: #1e1f20;
    --main-bg: #2e3036;
    --border: #3a4752;
    --tw: #ffffff;
    --tc: #94a3b8;
    --mc-trans: rgba(59, 130, 246, 0.25);
}

.refunds-page-wrapper {
    padding: 20px 30px;
}

/* Section Header */
.section-header h2 {
    font-weight: 700;
    color: var(--tw);
    margin-bottom: 5px;
}

.section-header p {
    color: var(--tc);
}

/* Notice Card */
.notice-card {
    background: var(--white-bg);
    border-left: 4px solid var(--mc);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    color: var(--tc);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    border-left-width: 4px;
}

.notice-card i {
    color: var(--mc);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Filter Buttons */
.btn-filter {
    background: var(--white-bg);
    border: 1px solid var(--border);
    color: var(--tc);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: 0.2s;
    font-weight: 500;
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--mc-trans);
    color: var(--mc);
    border-color: var(--mc);
}

/* Search Box */
.search-box-container {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-box-container input {
    background: var(--white-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px 10px 40px;
    width: 100%;
    color: var(--tw);
    outline: none;
    transition: 0.3s;
}

.search-box-container input:focus {
    border-color: var(--mc);
    box-shadow: 0 0 0 3px var(--mc-trans);
}

.search-box-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tc);
}

/* Table Styles - Similar to Subscriptions */
.table-custom {
    background: var(--white-bg);
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    margin-bottom: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.table-custom thead th {
    background: var(--mc-trans);
    color: var(--mc);
    padding: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 0.85rem;
    white-space: nowrap;
}

.table-custom tbody td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--tw);
    vertical-align: middle;
    font-size: 0.95rem;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.table-custom tbody tr:hover {
    background-color: #f9fafb;
}

.service-id {
    font-weight: 600;
    color: var(--mc);
    background: var(--mc-trans);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.status-inprogress {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.status-completed {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

.status-canceled {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.status-refunded {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #d8b4fe;
}

/* Mobile Cards */
.mobile-card {
    background: var(--white-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 8px;
}

.mobile-card-body p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--tc);
}

.mobile-card-body strong {
    color: var(--tw);
}

/* Responsive */
@media (max-width: 991px) {
    .refunds-page-wrapper {
        padding: 10px;
    }

    .search-box-container {
        margin-bottom: 15px;
        max-width: 100%;
    }

    .filter-scroll {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .filter-scroll .btn-filter {
        display: inline-block;
        margin-right: 5px;
    }
}


/* --- Extracted from refill.twig --- */
.refill-page-wrapper {
    --mc: #3b82f6;
    --mc-hover: #2563eb;
    --mc-trans: rgba(59, 130, 246, 0.15);
    --tc: #6b7280;
    --tw: #1f2937;
    --white-bg: #ffffff;
    --main-bg: #f3f4f6;
    --border: #e5e7eb;
    --radius: 15px;
}

.dark .refill-page-wrapper {
    --white-bg: #1e1f20;
    --main-bg: #2e3036;
    --border: #3a4752;
    --tw: #ffffff;
    --tc: #94a3b8;
    --mc-trans: rgba(59, 130, 246, 0.25);
}

.refill-page-wrapper {
    padding: 20px 30px;
}

/* Section Header */
.section-header h2 {
    font-weight: 700;
    color: var(--tw);
    margin-bottom: 5px;
}

.section-header p {
    color: var(--tc);
}

/* Notice Card */
.notice-card {
    background: var(--white-bg);
    border-left: 4px solid var(--mc);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    color: var(--tc);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    border-left-width: 4px;
}

.notice-card i {
    color: var(--mc);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Filter Buttons */
.btn-filter {
    background: var(--white-bg);
    border: 1px solid var(--border);
    color: var(--tc);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: 0.2s;
    font-weight: 500;
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--mc-trans);
    color: var(--mc);
    border-color: var(--mc);
}

/* Search Box */
.search-box-container {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-box-container input {
    background: var(--white-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px 10px 40px;
    width: 100%;
    color: var(--tw);
    outline: none;
    transition: 0.3s;
}

.search-box-container input:focus {
    border-color: var(--mc);
    box-shadow: 0 0 0 3px var(--mc-trans);
}

.search-box-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tc);
}

/* Table Styles */
.table-custom {
    background: var(--white-bg);
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    margin-bottom: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.table-custom thead th {
    background: var(--mc-trans);
    color: var(--mc);
    padding: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 0.85rem;
    white-space: nowrap;
}

.table-custom tbody td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--tw);
    vertical-align: middle;
    font-size: 0.95rem;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.table-custom tbody tr:hover {
    background-color: #f9fafb;
}

.service-id {
    font-weight: 600;
    color: var(--mc);
    background: var(--mc-trans);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Link Cell */
.link-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
    color: var(--mc);
    text-decoration: none;
}

.link-cell:hover {
    text-decoration: underline;
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.status-inprogress,
.status-refilling {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.status-completed {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

.status-rejected {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* Mobile Cards */
.mobile-card {
    background: var(--white-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 8px;
}

.mobile-card-body p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--tc);
}

.mobile-card-body strong {
    color: var(--tw);
}

/* Responsive */
@media (max-width: 991px) {
    .refill-page-wrapper {
        padding: 10px;
    }

    .search-box-container {
        margin-bottom: 15px;
        max-width: 100%;
    }

    /* Horizontal Scroll for Filters */
    .filter-scroll {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-scroll .btn-filter {
        display: inline-block;
        margin-right: 5px;
    }
}


/* --- Extracted from pricing.twig --- */
.pricing-page-wrapper {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-bg: #f3f4f6;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --radius-card: 20px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Utilities */
.pricing-page-wrapper .text-primary-custom {
    color: var(--primary-color) !important;
}

.pricing-page-wrapper .bg-primary-custom {
    background-color: var(--primary-color);
}

.pricing-page-wrapper .btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.pricing-page-wrapper .btn-primary-custom:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pricing-page-wrapper .btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 8px 30px;
    font-weight: 500;
}

.pricing-page-wrapper .btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.pricing-page-wrapper .service-hero {
    padding: 20px 0 80px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, #f9fafb 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-page-wrapper .service-hero h1 {
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.2;
}

.pricing-page-wrapper .service-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Experience Stats */
.pricing-page-wrapper .experience-bar {
    background: white;
    border-radius: var(--radius-card);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.pricing-page-wrapper .stat-item {
    text-align: center;
    padding: 10px;
}

.pricing-page-wrapper .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.pricing-page-wrapper .stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

/* About & Story Section */
.pricing-page-wrapper .about-section {
    padding: 100px 0;
    background-color: white;
}

.pricing-page-wrapper .about-img {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.pricing-page-wrapper .section-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.pricing-page-wrapper .section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    margin-top: 10px;
    border-radius: 2px;
}

/* SMM Services Grid */
.pricing-page-wrapper .services-section {
    padding: 80px 0;
    background-color: #f9fafb;
}

.pricing-page-wrapper .platform-card {
    background: white;
    border-radius: var(--radius-card);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid transparent;
}

.pricing-page-wrapper .platform-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.pricing-page-wrapper .platform-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
}

.pricing-page-wrapper .platform-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Platform Colors */
.pricing-page-wrapper .fb-card .platform-icon {
    color: #1877f2;
}

.pricing-page-wrapper .ig-card .platform-icon {
    color: #E1306C;
}

.pricing-page-wrapper .tt-card .platform-icon {
    color: #000000;
}

.pricing-page-wrapper .yt-card .platform-icon {
    color: #ff0000;
}

.pricing-page-wrapper .x-card .platform-icon {
    color: #1DA1F2;
}

/* Discount Tiers Section */
.pricing-page-wrapper .tiers-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    color: white;
}

.pricing-page-wrapper .tier-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    height: 100%;
    transition: 0.3s;
}

.pricing-page-wrapper .tier-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.03);
}

.pricing-page-wrapper .tier-name {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: white;
}

.pricing-page-wrapper .tier-spend {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
    display: block;
}

.pricing-page-wrapper .tier-discount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #facc15;
    line-height: 1;
}

.pricing-page-wrapper .tier-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Business Rental Section */
.pricing-page-wrapper .rental-section {
    padding: 100px 0;
    background-color: white;
}

.pricing-page-wrapper .rental-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 40px;
    height: 100%;
    border: 1px solid #e5e7eb;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-page-wrapper .rental-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.pricing-page-wrapper .rental-card.highlight {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border: 2px solid var(--primary-color);
}

.pricing-page-wrapper .rental-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pricing-page-wrapper .rental-title {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.pricing-page-wrapper .rental-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    min-height: 60px;
}

.pricing-page-wrapper .rental-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.pricing-page-wrapper .rental-price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-page-wrapper .rental-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-page-wrapper .rental-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.pricing-page-wrapper .rental-features li i {
    color: #10b981;
    margin-right: 10px;
    font-size: 1.1rem;
}

.pricing-page-wrapper .badge-popular {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* FAQ */
.pricing-page-wrapper .faq-section {
    padding: 80px 0;
    background-color: #f9fafb;
}

.pricing-page-wrapper .accordion .card {
    border: none;
    background: white;
    border-radius: 15px !important;
    margin-bottom: 15px;
}

.pricing-page-wrapper .accordion .card-header {
    background: none;
    border: none;
    padding: 20px;
}

.pricing-page-wrapper .accordion .btn-link {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing-page-wrapper .accordion .btn-link:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 991.98px) {
    .pricing-page-wrapper .service-hero h1 {
        font-size: 2.5rem;
    }

    .pricing-page-wrapper .experience-bar {
        margin-top: 30px;
    }

    .pricing-page-wrapper .about-img {
        margin-bottom: 30px;
        height: 300px;
    }

    .pricing-page-wrapper .rental-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .pricing-page-wrapper .stat-number {
        font-size: 2rem;
    }
}


/* --- Extracted from panel.twig --- */
.dashboard-page-wrapper {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-bg: #f3f4f6;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --radius-card: 16px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --mc: #3b82f6;
    --mc-light: #eff6ff;
    --mc-trans: rgba(59, 130, 246, 0.1);
    --border-color: #e2e8f0;
}

/* Dashboard Wrapper */
.dashboard-page-wrapper {
    padding: 20px 30px;
}

/* Custom Cards */
.dashboard-page-wrapper .custom-card {
    background: white;
    border-radius: var(--radius-card);
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.dashboard-page-wrapper .custom-card:hover {
    box-shadow: var(--shadow-hover);
}

/* BUTTON STYLES */
.dashboard-page-wrapper .btn-submit-order {
    background: linear-gradient(135deg, var(--mc), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.dashboard-page-wrapper .btn-submit-order:hover {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.dashboard-page-wrapper .btn-line-contact {
    background-color: #06C755;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(6, 199, 85, 0.2);
}

.dashboard-page-wrapper .btn-line-contact:hover {
    background-color: #05b64d;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(6, 199, 85, 0.3);
}

/* Plan Calculator Styles */
.dashboard-page-wrapper .plan-calculator-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    align-items: stretch;
}

.dashboard-page-wrapper .calc-left {
    flex: 0 0 45%;
    max-width: 45%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.dashboard-page-wrapper .calc-right {
    flex: 0 0 55%;
    max-width: 55%;
    padding: 0 20px;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.dashboard-page-wrapper .calc-right::-webkit-scrollbar {
    width: 6px;
}

.dashboard-page-wrapper .calc-right::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.dashboard-page-wrapper .calc-right::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.dashboard-page-wrapper .range-slider-container {
    width: 100%;
    padding: 15px 0;
}

.dashboard-page-wrapper .custom-range {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.dashboard-page-wrapper .custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mc);
    border: 3px solid white;
    box-shadow: 0 0 0 1px var(--mc), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.dashboard-page-wrapper .custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.dashboard-page-wrapper .price-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mc);
    text-align: right;
    line-height: 1;
    letter-spacing: -1px;
}

.dashboard-page-wrapper .price-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 5px;
}

.dashboard-page-wrapper .plan-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid transparent;
    background-color: #f8fafc;
    transition: all 0.2s;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 8px;
}

.dashboard-page-wrapper .plan-list-item:hover {
    background-color: #f1f5f9;
    transform: translateX(3px);
}

.dashboard-page-wrapper .plan-list-item.active {
    background-color: white;
    border-color: var(--mc);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
    transform: none;
}

.dashboard-page-wrapper .plan-list-item.active .plan-cost {
    color: var(--mc);
    background: var(--mc-light);
    padding: 4px 10px;
    border-radius: 6px;
}

.dashboard-page-wrapper .plan-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.dashboard-page-wrapper .plan-range {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dashboard-page-wrapper .plan-cost {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: 0.2s;
}

/* Enhanced Compare Table */
.dashboard-page-wrapper .compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.dashboard-page-wrapper .compare-table th,
.dashboard-page-wrapper .compare-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.dashboard-page-wrapper .compare-table th {
    background: #f8fafc;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.dashboard-page-wrapper .compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    background-color: #fff;
}

/* Highlight Columns */
.dashboard-page-wrapper .compare-table th:nth-child(2),
.dashboard-page-wrapper .compare-table td:nth-child(2) {
    background-color: var(--mc-light);
    color: #2563eb;
    border-left: 1px solid rgba(59, 130, 246, 0.1);
    border-right: 1px solid rgba(59, 130, 246, 0.1);
}

.dashboard-page-wrapper .compare-table tr:last-child td {
    border-bottom: none;
}

/* FAQ Accordion */
.dashboard-page-wrapper .faq-btn {
    width: 100%;
    text-align: left;
    background: white;
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.dashboard-page-wrapper .faq-btn:hover {
    border-color: var(--mc);
    color: var(--mc);
}

.dashboard-page-wrapper .faq-btn[aria-expanded="true"] {
    background: var(--mc-light);
    color: var(--mc);
    border-color: var(--mc-light);
}

.dashboard-page-wrapper .faq-btn i {
    font-size: 0.8rem;
    opacity: 0.6;
}

.dashboard-page-wrapper .faq-body {
    padding: 15px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Hero & Image */
.dashboard-page-wrapper .panel-hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.dashboard-page-wrapper .panel-hero-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.dashboard-page-wrapper .panel-preview-img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.08));
}

/* Responsive */
@media (max-width: 991px) {
    .dashboard-page-wrapper {
        padding: 10px;
    }

    .dashboard-page-wrapper .calc-left,
    .dashboard-page-wrapper .calc-right {
        flex: 0 0 100%;
        max-width: 100%;
        border-right: none;
    }

    .dashboard-page-wrapper .calc-left {
        margin-bottom: 30px;
        padding-bottom: 30px;
        border-bottom: 1px dashed var(--border-color);
    }

    .dashboard-page-wrapper .calc-right {
        max-height: 300px;
        padding: 0 5px;
    }

    .dashboard-page-wrapper .panel-hero-title {
        font-size: 1.8rem;
    }

    .dashboard-page-wrapper .panel-hero-desc {
        font-size: 0.9rem;
    }

    .dashboard-page-wrapper .panel-preview-img {
        max-height: 250px;
    }

    .dashboard-page-wrapper .custom-card {
        padding: 20px 15px;
    }
}


/* --- Extracted from setnewpassword.twig --- */
.set-new-password-wrapper.home-header {
    padding: 60px 0;
    position: relative;
    --primary-color: #3b82f6;
    --text-dark: #333;
}

.set-new-password-wrapper .outside-title {
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark, #333);
    font-size: 1.75rem;
}

.set-new-password-wrapper .hlight-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s;
}

.set-new-password-wrapper .hlight-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.set-new-password-wrapper .hlight-box .icon {
    font-size: 2rem;
    color: var(--primary-color, #3b82f6);
    background: rgba(59, 130, 246, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 15px;
}

.set-new-password-wrapper .hlight-first {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark, #333);
}

.set-new-password-wrapper .hlight-second {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.5;
}

.set-new-password-wrapper .btn-submit-pw {
    width: 100%;
    border-radius: 50px;
    padding: 12px 0;
    font-weight: 600;
}

.set-new-password-wrapper .form-control-custom {
    border-radius: 10px;
    height: 45px;
}

/* =========================================
   UI REFINEMENTS & DARK MODE FIXES
   (Applied via Implementation Plan)
   ========================================= */

/* 1. LAYOUT.TWIG - NAVBAR & SIDEBAR */

/* Guest Navbar Mobile */
@media (max-width: 991.98px) {

    /* Logo Position */
    .navbar-brand {
        margin-left: 15px;
        /* Move slightly right as requested */
    }

    /* Dropdown Fix (Slide Down instead of Left) */
    .navbar-collapse {
        position: static !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        background-color: var(--white-bg);
        /* Add background */
        padding: 15px;
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    /* Mobile Spacing */
    main#main-content {
        padding-top: 100px !important;
        /* Increase from 80px */
    }
}

/* Sidebar (Logged In) */
.sidebar-header {
    justify-content: center;
    /* Center Logo */
    position: relative;
}

/* Close Button (Mobile) */
.btn-close-sidebar {
    position: absolute;
    right: 15px;
    /* Position right */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
    outline: none;
}

.dark .btn-close-sidebar {
    background: rgba(255, 255, 255, 0.1);
    color: var(--tw);
}

.btn-close-sidebar:hover {
    background: var(--primary);
    color: white;
}

/* 2. SIGNIN.TWIG - SEO & HEADINGS VISUALS */

/* Visual aliases to match old behavior while using correct SEO tags */
.h1-visual {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.h2-visual {
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1.25;
}

.h3-visual {
    font-size: 1.75rem !important;
    font-weight: 600 !important;
}

.h4-visual {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

.h5-visual {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.h6-visual {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/* 3. DARK MODE EXTENSIVE FIXES */

.dark .no-widget,
.dark .card-body,
.dark .card-header,
.dark .custom-card,
.dark .stats-overview-panel,
.dark .instruction-card,
.dark .notice-card,
.dark .info-card,
.dark .update-card-mobile,
.dark .chat-container,
.dark .blog-card,
.dark .review-card {
    background-color: var(--white-bg) !important;
    border-color: var(--border) !important;
    color: var(--tw) !important;
}

.dark .desc-placeholder {
    background-color: var(--main-bg);
}

.dark .service-meta-grid,
.dark .service-meta-item {
    background-color: var(--main-bg);
    border-color: var(--border);
}

.dark .form-control,
.dark .form-control-custom,
.dark .chat-textarea {
    background-color: var(--main-bg) !important;
    border-color: var(--border) !important;
    color: var(--tw) !important;
}

.dark input:disabled,
.dark .form-control:disabled {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--tc) !important;
}

/* Select2 fixes */

.dark .select2-selection__rendered {
    color: var(--tw) !important;
}

.dark .select2-search__field {
    background-color: var(--white-bg) !important;
    color: var(--tw) !important;
}

.dark .nothing-found {
    background-color: var(--white-bg);
    border-color: var(--border);
}

.dark .filter-status-bar {
    background-color: var(--white-bg);
    border-bottom-color: var(--border);
}

.dark .btn-filter {
    color: var(--tc);
    background-color: var(--main-bg);
}

.dark .btn-filter.active {
    background-color: var(--primary);
    color: white;
}

/* Plan Items */
.dark .plan-list-item {
    background-color: var(--main-bg);
    border-color: var(--border);
}

.dark .plan-list-item.active {
    border-color: var(--primary);
    background-color: rgba(59, 130, 246, 0.1);
}

/* Tables */
.dark th,
.dark td {
    border-color: var(--border) !important;
    color: var(--tw) !important;
}

.dark table thead th {
    background-color: var(--main-bg) !important;
}

.dark .table-custom {
    background-color: var(--white-bg);
}

/* Components */
.dark .faq-btn {
    background-color: var(--main-bg);
    color: var(--tw);
}

.dark .input-group-prepend .input-group-text {
    background-color: var(--main-bg);
    border-color: var(--border);
    color: var(--tc);
}

.dark .alert-light {
    background-color: var(--main-bg);
    border-color: var(--border);
    color: var(--tw);
}

.dark .badge-service-id {
    background-color: var(--main-bg);
    color: var(--tw);
    border: 1px solid var(--border);
}

.dark .ticket-item {
    background-color: var(--white-bg);
    border-color: var(--border);
}

/* Navbar Toggle for currency (ensure validation) */
.dark .dropdown-menu {
    background-color: var(--white-bg);
    border-color: var(--border);
}

.dark .dropdown-item {
    color: var(--tw);
}


/* =========================================
   USER REQUESTED DARK MODE OVERRIDES & FIXES
   ========================================= */

/* 1. Dark Mode: Grey/Black Backgrounds & Text */
.dark .nav-custom,
.dark .history-item,
.dark .notice-card,
.dark .update-card-mobile,
.dark .custom-card,
.dark .ticket-list-container,
.dark .input-group-text,
.dark .history-date-badge,
.dark .nwo-cat-btn {
    background-color: var(--white-bg) !important;
    border-color: var(--border) !important;
    color: var(--tw) !important;
}

.dark tr {
    background-color: var(--white-bg) !important;
    color: var(--tw) !important;
}

/* 2. Dark Mode: Blue Elements */
.dark .history-badge-id,
.dark .fas.fa-bars,
.dark .code-example,
.dark .ticket-category,
.dark .ticket-id,
.dark .font-weight-bold.mb-3.text-dark,
.dark .font-weight-bold.mb-0.text-dark {
    color: var(--mc) !important;
}

/* 3. Dark Mode: Light Blue (Select2 Highlight) */
.dark .select2-results__option--highlighted[aria-selected] {
    background-color: var(--mc) !important;
    color: white !important;
}

/* =========================================
   MOBILE & RESPONSIVE IMPROVEMENTS (USER REQUESTED)
   ========================================= */

/* 1. Mobile Full Width Dropdown (Guest Navbar) */
@media (max-width: 991.98px) {
    .guest-navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100vw;
        background-color: #fff;
        /* Ensure white bg in light mode */
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border-top: 1px solid #e5e7eb;
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Ensure Dark Mode background for mobile menu if needed, though User said darken not active when not logged in.
       If guest-navbar is only for not-logged-in, it should stay white/light.
       But if user force enables it via some other way, we might need dark support.
       For now, Guest = Light Mode strictly as per instruction.
    */
}

/* 2. Force Scrollable Table on Mobile (Service Page) */
/* The user requested "edit to make table slidable" */
/* We force nowrap on cells to trigger overflow-x in .table-responsive */
.services-page-wrapper .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.services-page-wrapper .table th,
.services-page-wrapper .table td {
    white-space: nowrap;
}

/* =========================================
   DARK MODE OVERRIDES (COMPREHENSIVE)
   ========================================= */

/* Group 1: Gray/Black Backgrounds */
.dark .nav-pills.nav-fill.nav-custom,
.dark .nwo-cat-btn,
.dark .history-item,
.dark .notice-card,
.dark .update-card-mobile,
.dark .custom-card,
.dark .ticket-list-container {
    background-color: var(--white-bg);
    /* Use theme dark bg */
    border-color: var(--border);
    color: var(--tw);
}

.dark .input-group-text {
    background-color: var(--white-bg);
    border-color: var(--border);
    color: var(--tw);
}

.dark .history-date-badge {
    background-color: var(--second-bg);
    color: var(--text-muted);
}

/* Group 2: Blue Text Elements */
.dark .fas.fa-bars,
.dark .code-example,
.dark .ticket-category,
.dark .ticket-id,
.dark .font-weight-bold.text-dark {
    color: var(--mc) !important;
}

/* Group 3: Light Blue Highlights */
.dark .select2-results__option--highlighted,
.dark .select2-results__option.active {
    background-color: var(--mc) !important;
    color: #fff !important;
}

/* Group 4: White Text Elements */
.dark .fas.fa-plus-circle.text-success,
.dark strong,
.dark .panel-hero-title,
.dark .plan-name,
.dark .plan-range {
    color: #fff !important;
}

.dark .font-weight-bold.mb-3,
.dark .font-weight-bold.mb-0 {
    color: #fff !important;
}

/* Group 5: Restore Original Colors */
/* These elements should keep their specific brand/status colors in Dark Mode */

.dark .fas.fa-hand-holding-usd {
    color: #28a745 !important;
}

/* Green */
.dark .fas.fa-percentage {
    color: var(--text-muted) !important;
}

.dark .fas.fa-box-open {
    color: #ffc107 !important;
}

/* Yellow */

/* Social Media */
.dark .fab.fa-facebook-f {
    color: #3b5998 !important;
}

.dark .fab.fa-tiktok {
    color: #000000 !important;
    filter: invert(1);
}

/* White for TikTok on Dark */
.dark .fab.fa-instagram {
    color: #c13584 !important;
}

.dark .fab.fa-youtube {
    color: #ff0000 !important;
}

.dark .fab.fa-twitter {
    color: #1da1f2 !important;
}

/* System Icons */
.dark .dh-icon.icon-info {
    background: #e0f2fe;
    color: #0284c7 !important;
}

.dark .dh-icon.icon-secondary {
    background: #fce7f3;
    color: #db2777 !important;
}

.dark .dh-icon.icon-primary {
    background: #dcfce7;
    color: #16a34a !important;
}

/* Wallets & Payments */
.dark .fab.fa-paypal {
    color: #003087 !important;
}

.dark .fas.fa-wallet {
    color: var(--mc) !important;
}

.dark .fas.fa-receipt {
    color: var(--text-muted) !important;
}

/* Statistics & Status */
.dark .history-amount {
    color: #22c55e !important;
    border-color: #22c55e;
}

.dark .fas.fa-eye.ic-blue,
.dark .stat-icon-clean.ic-blue {
    color: #3b82f6 !important;
}

.dark .stat-icon-clean.ic-purple {
    color: #8b5cf6 !important;
}

.dark .stat-icon-clean.ic-green,
.dark .fas.fa-user-plus,
.dark .fas.fa-check-circle {
    color: #10b981 !important;
}

.dark .stat-icon-clean.ic-orange,
.dark .fas.fa-chart-pie,
.dark .fas.fa-coins {
    color: #f59e0b !important;
}




@media (max-width: 991px) {

    .services-page-wrapper .table-responsive,
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .services-page-wrapper .table-custom th,
    .services-page-wrapper .table-custom td,
    .table-custom th,
    .table-custom td {
        white-space: nowrap;
        /* บังคับให้ไม่ตัดคำ เพื่อให้ตารางยาวออกไป */
    }
}

/* Mobile: Guest Navbar Full Width (เมนูหน้าบ้านเต็มจอ ซ้าย-ขวา) */
@media (max-width: 991px) {
    .guest-navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        background-color: #fff;
        /* พื้นหลังสีขาว */
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e5e7eb;
        margin: 0;
        transform: none !important;
        /* ยกเลิก effect เดิม */
        z-index: 1000;
    }

    /* ซ่อนปุ่มด้านขวาในเมนู (ถ้าต้องการ) หรือจัดระเบียบใหม่ */
    .guest-navbar .d-lg-flex {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }

    .guest-navbar .btn {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0 !important;
        display: block;
    }
}


/* =========================================
   2. DARK MODE OVERRIDES (ตามรายการที่ระบุ)
   ========================================= */

/* --- กลุ่ม 1: ปรับเป็นสีเทาหรือดำ (Backgrounds/Borders) --- */
.dark .nav.nav-pills.nav-fill.nav-custom,
.dark .nwo-cat-btn,
.dark .history-item,
.dark .history-date-badge,
.dark .input-group-text.bg-white,
.dark .notice-card,
.dark .update-card-mobile,
.dark .no-icon,
.dark .custom-card.h-100,
.dark .ticket-list-container,
.dark .custom-card {
    background-color: var(--white-bg) !important;
    border-color: var(--border) !important;
    color: var(--tw) !important;
}

/* ปรับสีพื้นหลังของแถวตาราง */
.dark tr {
    background-color: var(--white-bg) !important;
    color: var(--tw) !important;
}

/* --- กลุ่ม 2: ปรับเป็นสีน้ำเงิน (Text/Icons) --- */
.dark .fas.fa-bars,
.dark .code-example,
.dark .ticket-category,
.dark .ticket-id,
.dark .font-weight-bold.mb-3.text-dark,
.dark .font-weight-bold.mb-0.text-dark {
    color: var(--mc) !important;
}

/* --- กลุ่ม 3: ปรับเป็นสีฟ้าอ่อน (Select2 Highlight) --- */
.dark .select2-results__option--highlighted[aria-selected],
.dark .select2-results__option.active {
    background-color: var(--mc) !important;
    color: #fff !important;
}

/* --- กลุ่ม 4: ปรับเป็นสีขาว (Text White) --- */
.dark .fas.fa-plus-circle.text-success {
    color: #fff !important;
    /* บังคับขาวตามสั่ง แม้จะเป็น class success */
}

.dark strong,
.dark .font-weight-bold.mb-3,
.dark .font-weight-bold.mb-0,
.dark .panel-hero-title,
.dark .plan-name,
.dark h5,
.dark a,
.dark .plan-range {
    color: #fff !important;
}

/* --- กลุ่ม 5: ปรับใช้สีเดิม (Original Colors - ห้ามเปลี่ยนตาม Dark Mode) --- */
.dark .fas.fa-hand-holding-usd {
    color: #28a745 !important;
}

/* Green */
.dark .fas.fa-percentage {
    color: inherit !important;
}

/* Keep original */
.dark .fas.fa-box-open {
    color: #ffc107 !important;
}

/* Yellow */

/* Social Icons */
.dark .fab.fa-facebook-f {
    color: #3b5998 !important;
}

.dark .fab.fa-tiktok {
    color: #000000 !important;
    filter: invert(1);
}

/* White on dark */
.dark .fab.fa-instagram {
    color: #c13584 !important;
}

.dark .fab.fa-youtube {
    color: #ff0000 !important;
}

.dark .fab.fa-twitter {
    color: #1da1f2 !important;
}

/* System Icons */
.dark .dh-icon.icon-info {
    background: #e0f2fe;
    color: #0284c7 !important;
}

.dark .dh-icon.icon-secondary {
    background: #fce7f3;
    color: #db2777 !important;
}

.dark .dh-icon.icon-primary {
    background: #dcfce7;
    color: #16a34a !important;
}

/* Payment & Misc */
.dark .fab.fa-paypal {
    color: #003087 !important;
}

.dark .fas.fa-wallet {
    color: var(--mc) !important;
}

.dark .fas.fa-receipt {
    color: var(--text-muted) !important;
}

.dark .history-amount {
    color: #22c55e !important;
    border-color: #22c55e;
}

/* Stats Icons */
.dark .fas.fa-eye,
.dark .stat-icon-clean.ic-blue {
    color: #3b82f6 !important;
}

.dark .stat-icon-clean.ic-purple {
    color: #8b5cf6 !important;
}

.dark .fas.fa-user-plus,
.dark .fas.fa-check-circle,
.dark .stat-icon-clean.ic-green {
    color: #10b981 !important;
}

.dark .fas.fa-chart-pie,
.dark .fas.fa-coins,
.dark .stat-icon-clean.ic-orange {
    color: #f59e0b !important;
}

/* [เพิ่ม/แก้ไข ในไฟล์ style.css] */

/* =========================================
   DARK MODE UPDATES (USER REQUEST 2)
   ========================================= */

/* --- กลุ่ม 1: ปรับเป็นสีน้ำเงิน (Blue Text/Icon) --- */
.dark .badge.badge-light,
.dark .fas.fa-box-open,
.dark .fas.fa-percentage,
.dark .fas.fa-hand-holding-usd,
.dark .tier-price,
.dark .font-weight-bold.mb-0,
.dark .col-lg-8.mb-4 {
    color: var(--mc) !important;
}

/* ปุ่ม Active ปกติเป็นพื้นหลังฟ้าอยู่แล้ว แต่อาจจะย้ำสี */
.dark .nwo-cat-btn.active {
    background-color: var(--mc) !important;
    border-color: var(--mc) !important;
    color: #fff !important;
    /* ตัวหนังสือขาวบนพื้นฟ้า */
}

/* --- กลุ่ม 2: Lightmode & Darkmode ใช้สีเดียวกัน (Consistent Colors) --- */
/* Social Icons - Brand Colors (ใช้เหมือนกันทั้งสองโหมด) */
.fab.fa-facebook-f {
    color: #3b5998 !important;
}

.fab.fa-tiktok {
    color: #000000;
}

.dark .fab.fa-tiktok {
    color: #fff !important;
    filter: invert(0);
}

/* ปรับ TikTok ให้เห็นใน Dark Mode */
.fab.fa-instagram {
    color: #c13584 !important;
}

.fab.fa-youtube {
    color: #ff0000 !important;
}

.fab.fa-twitter {
    color: #1da1f2 !important;
}

/* Strong tag - ให้เป็นสีเข้มใน Light และสีขาว/สีเดียวกับ Dark ตามบริบท */
/* ตีความว่าให้ strong เด่นชัดในทั้งสองโหมด */
strong {
    font-weight: bold;
}

.dark strong {
    color: #fff !important;
}

/* ยังคงสีขาวใน Dark Mode เพื่อให้อ่านออก */

/* --- กลุ่ม 3: ปรับเป็นสีเทาหรือดำ (Backgrounds) --- */
.dark .order-card-mobile,
.dark .filter-status-bar,
.dark .order-card-mobile,
.dark .order-link-box,
.dark .custom-card.h-100,
.dark .custom-card,
.dark .info-card,
.dark .ticket-list-container,
.dark .input-group-text,
.dark .form-control,
.dark .form-control-custom {
    background-color: var(--white-bg) !important;
    /* สีพื้นหลัง Dark Mode */
    border-color: var(--border) !important;
    color: var(--tw) !important;
}

/* แก้ไข input group text ให้กลืนกับ input */
.dark .input-group-text {
    border-right: 1px solid var(--border) !important;
}


.os-widget {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
    border: 1px solid transparent;
    line-height: 1;
}

/* 1. Completed (เสร็จสมบูรณ์) - สีเขียว */
.os-widget.completed {
    background-color: #f0fdf4 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}

/* 2. Pending (รอดำเนินการ) - สีเหลือง/ส้ม */
.os-widget.pending {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border-color: #fcd34d !important;
}

/* 3. In Progress / Processing - สีฟ้า */
.os-widget.inprogress, 
.os-widget.processing {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #93c5fd !important;
}

/* 4. Canceled (ยกเลิก) - สีแดง */
.os-widget.canceled,
.os-widget.cancelled {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
}

/* 5. Partial (เสร็จบางส่วน) - สีส้มเข้ม/น้ำตาล */
.os-widget.partial {
    background-color: #fff7ed !important;
    color: #c2410c !important;
    border-color: #fdba74 !important;
}

/* 6. Refunded (คืนเงิน) - สีม่วง */
.os-widget.refunded {
    background-color: #faf5ff !important;
    color: #7e22ce !important;
    border-color: #d8b4fe !important;
}

/* 7. Default / Fail */
.os-widget.default,
.os-widget.fail,
.os-widget.error {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
}

/* --- Dark Mode Override สำหรับ Status --- */
.dark .os-widget.completed {
    background-color: rgba(21, 128, 61, 0.2) !important;
    color: #4ade80 !important;
    border-color: #15803d !important;
}

.dark .os-widget.pending {
    background-color: rgba(180, 83, 9, 0.2) !important;
    color: #fbbf24 !important;
    border-color: #b45309 !important;
}

.dark .os-widget.inprogress,
.dark .os-widget.processing {
    background-color: rgba(29, 78, 216, 0.2) !important;
    color: #60a5fa !important;
    border-color: #1e40af !important;
}

.dark .os-widget.canceled,
.dark .os-widget.cancelled {
    background-color: rgba(185, 28, 28, 0.2) !important;
    color: #f87171 !important;
    border-color: #991b1b !important;
}

.dark .os-widget.partial {
    background-color: rgba(194, 65, 12, 0.2) !important;
    color: #fb923c !important;
    border-color: #c2410c !important;
}

.dark .os-widget.refunded {
    background-color: rgba(126, 34, 206, 0.2) !important;
    color: #c084fc !important;
    border-color: #7e22ce !important;
}

.dark .os-widget.default {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #e5e7eb !important;
    border-color: #4b5563 !important;
}


.alert {
    border-radius: var(--radius);
    border: none !important;
    padding: 1rem 1.25rem; /* คงค่า Padding ไว้เพื่อความสวยงาม */
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    /* Reset original styles to avoid conflict */
    box-shadow: none; 
}

.alert.alert-success {
    color: #09b797 !important;
    background: #2dfad431 !important;
    border-left: none; /* เอาขอบซ้ายออกตาม Ref */
}

.alert.alert-danger {
    color: #EE5B5B !important;
    background: #ee5b5b41 !important;
}

/* ปรับแต่งหัวข้อและลิงก์ภายใน Alert ให้เข้ากับสีพื้นหลังใหม่ */
.alert h4 {
    color: inherit;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
    opacity: 0.9;
}

/* Dark Mode Support for Alert */
.dark .alert.alert-success {
    background: rgba(9, 183, 151, 0.15) !important;
}

.dark .alert.alert-danger {
    background: rgba(238, 91, 91, 0.15) !important;
}


.select2.select2-container.select2-container--open .select2-selection.select2-selection--single {
    background: var(--second-bg);
    border-radius: var(--radius);
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--single .select2-selection__arrow {
    -webkit-border-radius: 0 var(--radius) 0 0;
    -moz-border-radius: 0 var(--radius) 0 0;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--multiple {
    border: 0 solid #34495e;
}

.select2-container--open .select2-dropdown--below {
    border: 1px solid var(--border);
    -webkit-box-shadow: 0 5px 35px rgb(49, 156, 255, .15);
    box-shadow: 0 5px 35px rgb(49, 156, 255, .15);
}

.select2-container .select2-dropdown {
    border-radius: var(--radius) !important;
    background: #fff;
    border: 0;
    margin-top: 8px !important;
    overflow: hidden;
    z-index: 9999 !important;
}

.dark .select2-container .select2-dropdown {
    background: var(--main-bg);
}

.select2-container--open {
    z-index: 9999 !important;
}

.dark .service-meta-value {
    color: #ffffff !important;
    font-weight: 600;
}

.dark .service-meta-label {
    color: #b0b3b8 !important; /* สีเทาอ่อน */
}

.dark .card {
    background-color: var(--second-bg) !important; /* ใช้สีพื้นหลังรองของธีม */
    border-color: var(--border) !important;
    color: var(--tw) !important;
}

.dark .card-header,
.dark .card-body {
    background-color: transparent !important; /* ให้ใช้สีของ Card */
    color: inherit !important;
}

/* ปรับสีเส้นแบ่งใน Card */
.dark hr {
    border-top-color: var(--border) !important;
    opacity: 0.5;
}

/* ปรับสีข้อความ Description ใน Dark Mode */
.dark #service_description {
    color: var(--tw) !important;
}

.dark .bg-light, 
.dark .card-border{
    background-color: rgba(255, 255, 255, 0.05) !important; /* สีเทาโปร่งแสง ให้ดูเป็นสีเทาบนพื้นมืด */
    color: var(--tw) !important; /* ตัวหนังสือสีขาว */
    border: 1px solid var(--border) !important; /* เพิ่มขอบสีจางๆ ให้ดูมีมิติ */
}

/* กรณีต้องการเจาะจงเฉพาะ Elements ที่ใช้ rounded ร่วมด้วย (เผื่อไม่อยากแก้ทุกจุด) */
.dark .bg-light.rounded {
    background-color: rgba(255, 255, 255, 0.05) !important;
}