/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f0f2f5;
    color: #1a2b3c;
}

/* ---------- App Container ---------- */
.app {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* ---------- Header (Fixed Top Nav) ---------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    max-width: 1200px;
    margin: 0 auto;
    background: #1a2b3c;
    color: #fff;
    padding: 15px 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #ffd700;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.header-actions a {
    color: #ffd700;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background 0.2s;
}

.header-actions a:hover {
    background: rgba(255, 215, 0, 0.15);
    text-decoration: none;
}

/* ---------- Main Content ---------- */
main {
    padding: 80px 25px 70px;
}

/* ---------- Dashboard Overview ---------- */
.dashboard .overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card,
.withdrawal-card,
.deposit-card {
    background: #e8f0fe;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.balance-card h3,
.withdrawal-card h3,
.deposit-card h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
}

.amount {
    font-size: 2rem;
    font-weight: bold;
    color: #1a2b3c;
    margin: 8px 0 4px;
}

.balance-card small,
.withdrawal-card small,
.deposit-card small {
    color: #777;
    font-size: 0.8rem;
}

/* ---------- Carousel (Slider) ---------- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide .slide {
    min-width: 100%;
    height: 300px;               /* adjust height as needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Dark overlay + golden text */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* dark overlay for contrast */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.slide-overlay h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffd700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-overlay p {
    font-size: 1.1rem;
    max-width: 600px;
    color: #ffd700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
}

/* Carousel controls */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
}

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}
.next {
    right: 10px;
}

.dots-container {
    text-align: center;
    padding: 12px 0;
    background: #f5f5f5;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #1a2b3c;
}

/* ---------- Investment Info ---------- */
.investment-info {
    margin: 30px 0;
    padding: 20px;
    background: #f8faff;
    border-radius: 12px;
}

.investment-info h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #1a2b3c;
}

.investment-info>p {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.info-card {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-top: 4px solid #1a2b3c;
}

.info-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #eee;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1a2b3c;
}

.info-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.roi-note {
    background: #1a2b3c;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.roi-note p {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.roi-note .btn-go {
    background: #ffd700;
    color: #1a2b3c;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* ---------- Mission Box ---------- */
.mission-box {
    background: #1a2b3c;
    color: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
}

.mission-box h4 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.mission-box p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn-go {
    display: inline-block;
    background: #ffd700;
    color: #1a2b3c;
    padding: 12px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-go:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* ---------- Product Page ---------- */
.products-page {
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #1a2b3c;
    font-size: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-header {
    background: #1a2b3c;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.badge {
    background: #ffd700;
    color: #1a2b3c;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
}

.product-body {
    padding: 18px 20px;
    flex: 1;
}

.price-range {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1a2b3c;
    margin: 8px 0;
}

.duration {
    color: #666;
    margin: 6px 0;
}

.description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 10px;
}

.product-footer {
    padding: 15px 20px;
    background: #f8faff;
    text-align: center;
}

.btn-invest {
    display: inline-block;
    background: #1a2b3c;
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-invest:hover {
    background: #2c4058;
}

/* ---------- Invest Page ---------- */
.invest-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.invest-details {
    background: #f5f7fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.invest-details p {
    margin: 6px 0;
}

.payment-info {
    background: #fff8e1;
    border-left: 4px solid #ffd700;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.payment-info h3 {
    margin-top: 0;
}

.payment-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a2b3c;
    padding: 8px 0;
    letter-spacing: 1px;
}

.note {
    font-size: 0.9rem;
    color: #777;
}

.invest-form .form-group {
    margin-bottom: 18px;
}

.invest-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.invest-form input[type="number"],
.invest-form input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.invest-form small {
    color: #888;
    font-size: 0.85rem;
}

.btn-pay {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 14px 20px;
    width: 100%;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-pay:hover {
    background: #2ecc71;
}

.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.back-link {
    display: inline-block;
    margin-top: 15px;
    color: #1a2b3c;
    text-decoration: none;
}

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

/* ---------- Deposit & Withdraw Pages ---------- */
.deposit-page,
.withdraw-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.balance-info {
    background: #e8f0fe;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.deposit-form .form-group,
.withdraw-form .form-group {
    margin-bottom: 18px;
}

.deposit-form label,
.withdraw-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.deposit-form input[type="number"],
.deposit-form input[type="file"],
.withdraw-form input[type="number"],
.withdraw-form select,
.withdraw-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.withdraw-form textarea {
    resize: vertical;
}

.btn-withdraw {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 14px 20px;
    width: 100%;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-withdraw:hover {
    background: #d35400;
}

/* ---------- Team & Profile Pages (old) ---------- */
.team-page,
.profile-page,
.faq-page,
.about-page,
.checkin-page {
    max-width: 800px;
    margin: 0 auto;
}

.referral-link input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f5f5f5;
    font-size: 0.95rem;
    margin: 8px 0 16px;
}

.team-page ul {
    list-style: none;
    padding: 0;
}

.team-page ul li {
    background: #f5f7fa;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* ---------- New Profile Page ---------- */
.profile-new {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 0;
}

.profile-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a2b3c;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 15px;
}

.site-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.username {
    font-weight: bold;
    color: #ffd700;
}

.level {
    background: #ffd700;
    color: #1a2b3c;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.exit-btn {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.15);
    transition: background 0.2s;
}

.exit-btn:hover {
    background: rgba(255, 215, 0, 0.3);
}

.balance-card-large {
    background: #e8f0fe;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.balance-label {
    font-size: 0.9rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-amount {
    font-size: 2.4rem;
    font-weight: bold;
    color: #1a2b3c;
    margin: 8px 0;
}

.recharge-btn {
    display: inline-block;
    background: #1a2b3c;
    color: #fff;
    padding: 8px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.recharge-btn:hover {
    background: #2c4058;
}

.action-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.action-btn {
    background: #fff;
    padding: 14px 8px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #1a2b3c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn .icon {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.my-products {
    background: #f8faff;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #ffd700;
}

.my-products h4 {
    margin: 0 0 4px 0;
    color: #1a2b3c;
}

.my-products p {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 0.95rem;
}

.go-products {
    display: inline-block;
    background: #ffd700;
    color: #1a2b3c;
    padding: 6px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.go-products:hover {
    background: #f9a825;
}

.more-section {
    margin-bottom: 20px;
}

.more-section h4 {
    margin: 0 0 10px 0;
    color: #1a2b3c;
    font-size: 1.1rem;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.more-item {
    background: #f5f7fa;
    padding: 12px 6px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #1a2b3c;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.more-item:hover {
    background: #e8ecf1;
}

.bottom-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.icon-item {
    background: #fff;
    padding: 12px 6px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #1a2b3c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.2s;
    cursor: pointer;
}

.icon-item:hover {
    transform: translateY(-2px);
}

.icon-item .icon {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

/* ---------- Records Page ---------- */
.records-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9rem;
}

.records-table th {
    background: #1a2b3c;
    color: #fff;
    padding: 10px 8px;
    text-align: left;
}

.records-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
}

.records-table tr:hover {
    background: #f5f7fa;
}

.status-pending {
    color: #e67e22;
    font-weight: bold;
}
.status-completed {
    color: #27ae60;
    font-weight: bold;
}
.status-failed {
    color: #c0392b;
    font-weight: bold;
}

/* ---------- Notification Modal ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-card {
    background: #fff;
    max-width: 520px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px 30px 20px;
}

#changePwdModal .modal-card {
    max-width: 400px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #1a2b3c;
}

.modal-header h2 {
    margin: 0 0 8px 0;
    color: #1a2b3c;
    font-size: 1.6rem;
    border-bottom: 3px solid #ffd700;
    padding-bottom: 8px;
}

.modal-body .intro {
    font-size: 1.05rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 10px 0 16px;
}

.benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.benefits li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #333;
    display: flex;
    align-items: baseline;
}

.benefits li::before {
    content: "•";
    color: #ffd700;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 10px;
}

.benefits li strong {
    color: #1a2b3c;
}

.rewards-tag {
    background: linear-gradient(135deg, #ffd700, #f9a825);
    color: #1a2b3c;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block;
    font-size: 0.9rem;
    margin: 8px 0 4px;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    justify-content: center;
}

.btn-ok,
.btn-telegram {
    padding: 10px 28px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-ok {
    background: #e0e0e0;
    color: #333;
}

.btn-ok:hover {
    background: #d0d0d0;
}

.btn-telegram {
    background: #0088cc;
    color: #fff;
}

.btn-telegram:hover {
    background: #006699;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

/* ---------- Auth Forms ---------- */
.auth-form {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background: #1a2b3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-form button:hover {
    background: #2c4058;
}

.error {
    color: #c0392b;
    text-align: center;
    margin-bottom: 12px;
}

/* ---------- FAQ ---------- */
.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.faq-item h3 {
    font-size: 1.15rem;
    color: #1a2b3c;
    margin-bottom: 6px;
}

.faq-item p {
    color: #444;
    line-height: 1.5;
}

/* ---------- Bottom Navigation (Fixed Footer) ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    background: #1a2b3c;
    color: #fff;
    padding: 12px 0;
    border-top: 2px solid #ffd700;
}

.bottom-nav a {
    flex: 1;
    text-align: center;
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 6px 0;
    transition: color 0.2s;
}

.bottom-nav a.active {
    color: #ffd700;
    font-weight: bold;
}

.bottom-nav a:hover {
    color: #fff;
}

/* ---------- Team Page New ---------- */
.team-page-new {
    max-width: 700px;
    margin: 0 auto;
    padding: 10px 0;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.team-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #1a2b3c;
}
.my-team-link {
    color: #1a2b3c;
    text-decoration: none;
    font-weight: bold;
    opacity: 0.7;
}
.my-team-link:hover {
    opacity: 1;
}

/* VIP Cards */
.vip-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
.vip-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
    border: 1px solid #eee;
}
.vip-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #1a2b3c;
}
.vip-commission {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1a2b3c;
    margin: 6px 0;
}
.vip-stats {
    display: flex;
    justify-content: space-around;
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
}
.vip-numbers {
    display: flex;
    justify-content: space-around;
    font-weight: bold;
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Invite Section */
.invite-section {
    background: #f8faff;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}
.invite-section h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: #1a2b3c;
}
.invite-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    flex-wrap: wrap;
}
.invite-row .label {
    font-weight: bold;
    color: #555;
    min-width: 100px;
}
.invite-row .code,
.invite-row .link {
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    flex: 1;
    word-break: break-all;
}
.copy-btn {
    background: #1a2b3c;
    color: #fff;
    border: none;
    padding: 4px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
    transition: background 0.2s;
}
.copy-btn:hover {
    background: #2c4058;
}

/* Progress Section */
.progress-section {
    margin-bottom: 20px;
}
.progress-section h3 {
    font-size: 1.1rem;
    color: #1a2b3c;
    margin: 0 0 12px 0;
}
.progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.stat-item {
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #eee;
}
.stat-item .icon {
    font-size: 1.8rem;
}
.stat-item .count {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1a2b3c;
}
.stat-item .label {
    color: #888;
    font-size: 0.9rem;
    margin-left: auto;
}

/* Bonus Info */
.bonus-info {
    background: #fff8e1;
    border-left: 4px solid #ffd700;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}
.bonus-info strong {
    color: #1a2b3c;
}

/* ---------- Check-in Page (Improved) ---------- */
.checkin-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.checkin-header {
    text-align: center;
    margin-bottom: 25px;
}
.checkin-header .checkin-icon {
    font-size: 3rem;
    margin-bottom: 6px;
}
.checkin-header h2 {
    font-size: 2rem;
    color: #1a2b3c;
    margin: 0;
}
.checkin-header p {
    color: #666;
    font-size: 1rem;
    margin-top: 4px;
}

.checkin-summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}
.summary-card {
    background: #fff;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
    border: 1px solid #eee;
}
.summary-card .summary-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.summary-card .summary-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1a2b3c;
    margin-top: 4px;
}
.summary-card.highlight {
    background: #fff8e1;
    border-color: #ffd700;
}
.summary-card.highlight .summary-value {
    color: #f39c12;
}

.checkin-packages {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid #eee;
}
.checkin-packages h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: #1a2b3c;
}
.table-responsive {
    overflow-x: auto;
}
.checkin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.checkin-table th {
    background: #f8f9fa;
    color: #333;
    padding: 10px 8px;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}
.checkin-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
}
.checkin-table .total-row {
    background: #f8faff;
    font-weight: bold;
}
.checkin-table .total-row td {
    border-top: 2px solid #1a2b3c;
    padding: 12px 8px;
}

.no-investments {
    text-align: center;
    padding: 20px 0;
}
.no-investments p {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 15px;
}
.btn-invest-now {
    display: inline-block;
    background: #1a2b3c;
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
.btn-invest-now:hover {
    background: #2c4058;
}

.checkin-action {
    background: #f8faff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #e0e7f0;
}
.checkin-action p {
    font-size: 1.05rem;
    margin-bottom: 15px;
}
.btn-checkin {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.btn-checkin:hover {
    background: #2ecc71;
    transform: scale(1.02);
}
.btn-checkin:active {
    transform: scale(0.98);
}

.checkin-done {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #d4edda;
    padding: 16px 20px;
    border-radius: 12px;
    color: #155724;
    font-weight: bold;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    flex-wrap: wrap;
}
.checkin-done .icon {
    font-size: 2rem;
}
.checkin-done .date {
    margin-left: auto;
    font-weight: normal;
    color: #155724;
    font-size: 0.9rem;
}

/* ---------- FAQ Page New ---------- */
.faq-page-new {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 25px;
}
.faq-header h2 {
    font-size: 2rem;
    color: #1a2b3c;
    margin-bottom: 8px;
}
.faq-header p {
    color: #666;
    font-size: 1.05rem;
}

.faq-search {
    margin-bottom: 25px;
}
.faq-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    transition: border 0.2s;
}
.faq-search input:focus {
    border-color: #1a2b3c;
    outline: none;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item-new {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.faq-item-new:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #fafbfc;
    transition: background 0.2s;
    user-select: none;
}
.faq-question:hover {
    background: #f0f2f5;
}
.faq-icon {
    font-size: 1.3rem;
    margin-right: 12px;
}
.faq-text {
    flex: 1;
    font-weight: 500;
    color: #1a2b3c;
}
.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #888;
    transition: transform 0.2s;
}

.faq-answer {
    display: none;
    padding: 0 20px 18px 20px;
    border-top: 1px solid #eee;
    background: #fff;
}
.faq-answer p {
    margin: 14px 0 0 0;
    line-height: 1.7;
    color: #444;
}

.faq-contact {
    background: #f8faff;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    margin-top: 30px;
}
.faq-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #1a2b3c;
}
.faq-contact p {
    color: #555;
    margin-bottom: 16px;
}
.btn-contact, .btn-chat {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 6px;
    transition: background 0.2s, transform 0.2s;
}
.btn-contact {
    background: #1a2b3c;
    color: #fff;
}
.btn-contact:hover {
    background: #2c4058;
    transform: translateY(-2px);
}
.btn-chat {
    background: #e0e0e0;
    color: #333;
}
.btn-chat:hover {
    background: #d0d0d0;
}

/* ---------- Support Page ---------- */
.support-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}
.support-page h2 {
    margin-bottom: 20px;
    color: #1a2b3c;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}
@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
}

.new-message, .conversations {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.new-message h3, .conversations h3 {
    margin-top: 0;
    color: #1a2b3c;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 8px;
}

.thread-list {
    list-style: none;
    padding: 0;
}
.thread-list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
}
.thread-list li:last-child {
    border-bottom: none;
}
.thread-list li a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #333;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.thread-list li a:hover {
    background: #f8faff;
}
.thread-list .status {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    background: #eee;
    color: #555;
}
.thread-list .status.unread {
    background: #ffd700;
    color: #1a2b3c;
}
.thread-list .status.replied {
    background: #27ae60;
    color: #fff;
}
.thread-list .date {
    font-size: 0.8rem;
    color: #888;
}

.thread-view {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.thread-view h3 {
    margin-top: 0;
    color: #1a2b3c;
}
.thread-messages {
    margin: 15px 0;
}
.message-bubble {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    max-width: 80%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.message-bubble.user {
    background: #f0f2f5;
    margin-right: auto;
}
.message-bubble.admin {
    background: #e8f0fe;
    margin-left: auto;
}
.message-bubble .date {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-top: 4px;
}
.reply-form {
    margin-top: 20px;
}
.reply-form .form-group {
    margin-bottom: 15px;
}
.reply-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
}
.reply-form textarea:focus {
    outline: none;
    border-color: #1a2b3c;
}

/* ---------- Admin Support Messages ---------- */
.thread-view-admin {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.thread-view-admin .message-bubble {
    max-width: 90%;
}
.thread-view-admin .message-bubble.admin {
    background: #e8f0fe;
    margin-left: auto;
}
.thread-view-admin .message-bubble.user {
    background: #f0f2f5;
    margin-right: auto;
}

/* ---------- Custom Modal Overrides (for admin FAQ) ---------- */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.custom-modal-content {
    background: #fff;
    max-width: 600px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}
.custom-modal-header h5 {
    margin: 0;
    font-size: 1.25rem;
}
.custom-modal-header .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    padding: 0 5px;
}
.custom-modal-header .btn-close:hover {
    color: #333;
}
.custom-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}
.custom-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.custom-modal-footer .btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.custom-modal-footer .btn-secondary {
    background: #e0e0e0;
    color: #333;
}
.custom-modal-footer .btn-secondary:hover {
    background: #d0d0d0;
}
.custom-modal-footer .btn-primary {
    background: #1a2b3c;
    color: #fff;
}
.custom-modal-footer .btn-primary:hover {
    background: #2c4058;
}
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.form-control:focus {
    border-color: #1a2b3c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 43, 60, 0.1);
}
.mb-3 {
    margin-bottom: 1rem;
}
.form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.btn-close:focus {
    outline: none;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .app {
        max-width: 100%;
        margin: 0;
        box-shadow: none;
    }

    .main-header {
        max-width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 15px;
    }

    .header-actions {
        justify-content: space-around;
        gap: 5px;
    }

    .header-actions a {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    main {
        padding: 80px 15px 65px;
    }

    .dashboard .overview {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .amount {
        font-size: 1.6rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bottom-nav {
        max-width: 100%;
        padding: 8px 0;
    }

    .bottom-nav a {
        font-size: 0.85rem;
    }

    .info-card img {
        height: 180px;
    }

    .modal-card {
        padding: 20px;
    }

    .profile-new {
        padding: 0;
    }
    .profile-top-bar {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    .more-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bottom-icons {
        grid-template-columns: repeat(3, 1fr);
    }
    .records-table {
        font-size: 0.8rem;
    }
    .records-table th,
    .records-table td {
        padding: 6px 4px;
    }

    .vip-cards {
        grid-template-columns: 1fr 1fr;
    }
    .vip-cards .vip-card:last-child {
        grid-column: span 2;
    }
    .invite-row {
        flex-direction: column;
        align-items: stretch;
    }
    .invite-row .label {
        min-width: auto;
    }
    .progress-stats {
        grid-template-columns: 1fr;
    }

    .checkin-summary-cards {
        grid-template-columns: 1fr 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .carousel-slide .slide {
        height: 250px;
    }
    .slide-overlay h2 {
        font-size: 1.5rem;
    }
    .slide-overlay p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .dashboard .overview {
        grid-template-columns: 1fr;
    }

    .header-actions a {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .logo {
        font-size: 1.1rem;
        text-align: center;
    }

    main {
        padding: 75px 12px 60px;
    }

    .auth-form {
        margin: 20px 15px;
        padding: 20px;
    }

    .bottom-nav a {
        font-size: 0.8rem;
    }

    .carousel-slide .slide {
        height: 220px;
    }
    .slide-overlay h2 {
        font-size: 1.2rem;
    }
    .slide-overlay p {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    .prev,
    .next {
        padding: 8px 12px;
        font-size: 1.2rem;
    }

    .info-card img {
        height: 160px;
    }

    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-ok,
    .btn-telegram {
        text-align: center;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .benefits li {
        font-size: 0.88rem;
    }

    .balance-amount {
        font-size: 2rem;
    }
    .action-row {
        grid-template-columns: 1fr 1fr;
    }
    .action-row a:last-child {
        grid-column: span 2;
    }
    .more-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .bottom-icons {
        grid-template-columns: 1fr 1fr;
    }
    .bottom-icons a:last-child {
        grid-column: span 2;
    }
    .records-table {
        font-size: 0.7rem;
    }
    .records-table th,
    .records-table td {
        padding: 4px 3px;
    }

    .vip-cards {
        grid-template-columns: 1fr;
    }
    .vip-cards .vip-card:last-child {
        grid-column: span 1;
    }
    .team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .faq-question {
        padding: 14px 16px;
    }
    .faq-answer {
        padding: 0 16px 14px 16px;
    }
    .btn-contact, .btn-chat {
        display: block;
        margin: 6px auto;
        max-width: 200px;
    }

    .checkin-summary-cards {
        grid-template-columns: 1fr;
    }
    .checkin-header h2 {
        font-size: 1.6rem;
    }
    .checkin-table {
        font-size: 0.8rem;
    }
    .checkin-table th,
    .checkin-table td {
        padding: 6px 4px;
    }
    .btn-checkin {
        width: 100%;
    }
    .checkin-done {
        flex-direction: column;
        text-align: center;
    }
    .checkin-done .date {
        margin-left: 0;
    }

    .thread-list li a {
        flex-wrap: wrap;
        gap: 4px;
    }
    .message-bubble {
        max-width: 95%;
    }

    .custom-modal-content {
        margin: 10px;
    }
}

/* Notification Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.modal-card {
    background: #fff;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
}
@keyframes modalFadeIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { padding: 20px 24px 10px; border-bottom: 1px solid #eee; }
.modal-header h2 { margin: 0; font-size: 1.4em; }
.modal-close { float: right; background: none; border: none; font-size: 1.8em; cursor: pointer; color: #999; }
.modal-body { padding: 20px 24px; }
.modal-body .intro { font-size: 1em; margin-bottom: 16px; }
.modal-body .benefits { list-style: none; padding: 0; margin: 0; }
.modal-body .benefits li { padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.modal-body .rewards-tag { margin-top: 16px; font-weight: bold; color: #f78b00; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #eee; display: flex; gap: 12px; justify-content: flex-end; }
.btn-ok { background: #f78b00; color: #fff; border: none; padding: 8px 24px; border-radius: 6px; cursor: pointer; }
.btn-telegram { background: #0088cc; color: #fff; text-decoration: none; padding: 8px 20px; border-radius: 6px; }