/* ========== RESET GLOBAL ========== */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Segoe UI', 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
        background: #f5f5f5;
        padding-bottom: 70px;
    }

    /* ========== VARIABLES/TEMA ========== */
    :root {
        --blue: #1a56db;
        --red: #e02424;
        --white: #ffffff;
        --dark-blue: #0e3a8a;
        --light-red: #fee2e2;
        --gray: #6b7280;
    }

    /* ========== BOTTOM NAVIGATION ========== */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        border-top: 2px solid var(--red);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--gray);
        font-size: 24px;
        transition: all 0.3s;
        gap: 4px;
        cursor: pointer;
    }

    .nav-item.active {
        color: var(--blue);
    }

    .nav-item span {
        font-size: 12px;
    }

    /* ========== MAIN CONTENT ========== */
    .main-content {
        padding: 20px;
    }

    /* ========== SLIDESHOW STYLES ========== */
    .slideshow-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .slideshow-track {
        display: flex;
        transition: transform 0.5s ease;
    }

    .slide {
        flex: 0 0 100%;
        position: relative;
    }

    .slide img {
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

    .slide-caption {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        text-align: center;
        white-space: nowrap;
    }

    .slide-caption h3 {
        font-size: 12px;
        margin-bottom: 5px;
        white-space: nowrap;
    }

    .dots-container {
        text-align: center;
        margin-top: 10px;
    }

    .dot {
        height: 10px;
        width: 10px;
        margin: 0 4px;
        background-color: #bbb;
        border-radius: 50%;
        display: inline-block;
        transition: background-color 0.3s ease;
        cursor: pointer;
    }

    .dot.active {
        background-color: var(--blue);
    }

    /* ========== MEMBER COUNTER CARD ========== */
    .member-counter {
        background: linear-gradient(135deg, var(--blue), var(--dark-blue));
        color: white;
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .member-counter h2 {
        font-size: 14px;
        font-weight: normal;
    }

    .member-counter .count {
        font-size: 32px;
        font-weight: bold;
    }

    /* ========== HIGHLIGHTS ========== */
    .highlights {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
        margin-bottom: 10px;
    }

    .highlight-card {
        background: var(--white);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.3s;
    }

    .highlight-card:hover {
        transform: translateY(-5px);
    }

    .highlight-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .highlight-card .content {
        padding: 10px;
    }

    .highlight-card h3 {
        color: var(--blue);
        margin-bottom: 3px;
    }

    .highlight-card p {
        color: var(--gray);
        font-size: 10px;
    }

    /* ========== PAGE CONTAINER ========== */
    .page-container {
        display: none;
        animation: fadeIn 0.3s ease;
    }

    .page-container.active-page {
        display: block;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* ========== PARTNER STYLES (RESPONSIF) ========== */
    #partner-page {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .partner-container {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .partner-header {
        margin-bottom: 20px;
        width: 100%;
    }

    .city-filter {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .city-chip {
        padding: 8px 16px;
        background: white;
        border-radius: 25px;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.3s;
        border: 1px solid #ddd;
        font-size: 13px;
        flex-shrink: 0;
    }

    .city-chip:hover {
        background: #f0f0f0;
    }

    .city-chip.active {
        background: var(--blue);
        color: white;
        border-color: var(--blue);
    }

    .category-filter {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .category-chip {
        padding: 8px 16px;
        background: white;
        border-radius: 25px;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.3s;
        border: 1px solid #ddd;
        font-size: 13px;
    }

    .category-chip:hover {
        background: #f0f0f0;
    }

    .category-chip.active {
        background: var(--blue);
        color: white;
        border-color: var(--blue);
    }

    .partners-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
    }

    .partner-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        cursor: pointer;
        transition: all 0.3s;
        width: 100%;
    }

    .partner-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }

    .partner-logo {
        background: linear-gradient(60deg, #8a6d3b 0%, #f3e5ab 50%, #d4af37 100%);
        padding: 10px;
        text-align: center;
        min-height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .partner-logo img {
        max-width: 120px;
        max-height: 120px;
        object-fit: contain;
        background: white;
        border-radius: 50%;
        padding: 5px;
    }

    .partner-logo .default-logo {
        width: 120px;
        height: 120px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 40px;
    }

    .partner-info {
        padding: 16px;
        word-break: break-word;
    }

    .partner-name {
        font-size: 16px;
        font-weight: bold;
        color: var(--blue);
        margin-bottom: 8px;
        word-break: break-word;
    }

    .partner-discount {
        display: inline-block;
        background: var(--red);
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .partner-expired {
        font-size: 12px;
        color: var(--gray);
        margin-bottom: 8px;
    }

    .partner-address {
        font-size: 12px;
        color: #555;
        margin-bottom: 8px;
        line-height: 1.4;
        word-break: break-word;
    }

    .selected-city-info {
        margin-bottom: 15px;
    }

    .city-badge {
        display: inline-block;
        background: var(--blue);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
    }

    .back-button {
        background: #6b7280;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .empty-state {
        text-align: center;
        padding: 60px 20px;
        color: var(--gray);
    }

    /* ========== SEARCH BOX ========== */
    .search-container {
        margin-bottom: 20px;
        width: 100%;
    }

    .search-box {
        position: relative;
        width: 100%;
    }

    .search-icon {
        position: absolute;
        left: 15px;
        font-size: 18px;
        color: var(--gray);
        pointer-events: none;
        top: 50%;
        transform: translateY(-50%);
    }

    .search-input {
        width: 100%;
        padding: 12px 40px 12px 45px;
        border: 1px solid #ddd;
        border-radius: 25px;
        font-size: 14px;
        background: white;
        outline: none;
    }

    .search-input:focus {
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
    }

    .clear-search {
        position: absolute;
        right: 15px;
        background: none;
        border: none;
        font-size: 18px;
        cursor: pointer;
        color: var(--gray);
        padding: 0;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s;
        top: 50%;
        transform: translateY(-50%);
    }

    .clear-search:hover {
        background: #f0f0f0;
        color: #333;
    }

    /* ========== MODAL STYLES ========== */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 2000;
        justify-content: center;
        align-items: center;
        padding: 15px;
    }

    .modal.active {
        display: flex;
    }

    .modal-content {
        background: white;
        border-radius: 16px;
        width: 100%;
        max-width: 450px;
        max-height: 85vh;
        overflow-y: auto;
        position: relative;
        animation: modalFadeIn 0.3s ease;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .modal-header {
        padding: 16px 20px;
        background: var(--blue);
        color: white;
        border-radius: 16px 16px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
    }

    .modal-header h3 {
        margin: 0;
        font-size: 18px;
    }

    .modal-body {
        padding: 20px;
        word-break: break-word;
    }

    .close-modal {
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        line-height: 1;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s;
    }

    .close-modal:hover {
        background: rgba(255,255,255,0.2);
    }

    #partnerMap {
        height: 200px;
        margin-top: 16px;
        border-radius: 8px;
        overflow: hidden;
        width: 100%;
    }

    .map-placeholder {
        height: 200px;
        background: #f0f2f5;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        color: #666;
        flex-direction: column;
        gap: 8px;
    }

    /* ========== MEMBERSHIP CARD STYLES (RESPONSIF) ========== */
    .card {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 500 / 292;
        background-color: #1a1a1a;
        border-radius: 20px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0,0,0,0.3);
        margin: 0 auto;
    }

    .top-bg-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 67%;
        overflow: hidden;
    }

    .top-bg-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .name-ribbon {
        position: absolute;
        bottom: 17%;
        width: 100%;
        height: 16%;
        background: linear-gradient(90deg, #8a6d3b 0%, #f3e5ab 50%, #d4af37 100%);
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 6%;
        z-index: 2;
    }

    .name-display {
        color: #000;
        font-weight: 900;
        font-size: clamp(14px, 4vw, 20px);
        text-transform: uppercase;
        letter-spacing: 1px;
        white-space: nowrap;
        overflow-x: auto;
        max-width: 85%;
    }

    .name-display::-webkit-scrollbar {
        height: 2px;
    }

    .footer-ribbon {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 17%;
        background-color: #000000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 6%;
        z-index: 2;
    }

    .footer-text {
        color: #ffffff;
        font-size: clamp(10px, 3vw, 14px);
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .card-back {
        background-image: url('member.png');
        background-size: cover;
        background-position: center;
    }

    .qr-placeholder {
        position: absolute;
        bottom: 10%;
        right: 6%;
        width: 28%;
        max-width: 140px;
        aspect-ratio: 1 / 1;
        background-color: #ffffff;
        border-radius: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .qr-placeholder canvas,
    .qr-placeholder img {
        width: 90%;
        height: 90%;
        object-fit: contain;
    }

    .member-photo-section {
        background: white;
        border-radius: 20px;
        width: 100%;
        max-width: 500px;
        padding: 20px;
        text-align: center;
        box-shadow: 0 20px 50px rgba(0,0,0,0.1);
        margin: 0 auto;
    }

    .member-photo-container {
        width: min(130px, 30vw);
        height: min(130px, 30vw);
        border-radius: 50%;
        overflow: hidden;
        margin: 0 auto;
        border: 4px solid #d4af37;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .member-photo-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .profile-link {
        margin-top: 20px;
        font-size: clamp(14px, 3.5vw, 16px);
        font-weight: 600;
        word-break: break-word;
    }

    .logout-button {
        margin-top: 15px;
        background: #e02424;
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 8px;
        font-size: clamp(12px, 3vw, 14px);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        width: 100%;
        max-width: 200px;
    }

    .logout-button:hover {
        background: #c01c1c;
    }

    /* ========== LOGIN & REGISTER FORM STYLES ========== */
    .login-form {
        background: white;
        border-radius: 20px;
        padding: 32px;
        max-width: 450px;
        width: 100%;
        margin: 20px auto;
        box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    }

    .login-form h3 {
        color: #1a56db;
        margin-bottom: 24px;
        text-align: center;
        font-size: 24px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #333;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #ddd;
        border-radius: 10px;
        font-size: 14px;
        transition: all 0.3s;
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        outline: none;
        border-color: #1a56db;
        box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
    }

    .btn {
        background: #1a56db;
        color: white;
        padding: 14px 24px;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        width: 100%;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s;
    }

    .btn:hover {
        background: #0e3a8a;
        transform: translateY(-2px);
    }

    .link {
        text-align: center;
        margin-top: 20px;
    }

    .link span {
        color: #1a56db;
        cursor: pointer;
        font-weight: 600;
    }

    .link span:hover {
        text-decoration: underline;
    }

    .alert {
        padding: 12px 16px;
        border-radius: 10px;
        margin-bottom: 20px;
        font-size: 14px;
    }

    .alert-error {
        background: #fee2e2;
        color: #e02424;
        border-left: 4px solid #e02424;
    }

    .alert-success {
        background: #d1fae5;
        color: #059669;
        border-left: 4px solid #059669;
    }

    .photo-preview {
        text-align: center;
        margin-bottom: 20px;
    }

    .photo-preview img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #1a56db;
    }

    .photo-actions {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 10px;
    }

    .small-btn {
        background: #1a56db;
        color: white;
        border: none;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .small-btn:hover {
        background: #0e3a8a;
    }

    .small-btn-camera {
        background: #10b981;
    }

    .small-btn-camera:hover {
        background: #059669;
    }

    /* ========== CAMERA MODAL ========== */
    .camera-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.95);
        z-index: 10001;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .camera-modal.active {
        display: flex;
    }

    .camera-video {
        width: 100%;
        max-width: 400px;
        border-radius: 12px;
        transform: scaleX(-1);
    }

    .camera-controls {
        margin-top: 20px;
        display: flex;
        gap: 15px;
    }

    .camera-btn {
        padding: 12px 24px;
        border: none;
        border-radius: 30px;
        font-size: 16px;
        cursor: pointer;
    }

    .camera-btn-capture {
        background: #e02424;
        color: white;
    }

    .camera-btn-close {
        background: #666;
        color: white;
    }

    .camera-canvas {
        display: none;
    }

    /* ========== VOUCHER STYLES ========== */
    .vouchers-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .voucher-card {
        background: linear-gradient(135deg, #fff, #f8f9fa);
        border-left: 6px solid var(--red);
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        position: relative;
    }

    .voucher-title {
        font-size: 18px;
        font-weight: bold;
        color: var(--blue);
        margin-bottom: 8px;
    }

    .voucher-discount {
        background: var(--red);
        color: white;
        display: inline-block;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .voucher-expired {
        font-size: 12px;
        color: var(--gray);
        margin-top: 8px;
    }

    .use-voucher-btn {
        background: var(--blue);
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 8px;
        margin-top: 12px;
        cursor: pointer;
        width: 100%;
    }

    .no-voucher {
        text-align: center;
        padding: 40px;
        color: var(--gray);
    }

    /* ========== RESPONSIVE BREAKPOINTS ========== */
    @media (min-width: 768px) {
        .partners-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 1024px) {
        .partners-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 768px) {
        .main-content {
            padding: 15px;
        }
        .city-chip {
            padding: 6px 12px;
            font-size: 12px;
        }
        .search-input {
            padding: 10px 35px 10px 40px;
            font-size: 13px;
        }
        .partners-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }
    }

    @media (max-width: 480px) {
        .member-photo-section {
            padding: 15px;
        }
        .logout-button {
            padding: 10px 16px;
        }
        .login-form {
            padding: 24px;
        }
    }

    @media (max-width: 800px) and (orientation: landscape) {
        .card {
            max-width: 400px;
        }
        .member-photo-section {
            max-width: 400px;
        }
    }

    /* ========== ANIMATIONS ========== */
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slideIn {
        from {
            transform: translateY(-50px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

        /* ========== PROFILE PAGE STYLES ========== */
    .profile-container {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    /* Profile Header */
    .profile-header {
        background: white;
        border-radius: 20px;
        padding: 30px;
        text-align: center;
        margin-bottom: 20px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    }

    .profile-photo {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        overflow: hidden;
        margin: 0 auto 20px;
        border: 4px solid #d4af37;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .profile-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .profile-name {
        font-size: 24px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 10px;
    }

    .profile-member-code {
        font-size: 14px;
        color: #666;
        background: #f0f0f0;
        display: inline-block;
        padding: 5px 15px;
        border-radius: 20px;
        margin-top: 5px;
    }

    /* Profile Tabs */
    .profile-tabs {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        background: white;
        padding: 10px;
        border-radius: 12px;
    }

    .profile-tabs .tab-btn {
        flex: 1;
        background: #f0f0f0;
        border: none;
        padding: 12px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        border-radius: 10px;
        transition: all 0.3s;
        color: #666;
    }

    .profile-tabs .tab-btn.active {
        background: #1a56db;
        color: white;
    }

    /* Profile Tab Content */
    .profile-tab-content {
        display: none;
        background: white;
        border-radius: 20px;
        padding: 30px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    }

    .profile-tab-content.active {
        display: block;
        animation: profileFadeIn 0.3s;
    }

    @keyframes profileFadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Profile Form Groups (override existing) */
    .profile-container .form-group {
        margin-bottom: 20px;
    }

    .profile-container .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #333;
    }

    .profile-container .form-group input,
    .profile-container .form-group textarea,
    .profile-container .form-group select {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #ddd;
        border-radius: 10px;
        font-size: 14px;
        transition: all 0.3s;
        box-sizing: border-box;
    }

    .profile-container .form-group input:focus,
    .profile-container .form-group textarea:focus,
    .profile-container .form-group select:focus {
        outline: none;
        border-color: #1a56db;
        box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
    }

    .profile-container .btn {
        background: #1a56db;
        color: white;
        padding: 12px 24px;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        width: 100%;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s;
    }

    .profile-container .btn:hover {
        background: #0e3a8a;
        transform: translateY(-2px);
    }

    .profile-container .btn-back {
        background: #6b7280;
        margin-top: 15px;
    }

    .profile-container .btn-back:hover {
        background: #4b5563;
    }

    .profile-container .message {
        padding: 12px 16px;
        border-radius: 10px;
        margin-bottom: 20px;
        font-size: 14px;
    }

    .profile-container .message-success {
        background: #d1fae5;
        color: #059669;
        border-left: 4px solid #059669;
    }

    .profile-container .message-error {
        background: #fee2e2;
        color: #e02424;
        border-left: 4px solid #e02424;
    }

    .profile-container small {
        display: block;
        margin-top: 5px;
        color: #666;
        font-size: 12px;
    }

    /* ========== PROFILE TAB CONTENT FIX ========== */
.tab-content {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.tab-content.active {
    display: block;
    animation: profileFadeIn 0.3s;
}

@keyframes profileFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pastikan logout button tidak mengganggu layout */
.logout-button {
    margin-top: 20px;
    background: #e02424;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 200px;
}

.logout-button:hover {
    background: #c01c1c;
}

/* Form group styling dalam profile container */
.profile-container .form-group {
    margin-bottom: 20px;
}

.profile-container .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.profile-container .form-group input,
.profile-container .form-group textarea,
.profile-container .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.profile-container .form-group input:focus,
.profile-container .form-group textarea:focus,
.profile-container .form-group select:focus {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.profile-container .btn {
    background: #1a56db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.profile-container .btn:hover {
    background: #0e3a8a;
    transform: translateY(-2px);
}

/* Message styling */
.profile-container .message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.profile-container .message-success {
    background: #d1fae5;
    color: #059669;
    border-left: 4px solid #059669;
}

.profile-container .message-error {
    background: #fee2e2;
    color: #e02424;
    border-left: 4px solid #e02424;
}

.profile-container small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Center wrapper untuk tombol */
.profile-container center {
    display: block;
    text-align: center;
}

/* ========== RESPONSIVE FILTER KOTA & KATEGORI ========== */

/* Container partner */
.partner-container {
    padding: 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Search container */
.search-container {
    margin-bottom: 20px;
    width: 100%;
}

/* Back button */
.back-button {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.back-button:hover {
    background: #4b5563;
}

/* City Filter - Horizontal scroll di semua layar, tapi bisa wrap di desktop */
.city-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

/* Default: wrap (turun ke bawah) */
.city-filter {
    flex-wrap: wrap;
}

/* Category Filter - Selalu wrap ke bawah */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* City chip styling */
.city-chip {
    padding: 8px 18px;
    background: white;
    border-radius: 25px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #ddd;
    font-size: 13px;
    font-weight: 500;
}

/* Category chip styling */
.category-chip {
    padding: 8px 18px;
    background: white;
    border-radius: 25px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #ddd;
    font-size: 13px;
    font-weight: 500;
}

/* Active state */
.city-chip.active,
.category-chip.active {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

/* Hover effect */
.city-chip:hover,
.category-chip:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.city-chip.active:hover,
.category-chip.active:hover {
    background: var(--dark-blue);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablet (max 768px) */
@media (max-width: 768px) {
    .city-filter {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .category-filter {
        gap: 8px;
    }
    
    .city-chip,
    .category-chip {
        padding: 7px 14px;
        font-size: 12px;
    }
}

/* Mobile (max 480px) */
@media (max-width: 480px) {
    .city-filter,
    .category-filter {
        gap: 8px;
    }
    
    .city-chip,
    .category-chip {
        padding: 6px 12px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .back-button {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* Jika ingin city filter horizontal scroll di mobile (opsional) */
@media (max-width: 550px) {
    /* Uncomment jika ingin horizontal scroll untuk kota */
    /*
    .city-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 10px;
    }
    
    .city-chip {
        flex-shrink: 0;
    }
    
    .city-filter::-webkit-scrollbar {
        height: 3px;
    }
    
    .city-filter::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .city-filter::-webkit-scrollbar-thumb {
        background: var(--blue);
        border-radius: 10px;
    }
    */
}