/* Neomorphism Design System */
:root {
  /* Color Scheme */
  --primary: #ff9008;
  --primary-dark: #e07c00;
  --primary-light: #ffa733;
  --dark-bg: #f6f7fa;
  --light-bg: #cecece;
  --card-bg: #ffffff;
  --text-primary: #2d2d2d;
  --text-secondary: #666666;
  --text-light: #888888;
  --shadow-light: #ff91081a;
  --shadow-dark: #1a0f33;
  --border-radius: 15px;
  --transition: all 0.3s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.referral-stat{
border-radius: 15px;
background: linear-gradient(145deg, #d5d5d5, #fefefe);
box-shadow:  8px 8px 13px #c9c9c9,
             -8px -8px 13px #ffffff;
}

/* Neumorphic Elements */
.card, .stat-card {
  padding: 25px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;

 border-radius: 35px;
background: linear-gradient(145deg, #d5d5d5, #fefefe);
box-shadow:  8px 8px 13px #c9c9c9,
             -8px -8px 13px #ffffff;
}

.card-hover:hover, .stat-card-hover:hover {
  box-shadow: 10px 10px 20px var(--shadow-dark),
             -10px -10px 20px var(--shadow-light);
  transform: translateY(-5px);
}

.neo-pressed {
  box-shadow: inset 4px 4px 8px var(--shadow-dark),
              inset -4px -4px 8px var(--shadow-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-size: 20px;
  gap: 8px;
  color: var(--primary);

  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);  
  box-shadow: 0 0.5px 0.5px 1px rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 5px 0px rgba(0, 0, 0, 0.05);
}

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

.btn:active {
  transform: translateY(0);
  box-shadow: inset 3px 3px 6px var(--shadow-dark),
              inset -3px -3px 6px var(--shadow-light);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white !important;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 20px;
  background: var(--card-bg);
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
  box-shadow: inset 3px 3px 6px var(--text-secondary),
              inset -3px -3px 6px var(--shadow-light);
}

.form-control:focus {
  outline: none;
  box-shadow: inset 4px 4px 8px var(--shadow-dark),
              inset -4px -4px 8px var(--shadow-light);
  border-color: var(--primary);
}

/* Header */
.site-header {
  background: var(--dark-bg);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

/* Footer */
.footer {
  background: var(--light-bg);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-links h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.footer-legal {
  margin-top: 15px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 10px;
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Dashboard Components */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  text-align: center;
  padding: 25px;
  border-radius: 35px;
  background: linear-gradient(145deg, #d5d5d5, #fefefe);
  box-shadow: 8px 8px 13px #c9c9c9,
             -8px -8px 13px #ffffff;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  background: rgba(255, 144, 8, 0.1);
}

.stat-amount {
  font-size: 22px;
  font-weight: 700;
  margin: 10px 0 5px;
  color: var(--primary);
  line-height: 1.2;
}

.stat-info h3 {
  margin: 0 0 5px;
  font-size: 16px;
  color: var(--text-secondary);
}

/* Cards */
.card {
  margin-bottom: 30px;
  border-radius: 35px;
  background: linear-gradient(145deg, #d5d5d5, #fefefe);
  box-shadow: 8px 8px 13px #c9c9c9,
             -8px -8px 13px #ffffff;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.card-header {
  padding-bottom: 15px;
  margin-bottom: 0px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.5rem;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

th {
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

tbody tr:hover {
  background: rgba(255, 144, 8, 0.03);
}

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.alert-success {
  background: rgba(82, 196, 26, 0.1);
  color: #52c41a;
  border-left: 4px solid #52c41a;
}

.alert-error {
  background: rgba(255, 77, 79, 0.1);
  color: #ff4d4f;
  border-left: 4px solid #ff4d4f;
}

.alert-warning {
  background: rgba(250, 173, 20, 0.1);
  color: #faad14;
  border-left: 4px solid #faad14;
}

.alert-info {
  background: rgba(24, 144, 255, 0.1);
  color: #1890ff;
  border-left: 4px solid #1890ff;
}

/* Responsive */
@media (max-width: 991px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-legal a {
    margin: 0;
    display: block;
  }
}

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

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }


 /* Navigation Styles */
        .navbar {
            background: var(--dark-bg);
            padding: 15px 0;
            position: fixed;
            width: 100%;
            top: 0;
            left: 0;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        
        .navbar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
            
        
        .nav-links {
            display: flex;
            gap: 20px;
            align-items: center;
        }
        
        .nav-links a {
            text-decoration: none;
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .nav-links a:hover,
        .nav-links a.active {
            background: rgba(255, 255, 255, 0.1);
            color: var(--primary);
        }
        
        .auth-buttons {
            display: flex;
            gap: 15px;
            align-items: center;
        }
        
        .dropdown {
            position: relative;
        }
        
        .dropdown-menu {
            position: absolute;
            right: 0;
            top: 100%;
            margin-top: 10px;
            background: var(--card-bg);
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            min-width: 200px;
            padding: 10px 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .dropdown-item {
            display: block;
            padding: 10px 20px;
            color: var(--text-primary);
            text-decoration: none;
            transition: all 0.2s ease;
        }
        
        .dropdown-item:hover {
            background: rgba(255, 144, 8, 0.1);
            color: var(--primary);
            padding-left: 25px;
        }
        
        .dropdown-item i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }
        
        .hamburger {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0px 10px;
        }
        
        .hamburger span {
            display: block;
            width: 25px;
            height: 3px;
            margin: 5px 0;
            transition: all 0.3s ease;
        }
        
        @media (max-width: 991px) {
            .hamburger {
                display: block;
            }
            
            .nav-links {
                position: fixed;
                top: 70px;
                left: 0;
                width: 100%;
                background: var(--dark-bg);
                flex-direction: column;
                padding: 20px;
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
                transform: translateY(-150%);
                transition: transform 0.3s ease;
                z-index: 999;
            }
            
            .nav-links.active {
                transform: translateY(0);
            }
            
            .nav-links a {
                width: 100%;
                text-align: center;
                padding: 12px;
            }
            
            .hamburger.active span:nth-child(1) {
                transform: rotate(45deg) translate(5px, 5px);
            }
            
            .hamburger.active span:nth-child(2) {
                opacity: 0;
            }
            
            .hamburger.active span:nth-child(3) {
                transform: rotate(-45deg) translate(5px, -5px);
            }
        }


        /* Simple User Menu Styles */
        .simple-user-menu {
            position: relative;
        }
        
        .user-menu-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .user-menu-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
        }
        
        .user-menu-btn i.fa-chevron-down {
            font-size: 12px;
            transition: transform 0.3s ease;
        }
        
        .user-menu-btn.active i.fa-chevron-down {
            transform: rotate(180deg);
        }
        
        .user-menu-items {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            min-width: 200px;
            padding: 8px 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .user-menu-items.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 14px;
            transition: all 0.2s ease;
        }
        
        .menu-item:hover {
            background: rgba(255, 144, 8, 0.1);
            color: var(--primary);
        }
        
        .menu-item i {
            width: 16px;
            text-align: center;
        }
        
        .menu-divider {
            height: 1px;
            background: rgba(0, 0, 0, 0.1);
            margin: 8px 0;
        }
        
        .logout-item {
            color: #ff4d4f;
        }
        
        .logout-item:hover {
            background: rgba(255, 77, 79, 0.1);
            color: #ff4d4f;
        }
        
        /* Mobile responsive menu */
        @media (max-width: 768px) {
            .user-menu-items {
                position: fixed;
                top: 60px;
                left: 0;
                right: 0;
                margin: 0;
                border-radius: 0;
                box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            }
            
            .user-menu-btn {
                padding: 8px 12px;
                font-size: 13px;
            }
        }

        /* Footer Styles */
        .footer {
            background: var(--primary);
            color: white;
            padding: 80px 0 0;
            position: relative;
        }
        
        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), #ff6b00);
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
        }
        
        .footer-logo-img {
            height: 40px;
        }
        
        .footer-about {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.95rem;
            line-height: 1.6;
        }
        
        .footer-links h4 {
            color: white;
            font-size: 1.2rem;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-links h4::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 2px;
            background: var(--dark);
        }
        
        .footer-links ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .footer-links li {
            margin-bottom: 12px;
        }
        
        .footer-links a {
            color: rgb(255, 255, 255);
            text-decoration: none;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .footer-links a i {
            color: var(--dark);
            font-size: 0.8rem;
            transition: all 0.3s ease;
        }
        
        .footer-links a:hover {
            color: var(--dark);
            padding-left: 5px;
        }
        
        .footer-links a:hover i {
            transform: translateX(3px);
        }
        
        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .social-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            color: white;
            font-size: 18px;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .social-link .tooltip {
            position: absolute;
            top: -35px;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            background: var(--primary);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 10;
        }
        
        .social-link .tooltip::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 5px 5px 0;
            border-style: solid;
            border-color: var(--primary) transparent transparent transparent;
        }
        
        .social-link:hover {
            background: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 144, 8, 0.3);
        }
        
        .social-link:hover .tooltip {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
        
        .newsletter-form {
            margin-top: 20px;
        }
        
        .newsletter .input-group {
            display: flex;
            gap: 10px;
        }
        
        .newsletter .form-control {
            flex: 1;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 12px 15px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .newsletter .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(255, 144, 8, 0.2);
        }
        
        .newsletter .btn {
            padding: 0 20px;
            border-radius: 8px;
        }
        
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding: 20px 0;
        }
        
        .footer-legal {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .copyright {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.9rem;
        }
        
        .legal-links {
            display: flex;
            gap: 15px;
            align-items: center;
        }
        
        .legal-links a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }
        
        .legal-links a:hover {
            color: var(--primary);
        }
        
        .divider {
            color: rgba(255, 255, 255, 0.2);
        }
        
        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            border: none;
            box-shadow: 0 4px 15px rgba(255, 144, 8, 0.3);
            z-index: 999;
        }
        
        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(255, 144, 8, 0.4);
        }
        
        /* Responsive */
        @media (max-width: 991px) {
            .footer-content {
                grid-template-columns: repeat(2, 1fr);
                gap: 30px;
            }
            
            .footer-connect {
                grid-column: 1 / -1;
            }
        }
        
        @media (max-width: 767px) {
            .footer-content {
                grid-template-columns: 1fr;
            }
            
            .footer-legal {
                flex-direction: column;
                text-align: center;
            }
            
            .legal-links {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .back-to-top {
                width: 45px;
                height: 45px;
                font-size: 18px;
                bottom: 20px;
                right: 20px;
            }
        }