* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #222;
    min-height: 100vh;
}

.topbar {
    background: #172554;
    color: white;
    padding: 18px 0;
}

.topbar-container {
    width: 92%;
    max-width: 1200px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.topbar nav {
    display: flex;
    gap: 20px;
}

.topbar nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

.topbar nav a:hover {
    text-decoration: underline;
}

.main-container {
    width: 92%;
    max-width: 1200px;
    margin: 40px auto;
}

.auth-container {
    max-width: 520px;
    margin: 30px auto;
}

.auth-card {
    background: white;
    padding: 35px;
    border-radius: 12px;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #172554;
}

.auth-card .subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;

    border: 1px solid #d1d5db;
    border-radius: 7px;

    font-size: 15px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.btn {
    width: 100%;
    padding: 13px;

    background: #2563eb;
    color: white;

    border: none;
    border-radius: 7px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}

.btn:hover {
    background: #1d4ed8;
}

.alert {
    padding: 13px 15px;
    border-radius: 7px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.dashboard-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.dashboard-card h1 {
    color: #172554;
    margin-bottom: 10px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.profile-item {
    background: #f8fafc;
    padding: 18px;
    border-radius: 8px;
}

.profile-item .label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 5px;
}

.profile-item .value {
    font-weight: bold;
    color: #1e293b;
}

.footer {
    text-align: center;
    color: #777;
    padding: 25px;
    margin-top: 50px;
}

@media (max-width: 650px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .topbar-container {
        flex-direction: column;
        gap: 15px;
    }
}
.referral-form {
    background: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.referral-form h2,
.referral-list h2 {
    margin-bottom: 20px;
    color: #172554;
}

.cancel-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 20px;

    color: #374151;
    background: #e5e7eb;

    border-radius: 7px;
    text-decoration: none;
}

.cancel-btn:hover {
    background: #d1d5db;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.referral-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
}

.referral-table th,
.referral-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.referral-table th {
    background: #172554;
    color: white;
}

.referral-table tr:hover {
    background: #f8fafc;
}

.edit-btn {
    display: inline-block;
    padding: 8px 14px;

    background: #2563eb;
    color: white;

    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.edit-btn:hover {
    background: #1d4ed8;
}

.empty-state {
    padding: 30px;
    margin-top: 15px;

    text-align: center;

    background: #f8fafc;
    border-radius: 8px;

    color: #64748b;
}
/* Registered Shops Dashboard */

.registered-shops-card {
    margin-top: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0 0 5px 0;
    color: #172554;
}

.section-header p {
    margin: 0;
    color: #64748b;
}

.add-shop-btn {
    display: inline-block;
    padding: 11px 18px;

    background: #2563eb;
    color: white;

    text-decoration: none;
    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
}

.add-shop-btn:hover {
    background: #1d4ed8;
}

.shops-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.shops-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.shops-table th,
.shops-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.shops-table th {
    background: #172554;
    color: white;
    font-weight: 600;
}

.shops-table tbody tr:hover {
    background: #f8fafc;
}

.dashboard-edit-btn {
    display: inline-block;

    padding: 7px 14px;

    background: #f59e0b;
    color: white;

    text-decoration: none;
    border-radius: 6px;

    font-size: 13px;
    font-weight: 600;
}

.dashboard-edit-btn:hover {
    background: #d97706;
}

.no-shops {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 8px;
}

.no-shops p {
    color: #64748b;
    margin-bottom: 15px;
}

@media (max-width: 650px) {

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .add-shop-btn {
        width: 100%;
        text-align: center;
    }

}

.cj-shops-box {
    background: red !important;
}
/* =========================================================
   CAMPUS JUNCTION SUBADMIN DASHBOARD
   ========================================================= */

.cj-dashboard {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   PROFILE HEADER
   ========================================================= */

.cj-profile-card {
    width: 100%;
    padding: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: linear-gradient(
        135deg,
        #172554 0%,
        #1e3a8a 100%
    );

    border-radius: 18px;

    color: #ffffff;

    box-shadow:
        0 10px 30px rgba(23, 37, 84, 0.20);

    margin-bottom: 22px;
}


.cj-profile-left {
    display: flex;
    align-items: center;
    gap: 20px;
}


.cj-avatar {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.15);

    border: 2px solid rgba(255, 255, 255, 0.30);

    border-radius: 50%;

    font-size: 28px;
    font-weight: 700;

    color: #ffffff;
}


.cj-profile-intro .cj-welcome {
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 700;

    color: #93c5fd;

    margin-bottom: 6px;
}


.cj-profile-intro h1 {
    margin: 0;

    color: #ffffff;

    font-size: 28px;
    font-weight: 700;
}


.cj-profile-intro p {
    margin: 6px 0 0;

    color: #bfdbfe;

    font-size: 14px;
}


.cj-ranking-badge {
    display: inline-flex;

    padding: 9px 16px;

    background: #ffffff;
    color: #172554;

    border-radius: 30px;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   INFORMATION CARDS
   ========================================================= */

.cj-info-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 18px;
}


.cj-info-card {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.04);
}


.cj-info-icon {
    min-width: 42px;
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 11px;
    font-weight: 800;
}


.cj-blue {
    background: #dbeafe;
    color: #1d4ed8;
}


.cj-purple {
    background: #ede9fe;
    color: #7c3aed;
}


.cj-green {
    background: #dcfce7;
    color: #15803d;
}


.cj-orange {
    background: #ffedd5;
    color: #c2410c;
}


.cj-info-content {
    min-width: 0;
}


.cj-info-content span {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


.cj-info-content strong {
    display: block;

    overflow: hidden;

    color: #172554;

    font-size: 14px;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* =========================================================
   SERIAL NUMBER
   ========================================================= */

.cj-serial-card {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 22px;

    margin-bottom: 30px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 12px;
}


.cj-serial-left {
    display: flex;
    align-items: center;

    gap: 13px;
}


.cj-serial-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #172554;

    color: #ffffff;

    border-radius: 10px;

    font-weight: 800;
}


.cj-serial-left span {
    display: block;

    margin-bottom: 4px;

    color: #64748b;

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;
}


.cj-serial-left strong {
    color: #172554;

    font-size: 17px;

    letter-spacing: 1px;
}


.cj-serial-label {
    padding: 7px 12px;

    background: #dbeafe;

    color: #1d4ed8;

    border-radius: 20px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   SHOP SECTION
   ========================================================= */

.cj-shop-section {
    width: 100%;
}


.cj-shop-section-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}


.cj-section-label {
    display: block;

    margin-bottom: 5px;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.cj-shop-section-header h2 {
    margin: 0;

    color: #172554;

    font-size: 24px;
}


.cj-shop-section-header p {
    margin: 5px 0 0;

    color: #64748b;

    font-size: 14px;
}


/* =========================================================
   REGISTER BUTTON
   ========================================================= */

.cj-register-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 11px 17px;

    background: #2563eb;

    color: #ffffff !important;

    text-decoration: none !important;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;

    transition: 0.2s ease;
}


.cj-register-button:hover {
    background: #1d4ed8;

    color: #ffffff !important;

    transform: translateY(-1px);
}


.cj-register-button span {
    font-size: 18px;

    line-height: 1;
}


/* =========================================================
   SHOP SUMMARY
   ========================================================= */

.cj-shop-summary {
    display: inline-flex;

    margin-bottom: 12px;

    padding: 12px 18px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 10px;
}


.cj-shop-summary strong {
    margin-right: 7px;

    color: #2563eb;

    font-size: 20px;
}


.cj-shop-summary span {
    color: #64748b;

    font-size: 13px;
}


/* =========================================================
   SHOP TABLE
   ========================================================= */

.cj-shop-table-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.04);
}


.cj-table-scroll {
    width: 100%;

    overflow-x: auto;
}


.cj-shop-table {
    width: 100%;

    min-width: 600px;

    border-collapse: collapse;
}


.cj-shop-table thead {
    background: #f8fafc;
}


.cj-shop-table th {
    padding: 14px 18px;

    color: #64748b;

    font-size: 11px;

    font-weight: 800;

    text-align: left;

    letter-spacing: 0.7px;

    border-bottom: 1px solid #e5e7eb;
}


.cj-shop-table td {
    padding: 15px 18px;

    color: #334155;

    font-size: 14px;

    border-bottom: 1px solid #f1f5f9;
}


.cj-shop-table tbody tr:last-child td {
    border-bottom: none;
}


.cj-shop-table tbody tr:hover {
    background: #f8fafc;
}


/* =========================================================
   NUMBER
   ========================================================= */

.cj-number {
    display: inline-flex;

    width: 30px;
    height: 30px;

    align-items: center;
    justify-content: center;

    background: #eff6ff;

    color: #2563eb;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   SHOP NAME
   ========================================================= */

.cj-shop-name {
    display: flex;

    align-items: center;

    gap: 11px;

    color: #172554;

    font-weight: 600;
}


.cj-shop-avatar {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f1f5f9;

    border-radius: 8px;

    font-size: 17px;
}


/* =========================================================
   EDIT BUTTON
   ========================================================= */

.cj-edit-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 7px 13px;

    background: #fff7ed;

    color: #c2410c !important;

    border: 1px solid #fed7aa;

    border-radius: 7px;

    text-decoration: none !important;

    font-size: 12px;

    font-weight: 700;
}


.cj-edit-button:hover {
    background: #ffedd5;

    color: #9a3412 !important;
}


/* =========================================================
   EMPTY SHOPS
   ========================================================= */

.cj-empty-shops {
    width: 100%;

    padding: 55px 25px;

    text-align: center;

    background: #ffffff;

    border: 1px dashed #cbd5e1;

    border-radius: 12px;
}


.cj-empty-icon {
    margin-bottom: 12px;

    font-size: 42px;
}


.cj-empty-shops h3 {
    margin: 0 0 7px;

    color: #172554;

    font-size: 18px;
}


.cj-empty-shops p {
    margin: 0 0 20px;

    color: #64748b;

    font-size: 14px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .cj-info-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .cj-profile-card {
        padding: 22px;

        align-items: flex-start;

        flex-direction: column;

        gap: 18px;
    }


    .cj-profile-left {
        width: 100%;
    }


    .cj-profile-right {
        width: 100%;
    }


    .cj-ranking-badge {
        width: 100%;

        justify-content: center;
    }


    .cj-profile-intro h1 {
        font-size: 22px;
    }


    .cj-info-grid {
        grid-template-columns: 1fr;
    }


    .cj-serial-card {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }


    .cj-serial-label {
        align-self: flex-start;
    }


    .cj-shop-section-header {
        align-items: stretch;

        flex-direction: column;
    }


    .cj-register-button {
        width: 100%;
    }

}


@media (max-width: 480px) {

    .cj-profile-card {
        border-radius: 12px;
    }


    .cj-avatar {
        width: 58px;
        height: 58px;

        font-size: 22px;
    }


    .cj-profile-intro h1 {
        font-size: 19px;
    }


    .cj-info-card {
        padding: 14px;
    }


    .cj-serial-left strong {
        font-size: 14px;
    }

}

