
:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --danger: #f72585;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7ff;
    color: var(--dark);
}

/* Premium Profile Layout */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    position: relative;
}

/* Profile Header */
.profile-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--danger);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Sidebar */
.profile-sidebar {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: fit-content;
  flex-direction: column;
  justify-content: center;
  margin-top: 3rem;
}

.profile-info {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--light);
    box-shadow: 0 4px 15px rgba(67,97,238,0.15);
}

.user-id {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Balance Cards */
.balance-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(67,97,238,0.3);
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.action-btn {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--light);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67,97,238,0.2);
}

/* Main Content */
.profile-main {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 3rem;
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(67,97,238,0.1);
}

.action-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Transaction History */
.transaction-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.transaction-table th,
.transaction-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.transaction-table th {
    color: var(--gray);
    font-weight: 500;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    display: none;
    z-index: 1000;
}

.menu-item {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-item:hover {
    background: var(--light);
    color: var(--primary);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .profile-sidebar {
        margin-top: 4rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}

.modal-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.modal-submit-btn {
    background: black;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.3s ease;
}

.modal-submit-btn:hover {
    opacity: 0.9;
}
.notification-container {
position: fixed;
top: 20px;
right: 20px;
z-index: 2000;
max-width: 300px;
}

.notification {
padding: 1rem 1.5rem;
border-radius: 8px;
color: white;
margin-bottom: 1rem;
position: relative;
transform: translateX(150%);
animation: slideIn 0.3s forwards;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.notification.success {
background: #4CAF50; /* Green color */
}

.notification.error {
background: #f44336; /* Red color */
}

@keyframes slideIn {
to { transform: translateX(0); }
}

.notification-progress {
position: absolute;
bottom: 0;
left: 0;
height: 4px;
background: rgba(255,255,255,0.5);
width: 100%;
animation: progress 5s linear forwards;
}

@keyframes progress {
from { width: 100%; }
to { width: 0%; }
}

/* Notification Styles */
.notification-container {
position: fixed;
top: 20px;
right: 20px;
z-index: 2000;
max-width: 300px;
}

.notification {
padding: 1rem;
border-radius: 8px;
color: white;
margin-bottom: 1rem;
position: relative;
transform: translateX(150%);
animation: slideIn 0.3s forwards;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
overflow: hidden;
}

.notification.success {
background: #4CAF50;
}

.notification.error {
background: #f44336;
}

.notification.info {
background: #2196F3;
}

.notification-content {
display: flex;
align-items: center;
gap: 0.8rem;
}

.notification i {
font-size: 1.2rem;
}

.notification-progress {
position: absolute;
bottom: 0;
left: 0;
height: 4px;
background: rgba(255,255,255,0.5);
width: 100%;
animation: progress 4.5s linear forwards;
}

.fade-out {
opacity: 0;
transition: opacity 0.3s ease;
}

@keyframes slideIn {
to { transform: translateX(0); }
}

@keyframes progress {
from { width: 100%; }
to { width: 0%; }
}

/* Loading spinner for submit button */
.fa-spinner {
margin-right: 8px;
}
/* profile.css - Unified Theme */
:root {
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-500: #6c757d;
    --green: #10b981;
    --red: #ef4444;
  }
  
  /* Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
  }
  
  body {
    background: var(--gray-100);
    color: var(--black);
  }
  
  /* Profile Container */
  .profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
  }
  
  /* Profile Sidebar */
  .profile-info {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--gray-200);
  }
  
  .user-id {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  /* Balance Cards */
  .balance-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
  
  .balance-label {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .balance-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--black);
  }
  
  /* Action Buttons */
  .action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
  }
  
  .action-btn {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    color: var(--black);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .action-btn:hover {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
  }
  
  /* Main Content */
  .profile-main {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
  }
  
  /* Header Icons in Main Content */
  .profile-header-icons {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1.5rem;
    z-index: 100;
  }
  
  .icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray-500);
    cursor: pointer;
    position: relative;
  }
  
  .notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--red);
    color: var(--white);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Context Menu */
  .context-menu {
    position: absolute;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    display: none;
    z-index: 1000;
  }
  
  .menu-item {
    padding: 0.8rem 1.5rem;
    color: var(--black);
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .menu-item:hover {
    background: var(--gray-100);
  }
  
  /* Quick Actions Grid */
  .quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .action-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  
  .action-card:hover {
    border-color: var(--black);
    transform: translateY(-2px);
  }
  
  .action-icon {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 1rem;
  }
  
  /* Transaction Table */
  .transaction-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
  }
  
  .transaction-table th,
  .transaction-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
  }
  
  .transaction-table th {
    color: var(--gray-500);
    font-weight: 600;
  }
  
  .positive { color: var(--green); }
  .negative { color: var(--red); }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .profile-container {
      grid-template-columns: 1fr;
      padding: 1rem;
    }
  
    .profile-sidebar {
      position: static;
    }
  
    .action-buttons {
      grid-template-columns: 1fr;
    }
  
    .profile-header-icons {
      position: static;
      justify-content: flex-end;
      margin-bottom: 1rem;
    }
  }

  .profile-main-header {
    display: flex
;
    justify-content: space-between;
    align-items: center;
}
/* ===== Transaction Cards ===== */
.transaction-cards {
  gap: 1rem;
  margin-top: 1.5rem;
}

.transaction-card {
  background: var(--light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light-gray);
}

.asset-symbol {
  font-weight: 600;
  color: var(--primary);
}

.asset-change {
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}

.positive { 
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.card-body {
  display: grid;
  gap: 1rem;
}

.asset-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asset-name {
  font-weight: 500;
  color: var(--dark);
}

.asset-quantity {
  color: var(--gray);
  font-size: 0.9rem;
}

.asset-pricing {
  display: grid;
  gap: 0.75rem;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-item span:first-child {
  color: var(--gray);
}

/* Transaction Cards - Always Visible */
.transaction-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.transaction-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.transaction-card:hover {
  transform: translateY(-3px);
}

/* ===== Tabs Styling ===== */
.tabs-container {
  margin-top: 3rem;
}

.tabs-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--light-gray);
}

.tab-btn {
  padding: 0.75rem 2rem;
  border: none;
  background: none;
  color: var(--gray);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
}


.tab-btn.active {
  background: linear-gradient(135deg, #2d2d2e, #020113);
  color: white;
}

.tab-btn:not(.active):hover {
  color: #2d2d2e;
  background: rgba(67, 97, 238, 0.1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Expand/Collapse Styles */
.card-header {
  position: relative;
  padding-right: 2.5rem;
  cursor: pointer;
}

.expand-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.expand-icon.active {
  transform: translateY(-50%) rotate(180deg);
}

.basic-info {
  display: grid;
  gap: 1rem;
}

.advanced-details {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding-top: 0;
}

.advanced-details.active {
  max-height: 500px;
}

.advanced-details .price-item {
  margin: 0.8rem 0;
  padding: 0.5rem 0;
  border-top: 1px solid var(--light-gray);
}

.price-item span:first-child {
  min-width: 160px;
  display: inline-block;
  color: var(--gray);
}

.price-item span:last-child {
  font-weight: 500;
}

/* Expand Control Styling */
.expand-control {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--gray);
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.expand-control:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.expand-control span {
  font-size: 0.9em;
  font-weight: 500;
}

.transaction-card {
  position: relative;
  padding-bottom: 3rem; /* Space for expand control */
}

.fa-chevron-down {
  font-size: 0.8em;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-icon.active {
  transform: rotate(180deg);
}


/* VIP Status Styles */
.vip-status {
  background: linear-gradient(135deg, #2d2d2e, #020113);
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1rem 0;
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.vip-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.vip-badge i {
  color: #FFD700;
  font-size: 1.6rem;
}

.vip-progress {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.8rem 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.vip-next {
  font-size: 0.85rem;
  opacity: 0.8;
  text-align: center;
}