/* ============================================
   TATA SOLAR - Main Stylesheet
   Mobile-First Design | Solar Energy Platform
   ============================================ */

/* ============================================
   A) GLOBAL / RESET
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #FFF8F0;
  color: #333333;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: #1A1A2E;
}

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

p {
  margin-bottom: 0.5rem;
  color: #666666;
}

/* ============================================
   B) AUTH PAGES (Login / Register)
   ============================================ */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF6B00 0%, #E55D00 50%, #1A1A2E 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: pulse 8s ease-in-out infinite;
}

.auth-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 40px 30px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s ease-out;
}

.auth-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.auth-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 5px;
  color: #1A1A2E;
}

.auth-card .subtitle {
  text-align: center;
  color: #999999;
  font-size: 0.875rem;
  margin-bottom: 25px;
}

.auth-tabs {
  display: flex;
  background: #F5F5F5;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 25px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #999999;
  background: transparent;
  transition: all 0.3s ease;
}

.auth-tab.active {
  background: #FFFFFF;
  color: #FF6B00;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-form .form-group {
  margin-bottom: 18px;
  position: relative;
}

.auth-form .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999999;
  font-size: 1rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="number"],
.auth-form input[type="tel"] {
  width: 100%;
  padding: 14px 15px 14px 45px;
  border: 2px solid #EEEEEE;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  background: #FAFAFA;
}

.auth-form input:focus {
  border-color: #FF6B00;
  background: #FFFFFF;
}

.auth-form .password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999999;
  cursor: pointer;
  background: none;
  font-size: 1rem;
}

.auth-form .referral-note {
  font-size: 0.8rem;
  color: #999999;
  margin-top: -10px;
  margin-bottom: 15px;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #CCCCCC;
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #EEEEEE;
}

.auth-divider span {
  padding: 0 15px;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
}

.auth-links a {
  color: #FF6B00;
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-links a:hover {
  color: #E55D00;
}

/* ============================================
   C) BOTTOM NAVIGATION BAR
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  height: 70px;
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  color: #999999;
  font-size: 0.65rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  min-width: 60px;
}

.bottom-nav .nav-item i {
  font-size: 1.3rem;
  margin-bottom: 3px;
  transition: transform 0.3s ease;
}

.bottom-nav .nav-item.active {
  color: #FF6B00;
}

.bottom-nav .nav-item.active i {
  transform: scale(1.1);
}

.bottom-nav .nav-item.center-item {
  position: relative;
}

.bottom-nav .nav-item.center-item .nav-circle {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-top: -30px;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bottom-nav .nav-item.center-item:hover .nav-circle {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

.bottom-nav .nav-item.center-item span {
  margin-top: 5px;
}

.bottom-nav-placeholder {
  height: 80px;
}

/* ============================================
   D) HEADER / TOP BAR
   ============================================ */
.top-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #FF6B00, #E55D00);
  color: #FFFFFF;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-header .header-logo {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.top-header .header-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.top-header .header-subtitle {
  font-size: 0.75rem;
  opacity: 0.85;
}

.top-header .header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-header .header-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  transition: background 0.3s ease;
}

.top-header .header-icon:hover {
  background: rgba(255, 255, 255, 0.3);
}

.top-header .notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #DC3545;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 2px solid #FF6B00;
}

.sub-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #FF6B00, #E55D00);
  color: #FFFFFF;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 999;
}

.sub-header .back-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.sub-header .back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sub-header .page-title {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ============================================
   E) CARDS
   ============================================ */
.card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F0F0F0;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1A1A2E;
}

.card-body {
  padding: 0;
}

.card-footer {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #F0F0F0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 15px 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

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

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.2rem;
}

.stat-card .stat-icon.orange {
  background: rgba(255, 107, 0, 0.1);
  color: #FF6B00;
}

.stat-card .stat-icon.green {
  background: rgba(40, 167, 69, 0.1);
  color: #28A745;
}

.stat-card .stat-icon.blue {
  background: rgba(0, 123, 255, 0.1);
  color: #007BFF;
}

.stat-card .stat-icon.purple {
  background: rgba(123, 44, 191, 0.1);
  color: #7C2CBF;
}

.stat-card .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 2px;
}

.stat-card .stat-label {
  font-size: 0.7rem;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   F) INVESTMENT PLAN CARDS
   ============================================ */
.plan-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

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

.plan-card .plan-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  position: relative;
}

.plan-card .plan-image-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 3rem;
  position: relative;
}

.plan-card .plan-name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #FFFFFF;
}

.plan-card .plan-name-overlay h3 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.plan-card .slots-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #FFFFFF;
  backdrop-filter: blur(5px);
}

.plan-card .slots-badge i {
  font-size: 0.7rem;
}

.plan-card .plan-details {
  padding: 20px;
}

.plan-card .plan-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.plan-card .plan-info-item {
  text-align: center;
  padding: 10px;
  background: #FFF8F0;
  border-radius: 10px;
}

.plan-card .plan-info-item .info-label {
  font-size: 0.7rem;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.plan-card .plan-info-item .info-value {
  font-size: 1rem;
  font-weight: 700;
  color: #FF6B00;
}

.plan-card .plan-info-item .info-value.green {
  color: #28A745;
}

.plan-card .plan-price {
  text-align: center;
  margin-bottom: 15px;
}

.plan-card .plan-price .price-label {
  font-size: 0.8rem;
  color: #999999;
}

.plan-card .plan-price .price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A1A2E;
}

.plan-card .plan-price .price-value span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #999999;
}

/* ============================================
   G) QUICK ACTION BUTTONS
   ============================================ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 5px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.quick-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quick-action-btn .action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #FFFFFF;
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  box-shadow: 0 3px 10px rgba(255, 107, 0, 0.3);
}

.quick-action-btn .action-icon.green {
  background: linear-gradient(135deg, #28A745, #5CB85C);
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.quick-action-btn .action-icon.blue {
  background: linear-gradient(135deg, #007BFF, #5BC0DE);
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.quick-action-btn .action-icon.purple {
  background: linear-gradient(135deg, #7C2CBF, #A855F7);
  box-shadow: 0 3px 10px rgba(124, 44, 191, 0.3);
}

.quick-action-btn .action-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #666666;
  text-align: center;
}

/* ============================================
   H) FORMS
   ============================================ */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333333;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #EEEEEE;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #333333;
  background: #FAFAFA;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-control:focus {
  border-color: #FF6B00;
  background: #FFFFFF;
}

.form-control::placeholder {
  color: #BBBBBB;
}

.form-control-icon {
  position: relative;
}

.form-control-icon .icon-left {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999999;
}

.form-control-icon .form-control {
  padding-left: 45px;
}

.form-control-icon .icon-right {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999999;
  cursor: pointer;
}

.form-select {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 2px solid #EEEEEE;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #333333;
  background: #FAFAFA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 15px center;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.form-select:focus {
  border-color: #FF6B00;
  background-color: #FFFFFF;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.form-file-upload {
  border: 2px dashed #DDDDDD;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-file-upload:hover {
  border-color: #FF6B00;
  background: #FFF8F0;
}

.form-file-upload input[type="file"] {
  display: none;
}

.form-file-upload .upload-icon {
  font-size: 2rem;
  color: #CCCCCC;
  margin-bottom: 10px;
}

.form-file-upload .upload-text {
  font-size: 0.9rem;
  color: #999999;
}

.form-file-upload .upload-text span {
  color: #FF6B00;
  font-weight: 500;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #FF6B00;
  cursor: pointer;
}

.form-check label {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 0;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.form-hint {
  font-size: 0.75rem;
  color: #999999;
  margin-top: 5px;
}

.form-error {
  font-size: 0.75rem;
  color: #DC3545;
  margin-top: 5px;
}

/* ============================================
   I) BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
  width: 100%;
  padding: 14px 24px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E55D00, #FF8C33);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: #FF6B00;
  border: 2px solid #FF6B00;
}

.btn-secondary:hover {
  background: #FF6B00;
  color: #FFFFFF;
}

.btn-success {
  background: linear-gradient(135deg, #28A745, #5CB85C);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #218838, #449D44);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #DC3545, #E85D6A);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #C82333, #D3464D);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
  transform: translateY(-2px);
}

.btn-warning {
  background: linear-gradient(135deg, #FFC107, #FFD54F);
  color: #333333;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #E0A800, #FFCA28);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: 14px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   J) TABLES (Admin)
   ============================================ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  font-size: 0.9rem;
}

.data-table thead {
  background: #1A1A2E;
  color: #FFFFFF;
}

.data-table th {
  padding: 14px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #F0F0F0;
  vertical-align: middle;
}

.data-table tbody tr:nth-child(even) {
  background: #FAFAFA;
}

.data-table tbody tr:hover {
  background: #FFF8F0;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.active,
.status-badge.approved,
.status-badge.success {
  background: rgba(40, 167, 69, 0.1);
  color: #28A745;
}

.status-badge.inactive,
.status-badge.rejected,
.status-badge.danger {
  background: rgba(220, 53, 69, 0.1);
  color: #DC3545;
}

.status-badge.pending,
.status-badge.warning {
  background: rgba(255, 193, 7, 0.1);
  color: #E0A800;
}

.status-badge.info {
  background: rgba(0, 123, 255, 0.1);
  color: #007BFF;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.table-actions .btn-icon {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* ============================================
   K) ADMIN LAYOUT
   ============================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: #1A1A2E;
  color: #FFFFFF;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1001;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-header .sidebar-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.sidebar-header .sidebar-title {
  font-size: 1rem;
  font-weight: 600;
}

.sidebar-header .sidebar-subtitle {
  font-size: 0.7rem;
  opacity: 0.6;
}

.sidebar-nav {
  padding: 15px 0;
}

.sidebar-nav .nav-section {
  padding: 10px 20px 5px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.sidebar-nav .nav-link.active {
  background: rgba(255, 107, 0, 0.15);
  color: #FF6B00;
  border-left-color: #FF6B00;
}

.sidebar-nav .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-nav .nav-link .nav-badge {
  margin-left: auto;
  background: #DC3545;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
}

.admin-content {
  flex: 1;
  margin-left: 260px;
  padding: 0;
}

.admin-header {
  background: #FFFFFF;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header .menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: #F5F5F5;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #333333;
  border: none;
  cursor: pointer;
}

.admin-header .page-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1A1A2E;
}

.admin-header .header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-main {
  padding: 30px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* ============================================
   L) MODALS
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1A1A2E;
}

.modal-close {
  width: 32px;
  height: 32px;
  background: #F5F5F5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.modal-close:hover {
  background: #DC3545;
  color: #FFFFFF;
}

.modal-body {
  padding: 25px;
}

.modal-footer {
  padding: 15px 25px;
  border-top: 1px solid #F0F0F0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ============================================
   M) ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

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

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.5s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ============================================
   N) UTILITIES
   ============================================ */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: #FF6B00; }
.text-secondary { color: #FFA500; }
.text-success { color: #28A745; }
.text-danger { color: #DC3545; }
.text-warning { color: #FFC107; }
.text-info { color: #007BFF; }
.text-dark { color: #1A1A2E; }
.text-muted { color: #999999; }
.text-light { color: #666666; }
.text-white { color: #FFFFFF; }

/* Text Sizes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.35rem; }
.text-2xl { font-size: 1.75rem; }
.text-3xl { font-size: 2.25rem; }

/* Font Weight */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Flexbox */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }
.d-grid { display: grid; }

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.align-items-stretch { align-items: stretch; }

.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }

.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.gap-1 { gap: 5px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 15px; }
.gap-4 { gap: 20px; }
.gap-5 { gap: 30px; }

/* Margin Utilities */
.m-0 { margin: 0; }
.m-1 { margin: 5px; }
.m-2 { margin: 10px; }
.m-3 { margin: 15px; }
.m-4 { margin: 20px; }
.m-5 { margin: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 30px; }

.ms-1 { margin-left: 5px; }
.ms-2 { margin-left: 10px; }
.ms-3 { margin-left: 15px; }
.ms-4 { margin-left: 20px; }
.ms-5 { margin-left: 30px; }

.me-1 { margin-right: 5px; }
.me-2 { margin-right: 10px; }
.me-3 { margin-right: 15px; }
.me-4 { margin-right: 20px; }
.me-5 { margin-right: 30px; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding Utilities */
.p-0 { padding: 0; }
.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.p-5 { padding: 30px; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 5px; }
.pt-2 { padding-top: 10px; }
.pt-3 { padding-top: 15px; }
.pt-4 { padding-top: 20px; }
.pt-5 { padding-top: 30px; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 5px; }
.pb-2 { padding-bottom: 10px; }
.pb-3 { padding-bottom: 15px; }
.pb-4 { padding-bottom: 20px; }
.pb-5 { padding-bottom: 30px; }

.px-1 { padding-left: 5px; padding-right: 5px; }
.px-2 { padding-left: 10px; padding-right: 10px; }
.px-3 { padding-left: 15px; padding-right: 15px; }
.px-4 { padding-left: 20px; padding-right: 20px; }
.px-5 { padding-left: 30px; padding-right: 30px; }

.py-1 { padding-top: 5px; padding-bottom: 5px; }
.py-2 { padding-top: 10px; padding-bottom: 10px; }
.py-3 { padding-top: 15px; padding-bottom: 15px; }
.py-4 { padding-top: 20px; padding-bottom: 20px; }
.py-5 { padding-top: 30px; padding-bottom: 30px; }

/* Border Radius */
.rounded { border-radius: 8px; }
.rounded-sm { border-radius: 6px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-2xl { border-radius: 20px; }
.rounded-full { border-radius: 50%; }

/* Background Colors */
.bg-primary { background-color: #FF6B00; }
.bg-secondary { background-color: #FFA500; }
.bg-success { background-color: #28A745; }
.bg-danger { background-color: #DC3545; }
.bg-warning { background-color: #FFC107; }
.bg-info { background-color: #007BFF; }
.bg-dark { background-color: #1A1A2E; }
.bg-light { background-color: #FFF8F0; }
.bg-white { background-color: #FFFFFF; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* Position */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

/* Width/Height */
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.min-vh-100 { min-height: 100vh; }

/* Shadows */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.shadow { box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08); }
.shadow-lg { box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12); }

/* Responsive Breakpoints */
@media (min-width: 576px) {
  .d-sm-flex { display: flex; }
  .d-sm-none { display: none; }
  .d-sm-block { display: block; }
  .d-sm-grid { display: grid; }
  .text-sm-center { text-align: center; }
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .d-md-flex { display: flex; }
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  .d-md-grid { display: grid; }
  .text-md-center { text-align: center; }
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .quick-actions {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) {
  .d-lg-flex { display: flex; }
  .d-lg-none { display: none; }
  .d-lg-block { display: block; }
  .d-lg-grid { display: grid; }
  .text-lg-center { text-align: center; }

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

  .admin-header .menu-toggle {
    display: none;
  }

  .sidebar-overlay {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .d-xl-flex { display: flex; }
  .d-xl-none { display: none; }
  .d-xl-block { display: block; }
  .d-xl-grid { display: grid; }
  .text-xl-center { text-align: center; }
}

@media (max-width: 991px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

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

  .admin-content {
    margin-left: 0;
  }

  .admin-header .menu-toggle {
    display: flex;
  }

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

  .admin-main {
    padding: 20px;
  }
}

@media (max-width: 575px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 15px;
  }
}

/* ============================================
   O) FLASH MESSAGES / TOAST
   ============================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 40px);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.4s ease-out;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.toast.success::before { background: #28A745; }
.toast.error::before { background: #DC3545; }
.toast.info::before { background: #007BFF; }
.toast.warning::before { background: #FFC107; }

.toast .toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  background: rgba(40, 167, 69, 0.1);
  color: #28A745;
}

.toast.error .toast-icon {
  background: rgba(220, 53, 69, 0.1);
  color: #DC3545;
}

.toast.info .toast-icon {
  background: rgba(0, 123, 255, 0.1);
  color: #007BFF;
}

.toast.warning .toast-icon {
  background: rgba(255, 193, 7, 0.1);
  color: #E0A800;
}

.toast .toast-content {
  flex: 1;
}

.toast .toast-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1A1A2E;
  margin-bottom: 2px;
}

.toast .toast-message {
  font-size: 0.8rem;
  color: #666666;
  line-height: 1.4;
}

.toast .toast-close {
  width: 24px;
  height: 24px;
  background: #F5F5F5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #999999;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.toast .toast-close:hover {
  background: #EEEEEE;
  color: #333333;
}

.toast .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  animation: toastProgress 3s linear forwards;
}

.toast.success .toast-progress { background: #28A745; }
.toast.error .toast-progress { background: #DC3545; }
.toast.info .toast-progress { background: #007BFF; }
.toast.warning .toast-progress { background: #FFC107; }

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

.flash-message {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.3s ease-out;
}

.flash-message.success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.2);
  color: #28A745;
}

.flash-message.error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #DC3545;
}

.flash-message.info {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.2);
  color: #007BFF;
}

.flash-message.warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.2);
  color: #E0A800;
}

/* ============================================
   P) QR CODE SECTION
   ============================================ */
.qr-section {
  text-align: center;
  padding: 30px 20px;
}

.qr-code-wrapper {
  display: inline-block;
  padding: 20px;
  border: 3px solid #EEEEEE;
  border-radius: 16px;
  background: #FFFFFF;
  margin-bottom: 20px;
  position: relative;
}

.qr-code-wrapper img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.qr-code-wrapper::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 2px dashed #DDDDDD;
  border-radius: 10px;
  pointer-events: none;
}

.qr-link-section {
  margin-top: 15px;
}

.qr-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F5F5F5;
  border-radius: 10px;
  padding: 10px 15px;
  max-width: 400px;
  margin: 0 auto;
}

.qr-link-box .link-text {
  flex: 1;
  font-size: 0.85rem;
  color: #666666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-link-box .copy-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  color: #FFFFFF;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.qr-link-box .copy-btn:hover {
  background: linear-gradient(135deg, #E55D00, #FF8C33);
}

.qr-link-box .copy-btn.copied {
  background: linear-gradient(135deg, #28A745, #5CB85C);
}

.qr-referral-info {
  margin-top: 20px;
  padding: 15px;
  background: #FFF8F0;
  border-radius: 10px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.qr-referral-info .referral-code {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FF6B00;
  letter-spacing: 2px;
}

/* ============================================
   Q) SUPPORT / CHAT
   ============================================ */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  max-height: 600px;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.chat-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, #FF6B00, #E55D00);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header .support-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-header .support-info h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.chat-header .support-info span {
  font-size: 0.75rem;
  opacity: 0.85;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #F8F8F8;
}

.message {
  display: flex;
  gap: 10px;
  max-width: 80%;
  animation: fadeIn 0.3s ease-out;
}

.message.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message.received {
  align-self: flex-start;
}

.message .msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #DDDDDD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.message.sent .msg-avatar {
  background: #FF6B00;
  color: #FFFFFF;
}

.message.received .msg-avatar {
  background: #1A1A2E;
  color: #FFFFFF;
}

.message .msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

.message.sent .msg-bubble {
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.message.received .msg-bubble {
  background: #FFFFFF;
  color: #333333;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.message .msg-time {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

.message.sent .msg-time {
  color: rgba(255, 255, 255, 0.8);
}

.message.received .msg-time {
  color: #999999;
}

.chat-input-area {
  padding: 15px 20px;
  background: #FFFFFF;
  border-top: 1px solid #F0F0F0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input-area .chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #EEEEEE;
  border-radius: 24px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.chat-input-area .chat-input:focus {
  border-color: #FF6B00;
}

.chat-input-area .send-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.chat-input-area .send-btn:hover {
  transform: scale(1.05);
}

.chat-thread {
  border-bottom: 1px solid #F0F0F0;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.chat-thread:hover {
  background: #FFF8F0;
}

.chat-thread .thread-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.chat-thread .thread-info {
  flex: 1;
  min-width: 0;
}

.chat-thread .thread-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1A1A2E;
  margin-bottom: 2px;
}

.chat-thread .thread-preview {
  font-size: 0.8rem;
  color: #999999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread .thread-meta {
  text-align: right;
  flex-shrink: 0;
}

.chat-thread .thread-time {
  font-size: 0.7rem;
  color: #999999;
  margin-bottom: 5px;
}

.chat-thread .thread-unread {
  width: 20px;
  height: 20px;
  background: #FF6B00;
  border-radius: 50%;
  font-size: 0.65rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* ============================================
   R) MISCELLANEOUS
   ============================================ */

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #F5F5F5;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #CCCCCC;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #AAAAAA;
}

/* Loading Spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #EEEEEE;
  border-top-color: #FF6B00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-lg {
  width: 70px;
  height: 70px;
  border-width: 5px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 50px 20px;
}

.empty-state .empty-icon {
  font-size: 4rem;
  color: #DDDDDD;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: #666666;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  color: #999999;
  margin-bottom: 20px;
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-primary {
  background: rgba(255, 107, 0, 0.1);
  color: #FF6B00;
}

.badge-success {
  background: rgba(40, 167, 69, 0.1);
  color: #28A745;
}

.badge-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #DC3545;
}

.badge-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #E0A800;
}

.badge-info {
  background: rgba(0, 123, 255, 0.1);
  color: #007BFF;
}

.badge-dark {
  background: rgba(26, 26, 46, 0.1);
  color: #1A1A2E;
}

/* Divider */
.divider {
  height: 1px;
  background: #F0F0F0;
  margin: 20px 0;
}

.divider-dashed {
  border-top: 1px dashed #DDDDDD;
  margin: 20px 0;
}

.divider-with-text {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #999999;
  font-size: 0.8rem;
}

.divider-with-text::before,
.divider-with-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #F0F0F0;
}

.divider-with-text span {
  padding: 0 15px;
}

/* Tabs */
.tabs {
  display: flex;
  background: #F5F5F5;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 10px 15px;
  text-align: center;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.85rem;
  color: #999999;
  background: transparent;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.tab-btn.active {
  background: #FFFFFF;
  color: #FF6B00;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-content {
  display: none;
}

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

/* User Profile Card */
.profile-card {
  text-align: center;
  padding: 30px 20px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 2.5rem;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 5px;
}

.profile-email {
  font-size: 0.85rem;
  color: #999999;
  margin-bottom: 10px;
}

.profile-level {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  color: #FFFFFF;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #EEEEEE;
  border-radius: 4px;
  overflow: hidden;
}

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

.progress-bar .progress-fill.green {
  background: linear-gradient(135deg, #28A745, #5CB85C);
}

.progress-bar .progress-fill.blue {
  background: linear-gradient(135deg, #007BFF, #5BC0DE);
}

/* List Items */
.list-group {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #F0F0F0;
  transition: background 0.3s ease;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: #FFF8F0;
}

.list-item .list-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.list-item .list-content {
  flex: 1;
  min-width: 0;
}

.list-item .list-title {
  font-weight: 500;
  font-size: 0.9rem;
  color: #1A1A2E;
  margin-bottom: 2px;
}

.list-item .list-subtitle {
  font-size: 0.75rem;
  color: #999999;
}

.list-item .list-action {
  flex-shrink: 0;
  color: #CCCCCC;
  font-size: 1rem;
}

/* Notification Item */
.notification-item {
  display: flex;
  gap: 12px;
  padding: 15px;
  border-bottom: 1px solid #F0F0F0;
  transition: background 0.3s ease;
}

.notification-item:hover {
  background: #FFF8F0;
}

.notification-item.unread {
  background: rgba(255, 107, 0, 0.03);
}

.notification-item .notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.notification-item .notif-content {
  flex: 1;
}

.notification-item .notif-text {
  font-size: 0.85rem;
  color: #333333;
  line-height: 1.4;
}

.notification-item .notif-time {
  font-size: 0.7rem;
  color: #999999;
  margin-top: 4px;
}

/* Amount Display */
.amount-display {
  text-align: center;
  padding: 20px;
}

.amount-display .currency {
  font-size: 1rem;
  color: #999999;
  vertical-align: top;
}

.amount-display .amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1A1A2E;
}

.amount-display .amount.primary {
  color: #FF6B00;
}

.amount-display .amount.success {
  color: #28A745;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.section-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1A1A2E;
}

.section-header .view-all {
  font-size: 0.85rem;
  color: #FF6B00;
  font-weight: 500;
}

/* Info Row */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F5F5F5;
}

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

.info-row .info-label {
  font-size: 0.85rem;
  color: #999999;
}

.info-row .info-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1A1A2E;
}

/* Countdown Timer */
.countdown {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.countdown .countdown-item {
  text-align: center;
}

.countdown .countdown-value {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 5px;
}

.countdown .countdown-label {
  font-size: 0.65rem;
  color: #999999;
  text-transform: uppercase;
}

/* Withdrawal Method Card */
.method-card {
  border: 2px solid #EEEEEE;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.method-card:hover {
  border-color: #FF6B00;
  background: #FFF8F0;
}

.method-card.selected {
  border-color: #FF6B00;
  background: rgba(255, 107, 0, 0.05);
}

.method-card .method-icon {
  width: 44px;
  height: 44px;
  background: #F5F5F5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.method-card .method-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1A1A2E;
}

.method-card .method-desc {
  font-size: 0.75rem;
  color: #999999;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text-sm {
  height: 10px;
  width: 60%;
}

.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.skeleton-card {
  height: 200px;
}

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

/* Grid Layout */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

@media (max-width: 575px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Accordion */
.accordion-item {
  background: #FFFFFF;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: #FFF8F0;
}

.accordion-header h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1A1A2E;
  margin-bottom: 0;
}

.accordion-header .accordion-icon {
  transition: transform 0.3s ease;
  color: #999999;
}

.accordion-item.active .accordion-header .accordion-icon {
  transform: rotate(180deg);
  color: #FF6B00;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
}

.accordion-content {
  padding: 0 15px 15px;
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.6;
}

/* Switch/Toggle */
.switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #DDDDDD;
  border-radius: 26px;
  transition: 0.3s;
}

.switch .slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #FF6B00, #FFA500);
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}

/* Tooltip */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-wrapper .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1A1A2E;
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  margin-bottom: 8px;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Image Preview */
.image-preview {
  position: relative;
  display: inline-block;
}

.image-preview img {
  border-radius: 12px;
  max-height: 200px;
  object-fit: cover;
}

.image-preview .preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(220, 53, 69, 0.9);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.image-preview .preview-remove:hover {
  background: #DC3545;
}

/* Page Transitions */
.page-content {
  animation: fadeIn 0.3s ease-out;
}

/* Withdrawal History */
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #FFFFFF;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.history-item .history-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.history-item .history-icon.incoming {
  background: rgba(40, 167, 69, 0.1);
  color: #28A745;
}

.history-item .history-icon.outgoing {
  background: rgba(220, 53, 69, 0.1);
  color: #DC3545;
}

.history-item .history-info {
  flex: 1;
}

.history-item .history-title {
  font-weight: 500;
  font-size: 0.9rem;
  color: #1A1A2E;
  margin-bottom: 2px;
}

.history-item .history-date {
  font-size: 0.75rem;
  color: #999999;
}

.history-item .history-amount {
  text-align: right;
}

.history-item .history-amount .amount {
  font-weight: 700;
  font-size: 1rem;
}

.history-item .history-amount .amount.credit {
  color: #28A745;
}

.history-item .history-amount .amount.debit {
  color: #DC3545;
}

.history-item .history-amount .status {
  font-size: 0.7rem;
  margin-top: 2px;
}

/* Footer Links */
.footer-links {
  padding: 20px;
  text-align: center;
}

.footer-links a {
  display: inline-block;
  margin: 5px 15px;
  font-size: 0.85rem;
  color: #FF6B00;
  font-weight: 500;
}

.footer-links a:hover {
  color: #E55D00;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pagination .page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #666666;
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination .page-btn:hover {
  border-color: #FF6B00;
  color: #FF6B00;
}

.pagination .page-btn.active {
  background: linear-gradient(135deg, #FF6B00, #FFA500);
  color: #FFFFFF;
  border-color: transparent;
}

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

/* Alert Banners */
.alert {
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.2);
  color: #28A745;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #DC3545;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #E0A800;
}

.alert-info {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.2);
  color: #007BFF;
}

.alert .alert-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.alert .alert-content {
  flex: 1;
}

.alert .alert-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.alert .alert-message {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Wallet Balance Card */
.wallet-card {
  background: linear-gradient(135deg, #FF6B00, #E55D00);
  border-radius: 20px;
  padding: 25px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.wallet-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.wallet-card .wallet-label {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 5px;
}

.wallet-card .wallet-balance {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.wallet-card .wallet-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.wallet-card .wallet-btn {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wallet-card .wallet-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

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

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Print Styles */
@media print {
  .bottom-nav,
  .top-header,
  .admin-sidebar,
  .btn,
  .no-print {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
  }

  .card {
    box-shadow: none;
    border: 1px solid #DDDDDD;
  }
}
