/* ================================================================ *\
	Portfolio Main Styles - Unified Layout Design
\* ================================================================ */

/* ================================================================ *\
	Unified Portfolio Layout - Integrated Hero + Navigation
\* ================================================================ */

/* Portfolio Unified Section - Now inside features-container */
.cursor-features {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.cursor-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.cursor-features > * {
  position: relative;
  z-index: 1;
}

.portfolio-unified {
  width: 100%;
  position: relative;
}

/* Portfolio Header Unified */
.portfolio-header-unified {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(118, 255, 212, 0.1);
  margin-bottom: 1.5rem;
}

.portfolio-title-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.portfolio-title-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portfolio-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portfolio-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portfolio-title .title-primary {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #76ffd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.portfolio-title .title-meta {
  font-size: 0.875rem;
  color: #a0aec0;
  font-weight: 500;
  line-height: 1.4;
}

.portfolio-title-actions {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.portfolio-title-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 400;
  width: 70px;
  justify-content: center;
  box-sizing: border-box;
}

.portfolio-title-btn:hover {
  background: rgba(118, 255, 212, 0.1);
  color: #76ffd4;
  text-decoration: none;
  border-color: rgba(118, 255, 212, 0.3);
  transform: none;
  box-shadow: none;
}

.portfolio-title-btn.edit-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-title-btn.edit-btn:hover {
  background: rgba(118, 255, 212, 0.1);
  color: #76ffd4;
  border-color: rgba(118, 255, 212, 0.3);
}

.portfolio-title-btn.share-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-title-btn.share-btn:hover {
  background: rgba(118, 255, 212, 0.1);
  color: #76ffd4;
  border-color: rgba(118, 255, 212, 0.3);
}

.portfolio-cta-inline {
  margin-top: 1rem;
}

.cta-button-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: var(--bg-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: none;
}

.cta-button-inline:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(118, 255, 212, 0.3);
  text-decoration: none;
  color: var(--bg-dark);
}

/* Portfolio Stats Inline - Modern & Compact Design */
.portfolio-stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: start;
}

.stat-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.stat-group:not(:last-child) {
  margin-right: 2rem;
}

.stat-group.performance {
  gap: 1rem;
}

.stat-group.info {
  gap: 0.75rem;
}

.stat-group.risk {
  gap: 0.75rem;
}

.stat-group.activity {
  margin-left: auto;
  gap: 0.75rem;
}

.stat-item-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(118, 255, 212, 0.12);
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-width: 85px;
  height: 55px;
  overflow: hidden;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
}

/* Handle stat items without labels */
.stat-item-inline:not(:has(.stat-label-inline)) {
  justify-content: center;
  height: 40px;
  gap: 0;
}

.stat-item-inline:not(:has(.stat-label-inline)) .stat-value-inline {
  font-size: 0.875rem;
  margin: 0;
}

.stat-item-inline.featured {
  background: linear-gradient(135deg, rgba(118, 255, 212, 0.12) 0%, rgba(99, 198, 255, 0.08) 100%);
  border-color: rgba(118, 255, 212, 0.3);
  box-shadow: 0 4px 20px rgba(118, 255, 212, 0.1);
}

.stat-item-inline.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #76ffd4, #63c6ff);
  border-radius: 10px 10px 0 0;
}

.stat-item-inline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(118, 255, 212, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(118, 255, 212, 0.1);
}

.stat-value-inline {
  font-size: 1rem;
  font-weight: 600;
  color: #76ffd4;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.stat-item-inline.featured .stat-value-inline {
  font-weight: 700;
  background: linear-gradient(135deg, #76ffd4 0%, #63c6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label-inline {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.stat-trend-inline {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(118, 255, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: #76ffd4;
}

.stat-trend-inline i {
  font-size: 0.5rem;
}

/* Responsive Design for Portfolio Stats */
@media (max-width: 768px) {
  .portfolio-stats-inline {
    gap: 0.5rem;
  }
  
  .stat-item-inline {
    min-width: 75px;
    height: 50px;
    padding: 0.5rem 0.625rem;
  }
  
  .stat-value-inline {
    font-size: 0.875rem;
  }
  
  .stat-label-inline {
    font-size: 0.625rem;
  }
  
  .stat-group.info {
    margin-left: 0;
  }
}

.stat-trend-inline {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(118, 255, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: #76ffd4;
}

.stat-item-inline:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(118, 255, 212, 0.15);
  border-color: rgba(118, 255, 212, 0.3);
}

/* Unified Layout Mobile Responsive */
@media (max-width: 768px) {
  /* Cursor Features Mobile */
  .cursor-features {
    padding: 0;
  }
  
  .features-container {
    padding: 0 1rem;
  }
  
  /* Portfolio Unified Mobile Structure */
  .portfolio-unified {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .portfolio-header-unified {
    padding: 1rem 0;
    margin-bottom: 0;
  }
  
  .portfolio-title-section {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .portfolio-title-content {
    text-align: center;
    width: 100%;
  }
  
  .portfolio-title .title-primary {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  
  .portfolio-title .title-meta {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  
  .portfolio-title-actions {
    justify-content: center;
    margin-top: 1rem;
    gap: 0.5rem;
  }
  
  .portfolio-title-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .portfolio-title-btn .btn-text {
    display: none;
  }
  
  .portfolio-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  
  .portfolio-action-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem;
    font-size: 0.875rem;
  }
  
  /* Mobile Stats Layout */
  .portfolio-stats-inline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .stat-group {
    width: 100%;
    justify-content: center;
  }
  
  .stat-group.performance {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
  
  .stat-group.secondary {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 100%;
    width: 100%;
  }
  
  .stat-item-inline {
    padding: 0.4rem 0.5rem;
    width: 70px;
    height: 55px;
    max-width: 70px;
    flex: none;
    box-sizing: border-box;
  }
  
  /* Performance group items need to be even smaller to fit 4 in a row */
  .stat-group.performance .stat-item-inline {
    padding: 0.3rem 0.4rem;
    width: 65px;
    max-width: 65px;
  }
  
  .stat-item-inline.primary,
  .stat-item-inline.secondary {
    padding: 0.75rem 1rem;
    width: 100px;
    height: 65px;
    max-width: 100px;
    flex: none;
    box-sizing: border-box;
  }
  
  .stat-value-inline {
    font-size: 1rem;
  }
  
  .stat-group.performance .stat-value-inline {
    font-size: 0.875rem;
  }
  
  .stat-group.performance .stat-label-inline {
    font-size: 0.6rem;
    line-height: 1.1;
  }
  
  .stat-item-inline.primary .stat-value-inline {
    font-size: 1.25rem;
  }
  
  .stat-item-inline.secondary .stat-value-inline {
    font-size: 1.125rem;
  }
  
  .stat-item-inline.compact .stat-value-inline {
    font-size: 0.875rem;
  }
  
  .stat-label-inline {
    font-size: 0.625rem;
  }
  
  .stat-item-inline.compact .stat-label-inline {
    font-size: 0.5rem;
  }
  
  /* Mobile Tabs */
  .portfolio-tabs-container {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .portfolio-tabs-container::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 480px) {
  .portfolio-header-unified {
    padding: 0.75rem 0;
    margin-bottom: 0.75rem;
  }
  
  .portfolio-title .title-primary {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
  }
  
  .portfolio-title .title-meta {
    font-size: 0.6875rem;
  }
  
  .stat-group.secondary {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .stat-item-inline {
    padding: 0.375rem 0.4rem;
    min-width: 58px;
  }
  
  /* Performance group items on smallest screens */
  .stat-group.performance .stat-item-inline {
    padding: 0.25rem 0.3rem;
    min-width: 55px;
    width: 55px;
    max-width: 55px;
    height: 50px;
  }
  
  .stat-group.performance .stat-value-inline {
    font-size: 0.8rem;
  }
  
  .stat-group.performance .stat-label-inline {
    font-size: 0.55rem;
    line-height: 1.0;
  }
  
  .stat-item-inline.primary,
  .stat-item-inline.secondary {
    padding: 0.5rem 0.75rem;
    min-width: 90px;
  }
  
  .stat-value-inline {
    font-size: 0.875rem;
  }
  
  .stat-item-inline.primary .stat-value-inline {
    font-size: 1.125rem;
  }
  
  .stat-item-inline.secondary .stat-value-inline {
    font-size: 1rem;
  }
  
  .stat-item-inline.compact .stat-value-inline {
    font-size: 0.75rem;
  }
  
  .portfolio-title-actions {
    gap: 0.375rem;
  }
  
  .portfolio-title-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    gap: 0.3rem;
  }
  
  .cta-button-inline {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
  }
}

/* ================================================================ *\
	Portfolio Main Styles - Match Index Page Width & Fix UI Issues
\* ================================================================ */



.features-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

/* Portfolio Content Display Rules - Content Section System */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* Feed is shown by default when no other tab is active */
.content-section#feed:not(.active) {
  display: none;
}

/* Ensure feed section is properly displayed when active */
.content-section#feed.active {
  display: block;
}

/* Fix for table headers displaying correctly */
.content-section .modern-table {
  display: table !important;
  width: 100% !important;
}

.content-section .modern-table thead {
  display: table-header-group !important;
}

.content-section .modern-table tbody {
  display: table-row-group !important;
}

.content-section .modern-table tr {
  display: table-row !important;
}

.content-section .modern-table th,
.content-section .modern-table td {
  display: table-cell !important;
}

.content-section .sortable-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Additional portfolio sections */
.portfolio-additional-content {
  display: none;
}

.portfolio-additional-content.active {
  display: block;
}

/* Dashboard sub-tabs */
.dashboard-tab-content {
  display: none;
}

.dashboard-tab-content.active {
  display: block;
}

.content-card {
  margin-top: 0 !important;
}

.content-card + .content-card {
  margin-top: 1.5rem !important;
}

/* ================================================================ *\
	Dashboard Tabs & Table Styles - Fix UI Issues
\* ================================================================ */

/* Dashboard Sub-tabs Styling */
.dashboard-tabs {
  display: flex !important;
  gap: 0.5rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;

}

.dashboard-tab-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  min-width: 120px !important;
  justify-content: center !important;
}

.dashboard-tab-btn:hover {
  background: rgba(118, 255, 212, 0.1) !important;
  border-color: rgba(118, 255, 212, 0.3) !important;
  color: #76ffd4 !important;
  transform: translateY(-1px) !important;
  text-decoration: none !important;
}

.dashboard-tab-btn.active {
  background: linear-gradient(135deg, #76ffd4, #63c6ff) !important;
  border-color: #76ffd4 !important;
  color: #000000 !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(118, 255, 212, 0.3) !important;
}

.dashboard-tab-btn i {
  font-size: 1rem !important;
}

/* Table Container & Controls */
.table-container {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  margin-bottom: 2rem !important;
  backdrop-filter: blur(10px) !important;
}

.table-controls {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 1.5rem !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
}

.table-search {
  position: relative !important;
  flex: 1 !important;
  max-width: 300px !important;
}

.search-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  padding: 0.5rem 2.5rem 0.5rem 1rem !important;
  color: #ffffff !important;
  font-size: 0.9rem !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
}

.search-input:focus {
  outline: none !important;
  border-color: #76ffd4 !important;
  box-shadow: 0 0 0 2px rgba(118, 255, 212, 0.2) !important;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.search-icon {
  position: absolute !important;
  right: 0.75rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.9rem !important;
  pointer-events: none !important;
}

.clear-filters-btn {
  background: rgba(220, 53, 69, 0.1) !important;
  border: 1px solid rgba(220, 53, 69, 0.3) !important;
  border-radius: 6px !important;
  padding: 0.5rem 1rem !important;
  color: #dc3545 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.clear-filters-btn:hover {
  background: rgba(220, 53, 69, 0.2) !important;
  border-color: #dc3545 !important;
  transform: translateY(-1px) !important;
}

/* Modern Table Styling */
.table-wrapper {
  overflow-x: auto !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.modern-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 0.9rem !important;
}

.modern-table thead {
  background: rgba(255, 255, 255, 0.05) !important;
  border-bottom: 2px solid rgba(118, 255, 212, 0.2) !important;
}

.modern-table th {
  padding: 1rem 0.75rem !important;
  text-align: left !important;
  color: #76ffd4 !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: relative !important;
}

.sortable-header {
  cursor: pointer !important;
  user-select: none !important;
}

.sortable-header:hover {
  background: rgba(118, 255, 212, 0.05) !important;
}

.sort-indicators {
  display: inline-block !important;
  margin-left: 0.5rem !important;
}

.sort-icon {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.75rem !important;
  transition: all 0.3s ease !important;
}

.sortable-header:hover .sort-icon {
  color: #76ffd4 !important;
}

.modern-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s ease !important;
}

.modern-table tbody tr:hover {
  background: rgba(118, 255, 212, 0.03) !important;
}

.modern-table td {
  padding: 0.875rem 0.75rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.85rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Loading Container */
.loading-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3rem 1rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem !important;
}

.loading-spinner {
  width: 32px !important;
  height: 32px !important;
  border: 3px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 3px solid #76ffd4 !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
  margin-bottom: 1rem !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dashboard Content Areas */
.dashboard-container {
  margin-top: 1rem !important;
}

.dashboard-content {
  margin-top: 1.5rem !important;
}

.dashboard-tab-content {
  display: none !important;
}

.dashboard-tab-content.active {
  display: block !important;
}

.dashboard-section {
  margin-bottom: 2rem !important;
}

.dashboard-header {
  text-align: center !important;
  margin-bottom: 2rem !important;

}

.dashboard-title {
  color: #ffffff !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

.dashboard-subtitle {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .dashboard-tabs {
    gap: 0.25rem !important;
  }
  
  .dashboard-tab-btn {
    min-width: 100px !important;
    padding: 0.6rem 0.8rem !important;
    font-size: 0.85rem !important;
  }
  
  .table-controls {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .table-search {
    max-width: none !important;
  }
}

@media (max-width: 768px) {
  .dashboard-tab-btn {
    min-width: 80px !important;
    padding: 0.5rem 0.6rem !important;
    font-size: 0.8rem !important;
  }
  
  .modern-table th,
  .modern-table td {
    padding: 0.5rem 0.375rem !important;
    font-size: 0.8rem !important;
  }
  
  .table-container {
    padding: 1rem !important;
  }
}

/* CTA Content Adjustments */
.hero-cta.large {
  min-width: 280px;
  padding: 1.2rem 1.5rem;
}

.cta-content {
  transform: scale(0.95);
  transform-origin: left center;
}

.cta-text {
  font-size: 1rem;
}

.cta-subtitle {
  font-size: 0.8rem;
}

/* CTA Button - Normal size like btn-primary */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #76ffd4 0%, #63c6ff 100%);
  color: #000000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(118, 255, 212, 0.4);
  text-decoration: none;
  color: #000000;
}

.cta-button i {
  font-size: 0.875rem;
}

/* Compact Stat Items */
.stat-item.compact {
  padding: 1rem 0.75rem;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(118, 255, 212, 0.15);
}

.stat-item.compact .stat-value {
  font-size: 1rem;
}

.stat-item.compact .stat-label {
  font-size: 0.75rem;
}

/* Portfolio Tab Buttons */
.portfolio-tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
  justify-content: center;
}

.portfolio-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.portfolio-tab-btn:hover {
  background: rgba(118, 255, 212, 0.1);
  border-color: rgba(118, 255, 212, 0.3);
  color: #76ffd4;
  transform: translateY(-1px);
}

.portfolio-tab-btn.active {
  background: linear-gradient(135deg, #76ffd4, #63c6ff);
  border-color: #76ffd4;
  color: #000000;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(118, 255, 212, 0.3);
}

.portfolio-tab-btn i {
  font-size: 0.875rem;
}

.portfolio-tab-btn span {
  font-size: 0.875rem;
}

.portfolio-tab-btn .tab-count {
  background: rgba(118, 255, 212, 0.2);
  color: #76ffd4;
  border-radius: 12px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
}

.portfolio-tab-btn.active .tab-count {
  background: rgba(0, 0, 0, 0.2);
  color: #000000;
}

/* Portfolio Navigation Header */
.portfolio-navigation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.portfolio-actions {
  display: flex;
  gap: 0.5rem;
}

.portfolio-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
}

.portfolio-action-btn:hover {
  background: rgba(118, 255, 212, 0.1);
  border-color: rgba(118, 255, 212, 0.3);
  color: #76ffd4;
  transform: translateY(-1px);
  text-decoration: none;
}

.portfolio-action-btn i {
  font-size: 1rem;
}

.portfolio-action-btn.like-btn.liked {
  background: rgba(255, 107, 157, 0.1);
  border-color: rgba(255, 107, 157, 0.3);
  color: #ff6b9d;
}

.portfolio-action-btn.like-btn:hover {
  background: rgba(255, 107, 157, 0.1);
  border-color: rgba(255, 107, 157, 0.3);
  color: #ff6b9d;
}

.portfolio-action-btn.follow-btn.following {
  background: rgba(118, 255, 212, 0.1);
  border-color: rgba(118, 255, 212, 0.3);
  color: #76ffd4;
}

.portfolio-action-btn.follow-btn:hover {
  background: rgba(118, 255, 212, 0.1);
  border-color: rgba(118, 255, 212, 0.3);
  color: #76ffd4;
}

.portfolio-action-btn span {
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

/* Specific styling for portfolio-follow-btn */
.portfolio-follow-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
}

.portfolio-follow-btn:hover {
  background: rgba(118, 255, 212, 0.1);
  border-color: rgba(118, 255, 212, 0.3);
  color: #76ffd4;
  transform: translateY(-1px);
  text-decoration: none;
}

.portfolio-follow-btn.following {
  background: rgba(118, 255, 212, 0.1);
  border-color: rgba(118, 255, 212, 0.3);
  color: #76ffd4;
}

.portfolio-follow-btn i {
  font-size: 1rem;
}

.portfolio-follow-btn span {
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

/* Portfolio Content */
.portfolio-content-section {
}

.content-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Account Info Grid */
.account-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.account-details {
  margin-top: 1rem;
}

.info-row, .metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child, .metric-item:last-child {
  border-bottom: none;
}

.label, .metric-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.value, .metric-value {
  color: #ffffff;
  font-weight: 600;
}

.value.status-active {
  color: #76ffd4;
}

.value.status-inactive {
  color: #ff6b9d;
}

.metric-value {
  color: #76ffd4;
}

/* Access Restricted */
.access-restricted {
  text-align: center;
  padding: 2rem;
}

/* Portfolio Back Section */
.portfolio-back-section {
  text-align: center;
  margin-top: 2rem;
}

/* Hero Benefits */
.hero-benefits {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.benefit-item i {
  color: #76ffd4;
}

/* Featured Hero Stats */
.hero-featured-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.featured-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(118, 255, 212, 0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  text-align: center;
  position: relative;
  min-width: 120px;
  transition: all 0.3s ease;
}

.featured-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(118, 255, 212, 0.15);
  border-color: rgba(118, 255, 212, 0.4);
}

.featured-stat.primary {
  background: linear-gradient(135deg, rgba(118, 255, 212, 0.15) 0%, rgba(99, 198, 255, 0.1) 100%);
  border-color: rgba(118, 255, 212, 0.3);
}

.featured-stat-value {
  font-weight: 800;
  color: #76ffd4;
  display: block;
  margin-bottom: 0.125rem;
  line-height: 1;
}

.featured-stat.primary .featured-stat-value {
  font-size: 1.75rem;
  background: linear-gradient(135deg, #76ffd4 0%, #63c6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.featured-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-trend {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(118, 255, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #76ffd4;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
  margin: 0;
  justify-items: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.5rem 0.375rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(118, 255, 212, 0.1);
  transition: all 0.3s ease;
  min-width: 80px;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #76ffd4;
  transition: all 0.3s ease;
  text-align: center;
}

.stat-value.positive {
  color: #6dff6d;
}

.stat-value.negative {
  color: #ff7c7c;
}

.stat-label {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  font-weight: 500;
}


  
  .hero-featured-stats {
    gap: 0.75rem;
    margin: 0.25rem 0;
  }
  
  .featured-stat {
    min-width: 110px;
    padding: 0.625rem 0.875rem;
  }
  
  .featured-stat-value {
    font-size: 1.25rem;
  }
  
  .featured-stat.primary .featured-stat-value {
    font-size: 1.5rem;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 350px;
  }
  
  .stat-item,
  .stat-item.compact {
    min-width: 70px;
    padding: 0.375rem 0.25rem;
  }
  
  .stat-value {
    font-size: 0.875rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}


@media (max-width: 480px) {
  .cursor-hero {
    min-height: 18vh;
    padding: 0.75rem 0 0.5rem;
  }
  
  .cursor-hero .hero-title {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }
  
  .cursor-hero .hero-description {
    font-size: 0.6875rem;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 280px;
    gap: 0.375rem;
  }
  
  .hero-featured-stats {
    gap: 0.5rem;
    flex-direction: row;
    align-items: center;
    margin: 0.25rem 0;
  }
  
  .featured-stat {
    min-width: 100px;
    padding: 0.5rem 0.75rem;
  }
  
  .featured-stat-value {
    font-size: 1rem;
  }
  
  .featured-stat.primary .featured-stat-value {
    font-size: 1.25rem;
  }
  
  .stat-item {
    padding: 0.25rem 0.125rem;
    min-width: 60px;
  }
  
  .stat-value {
    font-size: 0.75rem;
  }
  
  .stat-label {
    font-size: 0.625rem;
  }
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.loading-state i {
  color: #76ffd4;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Transaction Section Styles */
.transactions-container {
  width: 100%;
}

.transactions-header {
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.header-text {
  flex: 1;
}

.transaction-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.summary-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(118, 255, 212, 0.3);
}

.summary-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.summary-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #76ffd4;
}

.transaction-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.transaction-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  flex: 1;
  justify-content: center;
}

.transaction-tab-btn:last-child {
  border-right: none;
}

.transaction-tab-btn:hover {
  color: #76ffd4;
  background: rgba(118, 255, 212, 0.1);
}

.transaction-tab-btn.active {
  color: #76ffd4;
  background: rgba(118, 255, 212, 0.15);
  border-bottom: 2px solid #76ffd4;
}

.transaction-tab-btn i {
  font-size: 0.875rem;
}

.tab-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.transaction-tab-btn.active .tab-count {
  background: rgba(118, 255, 212, 0.3);
  color: #000;
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(118, 255, 212, 0.1);
  border-color: rgba(118, 255, 212, 0.3);
  color: #76ffd4;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Transaction Type Badges */
.transaction-type {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.transaction-type.trade {
  background: rgba(118, 255, 212, 0.2);
  color: #76ffd4;
  border: 1px solid rgba(118, 255, 212, 0.3);
}

.transaction-type.deposit {
  background: rgba(109, 255, 109, 0.2);
  color: #6dff6d;
  border: 1px solid rgba(109, 255, 109, 0.3);
}

.transaction-type.withdrawal {
  background: rgba(255, 124, 124, 0.2);
  color: #ff7c7c;
  border: 1px solid rgba(255, 124, 124, 0.3);
}

.transaction-type.fee {
  background: rgba(255, 217, 61, 0.2);
  color: #ffd93d;
  border: 1px solid rgba(255, 217, 61, 0.3);
}

.transaction-status {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.transaction-status.confirmed {
  background: rgba(109, 255, 109, 0.2);
  color: #6dff6d;
  border: 1px solid rgba(109, 255, 109, 0.3);
}

.transaction-status.pending {
  background: rgba(255, 217, 61, 0.2);
  color: #ffd93d;
  border: 1px solid rgba(255, 217, 61, 0.3);
}

.transaction-status.failed {
  background: rgba(255, 124, 124, 0.2);
  color: #ff7c7c;
  border: 1px solid rgba(255, 124, 124, 0.3);
}

/* Portfolio Unified Mobile Structure Fixes */
@media (max-width: 768px) {
  /* Main container fixes */
  .cursor-features {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .features-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Portfolio unified structure */
  .portfolio-unified {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  .portfolio-header-unified {
    padding: 1rem 0 !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Title section mobile layout */
  .portfolio-title-section {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    width: 100% !important;
  }
  
  .portfolio-title-content {
    width: 100% !important;
    margin-bottom: 0.5rem !important;
  }
  
  .portfolio-actions {
    width: 100% !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  
  /* Stats section mobile layout */
  .portfolio-stats-inline {
    width: 100% !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-top: 0.5rem !important;
  }
  
  .stat-group {
    gap: 0.5rem !important;
    width: 100% !important;
  }
  
  .stat-group.performance {
    order: 1;
    gap: 0.75rem !important;
  }
  
  .stat-group.info {
    order: 2;
  }
  
  .stat-group.risk {
    order: 3;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  
  .stat-group.activity {
    order: 4;
    margin-left: 0 !important;
    justify-content: center !important;
  }
  
  .stat-item-inline {
    min-width: 70px !important;
    padding: 0.5rem 0.625rem !important;
  }
  
  .stat-value-inline {
    font-size: 0.875rem !important;
  }
  
  .stat-label-inline {
    font-size: 0.5rem !important;
  }
  
  .stat-trend-inline {
    width: 12px !important;
    height: 12px !important;
    top: 0.125rem !important;
    right: 0.125rem !important;
  }
  
  .stat-trend-inline i {
    font-size: 0.375rem !important;
  }
  
  /* Tab container mobile scrolling */
  .portfolio-tabs-container {
    width: 100% !important;
    overflow-x: auto !important;
    padding-bottom: 0.5rem !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
  }
  
  .portfolio-tabs-container::-webkit-scrollbar {
    display: none !important;
  }
  
  .portfolio-tab-btn {
    flex-shrink: 0 !important;
    min-width: auto !important;
    white-space: nowrap !important;
    padding: 0.6rem 0.8rem !important;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile fixes */
  .features-container {
    padding: 0 0.75rem !important;
  }
  
  .portfolio-title .title-primary {
    font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
  }
  
  .portfolio-title .title-meta {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }
  
  .portfolio-actions {
    justify-content: center !important;
  }
  
  .portfolio-action-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0.375rem !important;
  }
  
  .stat-item-inline {
    min-width: 70px !important;
    padding: 0.375rem 0.25rem !important;
  }
  
  .stat-value-inline {
    font-size: 0.75rem !important;
  }
  
  .stat-label-inline {
    font-size: 0.6rem !important;
  }
  
  .portfolio-tab-btn {
    padding: 0.5rem 0.6rem !important;
    font-size: 0.75rem !important;
  }
  
  .portfolio-tab-btn span {
    display: none !important;
  }
  
  .portfolio-tab-btn i {
    font-size: 1rem !important;
    margin: 0 !important;
  }
  
  .portfolio-tab-btn .tab-count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
    font-size: 0.625rem !important;
    border-radius: 8px !important;
  }
}

@media (max-width: 390px) {
  /* iPhone 12 Pro and similar devices */
  .features-container {
    padding: 0 0.5rem !important;
  }
  
  .portfolio-title-section {
    gap: 0.75rem !important;
  }
  
  .stat-group.secondary {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.375rem !important;
    width: 100% !important;
  }
  
  .stat-item-inline {
    min-width: unset !important;
    width: 100% !important;
    padding: 0.375rem 0.125rem !important;
    text-align: center !important;
  }
}

/* Additional Mobile Responsive Styles */
@media (max-width: 768px) {  
  .account-info-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-benefits {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .stat-item {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .content-card {
    padding: 1.5rem;
  }
}

