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

:root {
  --bg-color: #ecf0f3;
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --white: #ffffff;

  /* Neumorphic Shadow Variables */
  --shadow-outer: 8px 8px 16px #a0a0a0, -8px -8px 16px #ffffff;
  --shadow-inner: inset 6px 6px 12px #868686, inset -6px -6px 12px #ffffff;
  --shadow-button: 4px 4px 8px #d1d9e6, -4px -4px 8px #ffffff;
  --shadow-button-active: inset 3px 3px 6px #c8d0e7, inset -3px -3px 6px #ffffff;

  /* Harmonious Palette Highlight Colors */
  --color-cyan: #06b6d4;
  --color-cyan-light: rgba(6, 182, 212, 0.15);
  --color-purple: #8b5cf6;
  --color-purple-light: rgba(139, 92, 246, 0.15);
  --color-gold: #f59e0b;
  --color-gold-light: rgba(245, 158, 11, 0.15);
  --color-green: #10b981;
  --color-green-light: rgba(16, 185, 129, 0.15);
  --color-red: #ef4444;

  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 12px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  outline: none;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Navigation / Header (Based on Image 1 Header layout) */
header {
  padding: 1.5rem;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.header-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-md);
  background-color: var(--bg-color);
  box-shadow: var(--shadow-outer);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.header-btn:active {
  box-shadow: var(--shadow-inner);
}

.header-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-img {
  max-height: 55px;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.company-name {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  color: var(--text-primary);
}

.company-name span {
  color: var(--color-cyan);
}

/* Base Layout Containers */
.app-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem 1.5rem;
  flex-grow: 1;
}

/* Neumorphic Card */
.neo-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-outer);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

/* Inputs & Form Elements (Based on Image 2 Inset styling) */
.form-group {
  margin-bottom: 1.25rem;
  width: 100%;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.neo-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-radius: var(--border-radius-md);
  border: none;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-inner);
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.neo-input:focus {
  box-shadow: inset 4px 4px 8px #c8d0e7, inset -4px -4px 8px #ffffff;
}

/* Custom Buttons (Outset standard, inset active) */
.neo-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  border: none;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-button);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.neo-btn:hover {
  transform: translateY(-2px);
}

.neo-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-button-active);
}

.neo-btn-primary {
  background: linear-gradient(145deg, var(--color-cyan), #0284c7);
  color: var(--white);
  box-shadow: 4px 4px 10px rgba(6, 182, 212, 0.4), -4px -4px 10px rgba(255, 255, 255, 0.8);
}

.neo-btn-primary:active {
  box-shadow: inset 4px 4px 10px rgba(2, 132, 199, 0.8);
}

/* Specific UI elements from the screenshots */

/* Search bar */
.search-container {
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-inner);
  border-radius: var(--border-radius-md);
  padding: 0.25rem 1rem;
  margin-bottom: 1.5rem;
}

.search-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.search-icon {
  color: var(--text-secondary);
}

/* Crypto price list (Horizontal scrolling row) */
.crypto-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem 0.25rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
  /* Hide standard Firefox scrollbar */
}

.crypto-row::-webkit-scrollbar {
  display: none;
  /* Hide Chrome/Safari scrollbars */
}

.crypto-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.crypto-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--white);
}

.crypto-info {
  display: flex;
  flex-direction: column;
}

.crypto-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.crypto-symbol {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.crypto-price-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.crypto-price {
  font-size: 0.85rem;
  font-weight: 700;
}

.crypto-change {
  font-size: 0.7rem;
  font-weight: 600;
}

.crypto-change.down {
  color: var(--color-red);
}

.crypto-change.up {
  color: var(--color-green);
}

/* Latest News Banner (Gradient banner) */
.news-banner {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.25rem;
  color: var(--white);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-button);
}

.news-tag {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-ticker-wrapper {
  overflow: hidden;
  flex-grow: 1;
}

.news-ticker {
  white-space: nowrap;
  animation: ticker 15s linear infinite;
  display: inline-block;
}

@keyframes ticker {
  0% {
    transform: translate3d(100%, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Profile Central Area */
.profile-avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.profile-avatar-outer {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-outer);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #cbd5e1;
}

.profile-status-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-green);
  border: 3px solid var(--bg-color);
  position: absolute;
  bottom: 6px;
  right: 6px;
}

/* Neumorphic List/Cards for profile detail items */
.detail-item-card {
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-outer);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.detail-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  box-shadow: var(--shadow-button);
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.detail-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Card Badge modifiers for status or special texts */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

.badge-active {
  background-color: var(--color-green-light);
  color: var(--color-green);
}

.badge-inactive {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--color-red);
}

.badge-package {
  background-color: var(--color-gold-light);
  color: var(--color-gold);
}

/* Circular social share buttons (Image 2 Register style) */
.social-signup-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.social-circle-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-outer);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.social-circle-btn:active {
  box-shadow: var(--shadow-inner);
}

/* Wallet Connected Pill Badge */
.wallet-pill {
  background-color: #000000;
  color: var(--color-green);
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 1rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.wallet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green);
}

/* Navigation Links */
.nav-links-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.nav-link-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-button);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.nav-link-btn:active {
  box-shadow: var(--shadow-inner);
}

.nav-link-btn.danger {
  color: var(--color-red);
}

.nav-link-btn.active {
  color: var(--color-cyan);
}

/* Admin Specific Tables */
.admin-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-inner);
  background-color: var(--bg-color);
  padding: 0.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.admin-table td {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

/* Alert Boxes */
.alert {
  padding: 1rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.alert-success {
  background-color: var(--color-green-light);
  color: var(--color-green);
  box-shadow: var(--shadow-outer);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-red);
  box-shadow: var(--shadow-outer);
}

/* Responsive Scaling */
@media (max-width: 480px) {
  .app-container {
    padding: 0 1rem 1.5rem 1rem;
  }

  header {
    padding: 1rem;
  }
}

/* ==========================================
   Admin Sidebar & Layout System
   ========================================== */

/* Layout wrapper */
.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Main Content Wrapper */
.admin-main-content {
  flex-grow: 1;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: var(--transition-smooth);
}

/* Sidebar structure */
.admin-sidebar {
  width: 280px;
  background-color: var(--bg-color);
  box-shadow: 4px 0 16px #d1d9e6, -4px 0 16px #ffffff;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition-smooth);
  z-index: 100;
  position: sticky;
  top: 0;
  height: 100vh;
}

/* Sidebar header area (logo/name) */
.admin-sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  text-align: center;
  flex-shrink: 0;
}

.admin-sidebar-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-md);
  background-color: var(--bg-color);
  box-shadow: var(--shadow-outer);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.admin-sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.admin-sidebar-title span {
  color: var(--color-cyan);
}

/* Sidebar navigation links */
.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -6px;
  /* pull scrollbar slightly to the right */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.admin-sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.admin-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}

.admin-sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-button);
  transition: var(--transition-smooth);
}

.admin-sidebar-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.admin-sidebar-link:active {
  transform: translateY(0);
  box-shadow: var(--shadow-button-active);
}

.admin-sidebar-link.active {
  box-shadow: var(--shadow-inner);
  color: var(--color-cyan);
}

.admin-sidebar-link.danger {
  color: var(--color-red);
}

/* Sidebar Footer / User Info */
.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-outer);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--color-cyan);
}

.admin-sidebar-user-info {
  display: flex;
  flex-direction: column;
}

.admin-sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-sidebar-user-role {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Sidebar Toggle Overlay */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  z-index: 90;
  transition: var(--transition-smooth);
}

.admin-sidebar-overlay.active {
  display: block;
}

/* ── User Navigation Drawer ──────────────────────────────────────── */

/* Overlay that dims the background when drawer is open */
.user-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  z-index: 190;
  transition: var(--transition-smooth);
}

.user-nav-overlay.active {
  display: block;
}

/* Slide-in drawer panel */
.user-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background-color: var(--bg-color);
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
  padding: 0;
  display: flex;
  flex-direction: column;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.user-nav-drawer.active {
  transform: translateX(0);
}

/* Drawer header with branding */
.user-drawer-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.user-drawer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-outer);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-cyan);
  flex-shrink: 0;
  text-transform: uppercase;
}

.user-drawer-info {
  flex: 1;
  min-width: 0;
}

.user-drawer-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-drawer-username {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Close button */
.user-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-color);
  box-shadow: var(--shadow-button);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.user-drawer-close:active {
  box-shadow: var(--shadow-button-active);
  transform: scale(0.96);
}

/* Navigation links list */
.user-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  flex-grow: 1;
}

/* Section label */
.user-drawer-section-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.75rem 0.5rem 0.25rem;
  opacity: 0.7;
}

/* Individual nav link */
.user-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-button);
  transition: var(--transition-smooth);
}

.user-drawer-link:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

.user-drawer-link:active {
  box-shadow: var(--shadow-button-active);
  transform: translateX(0);
}

.user-drawer-link.active {
  box-shadow: var(--shadow-inner);
  color: var(--color-cyan);
}

.user-drawer-link.danger {
  color: var(--color-red);
}

.user-drawer-link svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.user-drawer-link.active svg,
.user-drawer-link:hover svg {
  opacity: 1;
}

/* Drawer footer */
.user-drawer-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.user-drawer-footer p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
}

/* ── Admin Sidebar Responsive (mobile slide-in) ─────────────────── */
@media (max-width: 992px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.1);
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }
}