/* Global Styles */
:root {
    --primary-color: #FFB200;
    --primary-light: #FFD056;
    --primary-dark: #E99900;
    --secondary-color: #FFCE67;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --gray: #E0E0E0;
    --dark-gray: #666666;
    --black: #000000;
    --padding-standard: 15px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

html, body {
    height: 750px;
    /* width: 100%; */
    background-color: #f5f5f5;
    direction: rtl;
}

.container-fluid {
    padding: 0;
    max-width: 100%;
    height: 100%;
    overflow-x: hidden;
    position: relative;
}

/* App Pages */
.app-page {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--light-gray);
    z-index: 1;
}

.active-page {
    display: flex;
}

/* Header Styles */
.header {
    background-color: var(--primary-color);
    color: var(--black);
    padding: 15px 20px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.header h2 {
    margin: 0;
    margin-top: 57px;
    font-size: 18px;
    font-weight: bold;
}

.back-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: var(--black);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Styles */
.logo-container {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.logo-circle {
    width: 60px;
    height: 60px;
    /* background-color: var(--primary-color); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    border: 2px solid var(--white);
}

.logo-circle span {
    font-size: 24px;
    font-weight: bold;
    color: var(--black);
}

/* Content Container */
.content-container {
    flex: 1;
    overflow-y: auto;
    /* adding: 15px; */
    position: relative;
    /* padding-bottom: 190px; */ /* Space for bottom nav */
}

/* Form Styles */
.form-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    padding-bottom: 80px;
    box-shadow: var(--box-shadow);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--light-gray);
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background-color: var(--light-gray);
    border: none;
    cursor: pointer;
}

.tab.active {
    background-color: var(--primary-color);
    color: var(--black);
    font-weight: bold;
}

.form-floating {
    position: relative;
    margin-bottom: 15px;
}

.form-control {
    height: 50px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray);
    width: 100%;
}

.form-floating label {
    position: absolute;
    top: 0;
    right: 15px;
    height: 100%;
    padding: 15px 0;
    pointer-events: none;
    transform-origin: 100% 0;
    transition: opacity .1s ease-in-out,transform .1s ease-in-out;
    color: var(--dark-gray);
}

.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--dark-gray);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: var(--black);
    font-weight: bold;
    height: 50px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    cursor: pointer;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.nav-item span {
    font-size: 12px;
    color: var(--dark-gray);
}

.nav-item.active i,
.nav-item.active span {
    color: var(--primary-color);
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    padding: 100px 20px 20px;
    color: var(--black);
    margin-bottom: 20px;
    position: relative;
    box-shadow: var(--box-shadow);
    margin-top: -35px;
    z-index: 5;
}

.balance-card .logo-circle {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.balance-card .logo-circle span {
    font-size: 26px;
    font-weight: bold;
    color: var(--black);
}

.balance-info {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.balance-label {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

.balance-amount {
    font-size: 36px;
    font-weight: bold;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    margin-top: 10px;
}

.vip-level {
    background-color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    color: var(--white);
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Platform Features */
.platform-features {
    margin-bottom: 20px;
    text-align: right;
}

.platform-features h2 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: right;
    padding: 0 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
}

/* Latest Updates */
.latest-updates {
    margin-bottom: 120px;
    text-align: right;
}

.latest-updates h2 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: right;
    padding: 0 15px;
}

.update-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin: 0 10px;
    text-align: right;
}

.update-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--black);
}

.update-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-gray);
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: var(--box-shadow);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.feature-icon i {
    font-size: 22px;
    color: var(--primary-color);
}

.feature-details {
    text-align: right;
    width: 100%;
}

.feature-details h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.feature-details p {
    font-size: 13px;
    color: var(--dark-gray);
    line-height: 1.4;
}

/* Investment Packages */
.investment-packages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.investment-header {
    text-align: center;
    padding: 20px 0;
}

.investment-header .logo-circle.large {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    /* background: #ffb200; */
}

.investment-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.logo-circle.large span {
    font-size: 32px;
}

.package-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: black;
}

.package-name {
    display: flex;
    flex-direction: column;
}

.package-code {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.package-type {
    font-size: 14px;
    opacity: 0.9;
}

.package-price {
    font-size: 20px;
    font-weight: bold;
}

.package-body {
    padding: 5px;
}

.profit-rate {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
    padding: 5px 0;
}

.rate-label {
    font-size: 15px;
}

.rate-value {
    font-size: 17px;
    font-weight: bold;
    color: var(--primary-dark);
}

.invest-btn {
    width: 100%;
    padding: 15px;
    background-color: #FFD700;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: black;
}

.invest-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Team Page Styles */
.invitation-section {
    background-color: var(--white);
    border-radius: 15px;
    padding: 15px;
    margin: 15px;
}

.invitation-code-container,
.invitation-link-container {
    margin-bottom: 15px;
}

.invitation-title {
    font-size: 14px;
    margin-bottom: 10px;
    color: #000;
}

.invitation-code-box,
.invitation-link-box {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
}

.stats-card {
    background: #FFB200;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

.withdrawal-card {
    background: #FFB200;
    border-radius: 15px;
    padding: 15px;
    /* padding-bottom: 163px; */
    text-align: center;
    margin: 0 15px 0px;
}

.stats-title {
    font-size: 14px;
    margin-bottom: 12px;
    color: #000;
    opacity: 0.8;
}

.stats-value {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.invitation-section {
    background-color: var(--white);
    border-radius: 20px;
    padding: 15px;
    margin: 10px;
}


.invitation-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #000;
}

.invitation-code-box,
.invitation-link-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 15px;
    margin-bottom: 10px;
    word-break: break-all;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 16px;
}

.share-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    color: #000;
    font-size: 16px;
}

.team-levels {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin: 0 15px;
}

.level-title {
    font-size: 16px;
    margin-bottom: 15px;
}

.level-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.level-tab {
    padding: 8px 12px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.level-tab.active {
    background-color: var(--primary-color);
    font-weight: bold;
}

.empty-message {
    text-align: center;
    padding: 20px;
    color: var(--dark-gray);
}

/* Profile Page Styles */
.profile-balance-card {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    /* margin: -15px -15px 20px; */
    color: var(--black);
    text-align: center;
    /* position: relative; */
}

.profile-balance-card .logo-circle {
    width: 60px;
    /* height: 60px; */
    margin: 10px auto 20px;
    /* margin-left: 28px; */
    background: var(--primary-color);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.balance-info {
    margin-bottom: 20px;
}

.balance-label {
    font-size: 16px;
    margin-bottom: 5px;
}

.balance-amount {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
}

.recharge-label {
    font-size: 16px;
    margin-bottom: 5px;
}

.recharge-amount {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
}

.user-id-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-id {
    font-size: 16px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.action-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.action-text {
    font-size: 12px;
    text-align: center;
}

.menu-list {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

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

.menu-item.logout {
    background: #FFF1F1;
}

.menu-item.logout .menu-text {
    color: #FF4D4D;
}

.menu-icon {
    margin-left: 15px;
    width: 24px;
    text-align: center;
}

.menu-text {
    flex: 1;
}

.menu-arrow {
    color: var(--dark-gray);
}

.vip-badge {
    background-color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.menu-list {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
}

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

.menu-icon {
    margin-left: 15px;
    color: var(--primary-color);
}

.menu-text {
    flex: 1;
}

.menu-arrow {
    color: var(--dark-gray);
}

/* Deposit/Withdraw Page */
.wallet-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.wallet-title {
    font-size: 16px;
    margin-bottom: 15px;
}

.wallet-address-box {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.wallet-address {
    flex: 1;
    border: none;
    background: none;
    padding: 5px;
    font-size: 14px;
}


/* Withdraw Page */
.withdraw-page {
    background-color: #f5f5f5;
}

.withdraw-page .header {
    background-color: #FFB200;
    padding: 15px;
    text-align: center;
    position: relative;
}

.withdraw-page .back-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
}

.withdraw-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #FFF9E6;
    border-radius: var(--border-radius);
    margin: 15px;
}

.withdraw-notice .notice-icon {
    font-size: 24px;
    color: #FFB200;
}

.withdraw-form {
    padding: 15px;
}

.withdraw-form .form-group {
    margin-bottom: 20px;
}

.withdraw-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #000;
}

.withdraw-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.withdraw-form .submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #FFB200, #FFA500);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.withdraw-notice {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #FFF9E6;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

/* Profits Page Styles */
.profits-card {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.profits-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.profits-amount {
    font-size: 30px;
    font-weight: bold;
}

.profits-history {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--box-shadow);
}

.history-title {
    font-size: 16px;
    margin-bottom: 15px;
}

.history-empty {
    text-align: center;
    padding: 20px;
    color: var(--dark-gray);
}

/* Floating Chat */
.floating-chat {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 2000;
    /* margin-bottom: 37px; */
    padding-bottom: -60px;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    animation: pulse 1.5s infinite;
}

.chat-toggle i {
    font-size: 28px;
    color: var(--black);
}

.chat-options {
    position: absolute;
    bottom: 70px;
    left: 5px;
    background-color: var(--white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    width: 150px;
}

.chat-option {
    display: flex;
    align-items: center;
    padding: 10px;
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.chat-option:last-child {
    margin-bottom: 0;
}

.chat-option i {
    font-size: 20px;
    margin-left: 12px;
}

.chat-option.whatsapp i {
    color: #25D366;
}

.chat-option.telegram i {
    color: #0088cc;
}

.chat-option:hover {
    background-color: #f5f5f5;
}

.chat-toggle:focus + .chat-options,
.chat-options:hover {
    display: flex;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Deposit Page Styles */
.deposit-form {
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    margin: 15px;
}

.deposit-form .form-group {
    margin-bottom: 25px;
}

.deposit-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

.deposit-form .form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    background-color: #fff;
}

.deposit-form .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 178, 0, 0.1);
}

.deposit-form .upload-box {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    position: relative;    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #000;
    font-weight: 500;
}

.deposit-form .upload-box i {
    font-size: 20px;
}

.deposit-form .upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.deposit-form .submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    margin-top: 10px;
}

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

/* Responsive Styles */
@media (min-width: 576px) {
    .container-fluid {
        max-width: 576px;
        margin: 0 auto;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        height: 100%;
    }
}