/* ===== FENDY - Agriculture Investment Platform ===== */
/* Modern Dark Theme - Mobile-First */

:root {
    --bg-primary: #080c08;
    --bg-secondary: #0d120d;
    --bg-card: rgba(20, 28, 20, 0.85);
    --bg-card-hover: rgba(28, 38, 28, 0.9);
    --bg-input: #141c14;
    --bg-nav: rgba(10, 16, 10, 0.95);
    --text-primary: #eaf0ea;
    --text-secondary: #8a9a8a;
    --text-muted: #5a6a5a;
    --accent-green: #22c55e;
    --accent-green-dark: #16a34a;
    --accent-green-light: #4ade80;
    --accent-gold: #f59e0b;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    --border-color: rgba(30, 50, 30, 0.5);
    --border-light: rgba(42, 58, 42, 0.6);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(34, 197, 94, 0.15);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --nav-height: 72px;
    --header-height: 56px;
    --font:
        "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
}

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

html,
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 3px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

/* ===== App Container ===== */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-primary);
    background-image: radial-gradient(
        ellipse at 50% 0%,
        rgba(34, 197, 94, 0.03) 0%,
        transparent 70%
    );
}

/* ===== Auth Pages ===== */
.auth-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #080c08 0%, #0a140a 50%, #080c08 100%);
    overflow-y: auto;
}

.auth-logo {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo .logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(
        135deg,
        var(--accent-green),
        var(--accent-green-dark)
    );
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: #000;
    box-shadow: 0 8px 40px rgba(34, 197, 94, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-logo .logo-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-radius: inherit;
}

.auth-logo h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(
        135deg,
        var(--accent-green-light),
        var(--accent-green)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
    font-weight: 400;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab.active {
    background: var(--accent-green);
    color: #000;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    font-family: var(--font);
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--accent-green);
    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.12),
        0 0 20px rgba(34, 197, 94, 0.05);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a9a8a' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--accent-green),
        var(--accent-green-dark)
    );
    color: #000;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-green);
    border: 1.5px solid var(--accent-green);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
    width: auto;
}
.btn-xs {
    padding: 6px 12px;
    font-size: 11px;
    width: auto;
    border-radius: 6px;
}

.auth-error {
    color: var(--accent-red);
    font-size: 13px;
    margin-bottom: 12px;
    text-align: center;
    display: none;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 20px;
}
.auth-footer a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
}

/* ===== Header ===== */
.app-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(8, 12, 8, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.app-header .header-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.app-header .header-title span {
    color: var(--accent-green);
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ===== Main Content ===== */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: calc(var(--nav-height) + 28px);
    scroll-behavior: smooth;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeSlide 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--bg-nav);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    padding: 0 4px 8px;
    position: sticky;
    bottom: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    min-width: 56px;
    position: relative;
    font-family: var(--font);
}

.nav-item .nav-icon {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s;
}
.nav-item.active .nav-icon {
    transform: scale(1.1);
}
.nav-item .nav-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-item.active {
    color: var(--accent-green);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--accent-green);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* ===== Dashboard ===== */
.welcome-card {
    background: linear-gradient(
        135deg,
        rgba(13, 26, 13, 0.9),
        rgba(26, 46, 26, 0.8)
    );
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.welcome-card::before {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 160px;
    height: 160px;
    background: radial-gradient(
        circle,
        rgba(34, 197, 94, 0.08) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

.welcome-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(34, 197, 94, 0.3),
        transparent
    );
}

.welcome-card h2 {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.welcome-card .balance {
    font-size: 34px;
    font-weight: 800;
    color: var(--accent-green-light);
    margin-bottom: 10px;
    letter-spacing: -1px;
    line-height: 1;
}

.welcome-card .balance span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0;
}

.welcome-card .stats-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.welcome-card .stat-mini {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.welcome-card .stat-mini .value {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}
.welcome-card .stat-mini .label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: rgba(34, 197, 94, 0.2);
}

.stat-card .stat-icon {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
}
.stat-card .stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.stat-card .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
    font-weight: 500;
}

/* ===== Section Title ===== */
.section-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

/* ===== Quick Actions ===== */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.action-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.action-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 50%,
        rgba(34, 197, 94, 0.03) 100%
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.action-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.action-card:hover::after {
    opacity: 1;
}

.action-card .action-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
    position: relative;
}
.action-card .action-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}
.action-card .action-sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
    position: relative;
}

/* ===== Plans / Contracts Page ===== */
.plan-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.plan-option {
    flex: 1;
    min-width: 110px;
    padding: 14px 8px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font);
    backdrop-filter: blur(10px);
}

.plan-option:hover {
    border-color: rgba(34, 197, 94, 0.3);
    background: var(--bg-card-hover);
}

.plan-option.selected {
    border-color: var(--accent-green);
    background: rgba(34, 197, 94, 0.08);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.plan-option .plan-opt-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
}
.plan-option .plan-opt-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}
.plan-option .plan-opt-roi {
    font-size: 10px;
    color: var(--accent-green);
    font-weight: 600;
    margin-top: 2px;
}

.plan-detail-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    animation: fadeSlide 0.3s ease;
}

.plan-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0;
}

.plan-detail-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.plan-detail-item .detail-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.plan-detail-item .detail-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 3px;
}

/* Quick Amount Buttons */
.quick-amounts {
    display: flex;
    gap: 6px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.quick-amount-btn {
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.quick-amount-btn:hover,
.quick-amount-btn.selected {
    border-color: var(--accent-green);
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
}

.custom-amount-wrap {
    position: relative;
    margin: 12px 0;
}

.custom-amount-wrap .currency-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 18px;
    z-index: 1;
}

.custom-amount-wrap input {
    width: 100%;
    padding: 16px 16px 16px 36px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    outline: none;
    transition: all 0.3s;
    font-family: var(--font);
}

.custom-amount-wrap input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

/* Invest Summary */
.invest-summary-modern {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 16px;
    margin: 14px 0;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-row + .summary-row {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.summary-row .label {
    color: var(--text-secondary);
}
.summary-row .value {
    color: var(--text-primary);
    font-weight: 700;
}

/* ===== Deposit & Withdraw ===== */
.glass-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.coin-network-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(34, 197, 94, 0.06);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    font-size: 12px;
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.balance-display {
    text-align: center;
    padding: 16px;
    margin-bottom: 16px;
}

.balance-display .bal-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-green-light);
    letter-spacing: -1px;
}

.balance-display .bal-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Profile ===== */
.profile-header {
    text-align: center;
    padding: 24px 0 20px;
}

.profile-avatar {
    width: 76px;
    height: 76px;
    background: linear-gradient(
        135deg,
        var(--accent-green),
        var(--accent-green-dark)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #000;
    margin: 0 auto 14px;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
    position: relative;
}

.profile-header h3 {
    font-size: 20px;
    font-weight: 700;
}
.profile-header p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 2px;
}

.profile-menu {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.profile-menu-item:last-child {
    border-bottom: none;
}
.profile-menu-item:hover {
    background: var(--bg-card-hover);
}

.profile-menu-item .menu-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.profile-menu-item .menu-icon {
    font-size: 16px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    color: var(--accent-green);
}

.profile-menu-item .menu-text {
    font-size: 14px;
    font-weight: 600;
}
.profile-menu-item .menu-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.profile-menu-item .menu-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Referral ===== */
.referral-card {
    background: linear-gradient(
        135deg,
        rgba(13, 26, 13, 0.9),
        rgba(26, 46, 26, 0.8)
    );
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.referral-card::before {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(
        circle,
        rgba(34, 197, 94, 0.06) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

.referral-card .ref-code {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--accent-green-light);
    margin: 14px 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--accent-green);
    font-family: "Courier New", monospace;
}

.bonus-tier {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bonus-tier:last-child {
    border-bottom: none;
}
.bonus-tier .tier-label {
    color: var(--text-secondary);
}
.bonus-tier .tier-value {
    color: var(--accent-green);
    font-weight: 700;
}

/* ===== Transaction List ===== */
.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.tx-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.tx-icon.deposit i {
    color: var(--accent-green);
}
.tx-icon.withdrawal i {
    color: var(--accent-red);
}
.tx-icon.roi i {
    color: var(--accent-gold);
}
.tx-icon.referral i {
    color: var(--accent-purple, #8b5cf6);
}
.tx-icon.investment i {
    color: var(--accent-blue);
}

.tx-icon.deposit {
    background: rgba(34, 197, 94, 0.1);
}
.tx-icon.withdrawal {
    background: rgba(239, 68, 68, 0.1);
}
.tx-icon.roi {
    background: rgba(245, 158, 11, 0.1);
}
.tx-icon.referral {
    background: rgba(139, 92, 246, 0.1);
}
.tx-icon.investment {
    background: rgba(59, 130, 246, 0.1);
}

.tx-info {
    flex: 1;
}
.tx-info .tx-type {
    font-size: 14px;
    font-weight: 600;
}
.tx-info .tx-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.tx-amount {
    text-align: right;
}
.tx-amount .amount {
    font-size: 14px;
    font-weight: 700;
}
.tx-amount .amount.credit {
    color: var(--accent-green);
}
.tx-amount .amount.debit {
    color: var(--accent-red);
}

.tx-amount .tx-status {
    font-size: 10px;
    margin-top: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tx-status.completed {
    color: var(--accent-green);
}
.tx-status.pending {
    color: var(--accent-gold);
}
.tx-status.failed {
    color: var(--accent-red);
}

/* ===== Investment Items ===== */
.investment-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
}

.investment-item .invest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.investment-item .invest-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-green-light);
    letter-spacing: -0.5px;
}

.invest-status {
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invest-status.active {
    background: rgba(34, 197, 94, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.invest-status.completed {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.invest-status.cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.progress-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}

.progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--accent-green),
        var(--accent-green-light)
    );
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.invest-days {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== History Tabs ===== */
.history-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.history-tab {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    font-family: var(--font);
}

.history-tab.active {
    background: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 28px 24px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border-color);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== Payment Info ===== */
.payment-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 12px 0;
}

.payment-info .info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 13px;
    word-break: break-all;
}

.payment-info .info-row + .info-row {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.payment-info .info-row .info-label {
    color: var(--text-muted);
    min-width: 80px;
    font-size: 11px;
}
.payment-info .info-row .info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--accent-green);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(34, 197, 94, 0.1);
}

/* ===== Loading ===== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: calc(100% - 32px);
    max-width: 448px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    animation: toastSlide 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    backdrop-filter: blur(20px);
    pointer-events: auto;
}

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

.toast.success {
    border-left: 3px solid var(--accent-green);
}
.toast.error {
    border-left: 3px solid var(--accent-red);
}
.toast.info {
    border-left: 3px solid var(--accent-blue);
}
.toast .toast-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* ===== WhatsApp Floating Button (Left Side) ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    color: #fff;
}

@keyframes whatsappPulse {
    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

@media (min-width: 480px) {
    .whatsapp-float {
        bottom: 32px;
        left: 32px;
    }
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-state .empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}
.empty-state .empty-text {
    font-size: 14px;
    font-weight: 500;
}

/* ===== Responsive ===== */
@media (min-width: 480px) {
    .app-container {
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
    }
}

/* ===== Keyframe Animations ===== */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        var(--bg-card) 25%,
        rgba(255, 255, 255, 0.03) 50%,
        var(--bg-card) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.glow-green {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.15);
}
