/* CSS Variables & Theme Setup */
:root {
  --bg-primary: #0a0714;
  --bg-secondary: #0f0c20;
  --card-bg: rgba(23, 20, 43, 0.55);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-hover: rgba(139, 92, 246, 0.3);
  
  --text-primary: #f1eff7;
  --text-muted: #9c98b6;
  --text-accent: #a78bfa;
  
  --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --accent-gradient: linear-gradient(135deg, #a78bfa 0%, #06b6d4 100%);
  --glow-cyan: rgba(6, 182, 212, 0.3);
  --glow-purple: rgba(124, 58, 237, 0.3);
  
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.09);
  --input-focus-border: #7c3aed;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.5);
}

/* Global Reset & Box Model */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body.smm-client-theme {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background Ambient Glow Elements */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--glow-purple) 0%, rgba(0, 0, 0, 0) 70%);
  top: -100px;
  left: -200px;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--glow-cyan) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: 100px;
  right: -200px;
}

/* Header Styling */
.main-header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(10, 7, 20, 0.7);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
}

.logo-accent {
  font-weight: 900;
}

.logo-dot {
  color: #06b6d4;
  -webkit-text-fill-color: #06b6d4;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* Currency Select */
.currency-selector-wrapper select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.currency-selector-wrapper select:focus {
  border-color: var(--text-accent);
}

/* User profile widget in header */
.btn-auth-trigger {
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}

.btn-auth-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: 14px;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-name-tag {
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-level-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background-color: rgba(6, 182, 212, 0.15);
  color: var(--info);
  padding: 1px 6px;
  border-radius: 8px;
  margin-top: 2px;
  text-transform: uppercase;
}

.user-wallet-info {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 12px;
}

.wallet-balance {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--success);
}

.btn-topup-trigger {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-header-logout {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.btn-header-logout:hover {
  opacity: 1;
}

.btn-admin-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-admin-panel:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Main Container Layout */
.smm-container {
  padding-top: 40px;
}

/* Hero Banner */
.hero-banner {
  text-align: center;
  margin-bottom: 48px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid Dashboard */
.smm-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

/* Glass Card Component */
.card-glass {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-glass:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-lg);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.section-title .icon {
  font-size: 1.4rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  font-size: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.input-wrapper input {
  padding-left: 44px;
}

.form-group select {
  padding-right: 40px;
  appearance: none;
  cursor: pointer;
}

/* Custom dropdown arrow */
.custom-select-wrapper {
  position: relative;
}

.custom-select-wrapper::after {
  content: '▼';
  font-size: 0.65rem;
  color: var(--text-muted);
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  pointer-events: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
}

.form-group input:disabled,
.form-group select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  padding-left: 4px;
}

.form-static-text {
  padding: 10px 0;
  font-size: 1rem;
}

/* Search bar styling */
.search-group {
  margin-bottom: 24px;
}

.search-wrapper input {
  padding-right: 40px !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.btn-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  outline: none;
}

.btn-clear:hover {
  color: var(--text-primary);
}

/* Service Description Card */
.service-desc-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  animation: fadeIn 0.4s ease-in-out;
}

.desc-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-accent);
}

.desc-details {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.desc-details ul {
  list-style: none;
}

.desc-details li {
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
}

.desc-details li::before {
  content: '✦';
  color: var(--text-accent);
  margin-right: 8px;
  font-weight: bold;
}

.service-info-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Drip Feed Section */
.dripfeed-toggle-group {
  margin: 20px 0;
}

.checkbox-container {
  display: block;
  position: relative;
  padding-left: 32px;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  font-weight: 500;
  color: var(--text-primary);
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-accent);
}

.checkbox-container input:checked ~ .checkmark {
  background: var(--primary-gradient);
  border-color: transparent;
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-container .checkmark::after {
  left: 6.5px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dripfeed-fields {
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dripfeed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.form-subgroup label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-subgroup input {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.form-subgroup input:focus {
  border-color: var(--input-focus-border);
}

/* Pricing Card Client */
.price-display-wrapper {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.07) 0%, rgba(6, 182, 212, 0.07) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 28px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-val-container {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.displayCurrencySymbol {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-accent);
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

/* Buttons */
.btn-submit {
  width: 100%;
  background: var(--primary-gradient);
  border: none;
  border-radius: 14px;
  padding: 16px;
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
  opacity: 0.95;
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  box-shadow: none;
  cursor: not-allowed;
}

/* Tracker styling */
.tracker-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.tracker-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.tracker-search-bar input {
  flex-grow: 1;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.tracker-search-bar input:focus {
  border-color: var(--input-focus-border);
}

.btn-track {
  background: var(--accent-gradient);
  border: none;
  border-radius: 12px;
  padding: 0 20px;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-track:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.track-result {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}

.track-item-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.track-item-row:last-child {
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.track-item-label {
  color: var(--text-muted);
}

.track-item-val {
  font-weight: 600;
  color: var(--text-primary);
}

/* Features List Right */
.features-list {
  margin-top: 24px;
}

.features-ul {
  list-style: none;
}

.features-ul li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.features-ul li:last-child {
  margin-bottom: 0;
}

.feat-icon {
  font-size: 1.5rem;
  background: rgba(139, 92, 246, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feat-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* History Section Table styling */
.history-section {
  grid-column: span 2;
  margin-top: 16px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-header-row .section-title {
  margin-bottom: 0;
}

.history-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn-refresh {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 18px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-refresh:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.table-container {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--card-border);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.history-table th {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
}

.history-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

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

.history-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

.empty-table {
  text-align: center !important;
  color: var(--text-muted) !important;
  padding: 40px !important;
  font-style: italic;
}

/* Badge status */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-completed {
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pending {
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-inprogress {
  background-color: rgba(6, 182, 212, 0.12);
  color: var(--info);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.status-partial {
  background-color: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.status-canceled {
  background-color: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Refill action button */
.btn-refill-table {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s ease;
}

.auth-modal-card {
  max-width: 440px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.btn-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.btn-modal-close:hover {
  color: var(--text-primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
}

/* Auth Modal Specifics */
.auth-tabs {
  display: flex;
  gap: 16px;
}

.auth-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
}

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

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-error-msg {
  color: var(--danger);
  font-size: 0.8rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.btn-auth-submit {
  width: 100%;
  background: var(--primary-gradient);
  border: none;
  border-radius: 12px;
  padding: 14px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}

.btn-auth-submit:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

/* ==========================================
   ECPay Mock Window CSS
   ========================================== */
.ecpay-window {
  background-color: #f4f4f4;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: #333;
  animation: fadeIn 0.3s ease;
}

.ecpay-header {
  background-color: #2baf54; /* Green logo ECPay */
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.ecpay-logo {
  font-size: 1.05rem;
}

.ecpay-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

.ecpay-body {
  padding: 24px;
}

.ecpay-order-summary {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}

.ecpay-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: #666;
}

.ecpay-summary-row:last-child {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px dotted #e0e0e0;
}

.ecpay-card-form {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid #e0e0e0;
}

.ecpay-input-group {
  margin-bottom: 16px;
}

.ecpay-input-group:last-child {
  margin-bottom: 0;
}

.ecpay-input-group label {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 6px;
  font-weight: 600;
}

.ecpay-input-card {
  flex: 1;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.ecpay-input-text {
  width: 100%;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}

.btn-ecpay-submit {
  width: 100%;
  background-color: #2baf54;
  border: none;
  border-radius: 10px;
  padding: 14px;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 12px;
}

.btn-ecpay-submit:hover {
  background-color: #249747;
}

.btn-ecpay-fail {
  width: 100%;
  background-color: #e0e0e0;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  color: #666;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ecpay-fail:hover {
  background-color: #d0d0d0;
  color: #333;
}

/* Footer & Toast styling */
.smm-footer {
  text-align: center;
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-accent);
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-left: 4px solid var(--text-accent);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: flex;
  align-items: center;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
  transform: translateY(0);
}

/* Loader Spinners */
.loader-spinner, .refresh-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

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

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

@keyframes slideDown {
  from { opacity: 0; max-height: 0; overflow: hidden; }
  to { opacity: 1; max-height: 200px; }
}

@media (max-width: 992px) {
  .smm-grid {
    grid-template-columns: 1fr;
  }
  .history-section {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 16px;
    gap: 16px;
  }
  .nav-links {
    gap: 16px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}
