/* ============================================
   MoneyMiner Hash - Main Stylesheet
   Theme: Yellow & Black - Premium Dark UI
   ============================================ */

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

:root {
  --primary-yellow: #F5C518;
  --primary-yellow-dark: #D4A800;
  --primary-yellow-light: #FFD700;
  --primary-yellow-glow: #FFE44D;
  --bg-black: #0A0A0A;
  --bg-dark: #111111;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222222;
  --bg-input: #1E1E1E;
  --border-dark: #2A2A2A;
  --border-yellow: #F5C518;
  --text-white: #FFFFFF;
  --text-gray: #AAAAAA;
  --text-light-gray: #888888;
  --text-dark: #666666;
  --success: #00C853;
  --danger: #FF1744;
  --warning: #FF9100;
  --info: #2979FF;
  --gradient-yellow: linear-gradient(135deg, #F5C518, #FF8F00);
  --gradient-dark: linear-gradient(135deg, #1A1A1A, #0A0A0A);
  --gradient-card: linear-gradient(145deg, #1E1E1E, #151515);
  --shadow-yellow: 0 0 20px rgba(245, 197, 24, 0.3);
  --shadow-yellow-strong: 0 0 40px rgba(245, 197, 24, 0.5);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-black);
  color: var(--text-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-yellow-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-yellow);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(245, 197, 24, 0.3); }
  50% { box-shadow: 0 0 40px rgba(245, 197, 24, 0.6); }
}
@keyframes glow {
  0%, 100% { text-shadow: 0 0 10px rgba(245, 197, 24, 0.5); }
  50% { text-shadow: 0 0 30px rgba(245, 197, 24, 0.8), 0 0 60px rgba(245, 197, 24, 0.4); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==================== NAVBAR ==================== */
.navbar {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--border-yellow);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(245, 197, 24, 0.5));
}

.navbar-brand span {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-yellow);
  letter-spacing: 1px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item a {
  color: var(--text-gray);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.5px;
}

.nav-item a:hover,
.nav-item a.active {
  color: var(--primary-yellow);
  background: rgba(245, 197, 24, 0.1);
}

.nav-item a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--primary-yellow);
  border-radius: 2px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-balance {
  background: var(--gradient-yellow);
  color: var(--bg-black);
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
}

.nav-user-name {
  color: var(--text-white);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-logout {
  color: var(--danger) !important;
  font-size: 0.85rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(245, 197, 24, 0.08) 0%, transparent 70%),
              var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F5C518' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px rgba(245, 197, 24, 0.6));
  animation: float 3s ease-in-out infinite;
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-yellow);
  text-shadow: 0 0 40px rgba(245, 197, 24, 0.4);
  margin-bottom: 15px;
  letter-spacing: 2px;
  animation: glow 3s ease-in-out infinite;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 30px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-yellow);
  color: var(--bg-black);
  box-shadow: var(--shadow-yellow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow-strong);
}

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

.btn-outline:hover {
  background: rgba(245, 197, 24, 0.1);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--bg-card);
  color: var(--text-white);
  border: 1px solid var(--border-dark);
}

.btn-dark:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-yellow);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #D50000;
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: white;
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ==================== CONTAINERS ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  animation: fadeInUp 0.6s ease;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-yellow);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1rem;
  margin-bottom: 30px;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 25px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--border-yellow);
  box-shadow: 0 8px 30px rgba(245, 197, 24, 0.1);
}

.card-yellow {
  border-color: var(--border-yellow);
  box-shadow: var(--shadow-yellow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-dark);
}

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-yellow);
}

/* ==================== GRID ==================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

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

/* ==================== STATS CARDS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-yellow);
  transform: translateY(-3px);
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-yellow);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: var(--text-gray);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.1);
}

.form-input::placeholder {
  color: var(--text-dark);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: 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='%23F5C518' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.form-select option {
  background: var(--bg-dark);
  color: var(--text-white);
}

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

/* ==================== ALERTS ==================== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  animation: slideInRight 0.4s ease;
}

.alert-success {
  background: rgba(0, 200, 83, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-error {
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.alert-warning {
  background: rgba(255, 145, 0, 0.15);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.alert-info {
  background: rgba(41, 121, 255, 0.15);
  border: 1px solid var(--info);
  color: var(--info);
}

/* ==================== CHAT / TICKET ==================== */

.chat-bubble-me {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(41, 121, 255, 0.1);
  margin-left: 30px;
}

.chat-bubble-them {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  margin-right: 30px;
}

.chat-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.chat-admin { color: var(--warning); }
.chat-user { color: var(--primary); }

.chat-text {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-light);
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success { background: rgba(0, 200, 83, 0.2); color: var(--success); }
.badge-dark { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }
.badge-warning { background: rgba(255, 145, 0, 0.2); color: var(--warning); }

/* ==================== CONTRACT CARDS ==================== */
.contract-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
}

.contract-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.contract-card:hover {
  border-color: var(--border-yellow);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(245, 197, 24, 0.15);
}

.contract-card.featured {
  border-color: var(--primary-yellow);
  box-shadow: var(--shadow-yellow);
}

.contract-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient-yellow);
  color: var(--bg-black);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.contract-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 2px solid var(--border-dark);
}

.contract-body {
  padding: 20px;
}

.contract-coin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 197, 24, 0.1);
  color: var(--primary-yellow);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.contract-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contract-desc {
  color: var(--text-gray);
  font-size: 0.85rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.contract-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.contract-stat {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.contract-stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-yellow);
}

.contract-stat-label {
  font-size: 0.7rem;
  color: var(--text-light-gray);
  text-transform: uppercase;
}

.contract-features {
  list-style: none;
  margin-bottom: 15px;
}

.contract-features li {
  color: var(--text-gray);
  font-size: 0.8rem;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.contract-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
}

.contract-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-yellow);
  text-align: center;
  margin: 15px 0;
}

/* ==================== DASHBOARD ==================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.dashboard-full {
  grid-column: 1 / -1;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bg-black);
}

.profile-info h3 {
  font-size: 1.3rem;
  margin-bottom: 3px;
}

.profile-info p {
  color: var(--text-gray);
  font-size: 0.85rem;
}

/* ==================== TABLE ==================== */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 15px;
  color: var(--primary-yellow);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--border-yellow);
  font-weight: 600;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.9rem;
}

tr:hover td {
  background: rgba(245, 197, 24, 0.03);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active {
  background: rgba(0, 200, 83, 0.2);
  color: var(--success);
}

.badge-completed {
  background: rgba(41, 121, 255, 0.2);
  color: var(--info);
}

.badge-pending {
  background: rgba(255, 145, 0, 0.2);
  color: var(--warning);
}

.badge-rejected {
  background: rgba(255, 23, 68, 0.2);
  color: var(--danger);
}

/* ==================== CHAT ==================== */
.chat-container {
  display: flex;
  height: 600px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chat-sidebar {
  width: 300px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-dark);
  overflow-y: auto;
}

.chat-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-dark);
}

.chat-ticket {
  padding: 15px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-dark);
  transition: var(--transition);
}

.chat-ticket:hover,
.chat-ticket.active {
  background: rgba(245, 197, 24, 0.05);
}

.chat-ticket-subject {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.chat-ticket-meta {
  font-size: 0.75rem;
  color: var(--text-light-gray);
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-dark);
  background: var(--bg-card);
}

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

.chat-message {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--gradient-yellow);
  color: var(--bg-black);
  border-bottom-right-radius: 4px;
}

.chat-message.admin {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-bottom-left-radius: 4px;
}

.chat-message-time {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 5px;
}

.chat-input-area {
  padding: 15px 20px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  gap: 10px;
  background: var(--bg-card);
}

.chat-input-area input {
  flex: 1;
}

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: fadeInUp 0.4s ease;
}

.modal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  color: var(--primary-yellow);
  margin-bottom: 20px;
}

.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--danger);
}

/* ==================== AUTH PAGES ==================== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at center, rgba(245, 197, 24, 0.05) 0%, transparent 70%),
              var(--gradient-dark);
}

.auth-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: fadeInUp 0.6s ease;
}

.auth-logo {
  text-align: center;
  margin-bottom: 25px;
}

.auth-logo img {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(245, 197, 24, 0.5));
}

.auth-logo h2 {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary-yellow);
  margin-top: 10px;
  font-size: 1.5rem;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.auth-link a {
  color: var(--primary-yellow);
  text-decoration: none;
  font-weight: 600;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-dark);
  border-top: 2px solid var(--border-yellow);
  padding: 30px 0;
  text-align: center;
  margin-top: 50px;
}

.footer-content {
  color: var(--text-gray);
  font-size: 0.85rem;
}

.footer-content span {
  color: var(--primary-yellow);
  font-weight: 600;
}

/* ==================== TABS ==================== */
.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 0;
}

.tab {
  padding: 12px 24px;
  cursor: pointer;
  color: var(--text-gray);
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  background: none;
  transition: var(--transition);
  position: relative;
}

.tab:hover {
  color: var(--text-white);
}

.tab.active {
  color: var(--primary-yellow);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-yellow);
}

/* ==================== UTILITIES ==================== */
.text-yellow { color: var(--primary-yellow); }
.text-gray { color: var(--text-gray); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.85rem; }
.text-lg { font-size: 1.2rem; }
.text-xl { font-size: 1.5rem; }
.font-orbitron { font-family: 'Orbitron', sans-serif; }
.font-rajdhani { font-family: 'Rajdhani', sans-serif; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mr-1 { margin-right: 10px; }
.ml-1 { margin-left: 10px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }

.w-full { width: 100%; }

.hidden { display: none; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .contract-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .navbar { padding: 0 1rem; height: auto; flex-wrap: wrap; }
  .navbar-nav { flex-wrap: wrap; gap: 4px; padding: 10px 0; }
  .nav-item a { padding: 8px 12px; font-size: 0.8rem; }
  .chat-container { flex-direction: column; height: auto; }
  .chat-sidebar { width: 100%; max-height: 200px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 1.5rem; }
  .auth-card { padding: 25px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .contract-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}

/* ==================== LOADING SPINNER ==================== */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-dark);
  border-top-color: var(--primary-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==================== TOOLTIP ==================== */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  border: 1px solid var(--border-dark);
}

.tooltip:hover::after {
  opacity: 1;
}

/* ==================== COPY BUTTON ==================== */
.copy-btn {
  background: none;
  border: 1px solid var(--border-dark);
  color: var(--text-gray);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition);
}

.copy-btn:hover {
  border-color: var(--primary-yellow);
  color: var(--primary-yellow);
}

/* ==================== PROGRESS BAR ==================== */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-yellow);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ==================== ADMIN PANEL ==================== */
.admin-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  color: var(--text-gray);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.admin-tab:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.admin-tab:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.admin-tab:hover,
.admin-tab.active {
  background: rgba(245, 197, 24, 0.1);
  color: var(--primary-yellow);
  border-color: var(--primary-yellow);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}


/* Quick Edit Bar */
.quick-edit-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.quick-edit-bar .quick-edit-title {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary-yellow);
  font-size: 1rem;
  margin-bottom: 15px;
}

/* ==================== PUBLIC MINING CARDS ==================== */

.public-mining-card {
  overflow: hidden;
  position: relative;
}

/* ── Novice Card: Nexus Lights (cyan/blue/purple) ── */
.novice-card {
  border: 1px solid rgba(0, 200, 255, 0.3);
  background: linear-gradient(145deg, #0a0f1a 0%, #0d1525 50%, #0a1220 100%);
}

.novice-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(0, 180, 255, 0.06) 40deg,
    rgba(120, 80, 255, 0.06) 80deg,
    transparent 120deg,
    rgba(0, 220, 200, 0.06) 160deg,
    rgba(80, 120, 255, 0.06) 200deg,
    transparent 240deg,
    rgba(0, 180, 255, 0.04) 280deg,
    rgba(150, 60, 255, 0.04) 320deg,
    transparent 360deg
  );
  animation: nexusSpin 8s linear infinite;
  z-index: 0;
  pointer-events: none;
}

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

.novice-card .pm-card-header {
  position: relative;
  z-index: 1;
  padding: 25px 20px 15px;
  background: linear-gradient(180deg, rgba(0, 180, 255, 0.1) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0, 200, 255, 0.15);
}

.novice-card .pm-card-glow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(0, 200, 255, 0.25) 0%, transparent 70%);
  animation: nexusPulse 2s ease-in-out infinite;
}

@keyframes nexusPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

.novice-card .pm-coin-badge {
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.2), rgba(120, 80, 255, 0.2));
  border: 1px solid rgba(0, 200, 255, 0.3);
  color: #00c8ff;
}

.novice-card:hover {
  border-color: rgba(0, 200, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 180, 255, 0.2), 0 0 60px rgba(100, 60, 255, 0.1);
  transform: translateY(-5px);
}

.novice-card .contract-name {
  color: #00d4ff;
}

/* ── Overlord Card: Dark Power (deep purple/black with gold) ── */
.overlord-card {
  border: 1px solid rgba(180, 130, 40, 0.35);
  background: linear-gradient(145deg, #0d0a14 0%, #110e1a 50%, #0c0a12 100%);
}

.overlord-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(180, 120, 40, 0.05) 50deg,
    rgba(200, 60, 20, 0.04) 100deg,
    transparent 150deg,
    rgba(180, 120, 40, 0.05) 200deg,
    rgba(220, 80, 30, 0.04) 250deg,
    transparent 300deg,
    rgba(160, 100, 30, 0.03) 350deg,
    transparent 360deg
  );
  animation: overlordSpin 12s linear infinite reverse;
  z-index: 0;
  pointer-events: none;
}

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

.overlord-card .pm-card-header {
  position: relative;
  z-index: 1;
  padding: 25px 20px 15px;
  background: linear-gradient(180deg, rgba(180, 120, 40, 0.12) 0%, transparent 100%);
  border-bottom: 1px solid rgba(180, 130, 40, 0.2);
}

.overlord-card .pm-card-glow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(220, 140, 30, 0.2) 0%, transparent 70%);
  animation: overlordPulse 2.5s ease-in-out infinite;
}

@keyframes overlordPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.3); }
}

.overlord-card .pm-coin-badge {
  background: linear-gradient(135deg, rgba(180, 120, 40, 0.2), rgba(200, 60, 20, 0.15));
  border: 1px solid rgba(200, 140, 50, 0.3);
  color: #d4a030;
}

.overlord-card:hover {
  border-color: rgba(200, 140, 50, 0.6);
  box-shadow: 0 0 30px rgba(200, 120, 30, 0.2), 0 0 60px rgba(160, 80, 20, 0.1);
  transform: translateY(-5px);
}

.overlord-card .contract-name {
  color: #d4a030;
}

/* ── Public Mining Shared Styles ── */
.pm-card-title-group {
  position: relative;
  z-index: 2;
}

.pm-members-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 12px 0 16px;
  border-radius: 10px;
  background: rgba(0, 200, 83, 0.08);
  border: 1px solid rgba(0, 200, 83, 0.2);
}

.pm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00c853;
  box-shadow: 0 0 8px rgba(0, 200, 83, 0.6);
  animation: dotPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 200, 83, 0.5); }
  50% { box-shadow: 0 0 16px rgba(0, 200, 83, 0.9); }
}

.pm-members-text {
  font-size: 0.9rem;
  color: #aaa;
}

.pm-members-text strong {
  color: #00c853;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
}

/* ── Public Mining Buttons ── */
.btn-novice {
  background: linear-gradient(135deg, #0078d4, #0050a0);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 140, 255, 0.3);
  border: 1px solid rgba(0, 180, 255, 0.3);
}

.btn-novice:hover {
  box-shadow: 0 0 25px rgba(0, 160, 255, 0.5);
  transform: translateY(-2px);
}

.btn-overlord {
  background: linear-gradient(135deg, #8b4513, #4a2000);
  color: #ffcc80;
  box-shadow: 0 0 15px rgba(200, 120, 20, 0.3);
  border: 1px solid rgba(200, 140, 50, 0.3);
}

.btn-overlord:hover {
  box-shadow: 0 0 25px rgba(200, 140, 30, 0.5);
  transform: translateY(-2px);
}