/* ==============================
   INVESTRA MOBILE WEB APP UI
   Desktop tetap mobile
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root{
    --primary:#2563eb;
    --secondary:#1e40af;
    --success:#22c55e;
    --danger:#ef4444;
    --warning:#f59e0b;
    --dark:#0f172a;
    --gray:#64748b;
    --bg:#f8fafc;
    --card:#ffffff;
    --radius:20px;
    --radius-sm:14px;
    --shadow:0 12px 30px rgba(15,23,42,.08);
    --glass:rgba(255,255,255,.9);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',system-ui,-apple-system;
}

body{
    background:#e5e7eb;
    color:var(--dark);
    -webkit-font-smoothing:antialiased;
}

/* ==============================
   APP WRAPPER (DESKTOP = MOBILE)
   ============================== */

.app-wrapper{
    width:100%;
    min-height:100vh;
    display:flex;
    justify-content:center;
    background:linear-gradient(160deg,#e0e7ff,#f8fafc);
}

.app{
    width:100%;
    max-width:480px;
    min-height:100vh;
    background:var(--bg);
    box-shadow:0 0 40px rgba(0,0,0,.12);
}

/* ==============================
   AUTH
   ============================== */

.auth-body{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.auth-card{
    width:100%;
    background:var(--glass);
    backdrop-filter:blur(14px);
    border-radius:28px;
    box-shadow:var(--shadow);
    padding:34px 28px;
}

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

.auth-logo i{
    font-size:48px;
    color:var(--primary);
}

.auth-logo h2{
    margin-top:8px;
    font-weight:700;
}

.auth-logo p{
    font-size:13px;
    color:var(--gray);
}

/* ==============================
   INPUT
   ============================== */

.input-group{
    position:relative;
    margin-bottom:16px;
}

.input-group i{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:var(--gray);
}

.input-group input{
    width:100%;
    padding:15px 16px 15px 44px;
    border-radius:var(--radius-sm);
    border:1px solid #e5e7eb;
    background:#fff;
    font-size:14px;
}

.input-group input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
    outline:none;
}

/* ==============================
   BUTTON
   ============================== */

.btn-primary{
    width:100%;
    border:none;
    border-radius:var(--radius-sm);
    padding:15px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    margin-top:8px;
}

.btn-primary.green{
    background:linear-gradient(135deg,#22c55e,#16a34a);
}

/* ==============================
   ALERT
   ============================== */

.alert{
    padding:12px;
    border-radius:var(--radius-sm);
    font-size:13px;
    margin-bottom:14px;
    text-align:center;
}

.alert.error{
    background:#fee2e2;
    color:#991b1b;
}

/* ==============================
   DASHBOARD
   ============================== */

.dashboard{
    width:100%;
    padding:16px;
    padding-bottom:100px;
}

.card{
    background:var(--card);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:18px;
    margin-bottom:16px;
}

/* ==============================
   BALANCE
   ============================== */

.balance-card{
    background:linear-gradient(135deg,#2563eb,#1e40af);
    color:#fff;
}

.balance-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.balance-box{
    background:rgba(255,255,255,.15);
    border-radius:14px;
    padding:14px;
}

.balance-box h2{
    font-size:18px;
    margin-top:4px;
}

/* ==============================
   QUICK MENU
   ============================== */

.quick-menu{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:10px;
    text-align:center;
}

.quick-menu a{
    text-decoration:none;
    color:var(--dark);
    font-size:11px;
}

.quick-menu i{
    display:block;
    font-size:20px;
    margin-bottom:4px;
    color:var(--primary);
}

/* ==============================
   INVEST LIST
   ============================== */

/* ==============================
   INVESTMENT GRID & CARD
   ============================== */
.invest-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 card per row */
    gap: 16px; /* sedikit lebih besar dari sebelumnya */
    margin-top: 12px;
}

.invest-card {
    border: 1px solid #e5e7eb;
    border-top: 4px solid #2563eb; /* warna pinggiran atas */
    display: flex;
    flex-direction: column;
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
    transition: all 0.2s ease-in-out;
}

.invest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* ==============================
   INVEST LIST
   ============================== */
.invest-list {
    display: flex;
    flex-direction: column;
    gap: 8px; /* sedikit lebih besar */
    font-size: 13px;
    margin-top: 8px;
}

.invest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.invest-row span {
    color: var(--gray);
    display: flex;
    align-items: center;
}

.invest-row i {
    margin-right: 6px;
    color: var(--primary);
}

/* ==============================
   BADGE & ICONS
   ============================== */
.invest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.invest-head h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.invest-head .badge {
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
}

/* ==============================
   BUTTON
   ============================== */
.invest-card .btn-primary {
    margin-top: 12px;
    width: 100%;
    border-radius: 14px;
}



/* ==============================
   BOTTOM NAV
   ============================== */

.bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    transform:none;
    width:100%;
    height:78px;
    background:var(--glass);
    backdrop-filter:blur(12px);
    display:flex;
    justify-content:space-around;
    align-items:center;
    border-top:1px solid #e5e7eb;
    z-index:99;
}

.bottom-nav a{
    text-align:center;
    color:var(--gray);
    font-size:11px;
    text-decoration:none;
}

.bottom-nav a i{
    display:block;
    font-size:22px;
    margin-bottom:4px;
}

.bottom-nav a.active{
    color:var(--primary);
}
/*Banks*/
.provider-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-top:12px;
}

.provider-item{
    background:#f1f5f9;
    border-radius:14px;
    padding:14px 8px;
    text-align:center;
    font-size:11px;
    cursor:pointer;
    transition:.2s;
}

.provider-item:hover{
    background:#e0e7ff;
}

.provider-item i{
    font-size:22px;
    color:var(--primary);
    display:block;
    margin-bottom:6px;
}
/* ==============================
   PROFILE PAGE ONLY
   ============================== */

.profile-page{
    margin:0 auto;
    padding:24px 18px 100px;
}

.profile-header{
    text-align:center;
    margin-top:20px;
    margin-bottom:24px;
}

.profile-header .avatar{
    width:110px;
    height:110px;
    border-radius:50%;
    background:linear-gradient(135deg,#dbeafe,#bfdbfe);
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 12px;
    box-shadow:0 18px 35px rgba(37,99,235,.35);
}

.profile-header .avatar i{
    font-size:52px;
    color:#2563eb;
}

.profile-header h2{
    font-weight:700;
}

.profile-header small{
    color:#64748b;
}

/* INFO CARD */

.profile-info{
    background:#fff;
    border-radius:22px;
    box-shadow:0 12px 30px rgba(15,23,42,.12);
    padding:20px;
    margin-bottom:18px;
}

.profile-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 0;
    border-bottom:1px solid #e5e7eb;
    font-size:14px;
}

.profile-row:last-child{
    border:none;
}

.profile-row span{
    color:#64748b;
}

/* BALANCE CARD */

.profile-balance{
    background:linear-gradient(135deg,#2563eb,#1e40af);
    color:#fff;
    border-radius:22px;
    padding:20px;
    box-shadow:0 18px 40px rgba(37,99,235,.4);
    margin-bottom:18px;
}

.profile-balance-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.profile-balance-box{
    background:rgba(255,255,255,.18);
    border-radius:16px;
    padding:16px;
}

.profile-balance-box small{
    font-size:11px;
    opacity:.8;
}

.profile-balance-box h2{
    font-size:20px;
    margin-top:6px;
}

/* PASSWORD */

.profile-password{
    background:#fff;
    border-radius:22px;
    box-shadow:0 12px 30px rgba(15,23,42,.12);
    padding:20px;
}

.profile-password h3{
    font-size:15px;
    margin-bottom:12px;
}

.profile-password input{
    width:100%;
    padding:14px;
    border-radius:14px;
    border:1px solid #e5e7eb;
    margin-bottom:12px;
    font-size:14px;
}

.profile-password input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.2);
    outline:none;
}

.profile-password button{
    width:100%;
    padding:14px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,#2563eb,#1e40af);
    color:#fff;
    font-weight:600;
}
.history-switch{
    background:#e5e7eb;
    border-radius:999px;
    padding:4px;
    display:flex;
    width:100%;
}

.history-switch button{
    flex:1;
    border:none;
    background:transparent;
    padding:10px 0;
    border-radius:999px;
    font-weight:600;
    font-size:13px;
    color:#64748b;
    cursor:pointer;
}

.history-switch button.active{
    background:#054ffb;
    color:#ffffff;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
}
/* ==============================
   INVESTMENT GRID 2xN
   ============================== */

.invest-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 kolom */
    gap: 16px; /* jarak antar card */
    margin-top: 12px;
}

.invest-card {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.invest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.invest-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    margin-top: 10px;
}

.invest-row {
    display: flex;
    justify-content: space-between;
}

.invest-row span {
    color: var(--gray);
}

.invest-row strong {
    font-weight: 600;
}

/* Progress bar */
.invest-progress {
    margin-top: 10px;
    height: 8px;
    border-radius: 10px;
    background: #e5e7eb;
    overflow: hidden;
}

.invest-progress div {
    height: 100%;
    background: var(--primary);
}
/*withdraw*/

.form-group{margin-bottom:15px}
.form-control{width:100%;padding:12px;border-radius:12px;border:1px solid #ddd}
.btn-primary{width:100%;padding:14px;border-radius:14px;font-weight:600}
.withdraw-item{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #eee}
.withdraw-item small{color:#888}
.status-pending{color:orange;font-weight:600}
.status-success{color:green;font-weight:600}
.status-rejected{color:red;font-weight:600}

/*deposit*/

.deposit-container {
    max-width: 500px;
    margin: 50px auto;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.deposit-container h1 {
    text-align: center;
    color: #2f3640;
}

.deposit-container p {
    text-align: center;
    margin-bottom: 20px;
    color: #718093;
}

.deposit-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.deposit-form label {
    font-weight: bold;
    color: #2f3640;
}

.deposit-form input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #dcdde1;
    font-size: 16px;
}

.deposit-form button {
    padding: 12px;
    background-color: #00a8ff;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.deposit-form button:hover {
    background-color: #0097e6;
}

.message {
    margin-top: 20px;
    padding: 15px;
    background-color: #f1c40f;
    border-radius: 8px;
    color: #2f3640;
    text-align: center;
    font-weight: bold;
}

.qr-section {
    text-align: center;
    margin-top: 20px;
}

.qr-section .qr-code {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
}

.qr-section a {
    color: #00a8ff;
    text-decoration: none;
    word-break: break-all;
}

.qr-section a:hover {
    text-decoration: underline;
}

.security-note {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #718093;
}
/*notifi login*/
/* Popup notifikasi sukses */
.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideIn 0.5s ease-out;
}

.popup-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.popup-content i {
    font-size: 24px;
}

#popup-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    margin-left: auto;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
/* Referral input */
#referral-link {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#referral-link:focus {
    border-color: #4f46e5; /* warna fokus biru ungu */
    box-shadow: 0 0 5px rgba(79, 70, 229, 0.3);
    background-color: #fff;
}
#copy-referral {
    background-color: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

#copy-referral:hover {
    background-color: #4338ca;
}
