    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        min-height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 20px;
        font-family: 'SolaimanLipi', 'Noto Sans Bengali', 'Inter', sans-serif;
        font-size: 18px;
        color: #000;
    }

    .glass-container {
        max-width: 1200px;
        margin: 0 auto;
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(12px);
        border-radius: 32px;
        padding: 24px;
        box-shadow: 0 25px 45px rgba(0,0,0,0.2);
        border: 1px solid rgba(255,255,255,0.2);
    }

    /* Title Box */
    .title-box {
        background: linear-gradient(135deg, #4a148c, #6a1b9a);
        border-radius: 60px;
        padding: 16px 32px;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
        border: 1px solid rgba(255,255,255,0.2);
        backdrop-filter: blur(2px);
    }
    .title-box i {
        font-size: 2.2rem;
        color: #fff;
        text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }
    .title-box h1 {
        color: #fff !important;
        font-size: 2rem;
        margin: 0;
        letter-spacing: -0.5px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    /* Navigation */
    .nav {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 30px;
        background: rgba(0,0,0,0.1);
        padding: 10px 20px;
        border-radius: 60px;
        backdrop-filter: blur(5px);
    }
    .nav button {
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(4px);
        border: none;
        padding: 12px 24px;
        border-radius: 40px;
        font-weight: 600;
        color: #000;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 16px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    .nav button:hover {
        background: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    .nav button.active {
        background: #24031c;
        color: #fff;
        box-shadow: 0 4px 12px rgba(99,102,241,0.4);
        transform: scale(1.02);
    }
    .nav button i {
        margin-right: 8px;
    }

    /* Token Clock */
    .token-clock {
        width: fit-content;
        max-width: 100%;
        margin: -14px auto 24px;
        padding: 10px 16px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        gap: 12px;
        background: rgba(255,255,255,0.94);
        color: #0f172a;
        box-shadow: 0 12px 28px rgba(15,23,42,0.16);
        border: 1px solid rgba(255,255,255,0.58);
    }
    .token-clock-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #e0f2fe;
        color: #0369a1;
        flex-shrink: 0;
    }
    .token-clock-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
        line-height: 1.1;
    }
    .token-clock-label {
        font-size: 0.78rem;
        font-weight: 700;
        color: #475569;
    }
    .token-clock strong {
        font-size: 1.08rem;
        color: #0f172a;
        font-variant-numeric: tabular-nums;
    }
    .token-clock.expiring .token-clock-icon {
        background: #fef3c7;
        color: #b45309;
    }
    .token-clock.expired .token-clock-icon {
        background: #fee2e2;
        color: #b91c1c;
    }

    /* Card & Form */
    .card {
        background: rgba(255,255,255,0.95);
        border-radius: 28px;
        padding: 30px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    h2 {
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 20px;
        color: #000;
        border-left: 5px solid #6366f1;
        padding-left: 15px;
    }
    .form-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .input-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .input-group label {
        font-weight: 600;
        font-size: 0.95rem;
        color: #000;
        letter-spacing: 0.3px;
    }
    .input-group label i {
        margin-right: 6px;
    }
    input, select, textarea {
        background: #fff;
        border: 1px solid #cbd5e1;
        border-radius: 16px;
        padding: 14px 16px;
        font-size: 1rem;
        outline: none;
        color: #000;
        transition: 0.2s;
    }
    input:focus, select:focus, textarea:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
    }
    .full-width {
        grid-column: 1 / -1;
    }
    button[type="submit"], .action-button {
        background: linear-gradient(90deg, #6366f1, #8b5cf6);
        border: none;
        padding: 14px 28px;
        border-radius: 40px;
        font-weight: 700;
        font-size: 1rem;
        color: #fff;
        cursor: pointer;
        width: 100%;
        margin-top: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: 0.2s;
    }
    button[type="submit"]:hover, .action-button:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 20px rgba(99,102,241,0.3);
    }
    button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }
    .spinner {
        display: inline-block;
        width: 1rem;
        height: 1rem;
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 0.6s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Status & Message */
    .message {
        margin-top: 20px;
        padding: 12px 18px;
        border-radius: 20px;
        font-size: 0.95rem;
    }
    .success {
        background: #d1fae5;
        color: #065f46;
        border-left: 5px solid #10b981;
    }
    .error {
        background: #fee2e2;
        color: #991b1b;
        border-left: 5px solid #ef4444;
    }

    /* Complaint Table */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .complaint-table {
        width: 100%;
        min-width: 680px;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 0;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        background: #fff;
    }
    .complaint-table thead tr {
        background: linear-gradient(135deg, #4a148c, #4a148c);
        color: #fff;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .complaint-table th,
    .complaint-table td {
        padding: 14px 12px;
        vertical-align: middle;
        text-align: left;
    }
    .complaint-table th {
        font-size: 0.9rem;
        border-bottom: none;
    }
    .complaint-table td {
        border-bottom: 1px solid #e2e8f0;
        font-size: 0.95rem;
        color: #1e293b;
    }
    .complaint-table tbody tr {
        transition: background 0.2s;
    }
    .complaint-table tbody tr:hover {
        background: #f8f4ff;
        cursor: pointer;
    }
    /* Column widths */
    .complaint-table th:first-child,
    .complaint-table td:first-child {
        width: 150px;
        min-width: 140px;
        white-space: nowrap;
    }
    .complaint-table th:nth-child(2) {
        width: 110px;
    }
    .complaint-table th:nth-child(3) {
        width: 200px;
    }
    .complaint-table th:nth-child(4) {
        width: auto;
    }

    /* Status dot style */
    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        font-weight: 500;
        color: #1f2937;
        line-height: 1.4;
    }
    .status-badge::before {
        content: '';
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .status-RECEIVED::before { background: #0284c7; }
    .status-EO_ASSIGNED::before { background: #ea580c; }
    .status-COMPLETED::before { background: #16a34a; }
    .status-INFO_NEEDED::before { background: #d97706; }
    .status-NOT_CYBER::before { background: #6b7280; }
    .status-NON_COGNIZABLE::before { background: #4b5563; }

    /* Modal */
    .modal-overlay {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: rgba(15,23,42,0.58);
        backdrop-filter: blur(10px);
    }
    .modal-overlay.hidden {
        display: none;
    }
    .modal-card {
        width: min(440px, 100%);
        background: #fff;
        border-radius: 24px;
        padding: 28px;
        position: relative;
        color: #0f172a;
        box-shadow: 0 28px 70px rgba(15,23,42,0.28);
        border: 1px solid rgba(255,255,255,0.68);
        text-align: center;
    }
    .modal-close {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 50%;
        background: #f1f5f9;
        color: #334155;
        cursor: pointer;
    }
    .modal-icon {
        width: 58px;
        height: 58px;
        margin: 0 auto 16px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 24px;
        background: #e0f2fe;
        color: #0369a1;
    }
    .modal-icon.success { background: #dcfce7; color: #15803d; }
    .modal-icon.error { background: #fee2e2; color: #b91c1c; }
    .modal-icon.warning { background: #fef3c7; color: #b45309; }
    .modal-title {
        font-size: 1.35rem;
        font-weight: 700;
        margin-bottom: 8px;
        color: #0f172a;
    }
    .modal-message {
        color: #334155;
        line-height: 1.6;
        font-size: 1rem;
    }
    .modal-detail {
        margin-top: 12px;
        padding: 12px;
        border-radius: 14px;
        background: #f8fafc;
        color: #0f172a;
        font-weight: 700;
    }
    .modal-action {
        margin-top: 20px;
        border: none;
        border-radius: 999px;
        padding: 12px 24px;
        background: #24031c;
        color: #fff;
        font-weight: 700;
        cursor: pointer;
        min-width: 120px;
    }

    /* Image Upload */
    .image-upload-zone {
        border: 2px dashed #cbd5e1;
        border-radius: 20px;
        padding: 30px 20px;
        text-align: center;
        background: #f8fafc;
        cursor: pointer;
        transition: 0.2s;
        margin-top: 8px;
    }
    .image-upload-zone:hover {
        border-color: #6366f1;
        background: #f1f5f9;
    }
    .image-upload-zone i {
        font-size: 2rem;
        color: #6366f1;
        margin-bottom: 8px;
    }
    .image-upload-zone p {
        margin: 0;
        font-weight: 500;
    }
    .small-text {
        font-size: 0.8rem;
        color: #64748b;
    }
    .image-preview-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 15px;
    }
    .preview-item {
        position: relative;
        width: 100px;
        height: 100px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: 1px solid #e2e8f0;
    }
    .preview-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .delete-image {
        position: absolute;
        top: 4px;
        right: 4px;
        background: rgba(0,0,0,0.6);
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 12px;
        transition: 0.2s;
    }
    .delete-image:hover {
        background: #ef4444;
        transform: scale(1.1);
    }

    /* Utilities */
    .hidden { display: none; }
    .counter {
        font-size: 0.75rem;
        margin-left: 8px;
        color: #4b5563;
    }
    .counter.warning { color: #dc2626; }
    .category-description {
        background: #f8f9fa;
        padding: 8px 12px;
        border-radius: 12px;
        margin-top: 8px;
    }
    body.portal-locked .glass-container {
        pointer-events: none;
        filter: blur(3px);
    }

    /* Font */
    @font-face {
        font-family: 'SolaimanLipi';
        src: url('/static/fonts/SolaimanLipi.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
    }
    button, input, select, textarea {
        font-family: 'SolaimanLipi', 'Noto Sans Bengali', 'Inter', sans-serif;
    }

    @media (max-width: 768px) {
        .complaint-table {
            min-width: 640px;
        }
    }
    @media (max-width: 640px) {
        .glass-container { padding: 16px; }
        .card { padding: 20px; }
        body { font-size: 16px; }
        .nav button { padding: 8px 16px; font-size: 14px; }
        .modal-card { padding: 24px 18px; }
        .token-clock { margin-top: -10px; }
        .lookup-actions { grid-template-columns: 1fr; }
        .title-box {
            padding: 12px 20px;
            gap: 12px;
            border-radius: 40px;
        }
        .title-box i { font-size: 1.8rem; }
        .title-box h1 { font-size: 1.4rem; }
    }
