*{box-sizing:border-box}body{font-family:Arial,sans-serif;margin:0;background:#f4f4f6;color:#222}.topbar{background:#202332;color:#fff;padding:14px 20px;display:flex;gap:20px;align-items:center;justify-content:space-between}.topbar a{color:#fff;text-decoration:none;margin-left:12px}.brand{font-weight:bold;font-size:1.2rem}.container{max-width:1100px;margin:24px auto;padding:0 16px}.card{background:#fff;border-radius:10px;padding:18px;margin-bottom:18px;box-shadow:0 2px 8px rgba(0,0,0,.08)}input,select,textarea,button{width:100%;padding:10px;margin:6px 0 14px;border:1px solid #ccc;border-radius:6px}button,.btn{display:inline-block;background:#2557a7;color:white;border:none;text-decoration:none;padding:10px 14px;border-radius:6px;cursor:pointer;width:auto}.danger{background:#b00020}.muted{color:#666}.grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 20px;
    max-width: 100%;
    overflow: hidden;
}

.card,
.row,
.card p,
.card h3,
.card a {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}.row{border-bottom:1px solid #eee;padding:10px 0}.pill{display:inline-block;padding:3px 8px;border-radius:999px;background:#eee}.warning{background:#fff3cd;border-left:5px solid #d39e00;padding:12px;margin:12px 0}.success{background:#d4edda;padding:10px;border-radius:6px}.error{background:#f8d7da;padding:10px;border-radius:6px}.message{padding:10px;background:#f2f2f2;border-radius:8px;margin:8px 0}.mine{background:#dbeafe}.admin-table{width:100%;border-collapse:collapse}.admin-table td,.admin-table th{border-bottom:1px solid #ddd;padding:8px;text-align:left}@media(max-width:800px){.grid{grid-template-columns:1fr}.topbar{display:block}.topbar nav a{display:inline-block;margin:8px 8px 0 0}}


.search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-bar select {
    flex: 0 0 auto;    /* Don't stretch */
    width: auto;
}

.search-bar input {
    flex: 1;           /* Fill remaining space */
    min-width: 0;
}

.meet-directory-logo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* Directory logo */
.meet-directory .meet-directory-logo img {
    display: block;
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    object-fit: cover;
    border-radius: 12px;
}

/* Profile logo */
.meet-profile .meet-profile-logo img {
    display: block;
    width: 160px !important;
    height: 160px !important;
    max-width: 160px !important;
    max-height: 160px !important;
    object-fit: cover;
    border-radius: 12px;
}

/* Profile banner */
.meet-profile .meet-profile-banner img {
    display: block;
    width: 100% !important;
    height: 300px !important;
    max-width: 100% !important;
    max-height: 300px !important;
    object-fit: cover;
}

.edit-profile-banner-preview {
    width: 100%;
    max-width: 700px;
    height: 240px;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 12px;
}

.edit-profile-banner-preview img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
}

.edit-profile-logo-preview {
    width: 150px;
    height: 150px;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 12px;
}

.edit-profile-logo-preview img {
    display: block;
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    object-fit: cover;
}

.publish-option {
    display: block;
    margin: 20px 0;
}

.meet-profile-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
}

.meet-profile-logo {
    width: 160px;
    height: 160px;
    flex: 0 0 160px;
    overflow: hidden;
    border-radius: 12px;
}

.meet-profile-logo img {
    display: block;
    width: 160px !important;
    height: 160px !important;
    max-width: 160px !important;
    max-height: 160px !important;
    object-fit: cover;
}

.meet-profile-heading {
    flex: 1;
    min-width: 0;
}

@media (max-width: 550px) {

    .meet-directory-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .meet-directory-logo {
        width: 120px;
        height: 120px;
        flex: 0 0 120px;
        overflow: hidden;
    }

    .meet-directory-logo img {
        display: block;
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
        object-fit: cover;
    }
}

.meet-directory-card .meet-directory-logo {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    flex: 0 0 120px !important;
    overflow: hidden;
}

.meet-directory-card .meet-directory-logo img {
    display: block !important;
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    object-fit: cover !important;
}

@media (max-width: 700px) {

    .meet-profile-logo {
        width: 100px;
        height: 100px;
        min-width: 100px;
        max-width: 100px;
        margin: 0 auto;
    }

    .meet-profile-logo img {
        width: 100px;
        height: 100px;
        max-width: 100px;
        max-height: 100px;
        object-fit: cover;
    }

}

@media (max-width: 700px) {

    .meet-directory-logo {
        width: 80px;
        height: 80px;
        min-width: 80px;
        max-width: 80px;
    }

    .meet-directory-logo img {
        width: 80px;
        height: 80px;
        max-width: 80px;
        max-height: 80px;
        object-fit: cover;
    }

}

@media (max-width:700px){

    h1{
        font-size:2rem;
    }

    h2{
        font-size:1.5rem;
    }

    .card{
        padding:16px;
    }

}

/* Desktop */
.referral-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.referral-card .card-image {
    width: 250px;
    max-width: 250px;
    flex: 0 0 250px;
}

.referral-card .referral-prize-image {
    display: block;
    width: 250px;
    max-width: 250px;
    height: auto;
}

.referral-card .card-content {
    flex: 1;
    min-width: 0;
}

/* Mobile */
@media screen and (max-width: 700px) {
    .referral-card {
        display: block;
    }

    .referral-card .card-image {
        width: 110px;
        max-width: 110px;
        margin: 0 auto 20px;
    }

    .referral-card .referral-prize-image {
        width: 110px !important;
        max-width: 110px !important;
        height: auto;
    }

    .referral-card .card-content {
        width: 100%;
    }
}

.favourite-form {
    display: inline-block;
    margin: 10px 0;
}

.favourite-form button {
    width: auto;
}

.favourite-button {
    cursor: pointer;
}

.favourite-button.favourited {
    font-weight: bold;
}

.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.dashboard-tabs .active {
    font-weight: bold;
    outline: 2px solid currentColor;
}.meet-profile-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 20px;
    align-items: start;
}

.meet-date-entry,
.lift-date-group {
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
}

.meet-date-entry:last-child,
.lift-date-group:last-child {
    border-bottom: none;
}

.meet-date-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.lift-post-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.lift-date-group h3 {
    margin-bottom: 8px;
}

.lift-date-group h4 {
    margin: 12px 0 6px;
}

@media (max-width: 800px) {
    .meet-profile-columns {
        grid-template-columns: 1fr;
    }
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(260px, 1fr)
    );
    gap: 20px;
}

.market-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.market-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
}

.market-card-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
}

.market-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.market-card-content h2 {
    margin-bottom: 10px;
}

.market-card-content p {
    flex: 1;
    overflow-wrap: anywhere;
}

.market-card-content .btn {
    align-self: flex-start;
    margin-top: 10px;
}

.shop-admin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-admin-form input[type="text"],
.shop-admin-form input[type="number"],
.shop-admin-form input[type="url"],
.shop-admin-form input[type="file"],
.shop-admin-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-label input {
    width: auto;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.current-product-image {
    margin-top: 10px;
}

.current-product-image img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.shop-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.shop-admin-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.shop-admin-table th,
.shop-admin-table td {
    padding: 10px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #ddd;
}

.shop-table-image {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.shop-actions {
    white-space: nowrap;
}

.inline-form {
    display: inline;
}

.btn-small {
    padding: 6px 10px;
    font-size: 0.9rem;
}

.btn-danger {
    background: #b42318;
    color: white;
}

.btn-secondary {
    background: #666;
    color: white;
}

.error-message {
    padding: 12px;
    margin-bottom: 15px;
    background: #ffe2e2;
    border: 1px solid #d33;
    border-radius: 6px;
}

.success-message {
    padding: 12px;
    margin-bottom: 15px;
    background: #e3f8e6;
    border: 1px solid #359447;
    border-radius: 6px;
}

.market-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.market-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
}

.market-table th,
.market-table td {
    padding: 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #ddd;
}

.shop-product-image {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
}

.shop-product-price {
    font-size: 1.15rem;
    font-weight: bold;
    white-space: nowrap;
}

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(250px, 1fr)
    );
    gap: 20px;
    width: 100%;
    margin-top: 20px;
    align-items: stretch;
}

.shop-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shop-tile-image-area {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
    padding: 15px;
    box-sizing: border-box;
    background: #f5f5f5;
}

.shop-tile-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.shop-tile-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 18px;
}

.shop-tile-details h2 {
    margin: 0 0 6px;
    font-size: 1.3rem;
}

.shop-tile-sku {
    margin: 0 0 14px;
    color: #666666;
    font-size: 0.9rem;
}

.shop-tile-description {
    flex-grow: 1;
    margin-bottom: 18px;
    line-height: 1.5;
}

.shop-tile-price {
    margin: auto 0 0;
    font-size: 1.3rem;
    font-weight: bold;
}

@media (max-width: 600px) {
    .shop-product-grid {
        grid-template-columns: repeat(
            auto-fill,
            minmax(210px, 1fr)
        );
        gap: 14px;
    }

    .shop-tile-image-area {
        height: 210px;
    }
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 20px 0;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}