    /* ===== CUSTOM VARIABLES ===== */
    :root {
        --primary-blue: rgb(62, 205, 89);
        --primary-blue-hover:rgb(62, 205, 89);
        --primary-blue-light:rgb(62, 205, 89);
        --white-overlay: rgba(255, 255, 255, 0.1);
        --white-semi: rgba(255, 255, 255, 0.8);
        
        /* Voucher-specific color variables */
        --voucher-blue: #007bff;
        --voucher-blue-dark: #0056b3;
        --voucher-red: #dc3545;
        --voucher-gray: #6c757d;
        --voucher-light-gray: #dee2e6;
    }

    /* ===== GLOBAL OVERRIDES ===== */
    body {
        font-family: 'Noto Sans TC', 'Roboto', sans-serif;
        background-attachment: fixed;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Background layers */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #faffe8;
        z-index: -2;
    }

    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }

    /* ===== CUSTOM COMPONENTS ===== */
    .main-container {
        background: var(--white-overlay);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(2px);
        margin: 0;
        padding: 0;
        max-width: 600px;
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .content-card {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        padding: 30px;
        margin: 10px 10px 10px 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        border: 0px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(20px);
        margin-top: 10px;
        min-height: 300px;
    }

    .page-header {
        text-align: center;
        margin-bottom: 2rem;
        padding: 0 0 0 0;
    }

    .page-title {
        color: var(--primary-blue);
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        margin-top: 20px;
    }

    .page-subtitle {
        color: var(--primary-blue);
        font-size: 1.3rem;
        font-weight: 400;
        opacity: 0.8;
    }

    /* ===== BUTTON ENHANCEMENTS ===== */
    .btn {
        border: none;
        background: transparent !important;
        padding: 0;
        transition: all 0.3s ease;
        text-decoration: none;
    }

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

    .btn:active {
        transform: translateY(0);
    }

    /* ===== IMAGE BUTTON SIZING ===== */
    .bannerImg100 {
        width: 100%; 
        height: auto; 
        display: inline-block;
    }

    .buttomImgXL {
        width: 60%;
        height: auto;
        display: inline-block;
        margin-bottom: 0px;
    }

    .buttomImgL {
        width: 45%;
        height: auto;
        display: inline-block;
        margin-bottom: 0px;
    }

    .buttomImgM {
        width: 30%;
        height: auto;
        display: inline-block;
        margin-bottom: 0px;
    }

    .buttomImgS {
        width: 25%;
        height: auto;
        display: inline-block;
        margin-bottom: 10px;
    }

    .buttomImgXS {
        width: 20%;
        height: auto;
        display: inline-block;
        margin-bottom: 10px;
    }

    /* ===== FORM ENHANCEMENTS ===== */
    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 0.2rem var(--primary-blue-light);
    }

    .form-label {
        font-weight: 600;
        color: var(--primary-blue);
    }

    .form-check-input:checked {
        background-color: var(--primary-blue);
        border-color: var(--primary-blue);
    }

    /* ===== UTILITY CLASSES ===== */
    .text-primary {
        color: var(--primary-blue) !important;
    }

    .bg-primary {
        background: var(--primary-blue) !important;
    }

    .border-primary {
        border-color: var(--primary-blue) !important;
    }

    /* ===== RESPONSIVE ADJUSTMENTS ===== */
    @media (max-width: 768px) {
        .main-container {
            margin: 0;
            padding: 0;
            min-height: 100vh;
        }

        .content-card {
            padding: 10px;
        }

        .page-title {
            margin-top: 10px;
            font-size: 1.6rem;
        }

        .page-subtitle {
            font-size: 1.1rem;
        }

        /* Mobile image button sizing */
        .buttomImgXL {
            width: 80%;
        }
        
        .buttomImgL {
            width: 45%;
        }
        
        .buttomImgM {
            width: 30%;
        }
        
        .buttomImgS {
            width: 25%;
        }
        
        .buttomImgXS {
            width: 20%;
        }

        /* Keep buttons inline on mobile */
        .d-flex.gap-3,
        .d-flex.gap-2 {
            gap: 8px !important;
            justify-content: center;
            flex-wrap: wrap;
        }
    }

    /* .main-button and .sub-button are deprecated */

    /* ===== ANIMATIONS ===== */
    .fade-in {
        animation: fadeIn 0.5s ease-in;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .slide-up {
        animation: slideUp 0.6s ease-out;
    }

    @keyframes slideUp {
        from { opacity: 0; transform: translateY(50px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* ===== LOADING SPINNER ===== */
    .spinner {
        border: 4px solid #f8f9fa;
        border-top: 4px solid var(--primary-blue);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin: 20px auto;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* ===== FOOTER POSITIONING ===== */
    .footer-bottom {
        margin-top: auto;
        padding: 10px 0;
    }

    .main-content-area {
        flex: 1;
    }

    /* ===== MODAL OVERRIDES ===== */
    /* Ensures Bootstrap modals have a standard appearance */
    .modal-content {
        background-color: #fff;
        border: 1px solid rgba(0,0,0,.2);
    }

    .modal-header {
        border-bottom: 1px solid #dee2e6;
    }

    .modal-footer {
        border-top: 1px solid #dee2e6;
    }

    /* ===== REGISTRATION PAGE STYLES ===== */

    /* Modal scroll enhancement */
    .modal-body {
        scrollbar-width: thin;
        scrollbar-color: #888 #f1f1f1;
    }

    .modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    .modal-body::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    /* Terms content styling */
    .terms-content {
        font-size: 14px;
        line-height: 1.6;
    }

    .terms-list {
        padding-left: 20px;
    }

    .terms-list li {
        margin-bottom: 8px;
    }

    .contact-info {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 5px;
    }

    /* Checkbox styling for long text */
    .form-check {
        display: flex;
        align-items: flex-start;
        padding: 8px 0;
    }

    .form-check-input {
        margin-top: 4px;
        margin-right: 12px;
        flex-shrink: 0;
        width: 18px;
        height: 18px;
    }

    .form-check-label {
        flex: 1;
        line-height: 1.5;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .form-check-label small {
        color: #6c757d;
        display: block;
        margin-top: 2px;
    }

    .form-check-label a {
        color: var(--primary-blue);
        font-weight: 500;
    }

    .form-check-label a:hover {
        color: var(--primary-blue-hover);
        text-decoration: underline;
    }

    /* Disabled checkbox styling */
    .form-check-input:disabled + .form-check-label {
        opacity: 0.6;
        cursor: not-allowed;
    }

    /* Checked state visual feedback */
    .form-check-input:checked + .form-check-label {
        color: #28a745;
    }

    .form-check-input:checked + .form-check-label small {
        color: #20c997;
    }

    /* Modal dialog responsive */
    @media (max-width: 768px) {
        .modal-lg {
            max-width: 95%;
            margin: 5px auto;
        }
        
        .modal-body {
            padding: 15px;
            max-height: 60vh !important;
        }
        
        .terms-content {
            font-size: 13px;
        }
        
        .form-check-label small {
            font-size: 12px;
            line-height: 1.4;
        }
        
        .form-check-input {
            width: 16px;
            height: 16px;
            margin-right: 10px;
        }
        
        .form-check {
            padding: 6px 0;
        }
    }

    /* ===== VOUCHER CARD STYLES ===== */
    .voucher-card {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 2px dashed var(--voucher-gray);
        border-radius: 15px;
        padding: 30px;
        margin: 20px 0;
        position: relative;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        text-align: left;
    }

    .voucher-header {
        text-align: center;
        border-bottom: 2px solid var(--voucher-light-gray);
        padding-bottom: 20px;
        margin-bottom: 25px;
    }

    .voucher-title {
        background: linear-gradient(45deg, var(--voucher-blue), var(--voucher-blue-dark));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-size: 1.8rem;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .voucher-subtitle {
        color: var(--voucher-gray);
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .voucher-restriction {
        color: var(--voucher-red);
        font-size: 0.9rem;
        font-weight: 500;
    }

    .voucher-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 25px 0;
        flex-wrap: wrap;
        text-align: center;
    }

    .voucher-code-section {
        flex: 1;
        text-align: center;
        min-width: 250px;
    }

    .voucher-code-display {
        background: #fff;
        border: 3px solid var(--voucher-blue);
        border-radius: 10px;
        padding: 15px;
        margin: 15px 0;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    }

    .voucher-code-text {
        font-family: 'Courier New', monospace;
        font-size: 2rem;
        font-weight: bold;
        color: var(--voucher-blue);
        letter-spacing: 2px;
        margin: 0;
    }

    .qr-code-section {
        flex: 0 0 auto;
        text-align: center;
        margin-left: 20px;
    }

    .qr-code-container {
        background: #fff;
        border: 2px solid var(--voucher-light-gray);
        border-radius: 10px;
        padding: 15px;
        display: inline-block;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .voucher-expiry {
        text-align: center;
        color: var(--voucher-red);
        font-weight: bold;
        margin: 15px 0;
        padding: 10px;
        background: #fff3cd;
        border: 1px solid #ffeaa7;
        border-radius: 8px;
    }

    .terms-section {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 20px;
        margin-top: 25px;
        text-align: left;
    }

    .terms-title {
        color: #495057;
        font-size: 1.1rem;
        font-weight: bold;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        text-align: left;
    }

    /* Voucher responsive design */
    @media (max-width: 768px) {
        .voucher-body {
            flex-direction: column;
        }
        
        .qr-code-section {
            margin-left: 0;
            margin-top: 20px;
        }
        
        .voucher-title {
            font-size: 1.5rem;
        }
        
        .voucher-code-text {
            font-size: 1.5rem;
        }
    }

    /* ===== VOUCHER HISTORY STYLES ===== */
    .qr-code-small {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .qr-code-small img {
        border: 1px solid var(--voucher-light-gray);
        border-radius: 4px;
    }

    .voucher-code-display .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .voucher-code-display .col-7,
    .voucher-code-display .col-5 {
        padding-left: 2px;
        padding-right: 2px;
    }

    /* Custom responsive layout */
    @media (min-width: 768px) {
        .col-md-6 {
            flex: 0 0 auto;
            width: 100% !important;
        }
    }

    /* ===== FORM ALIGNMENT & SPACING IMPROVEMENTS ===== */

    /* Registration Form Improvements */
    .registration-form .form-label {
        margin-bottom: 0.75rem;
        font-weight: 600;
        color: #2c3e50;
    }

    /* Identity Question Styling */
    .registration-form .form-check {
        padding-left: 2rem;
        margin-bottom: 0.75rem;
    }

    .registration-form .form-check-input {
        margin-top: 0.25em;
        margin-left: -2rem;
        width: 1.2em;
        height: 1.2em;
    }

    .registration-form .form-check-label {
        margin-left: 0.5rem;
        font-size: 1rem;
        line-height: 1.5;
        color: #495057;
    }

    /* Terms and Conditions Alignment */
    .registration-form .form-check small {
        line-height: 1.4;
        color: #6c757d;
    }

    /* Button Spacing */
    .registration-form .btn.buttomImgM {
        min-width: 120px;
    }

    /* Input Field Consistency */
    .registration-form .form-control {
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        border: 2px solid #e9ecef;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

    .registration-form .form-control:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 0.2rem rgba(62, 205, 89, 0.25);
    }

    /* Radio Button and Checkbox Improvements */
    .registration-form .form-check-input:checked {
        background-color: var(--primary-blue);
        border-color: var(--primary-blue);
    }

    .registration-form .form-check-input:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 0.2rem rgba(62, 205, 89, 0.25);
    }

    /* Mobile Responsiveness */
    @media (max-width: 767.98px) {
        .registration-form .form-check {
            padding-left: 1.5rem;
        }
        
        .registration-form .form-check-input {
            margin-left: -1.5rem;
        }
        
        .registration-form .btn.buttomImgM {
            min-width: 100px;
        }
    }

