/* HEADER STYLES - Ongeza hizi */
.header {
    background-color: #ffcc00;
    padding: 15px 20px;
    color: #333;
    border-bottom: 3px solid #e6b800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-content {
    text-align: center;
    flex: 1;
}

.header h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.header p {
    margin: 5px 0 0 0;
    color: #666;
}

/* LOGOUT BUTTON STYLES */
.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-text {
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

/* FOOTER BUTTON BAR - Zibaki vilevile */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #ffcc00;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.footer-btn:hover {
    background: #fff9e6;
    color: #333;
    transform: translateY(-2px);
}

.footer-btn.active {
    color: #ff6b00;
    background: #fff0e0;
}

.footer-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.footer-label {
    font-size: 12px;
    font-weight: bold;
}

/* ZINGINE ZIBAKI VILEVILE */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: yellow;
}

.content-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    width: 100%;
}

.centered-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content {
    max-width: 800px;
    margin: 40px auto;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    width: 90%;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .user-info {
        justify-content: center;
    }

    .welcome-text {
        display: none;
        /* Ficha welcome text kwenye simu */
    }
}



/* HOME BUTTONS GRID */
.home-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    width: 100%;
}

.home-btn {
    background: white;
    border: 3px solid #ffcc00;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.home-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: #fff9e6;
    border-color: #ff6b00;
}

.home-btn-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.home-btn-label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.home-btn-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-title {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* FORM STYLES */
.recharge-form,
.withdrawal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #ffcc00;
    outline: none;
}

.submit-btn {
    background: #ff6b00;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #e65c00;
}

/* REFERRAL STYLES */
.referral-code {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.referral-code h3 {
    color: #333;
    margin-bottom: 10px;
}

.code-display {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b00;
    background: white;
    padding: 15px;
    border-radius: 5px;
    border: 2px dashed #ffcc00;
    margin: 15px 0;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.copy-btn:hover {
    background: #0056b3;
}

/* LUCKY WHEEL STYLES */
.wheel-container {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wheel-title {
    color: white;
    margin-bottom: 30px;
    font-size: 24px;
}

.wheel-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#ff6b00 0deg 60deg,
            #ffcc00 60deg 120deg,
            #28a745 120deg 180deg,
            #007bff 180deg 240deg,
            #6f42c1 240deg 300deg,
            #e83e8c 300deg 360deg);
    position: relative;
    transition: transform 3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 8px solid white;
}

.wheel.spinning {
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #dc3545;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    z-index: 10;
}

.wheel-section {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    left: 0;
    top: 0;
}

.wheel-text {
    position: absolute;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transform-origin: center;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    border: 4px solid #333;
    z-index: 5;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.spin-btn {
    background: linear-gradient(45deg, #ff6b00, #ffcc00);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
    transition: all 0.3s ease;
}

.spin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.6);
}

.spin-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wheel-result {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.wheel-result.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-title {
    color: #28a745;
    font-size: 20px;
    margin-bottom: 10px;
}

.result-amount {
    font-size: 32px;
    font-weight: bold;
    color: #ff6b00;
    margin: 10px 0;
}

.result-message {
    color: #666;
    font-size: 14px;
}

.spin-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    margin: 15px 0;
}

/* Wheel sections with prizes */
.wheel-section-1 {
    transform: rotate(0deg);
}

.wheel-section-2 {
    transform: rotate(60deg);
}

.wheel-section-3 {
    transform: rotate(120deg);
}

.wheel-section-4 {
    transform: rotate(180deg);
}

.wheel-section-5 {
    transform: rotate(240deg);
}

.wheel-section-6 {
    transform: rotate(300deg);
}



/* COMPANY PROFILE STYLES */
.company-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.company-info h3 {
    color: #333;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.info-item:last-child {
    border-bottom: none;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .home-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .home-btn {
        padding: 20px 10px;
        min-height: 100px;
    }

    .home-btn-icon {
        font-size: 30px;
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
}






/* LANGUAGE SELECTOR */
.language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-selector select {
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    min-width: 160px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 30px auto;
}

.icon-box {
    background: white;
    border-radius: 15px;
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
    text-decoration: none;
    color: #333;
}

.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.icon-emoji {
    font-size: 48px;
    margin-bottom: 12px;
}

.icon-label {
    font-weight: 600;
    font-size: 1.2rem;
}

/* FOOTER BAR */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.footer-btn {
    text-decoration: none;
    color: #555;
    text-align: center;
    font-size: 0.9rem;
}

.footer-btn.active {
    color: #007bff;
}

.footer-icon {
    display: block;
    font-size: 20px;
}