<!DOCTYPE html>
<html lang="en">
<head> 
  <meta charset="UTF-8"> 
  <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"> 
  <title>{{ config('app.name') }} | Mine</title> 
  
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui@2.8.17/dist/css/layui.css">
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">

  <style>
    :root {
      --accent-black: #1a1a1a;
      --accent-gradient: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
      --bg-light: #eef7ff;
      --text-dark: #1e293b;
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: 'Roboto', sans-serif;
      background-color: var(--bg-light);
      margin: 0; padding: 0;
      padding-bottom: 100px;
      animation: fadeInBody 0.5s ease;
    }

    @keyframes fadeInBody {
      from { opacity: 0; }
      to { opacity: 1; }
    }

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

    @keyframes popIn {
      from { opacity: 0; transform: scale(0.94); }
      to { opacity: 1; transform: scale(1); }
    }

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

    /* ðŸ”¹ Header Section */
    .profile-header {
      padding: 30px 20px;
      display: flex;
      align-items: center;
      gap: 15px;
      animation: slideDown 0.4s ease both;
    }

    .avatar-wrapper {
      width: 65px;
      height: 65px;
      background: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
      position: relative;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .avatar-wrapper:hover {
      transform: scale(1.06);
      box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    }

    .avatar-wrapper img { width: 100px; height: 100px; object-fit: contain; }

    .user-info h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); margin: 0; }
    .user-info p { font-size: 14px; color: #64748b; margin: 4px 0 0; }
    
    .vip-tag {
        background: #fef3c7;
        color: #d97706;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 700;
        margin-top: 5px;
        display: inline-block;
        animation: popIn 0.4s ease 0.3s both;
    }

    /* ðŸ”¹ Balance Dashboard (Matching Image 3 & 4) */
    .dashboard-card {
      margin: 0 15px;
      background: var(--accent-gradient);
      border-radius: 18px;
      padding: 20px;
      color: white;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
      animation: popIn 0.5s ease 0.1s both;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .dashboard-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
    }

    .main-balance { border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 15px; margin-bottom: 15px; }
    .main-balance p { font-size: 13px; opacity: 0.9; margin: 0; }
    .main-balance h2 { font-size: 28px; font-weight: 800; margin: 5px 0 0; }

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

    .stat-item p { font-size: 11px; opacity: 0.85; margin: 0; }
    .stat-item h4 { font-size: 14px; font-weight: 700; margin: 4px 0 0; }

    /* ðŸ”¹ Menu List */
    .menu-container {
      margin: 20px 15px;
      background: #fff;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.03);
      animation: fadeInUp 0.4s ease 0.2s both;
    }

    .menu-item {
      display: flex;
      align-items: center;
      padding: 16px 20px;
      text-decoration: none;
      border-bottom: 1px solid #f8fafc;
      transition: background 0.2s ease, padding-left 0.2s ease;
    }

    .menu-item:hover {
      background: #fafafa;
      padding-left: 24px;
    }

    .menu-item:last-child { border-bottom: none; }
    .menu-item img {
      width: 22px;
      height: 22px;
      margin-right: 15px;
      transition: transform 0.25s ease;
    }
    .menu-item:hover img { transform: scale(1.1); }
    .menu-item span { flex: 1; font-size: 15px; color: #334155; font-weight: 500; }
    .menu-item i { color: #cbd5e1; font-size: 14px; transition: transform 0.25s ease, color 0.25s ease; }
    .menu-item:hover i { transform: translateX(3px); color: var(--accent-black); }

    /* ðŸ”¹ Logout Button */
    .btn-logout {
      margin: 25px 15px;
      display: block;
      text-align: center;
      padding: 14px;
      background: #fff;
      color: #ef4444;
      text-decoration: none;
      border-radius: 12px;
      font-weight: 600;
      font-size: 16px;
      border: 1px solid #fee2e2;
      animation: fadeInUp 0.4s ease 0.3s both;
      transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    }

    .btn-logout:hover {
      background: #fef2f2;
      box-shadow: 0 6px 14px rgba(239,68,68,0.12);
    }

    .btn-logout:active { transform: scale(0.97); }

   
  </style>
</head> 
<body> 

  <div class="profile-header">
    <div class="avatar-wrapper">
        <img src="/rocal/logo.png" alt="Avatar">
    </div>
    <div class="user-info">
        <h3>Account No: {{ auth()->user()->id }}</h3>
        <p>+63 {{ auth()->user()->phone }}</p>
        <div class="vip-tag">VIP MEMBER</div>
    </div>
  </div>

  <div class="dashboard-card">
    <div class="main-balance">
        <p>Withdrawal Balance</p>
        <h2>₱{{ (auth()->user()->balance) }}</h2>
    </div>
    <div class="stats-grid">
    
        <div class="stat-item"><p>Today</p><h4>₱{{ (auth()->user()->today_income ?? 0) }}</h4></div>
        <div class="stat-item"><p>Team</p><h4>₱{{ (auth()->user()->team_income ?? 0) }}</h4></div>
        <div class="stat-item"><p>Total Income</p><h4>₱{{ (auth()->user()->total_income ?? 0) }}</h4></div>
    </div>
  </div>

  <div class="menu-container">
    <a href="/card" class="menu-item">
        <img src="https://img.icons8.com/?size=100&id=0aEdGbZHXkI0&format=png&color=1A1A1A" alt="">
        <span>Withdraw Information</span>
        <i class="layui-icon layui-icon-right"></i>
    </a>
    <a href="/ordered" class="menu-item">
        <img src="https://img.icons8.com/?size=100&id=ounKChUYWi9r&format=png&color=1A1A1A" alt="">
        <span>My Orders</span>
        <i class="layui-icon layui-icon-right"></i>
    </a>
    <a href="/history" class="menu-item">
        <img src="https://img.icons8.com/?size=100&id=ounKChUYWi9r&format=png&color=1A1A1A" alt="">
        <span>Payment History</span>
        <i class="layui-icon layui-icon-right"></i>
    </a>
    
    <a href="/change/password" class="menu-item">
        <img src="https://img.icons8.com/?size=100&id=wOIqJRXQc1Jn&format=png&color=1A1A1A" alt="">
        <span>Reset Password</span>
        <i class="layui-icon layui-icon-right"></i>
    </a>
   
    <a href="https://t.me/RocaluxproInvestmentsite" class="menu-item">
        <img src="https://img.icons8.com/?size=100&id=vBPr6H1m4buw&format=png&color=1A1A1A" alt="">
        <span>Telegram Group</span>
        <i class="layui-icon layui-icon-right"></i>
    </a>
    
    <a href="https://t.me/RocaluxproInvestmentsite" class="menu-item">
        <img src="https://img.icons8.com/?size=100&id=vBPr6H1m4buw&format=png&color=1A1A1A" alt="">
        <span>Customer Support</span>
        <i class="layui-icon layui-icon-right"></i>
    </a>
    
    <a href="/rocal/iqoo.apk" class="menu-item">
        <img src="https://img.icons8.com/?size=100&id=pKIvPVcAOG26&format=png&color=1A1A1A" alt="">
        <span>Download APP</span>
        <i class="layui-icon layui-icon-right"></i>
    </a>
  </div>

  <a href="/logout" class="btn-logout">Sign Out</a>

<style>
  :root {
    --accent-black: #1a1a1a;
    --inactive-color: #94a3b8;
    --nav-bg: rgba(255, 255, 255, 0.95);
  }

  .foot {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px); /* Modern blur effect */
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 9999;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
  }

  .foot ul {
    width: 100%;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: flex-end;
  }

  .foot li {
    flex: 1;
    text-align: center;
    position: relative;
  }

  .foot li a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--inactive-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  /* ðŸ”¹ PRO ICON STYLING */
  .foot li img {
    width: 28px; /* Slightly larger for Pro look */
    height: 28px;
    margin-bottom: 4px;
    filter: grayscale(1) opacity(0.4);
    transition: all 0.4s ease;
  }

  .foot li p {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
  }

  /* ðŸ”¹ ACTIVE STATE: MINE (BLACK PRO) */
  .foot li.cur a {
    color: var(--accent-black);
  }

  .foot li.cur img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25)); /* Subtle dark glow */
    transform: translateY(-5px) scale(1.2); /* Lift effect */
  }

  /* Small indicator dot under active icon */
  .foot li.cur::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-black);
    border-radius: 50%;
  }

  .foot li.cur p {
    font-weight: 800;
  }
</style>

<div class="foot">
  <ul>
    <li>
      <a href="/dashboard">
        <img src="https://cdn-icons-png.flaticon.com/512/1946/1946436.png" alt="Home">
        <p>Home</p>
      </a>
    </li>
    <li>
      <a href="/ordered">
        <img src="https://cdn-icons-png.flaticon.com/512/1170/1170678.png" alt="Order">
        <p>Order</p>
      </a>
    </li>
    <li>
      <a href="/my-team">
        <img src="https://cdn-icons-png.flaticon.com/512/912/912318.png" alt="Team">
        <p>Team</p>
      </a>
    </li>
    <li class="cur">
      <a href="/my-profile">
        <img src="https://cdn-icons-png.flaticon.com/512/1077/1077063.png" alt="Mine">
        <p>Mine</p>
      </a>
    </li>
  </ul>
</div>
  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</body>
</html>
