/* style.css - DreamVora Enhanced - Updated Colors */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #f0f4f8;
    min-height: 100vh;
    color: #0d1b3e;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
}

/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #0d1b3e;
    --primary-light: #1a2a5e;
    --primary-dark: #070f26;
    --secondary: #f5a623;
    --secondary-dark: #e08e0b;
    --accent: #10b981;
    --accent-dark: #059669;
    --bg-light: #f0f4f8;
    --text-dark: #0d1b3e;
    --text-light: #ffffff;
    --shadow: 0 8px 32px rgba(13, 27, 62, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
}

/* ===== HEADER ===== */
.app-header {
    background: linear-gradient(135deg, #ffffff 0%, #e8edf5 30%, #d0dce8 60%, #d0dbf7 100%);
    height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary);
    box-shadow: 0 4px 20px rgba(13, 27, 62, 0.3);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* ===== ONLINE BADGE ===== */
.online-badge {
    background: rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(10px);
    color: #34d399;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.online-dot {
    width: 10px;
    height: 10px;
    background-color: #34d399;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ===== HEADER RIGHT ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-withdraw {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.btn-withdraw:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.btn-withdraw:active {
    transform: translateY(0);
}

.wallet-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
    min-width: 130px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wallet-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.wallet-title {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.8;
    display: block;
    text-transform: uppercase;
}

.wallet-amount-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wallet-eye {
    display: flex;
    align-items: center;
    opacity: 0.85;
    flex-shrink: 0;
}

.wallet-amount {
    font-size: 16px;
    font-weight: 800;
    display: block;
}

/* ===== SLOGAN ===== */
.slogan-section {
    background: #d0dbf7;
    padding: 18px 24px;
    text-align: center;
    border-bottom: 2px solid #e8edf5;
    position: relative;
    z-index: 5;
    animation: none !important;
}

.slogan-section::before {
    display: none !important;
}

.slogan-text {
    color: #0d1b3e;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.slogan-text .highlight {
    color: var(--secondary);
}

/* ===== MAIN CONTENT - Imeondolewa mstari mweupe ===== */
#main-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #d0dbf7;
    min-height: auto;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

.content-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    width: 100%;
}

/* ===== USER CARDS ===== */
.user-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 16px rgba(13, 27, 62, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 27, 62, 0.06);
    position: relative;
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(13, 27, 62, 0.12);
    border-color: var(--secondary);
}

.card-top {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.profile-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
    background: #e8edf5;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 700;
    font-size: 16px;
    color: #0d1b3e;
}

.status-text {
    font-size: 12px;
    color: #10b981;
    margin-top: 2px;
    font-weight: 600;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 13px;
    color: #4a5568;
}

.star {
    color: var(--secondary);
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #0d1b3e;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #a0aec0;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s;
}

.user-card:hover .favorite-btn {
    background: #e8f8f5;
    color: #10b981;
}

.detail-line {
    font-size: 13px;
    margin-bottom: 4px;
    color: #4a5568;
}

.detail-line strong {
    color: #0d1b3e;
    font-weight: 600;
}

.action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e8edf5;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-chat {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.price-container {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-tag {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.usd-equivalent {
    font-size: 10px;
    color: #a0aec0;
    margin-top: 3px;
    font-weight: 500;
}

/* ===== PAGINATION - SMALLER BUTTONS ===== */
.pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 0 5px;
    margin-top: 5px;
}

.page-btn {
    background: #0d1b3e;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
}

.page-btn:hover:not(:disabled) {
    background: var(--secondary);
    transform: scale(1.03);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.page-info {
    color: #0d1b3e;
    font-weight: 600;
    font-size: 14px;
    background: white;
    padding: 5px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ===== FOOTER - Imeondolewa margin kubwa ===== */
.site-footer {
    width: 100%;
    margin-top: 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #0d1b3e 50%, #1a2a5e 100%);
    color: #ffffff;
    padding: 25px 24px 15px;
    border-top: 3px solid var(--secondary);
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 6px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-section h4 {
    color: var(--secondary);
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 700;
}

.footer-section p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 3px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 10px auto 0;
    text-align: center;
    padding-top: 8px;
}

.footer-bottom p {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

/* ===== CHAT DETAILS ===== */
#chat-details-container {
    flex: 1;
    background: linear-gradient(135deg, #eef2f7 0%, #dce4ed 50%, #c8d4e0 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.chat-header-details {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(245, 166, 35, 0.3);
    gap: 12px;
    flex-shrink: 0;
}

.back-btn {
    font-size: 24px;
    cursor: pointer;
    color: #0d1b3e;
    padding-right: 5px;
    background: none;
    border: none;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--secondary);
}

.chat-profile-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
    background: #e8edf5;
}

.chat-user-details {
    flex: 1;
}

.chat-user-name {
    font-weight: 700;
    font-size: 16px;
    color: #0d1b3e;
}

.chat-status {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

/* ===== CHAT DETAILS WRAPPER (sasa ni eneo la ujumbe linaloweza ku-scroll) ===== */
.chat-details-wrapper {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 18px 24px;
    width: 100%;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== MESSAGING (kama NaraVibe): input bar isipande/kufunika ujumbe ===== */
body[data-page="chat"] {
    height: 100dvh;
    overflow: hidden;
}
body[data-page="chat"] #chat-details-container {
    height: 100%;
    min-height: 0;
}

.chat-bubble-row {
    display: flex;
    margin-bottom: 6px;
}
.chat-bubble-row.received { justify-content: flex-start; }
.chat-bubble-row.system { justify-content: center; }

.chat-info-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 16px;
    margin: 0 0 20px;
    text-align: center;
    line-height: 1.6;
    box-shadow: 0 8px 20px rgba(13, 27, 62, 0.22);
}

.chat-bubble {
    max-width: 78%;
    padding: 13px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 4px 14px rgba(13, 27, 62, 0.08);
}
.chat-bubble.received {
    background: #fff;
    border: 1px solid #e8edf5;
    border-bottom-left-radius: 5px;
    color: #0d1b3e;
}

.typing-bubble { padding: 15px 18px; }
.typing-dots { display: flex; gap: 5px; align-items: center; }
.typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary);
    display: inline-block;
    animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
    30% { transform: translateY(-5px); opacity: 1; }
}
.chat-typing-label {
    font-size: 11.5px;
    color: #a0aec0;
    font-style: italic;
    font-weight: 600;
    margin: 6px 0 22px 4px;
}
.chat-timestamp {
    font-size: 11px;
    color: #a0aec0;
    font-weight: 600;
    margin: 7px 0 4px 4px;
}

.chat-input-bar {
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #e8edf5;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(13, 27, 62, 0.06);
    z-index: 60;
}
.chat-input-inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-text-input {
    flex: 1;
    border: 1.5px solid #e8edf5;
    background: #f0f4f8;
    border-radius: 24px;
    padding: 13px 18px;
    font-size: 14px;
    color: #0d1b3e;
    outline: none;
    transition: border-color 0.2s ease;
}
.chat-text-input:focus { border-color: var(--secondary); }
.chat-send-btn {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #0d1b3e;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.35);
    transition: all 0.22s ease;
}
.chat-send-btn:hover { transform: scale(1.06); }

/* ===== CARD - SINGLE BOX ===== */
.details-card-single {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 28px;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.profile-section {
    margin-bottom: 20px;
}

.profile-img-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--secondary);
    background: #e8edf5;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.25);
}

.profile-section h2 {
    color: #0d1b3e;
    font-size: 22px;
    margin-bottom: 4px;
}

.location-badge {
    display: inline-block;
    font-size: 13px;
    color: #4a5568;
    background: #f0f4f8;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.single-info-box {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    padding: 20px 24px;
    border-radius: 14px;
    margin: 16px 0;
    border: 1px solid #e8edf5;
}

.single-info-box .info-label {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 500;
}

.single-info-box .amount-display {
    font-size: 32px;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: -0.5px;
}

.single-info-box .duration-display {
    font-size: 15px;
    color: #4a5568;
    margin-top: 4px;
    font-weight: 500;
}

.description-text {
    font-size: 14px;
    color: #4a5568;
    margin: 16px 0 20px;
    line-height: 1.8;
    text-align: center;
}

.description-text strong {
    color: #0d1b3e;
}

.btn-register {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #0d1b3e;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 166, 35, 0.4);
}

.btn-back {
    background: rgba(255, 255, 255, 0.9);
    color: #0d1b3e;
    border: 1px solid #e8edf5;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.btn-back:hover {
    background: #ffffff;
    border-color: var(--secondary);
}

.footer-note {
    font-size: 11px;
    color: #a0aec0;
    margin-top: 16px;
    font-style: italic;
}

/* ===== WHATSAPP POPUP ===== */
#whatsapp-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: bounce 2s infinite;
}

.whatsapp-label {
    background: #25D366;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

#whatsapp-popup img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}

#whatsapp-popup:hover img {
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}


/* ===== CONTACT MODAL - NEW ===== */
.contact-modal-content {
    max-width: 480px !important;
}

.contact-subtitle {
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 20px;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 14px;
    text-decoration: none;
    border: 2px solid #e8edf5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-option:hover {
    transform: translateX(4px);
    border-color: var(--secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.contact-option.whatsapp-option:hover {
    border-color: #25D366;
    background: #f0fdf4;
}

.contact-option.sms-option:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.contact-option-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-option-icon img {
    width: 32px;
    height: 32px;
}

.contact-option-text {
    flex: 1;
}

.contact-option-text h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0d1b3e;
    margin: 0;
}

.contact-option-text p {
    font-size: 12px;
    color: #a0aec0;
    margin: 2px 0 0;
}

.contact-option-arrow {
    font-size: 20px;
    color: #a0aec0;
    transition: all 0.3s;
}

.contact-option:hover .contact-option-arrow {
    color: var(--secondary);
    transform: translateX(4px);
}

.contact-info-text {
    background: #f0f4f8;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 8px 0 4px;
}

.contact-info-text p {
    font-size: 12px;
    color: #4a5568;
    margin: 4px 0;
    text-align: left;
}

.contact-info-text p strong {
    color: #0d1b3e;
}

/* ===== WHATSAPP POPUP - Updated ===== */
#whatsapp-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: bounce 2s infinite;
}

.whatsapp-label {
    background: #25D366;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
}

#whatsapp-popup:hover .whatsapp-label {
    transform: scale(1.05);
}

#whatsapp-popup img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}

#whatsapp-popup:hover img {
    transform: scale(1.1);
}

/* ===== DOWNLOAD APP BUTTON (kushoto) - kama NaraVibe: pill button yenye icon+maandishi ===== */
#download-app-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99998;
    display: flex;
    align-items: center;
}
#download-app-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #0d1b3e;
    border: none;
    padding: 13px 20px 13px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(245, 166, 35, 0.4);
    animation: bounce 2s infinite;
    transition: transform 0.22s ease;
    white-space: nowrap;
}
#download-app-btn svg { flex-shrink: 0; }
#download-app-btn:hover { transform: scale(1.045); }
#download-app-close {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #0d1b3e;
    border: 1.5px solid #e8edf5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: all 0.2s ease;
}
#download-app-close:hover { background: #0d1b3e; color: #fff; }

/* ===== INSTALL TOAST (ujumbe mfupi wa maelekezo, kwa vifaa visivyounga
   mkono native install prompt, mfano Safari ya iPhone) ===== */
#install-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    background: #0d1b3e;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-width: calc(100vw - 40px);
    overflow: hidden;
    text-overflow: ellipsis;
}
#install-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE - Contact Modal ===== */
@media screen and (max-width: 480px) {
    .contact-modal-content {
        padding: 25px 18px !important;
    }
    
    .contact-option {
        padding: 14px 16px;
    }
    
    .contact-option-text h3 {
        font-size: 14px;
    }
    
    .contact-option-text p {
        font-size: 11px;
    }
    
    .contact-option-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-option-icon img {
        width: 28px;
        height: 28px;
    }
    
    .contact-info-text p {
        font-size: 11px;
    }
}

@media screen and (max-width: 360px) {
    .contact-option {
        padding: 12px 14px;
        gap: 12px;
    }
    
    .contact-option-text h3 {
        font-size: 13px;
    }
    
    .contact-option-icon {
        width: 36px;
        height: 36px;
    }
    
    .contact-option-icon img {
        width: 24px;
        height: 24px;
    }
}



/* ===== WITHDRAW MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 62, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 35px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlide 0.3s ease;
    position: relative;
}

@keyframes modalSlide {
    from { transform: scale(0.9) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s;
    background: none;
    border: none;
}

.modal-close:hover {
    color: #0d1b3e;
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #0d1b3e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.3);
}

.modal-content h2 {
    color: #0d1b3e;
    font-size: 22px;
    margin-bottom: 16px;
}

.modal-balance-display {
    background: #f0f4f8;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.modal-balance-label {
    display: block;
    font-size: 12px;
    color: #a0aec0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-balance-amount {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #ef4444;
}

.modal-divider {
    height: 1px;
    background: #e8edf5;
    margin: 12px 0;
}

.modal-content p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.7;
}

.modal-small-text {
    font-size: 13px !important;
    color: #a0aec0 !important;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    .app-header {
        padding: 0 16px;
        height: 64px;
    }
    
    .logo-image {
        height: 34px;
    }
    
    .online-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .online-dot {
        width: 8px;
        height: 8px;
    }
    
    .btn-withdraw {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .wallet-box {
        padding: 5px 12px;
        min-width: 90px;
    }
    
    .wallet-amount {
        font-size: 13px;
    }
    
    .slogan-text {
        font-size: 16px;
    }
    
    .content-list {
        grid-template-columns: 1fr 1fr;
    }
    
    .content-wrapper {
        padding: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 600px) {
    .content-list {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .app-header {
        padding: 0 12px;
        height: 56px;
    }
    
    .logo-image {
        height: 28px;
    }
    
    .online-badge {
        font-size: 9px;
        padding: 3px 10px;
        gap: 4px;
    }
    
    .online-dot {
        width: 6px;
        height: 6px;
    }
    
    .btn-withdraw {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .wallet-box {
        padding: 4px 10px;
        min-width: 70px;
    }
    
    .wallet-title {
        font-size: 7px;
    }
    
    .wallet-amount {
        font-size: 11px;
    }
    
    .slogan-text {
        font-size: 13px;
    }
    
    .user-card {
        padding: 16px;
    }
    
    .profile-img {
        width: 44px;
        height: 44px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .btn-chat {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .price-tag {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .pagination {
        gap: 10px;
        padding: 10px 0 5px;
    }
    
    .page-btn {
        padding: 6px 14px;
        font-size: 11px;
        min-width: 55px;
        border-radius: 8px;
    }
    
    .page-info {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .chat-details-wrapper {
        padding: 16px 12px 30px;
    }
    
    .chat-profile-big {
        width: 80px;
        height: 80px;
    }
    
    .details-card-single {
        padding: 20px 16px;
    }
    
    .profile-img-large {
        width: 64px;
        height: 64px;
    }
    
    .profile-section h2 {
        font-size: 18px;
    }
    
    .single-info-box .amount-display {
        font-size: 26px;
    }
    
    .single-info-box {
        padding: 16px 18px;
    }
    
    .single-info-box .info-label {
        font-size: 13px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .site-footer {
        padding: 20px 16px 12px;
    }
    
    .footer-content {
        gap: 15px;
        padding-bottom: 10px;
    }
    
    .footer-section h4 {
        font-size: 12px;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 10px;
    }
    
    #whatsapp-popup {
        bottom: 15px;
        right: 15px;
    }
    
    #whatsapp-popup img {
        width: 48px;
        height: 48px;
    }
    
    .whatsapp-label {
        font-size: 10px;
        padding: 4px 10px;
    }

    #download-app-popup {
        bottom: 15px;
        left: 15px;
        max-width: calc(100vw - 90px);
    }

    #download-app-btn {
        padding: 11px 16px 11px 13px;
        font-size: 11.5px;
        gap: 7px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-balance-amount {
        font-size: 24px;
    }
}

@media screen and (max-width: 360px) {
    .logo-image {
        height: 24px;
    }
    
    .online-badge {
        font-size: 8px;
        padding: 2px 8px;
    }
    
    .btn-withdraw {
        font-size: 8px;
        padding: 4px 8px;
    }
    
    .wallet-box {
        min-width: 60px;
        padding: 3px 8px;
    }
    
    .wallet-amount {
        font-size: 10px;
    }
    
    .slogan-text {
        font-size: 11px;
    }
    
    .page-btn {
        padding: 5px 10px;
        font-size: 10px;
        min-width: 45px;
    }
    
    .page-info {
        font-size: 11px;
        padding: 3px 10px;
    }
}