* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    direction: rtl;
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 0.4rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e4e6eb;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 48px;
}

.hamburger-menu {
    cursor: pointer;
    font-size: 1.1rem;
    color: #050505;
    padding: 0.4rem;
    transition: background 0.2s ease;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-menu:hover {
    background: #f2f2f2;
}


.nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    padding-top: 4rem;
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    list-style: none;
    padding: 2rem;
}

.nav-menu ul li {
    margin-bottom: 1.5rem;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #050505;
    font-size: 15px;
    display: block;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.nav-menu ul li a:hover {
    background: #f0f0f0;
    color: #d21034;
}

.sign-in-btn {
    background: #0F5132;
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.sign-in-btn:hover {
    background: #0a3d23;
}

.app-section {
    margin-right: auto;
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.app-name {
    font-size: 14px;
    font-weight: 700;
    color: #050505;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 11px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.social-link {
    color: #65676b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #050505;
    text-decoration: underline;
}

.social-separator {
    color: #999;
    margin: 0 0.1rem;
}

main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.main-content {
    width: 100%;
    max-width: 1200px;
    margin: 0.15rem auto;
    padding: 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: stretch;
    position: relative;
    padding-bottom: 0.3rem;
}

.content-view {
    display: none;
    width: 100%;
}

.content-view.active {
    display: block;
}

.points-box {
    background: white;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    border: 1px solid #e4e6eb;
    flex-shrink: 0;
}

.points-content {
    display: flex;
    flex-direction: row-reverse;
    align-items: baseline;
    gap: 0.5rem;
    text-align: center;
    flex: 1;
    justify-content: center;
}

.points-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #050505;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    line-height: 1.2;
}

.points-label {
    font-size: 13px;
    color: #65676b;
    font-weight: 400;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    line-height: 1;
    align-self: flex-end;
    margin-bottom: 0.2rem;
}

.gift-box {
    background: transparent;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex-shrink: 0;
}

.gift-box:hover {
    opacity: 0.8;
}

.gift-icon {
    font-size: 1.25rem;
    color: #0F5132;
    margin-bottom: 0.2rem;
    display: block;
    animation: bounce 2s infinite;
}

/* Products Section */
.products-section {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.75rem auto 0;
    max-width: 680px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e6eb;
}

.products-title {
    font-size: 16px;
    font-weight: 700;
    color: #050505;
    margin-bottom: 0.75rem;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-item {
    background: #f0f2f5;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.product-item:hover {
    background: #e4e6eb;
    border-color: #0F5132;
}

.product-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 11px;
    font-weight: 600;
    color: #050505;
}

.product-price {
    font-size: 10px;
    color: #65676b;
    font-weight: 500;
}

.add-product-btn {
    background: #0F5132;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    margin-top: 0.25rem;
    transition: background 0.2s ease;
}

.add-product-btn:hover {
    background: #0a3d23;
}

.add-product-btn:active {
    transform: scale(0.95);
}

/* Shopping Cart Box */
.cart-box {
    background: #f0f2f5;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
    border: 1px solid #e4e6eb;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 14px;
    font-weight: 600;
    color: #050505;
}

.cart-header i {
    color: #0F5132;
    margin-left: 0.5rem;
}

.cart-count {
    background: #0F5132;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.cart-items {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 0.75rem;
}

.cart-item {
    background: white;
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.cart-item-name {
    font-weight: 600;
    color: #050505;
}

.cart-item-price {
    color: #65676b;
    margin-left: 0.5rem;
}

.cart-item-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    margin-right: 0.5rem;
}

.cart-item-remove:hover {
    background: #c82333;
}

.empty-cart {
    text-align: center;
    color: #65676b;
    font-size: 12px;
    padding: 1rem;
}

.cart-footer {
    border-top: 1px solid #e4e6eb;
    padding-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    font-size: 14px;
    font-weight: 700;
    color: #050505;
}

.checkout-btn {
    background: #42b72a;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkout-btn:hover:not(:disabled) {
    background: #36a420;
}

.checkout-btn:disabled {
    background: #c3e6cb;
    cursor: not-allowed;
    opacity: 0.6;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.gift-text {
    font-size: 13px;
    color: #050505;
    font-weight: 600;
    margin-top: 0.3rem;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* Info Board Styles */
.info-board {
    background: white;
    border-radius: 8px;
    padding: 0.6rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e6eb;
    max-width: 680px;
    margin: 0.3rem auto 0;
    flex-shrink: 0;
}

.info-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    align-items: flex-start;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-icon {
    background: #f0f2f5;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 0.9rem;
    color: #0F5132;
}

.info-content {
    flex: 1;
}

.info-content h3 {
    font-size: 13px;
    font-weight: 700;
    color: #050505;
    margin-bottom: 0.25rem;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.info-content p {
    font-size: 11px;
    color: #65676b;
    line-height: 1.3;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    margin: 0;
}

/* Account View Styles */
.account-container,
.signup-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e6eb;
    max-width: 680px;
    margin: 1.5rem auto 0;
}

.signup-container {
    display: none;
}

.signup-container.active {
    display: block;
}

.hidden {
    display: none !important;
}

.account-container.hidden {
    display: none;
}

.account-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #050505;
    margin-bottom: 1.5rem;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.balance-section {
    background: #f0f2f5;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.balance-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #050505;
    margin: 0 0 1rem 0;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.balance-display {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
}

.balance-label {
    font-size: 14px;
    color: #65676b;
    font-weight: 500;
}

.balance-value {
    font-size: 18px;
    font-weight: 700;
    color: #0F5132;
}

.account-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e4e6eb;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 15px;
    color: #65676b;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    color: #050505;
    font-weight: 600;
}

.account-section {
    margin-top: 2rem;
}

.account-section h3 {
    font-size: 17px;
    font-weight: 600;
    color: #050505;
    margin-bottom: 1rem;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* Sign In Form Styles */
.signin-container {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e6eb;
    max-width: 680px;
    margin: 0.5rem auto 0;
    display: block;
}

.signin-container.hidden {
    display: none;
}

.signin-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: #050505;
    margin-bottom: 0.75rem;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.signin-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    background: #f0f2f5;
    font-size: 13px;
    color: #050505;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: #0F5132;
    background: white;
}

.form-input::placeholder {
    color: #8a8d91;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.75rem 0;
    color: #65676b;
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e4e6eb;
}

.divider span {
    padding: 0 1rem;
}

.create-account-btn {
    width: 100%;
    background: #42b72a;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    margin-top: 0;
}

.create-account-btn:hover {
    background: #36a420;
}

.create-account-btn:active {
    transform: scale(0.98);
}

/* Sign Up Form Styles */
.signup-container {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e6eb;
    max-width: 680px;
    margin: 0.5rem auto 0;
    display: block;
}

.signup-container.hidden {
    display: none;
}

.signup-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: #050505;
    margin-bottom: 0.75rem;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.back-btn {
    background: none;
    border: none;
    color: #0F5132;
    cursor: pointer;
    font-size: 12px;
    padding: 0.25rem 0;
    margin-bottom: 0.5rem;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.back-btn:hover {
    text-decoration: underline;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: #050505;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.country-mobile-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-direction: row;
}

.country-select-input {
    flex: 1;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    background: #f0f2f5;
    font-size: 13px;
    color: #050505;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.country-select-input:focus {
    border-color: #0F5132;
    background: white;
}

.mobile-input-field {
    flex: 1;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    background: #f0f2f5;
    font-size: 13px;
    color: #050505;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}

.mobile-input-field:focus {
    border-color: #0F5132;
    background: white;
}

.mobile-input-field::placeholder {
    color: #8a8d91;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.4rem 0;
}

.checkbox-input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0F5132;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 12px;
    color: #65676b;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
}

.country-select-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f2f5;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e4e6eb;
    flex-wrap: nowrap;
    flex: 1;
    min-width: 0;
}

.country-label {
    font-size: 15px;
    color: #65676b;
    font-weight: 500;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.country-select {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #050505;
    font-weight: 500;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    outline: none;
    cursor: pointer;
    min-width: 0;
}

.mobile-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.mobile-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    background: #f0f2f5;
    font-size: 15px;
    color: #050505;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}

.mobile-input:focus {
    border-color: #0F5132;
    background: white;
}

.mobile-input::placeholder {
    color: #8a8d91;
}

.submit-btn {
    background: #0F5132;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    margin-top: 0;
}

.submit-btn:hover {
    background: #0a3d23;
}

.submit-btn:active {
    transform: scale(0.98);
}

.transactions-list,
.points-log {
    background: #f0f2f5;
    border-radius: 8px;
    padding: 1rem;
    min-height: 100px;
}

.transaction-item,
.log-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e4e6eb;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.transaction-item:last-child,
.log-item:last-child {
    margin-bottom: 0;
}

.transaction-info,
.log-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.transaction-type,
.log-type {
    font-size: 15px;
    font-weight: 600;
    color: #050505;
    margin-bottom: 0.25rem;
}

.transaction-date,
.log-date {
    font-size: 12px;
    color: #65676b;
}

.transaction-description,
.log-description {
    font-size: 13px;
    color: #65676b;
    margin-top: 0.25rem;
}

.transaction-amount,
.log-amount {
    font-size: 16px;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
}

.transaction-amount.credit,
.log-amount.credit {
    color: #0F5132;
    background: #d1e7dd;
}

.transaction-amount.debit,
.log-amount.debit {
    color: #842029;
    background: #f8d7da;
}

/* Gift Options View Styles */
.gift-options-container {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e6eb;
    max-width: 680px;
    margin: 0.5rem auto 0;
}

.gift-options-container h2 {
    font-size: 16px;
    font-weight: 700;
    color: #050505;
    margin-bottom: 0.75rem;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.gift-options-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
}

.gift-option {
    background: #f0f2f5;
    border-radius: 6px;
    padding: 0.6rem 0.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    min-height: 65px;
}

.gift-option:hover {
    background: #e4e6eb;
    border-color: #0F5132;
}

.gift-option i {
    font-size: 1.1rem;
    color: #0F5132;
}

.gift-option span {
    font-size: 11px;
    color: #050505;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.gift-option-subtitle {
    font-size: 10px;
    color: #65676b;
    margin-top: 0.25rem;
    font-weight: normal;
    line-height: 1.3;
    text-align: center;
}

/* Wallet/Balance View Styles */
.wallet-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e6eb;
    max-width: 680px;
    margin: 1.5rem auto 0;
}

.wallet-container h2 {
    font-size: 20px;
    font-weight: 700;
    color: #050505;
    margin-bottom: 1.5rem;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-option {
    background: #f0f2f5;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.wallet-option:hover {
    background: #e4e6eb;
    border-color: #0F5132;
}

.wallet-option i {
    font-size: 1.5rem;
    color: #0F5132;
}

.wallet-option span {
    font-size: 15px;
    color: #050505;
    font-weight: 600;
}

/* Overlay for mobile menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e4e6eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.4rem 0;
    height: 56px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    z-index: 999;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #65676b;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 70px;
    gap: 0.2rem;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.nav-item:hover,
.nav-item.active {
    color: #0F5132;
    background: #f0f2f5;
}

.nav-item:hover i,
.nav-item.active i {
    color: #0F5132;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    body {
        padding-bottom: 65px;
    }
    
    .header {
        padding: 0.5rem 0.75rem;
    }
    
    .header-container {
        height: 50px;
    }
    
    .app-section {
        margin-left: 0.5rem;
    }
    
    .app-name {
        font-size: 14px;
    }
    
    .social-links {
        font-size: 11px;
    }
    
    .sign-in-btn {
        padding: 0.35rem 0.65rem;
        font-size: 12px;
    }
    
    .hamburger-menu {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .main-content {
        margin: 0.25rem auto;
        padding: 0 0.5rem;
        gap: 0.4rem;
        min-height: calc(100vh - 120px);
    }
    
    .points-box {
        padding: 0.6rem 0.75rem;
        gap: 1rem;
    }
    
    .gift-box {
        padding: 0.25rem;
    }
    
    .points-number {
        font-size: 1.75rem;
    }
    
    .points-label {
        font-size: 13px;
    }
    
    .gift-icon {
        font-size: 1.25rem;
    }
    
    .gift-text {
        font-size: 12px;
    }
    
    .nav-item {
        min-width: 50px;
        padding: 0.4rem 0.25rem;
        gap: 0.2rem;
    }
    
    .nav-item i {
        font-size: 1.1rem;
        margin-bottom: 0.15rem;
    }
    
    .nav-item span {
        font-size: 11px;
    }
    
    .bottom-nav {
        padding: 0.4rem 0;
    }
    
    .gift-options-container {
        padding: 0.6rem;
        margin: 0.4rem auto 0;
    }
    
    .gift-options-container h2 {
        font-size: 15px;
        margin-bottom: 0.6rem;
    }
    
    .gift-options-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.3rem;
    }
    
    .gift-option {
        padding: 0.5rem 0.2rem;
        min-height: 60px;
        gap: 0.25rem;
    }
    
    .gift-option i {
        font-size: 1rem;
    }
    
    .gift-option span {
        font-size: 10px;
        line-height: 1.1;
    }
    
    .account-container,
    .wallet-container,
    .signup-container {
        padding: 0.75rem;
        margin: 0.4rem auto 0;
    }
    
    .signup-header h2 {
        font-size: 16px;
        margin-bottom: 1rem;
    }
    
    .form-group {
        gap: 0.5rem;
    }
    
    .country-mobile-row {
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .country-select-wrapper {
        padding: 0.6rem 0.5rem;
        flex-wrap: nowrap;
        flex: 1;
        min-width: 0;
    }
    
    .mobile-input-wrapper {
        flex: 1;
        min-width: 0;
    }
    
    .country-label {
        font-size: 12px;
    }
    
    .country-select {
        font-size: 12px;
    }
    
    .mobile-input {
        font-size: 12px;
        padding: 0.6rem 0.5rem;
    }
    
    .mobile-input {
        padding: 0.6rem 0.75rem;
    }
    
    .submit-btn {
        padding: 0.6rem 1.5rem;
        font-size: 14px;
    }
    
    .account-header h2,
    .wallet-container h2 {
        font-size: 16px;
        margin-bottom: 1rem;
    }
    
    .info-item {
        padding: 0.75rem 0;
    }
    
    .info-label,
    .info-value {
        font-size: 14px;
    }
    
    .account-section h3 {
        font-size: 15px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .gift-option span {
        font-size: 9px;
    }
    
    .gift-option {
        min-height: 55px;
        padding: 0.4rem 0.15rem;
    }
    
    .gift-option i {
        font-size: 0.9rem;
    }
    
    .points-number {
        font-size: 1.5rem;
    }
    
    .info-board {
        padding: 0.75rem;
        margin: 0.4rem auto 0;
    }
    
    .info-section {
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }
    
    .info-icon {
        width: 35px;
        height: 35px;
    }
    
    .info-icon i {
        font-size: 1rem;
    }
    
    .info-content h3 {
        font-size: 13px;
        margin-bottom: 0.25rem;
    }
    
    .info-content p {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .main-content {
        margin: 0.15rem auto;
        padding: 0 0.5rem;
        gap: 0.3rem;
    }
    
    .points-box {
        padding: 0.5rem 0.75rem;
    }
}

/* Status Indicator Styles */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.status-loading {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.status-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.status-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #1976d2;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    animation: checkmarkPop 0.4s ease-out;
}

.error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
