* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(180deg, #fcf6ef 0%, #f5e8d8 100%);
    min-height: 100vh;
    padding-bottom: 80px;
    color: #1a202c;
}

.container {
    padding: 20px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

/* --- NEW LOGO WRAPPER & TEXT STYLING --- */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-5%);
    margin-bottom: 20px;
}

.app-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(201, 162, 108, 0.2);
    background-color: white;
}

.app-brand-text {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
}

/* --- LOGIN/REGISTER STYLING --- */
#login-form,
#register-form {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-block {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.input-block label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 16px;
}

.input-block label i {
    font-size: 18px;
    color: #1a202c;
}

.input-group-with-prefix {
    background: white;
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    width: 100%;
    box-shadow: 0 2px 5px rgba(201, 162, 108, 0.1);
}

.input-group-with-prefix .prefix {
    font-weight: bold;
    color: #1a202c;
    margin-right: 12px;
    font-size: 16px;
}

.input-group-with-prefix input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: #4a5568;
}

.input-block input {
    width: 100%;
    padding: 14px 15px;
    background: white;
    border: none;
    border-radius: 12px;
    outline: none;
    font-size: 16px;
    color: #4a5568;
    box-shadow: 0 2px 5px rgba(201, 162, 108, 0.1);
}

.forgot-pass {
    color: #b08a5a;
    align-self: flex-end;
    width: 100%;
    text-align: right;
    font-size: 14px;
    margin-top: -5px;
    margin-bottom: 15px;
}

/* --- BUTTONS --- */
.btn-primary {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    border: none;
    background: #c9a26c;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(201, 162, 108, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #b08a5a;
    box-shadow: 0 6px 16px rgba(201, 162, 108, 0.4);
}

.btn-secondary {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    border: none;
    background: white;
    color: #1a202c;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(201, 162, 108, 0.1);
}

.btn-danger {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: none;
    background: #e53e3e;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* --- DASHBOARD STYLING --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #e2e8f0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #718096;
    font-size: 12px;
    cursor: pointer;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #c9a26c;
    font-weight: 600;
}

.wallet-card {
    background: #c9a26c;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(201, 162, 108, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.wallet-pill {
    background: white;
    border-radius: 30px;
    padding: 15px;
    text-align: center;
    flex: 1;
    box-shadow: 0 2px 8px rgba(201, 162, 108, 0.08);
    margin: 0 5px;
}

.wallet-pill h4 {
    font-size: 13px;
    color: #718096;
    font-weight: 400;
    margin-bottom: 5px;
}

.wallet-pill h3 {
    color: #c9a26c;
    font-size: 20px;
}

.icon-row {
    display: flex;
    justify-content: space-between;
    background: white;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(201, 162, 108, 0.06);
}

.icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #4a5568;
    font-size: 12px;
    cursor: pointer;
}

.icon-btn i {
    width: 50px;
    height: 50px;
    background: #fcf6ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a26c;
    font-size: 18px;
    margin-bottom: 8px;
}

.icon-btn.wide {
    background: #fcf6ef;
    padding: 15px;
    border-radius: 30px;
    flex-direction: row;
    width: 48%;
    justify-content: center;
}

.icon-btn.wide i {
    background: transparent;
    width: auto;
    height: auto;
    margin-right: 10px;
    color: #c9a26c;
    font-size: 24px;
    margin-bottom: 0;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(201, 162, 108, 0.08);
    position: relative;
}

.product-card-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.prod-img {
    width: 80px;
    height: 80px;
    background: #fcf6ef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-info {
    flex: 1;
}

.prod-info h3 {
    font-size: 16px;
    color: #c9a26c;
}

.prod-info p {
    font-size: 13px;
    color: #718096;
    margin: 3px 0;
}

.price-tag {
    color: #c9a26c;
    font-weight: bold;
    font-size: 16px;
}

.btn-invest {
    background: #c9a26c;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(201, 162, 108, 0.3);
    transition: all 0.2s ease;
}

.btn-invest:hover {
    background: #b08a5a;
    box-shadow: 0 4px 12px rgba(201, 162, 108, 0.4);
}

.team-header {
    background: #c9a26c;
    border-radius: 16px;
    padding: 20px;
    color: white;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(201, 162, 108, 0.3);
}

.team-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.team-level {
    background: white;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-left: 4px solid #c9a26c;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-level h4 {
    color: #c9a26c;
}

.btn-collapse {
    background: #c9a26c;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(201, 162, 108, 0.3);
    transition: all 0.2s ease;
}

.btn-collapse:hover {
    background: #b08a5a;
}

.tabs {
    display: flex;
    background: white;
    border-radius: 30px;
    padding: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(201, 162, 108, 0.08);
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 25px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
}

.tab.active {
    background: #c9a26c;
    color: white;
    box-shadow: 0 2px 8px rgba(201, 162, 108, 0.3);
}

.task-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(201, 162, 108, 0.06);
}

.task-header {
    display: flex;
    justify-content: space-between;
    color: #c9a26c;
    font-weight: bold;
    font-size: 16px;
}

.task-sub {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #718096;
    margin: 8px 0;
}

.task-progress-container {
    position: relative;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 10px 0;
    overflow: visible;
}

.task-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #c9a26c;
    border-radius: 3px;
    z-index: 1;
    transition: width 0.5s ease;
}

.task-dot {
    position: absolute;
    top: -3px;
    width: 12px;
    height: 12px;
    background: #c9a26c;
    border-radius: 50%;
    z-index: 2;
    transform: translateX(-50%);
    transition: left 0.5s ease;
}

.task-desc {
    font-size: 11px;
    color: #4a5568;
}

.task-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.task-status {
    background: #cbd5e1;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    cursor: default;
}

.task-status.claimable {
    background: #c9a26c;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(201, 162, 108, 0.3);
}

.task-status.claimable:hover {
    background: #b08a5a;
}

.task-status.claimed {
    background: #38a169;
}

.task-header-card {
    background: #c9a26c;
    border-radius: 16px;
    padding: 20px;
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(201, 162, 108, 0.3);
}

.task-header-icon {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a26c;
    font-size: 20px;
    box-shadow: 0 2px 4px rgba(201, 162, 108, 0.2);
}

.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 10px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #c9a26c;
    border-radius: 2px;
    width: 0;
}

.payment-channels {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.pay-btn {
    flex: 1;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
}

.pay-btn.active {
    border-color: #c9a26c;
    color: #c9a26c;
    background: #fcf6ef;
}

.hidden {
    display: none;
}

#login-page {
    display: flex;
}

#app-wrapper {
    display: none;
}

#app-wrapper.logged-in {
    display: block;
}

.pay-channel {
    flex: 1;
    background: #fcf6ef;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s;
}

.pay-channel.active {
    border-color: #c9a26c;
    color: #c9a26c;
    background: #fcf6ef;
}

.withdraw-channel-btn {
    background: #fcf6ef;
    border: 1px solid #e2e8f0;
    color: #c9a26c;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.withdraw-channel-btn.active {
    border-color: #c9a26c;
    background: #fcf6ef;
}

.input-with-all {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    background: white;
}

.input-with-all input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: #4a5568;
    margin-left: 10px;
}

.btn-all {
    background: #c9a26c;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    box-shadow: 0 2px 6px rgba(201, 162, 108, 0.3);
    transition: all 0.2s ease;
}

.btn-all:hover {
    background: #b08a5a;
}

.vertical-title {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 10px;
    border-left: 3px solid #c9a26c;
    padding-left: 8px;
    display: inline-block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 16px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(201, 162, 108, 0.15);
}

.modal-box label {
    display: block;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #1a202c;
}

.modal-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.modal-box input[type="file"] {
    padding: 8px;
}

.admin-btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    margin-left: 5px;
}

.admin-btn-edit {
    background: #c9a26c;
}

.admin-btn-edit:hover {
    background: #b08a5a;
}

.admin-btn-delete {
    background: #e53e3e;
}

#page-gift {
    display: none;
}

.team-members-container {
    padding: 10px 20px 20px;
    background: white;
    border-radius: 0 0 12px 12px;
    margin-top: -10px;
    margin-bottom: 10px;
    border-left: 4px solid #c9a26c;
}

.team-member-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #4a5568;
}

.team-member-item:last-child {
    border-bottom: none;
}

.team-member-item strong {
    color: #1a202c;
}

.modal-box .btn-secondary,
.modal-box .fa-times {
    position: relative;
    z-index: 10;
}

.gift-banner-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    width: 100%;
    padding: 2px;
    border-radius: 999px;
    border: 2px solid rgba(201, 162, 108, 0.25);
    box-shadow: 0 6px 20px rgba(201, 162, 108, 0.12);
    background: rgba(252, 246, 239, 0.6);
}

.gift-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fcf6ef 0%, #f5e8d8 100%);
    border-radius: 999px;
    padding: 12px 16px 12px 12px;
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8);
    position: relative;
}

.gift-illustration {
    background: #f5e8d8;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6d4b8;
    box-shadow: 0 2px 4px rgba(201, 162, 108, 0.1);
    flex-shrink: 0;
}

.gift-illustration i {
    font-size: 24px;
    color: #c9a26c;
}

.gift-text {
    flex: 1;
    text-align: center;
    color: #c9a26c;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    margin: 0 15px;
}

.gift-go-btn {
    background: #c9a26c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(201, 162, 108, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gift-go-btn:hover {
    transform: scale(1.05);
    background: #b08a5a;
    box-shadow: 0 4px 16px rgba(201, 162, 108, 0.5);
}

.card-locked {
    filter: blur(1px) brightness(0.85);
    opacity: 0.8;
    pointer-events: none;
    background: #cbd5e1 !important;
}

.card-locked .prod-info h3 {
    color: #718096;
}

.card-locked .price-tag {
    color: #a0aec0;
}

.card-locked .prod-img img {
    filter: blur(2px);
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(252, 246, 239, 0.25);
    backdrop-filter: blur(3px);
    border-radius: 16px;
    pointer-events: auto;
}

.lock-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(201, 162, 108, 0.15);
    margin-bottom: 10px;
}

.lock-icon i {
    font-size: 20px;
    color: #4a5568;
}

.presale-badge {
    background: #c9a26c;
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(201, 162, 108, 0.2);
}

.btn-presale {
    background: #c9a26c;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: default;
    position: relative;
    z-index: 11;
}