 /* ========= GLOBAL RESET ========= */
        * {
            box-sizing: border-box;
        }

        ul {
            list-style-type: none;
        }

        body {
            margin: 0;
            font-family: "Inter", system-ui, sans-serif;
            background: #eef2f7;
            color: #0f172a;
        }

        /* ========= TOP BAR ========= */
        .top-bar {
            background: #0f172a;
            color: #f8fafc;
            padding: 10px 16px;
            font-size: 14px;
            text-align: center;
            letter-spacing: .2px;
        }

        /* ========= NAVBAR ========= */
        .navbar {
            background: #1e293b;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .navbar .logo {
            font-size: 20px;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: 1px;
        }

        .navbar .menu span {
            color: #e2e8f0;
            margin-left: 18px;
            cursor: pointer;
            transition: .3s;
        }

        .navbar .menu span:hover {
            color: #38bdf8;
        }

        /* ========= HERO ========= */
        .hero {
            height: 180px;
            background: url("images/background/3.jpg") center/cover;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hero h1 {
            font-size: 36px;
            color: #ffffff;
            font-weight: 800;
            text-shadow: 0 3px 12px rgba(0, 0, 0, .7);
        }

        /* ========= LAYOUT ========= */
        .page-wrapper {
            min-height: 100vh;
        }

        .login-section {
            padding: 40px 16px;
        }

        .container {
            max-width: 1240px;
            margin: auto;
        }

        .custom-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }


        .col-left {
            flex: 1 1 65%;
        }

        .col-right {
            flex: 1 1 35%;
        }

        @media (max-width: 768px) {

            .form-group.half {
                flex: 0 0 100%;
            }

            .col-left,
            .col-right {
                flex: 0 0 100%;
            }

        }

        .form-row {
            display: flex;
            flex-wrap: wrap;
            gap: 15px 20px;
            align-items: flex-start;
            /* Important */
        }

        .form-group {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }


        @media(max-width: 991px) {

            .col-left,
            .col-right {
                flex: 0 0 100%;
            }
        }

        /* ========= CARD ========= */
        .card {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(12px);
            padding: 25px 30px;
            border-radius: 18px;
            box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.4);
        }

        .card h3 {
            font-size: 22px;
            font-weight: 800;
            margin-bottom: 14px;
        }

        /* ========= TABS ========= */
        .tab-btns {
            display: flex;
            border-bottom: 1px solid #d1d5db;
            margin-bottom: 20px;
        }

        .tab-btns li {
            padding: 12px 20px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            border-radius: 10px 10px 0 0;
            color: #475569;
            transition: 0.25s;
        }

        .tab-btns li:hover {
            background: #e0f2fe;
            color: #0284c7;
        }

        .tab-btns li.active-btn {
            background: linear-gradient(145deg, #1d4ed8, #2563eb);
            color: #fff;
        }

        /* ========= FORM FIELDS ========= */
        .form-row {
            display: flex;
            flex-wrap: wrap;
            gap: 15px 20px;
        }

        .form-group {
            flex: 0 0 100%;
        }

        .form-group.half {
            flex: 0 0 48%;
        }

        label {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        input,
        select,
        textarea {
            width: 100%;
            padding: 10px 12px;
            font-size: 14.5px;
            border: 1px solid #cbd5e1;
            border-radius: 10px;
            background: #fff;
            outline: none;
            transition: .2s;
        }

        input:focus,
        select:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
        }

        textarea {
            min-height: 90px;
        }

        /* ========= SECTION HEADINGS ========= */
        .section-heading {
            margin-top: 25px;
            font-size: 17px;
            font-weight: 700;
            color: #b91c1c;
            text-align: center;
        }

        hr {
            border: 0;
            border-top: 1px solid #e5e7eb;
            margin-bottom: 12px;
        }

        /* ========= BUTTONS ========= */
        .btn {
            padding: 10px 24px;
            border-radius: 999px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: .25s;
        }

        .btn-primary {
            background: linear-gradient(145deg, #1e40af, #6366f1);
            color: white;
            box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
        }

        .btn-secondary {
            background: #e2e8f0;
            color: #1e293b;
        }

        .btn-secondary:hover {
            background: #cbd5e1;
        }

        /* ========= AVAILABLE BATCH ========= */
        .batch-title {
            font-size: 20px;
            font-weight: 800;
            text-align: center;
            margin-bottom: 15px;
        }

        .batch-item {
            padding: 14px;
            background: #fefefe;
            border-radius: 14px;
            border: 1px solid #e2e8f0;
            margin-bottom: 12px;
            transition: .25s;
        }

        .batch-item:hover {
            transform: translateY(-3px);
            background: #f0f9ff;
            border-color: #38bdf8;
        }

        .batch-item .name {
            font-size: 15px;
            font-weight: 700;
            color: #1d4ed8;
        }

        .batch-item .details {
            font-size: 13px;
            color: #64748b;
        }

        .badge {
            padding: 4px 12px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 600;
            display: inline-block;
        }

        .badge-success {
            background: #16a34a;
            color: #fff;
        }

        .badge-danger {
            background: #dc2626;
            color: #fff;
        }

        /* ========= PAYMENT QR ========= */
        #scan_code {
            display: none;
            gap: 20px;
        }

        #img_src {
            width: 100%;
            max-width: 500px;
            /* control width */
            height: 350px;
            /* 🔥 FIXED HEIGHT */
            object-fit: contain;
            /* prevents stretching */
            border-radius: 12px;
            background: #fff;
            padding: 10px;
        }

        /* ========= TOAST ========= */
        #global-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 14px 18px;
            font-size: 14px;
            color: white;
            border-radius: 12px;
            opacity: 0;
            transform: translateY(-15px);
            transition: .3s ease-out;
            font-weight: 600;
            z-index: 9999;
        }

        /* HIDE ALL TABS */
        .tabs-content .tab {
            display: none;
        }

        /* SHOW ONLY ACTIVE TAB */
        .tabs-content .tab.active-tab {
            display: block;
        }

        /* MAKE FORM MORE COMPACT & CLEAN */
        .card form {
            margin-top: 10px;
        }

        /* Reduce spacing between fields */
        .form-group {
            margin-bottom: 12px !important;
        }

        /* Improve label styling */
        .card label {
            font-weight: 600;
            font-size: 14px;
            color: #1e293b;
            margin-bottom: 4px;
        }

        /* Improve input UI */
        .card input,
        .card select {
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 14px;
            height: 42px;
        }

        /* Two columns proper spacing */
        .form-row {
            display: flex;
            flex-wrap: wrap;
            gap: 12px 18px;
        }

        .form-group.half {
            flex: 0 0 calc(50% - 9px);
        }

        /* FORM SECTION HEADING */
        .section-heading {
            font-size: 16px;
            font-weight: 700;
            margin: 20px 0 6px;
            color: #b91c1c;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Reduce horizontal line space */
        hr {
            margin: 6px 0 12px;
        }

        /* Make fields equal size */
        input,
        select {
            width: 100%;
        }

        /* Card padding fix */
        .card {
            padding: 24px 26px;
        }

        /* Make buttons consistent size */
        .btn {
            padding: 10px 22px;
            font-size: 15px;
        }

        .col-right {
            display: flex;
            justify-content: center;
        }

        .col-right .card {
            width: 100%;
            max-width: 500px;
            /* controls card width */
            text-align: center;
        }

        .batch-list {
            padding-left: 0;
        }

        .batch-item {
            list-style: none;
            text-align: center;
        }

        @media (max-width: 768px) {

            .form-group.half {
                flex: 0 0 100% !important;
                max-width: 100%;
            }

        }