/* ===== UPDATED VARIABLES ===== */
:root {
  --primary-color: #0c1529;
  --secondary-color: #1d3d7a;
  --accent-color: #00e5ff;
  --accent-color-2: #ff3d71;
  --text-color: #ffffff;
  --text-secondary: #e0e0e0;
  --card-bg: #121a2b;
  --card-hover-bg: #16203a;
  --success-color: #00d68f;
  --warning-color: #ffaa00;
  --danger-color: #ff3d71;
  --ring-color-1: #00c6ff;
  --ring-color-2: #ff3d71;
  --ring-color-3: #00d68f;
  --google-color: #4285F4;
  --facebook-color: #3b5998;
  --border-color: rgba(255, 255, 255, 0.15);
  --danger-bg: rgba(244, 67, 54, 0.1);
  --primary-dark: #081020;
  --secondary-dark: #152450;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* ===== BASE STYLES ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #0a1120);
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 450;
  line-height: 1.6;
  position: relative;
  color: var(--text-color);
}

a, a:hover, a:focus, a:active {
  text-decoration: none !important;
  color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* ===== KEYFRAME ANIMATIONS (Optimized) ===== */
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ===== UTILITY CLASSES ===== */
.text-info, .text-info * { color: var(--text-color) !important; }
.text-warning, .text-warning * { color: var(--warning-color) !important; }
.text-success, .text-success * { color: var(--success-color) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.status-error { color: var(--danger-color) !important; }
.status-warning { color: var(--warning-color) !important; }
.status-success { color: var(--success-color) !important; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }

.shadow { box-shadow: var(--shadow); }

/* ===== LOGO STYLES ===== */
.logo-animated {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 15px;
}

.logo-core {
  position: relative;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.7);
  overflow: hidden;
  z-index: 2;
  animation: logoFloat 4s ease-in-out infinite;
}

.logo-letter {
  font-weight: bold;
  font-size: 36px;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 2;
}

.logo-ring {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  animation: logoRotate 12s linear infinite;
  border-style: solid;
}

.logo-ring:nth-child(1) {
  width: 100px;
  height: 100px;
  animation-duration: 15s;
  border-width: 1px;
  border-color: var(--ring-color-1);
  border-radius: 50% 40% 60% 30% / 60% 50% 70% 40%;
}

.logo-ring:nth-child(2) {
  width: 130px;
  height: 130px;
  animation-duration: 20s;
  animation-direction: reverse;
  border-width: 1.5px;
  border-color: var(--ring-color-2);
  border-radius: 40% 60% 30% 70% / 50% 70% 30% 60%;
}

.logo-ring:nth-child(3) {
  width: 160px;
  height: 160px;
  animation-duration: 25s;
  border-width: 2px;
  border-color: var(--ring-color-3);
  border-radius: 60% 30% 70% 40% / 30% 60% 40% 70%;
}

/* ===== AUTH PAGES ===== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
}

.auth-container {
  background: rgba(18, 26, 43, 0.95);
  border-radius: 15px;
  padding: 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  animation: cardAppear 0.6s ease-out;
  position: relative;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h2 {
  color: var(--accent-color);
  margin-top: 15px;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease-out;
  position: relative;
}

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

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color) !important;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
}

.error-message {
  color: var(--danger-color);
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
}

/* ===== BUTTON STYLES (FIXED) ===== */
.btn, .btn-primary, .btn-secondary {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: white !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), #0066ff);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 198, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 198, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 30px;
  position: relative;
  z-index: 20;
}

.section-title {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: titleAppear 0.6s ease-out;
  font-size: 2.2rem;
  text-align: center;
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  border-radius: 3px;
}

/* ===== CARD STYLES (FIXED TEXT COLORS) ===== */
.card {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: 
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
    box-shadow 0.3s ease,
    background 0.4s ease;
  margin-bottom: 25px;
  overflow: hidden;
  position: relative;
  transform: translateY(0);
  animation: cardAppear 0.6s ease-out;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  background: var(--card-hover-bg);
}

.card-header {
  background: rgba(0, 198, 255, 0.1);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 20px;
  color: var(--accent-color);
  position: relative;
  z-index: 1;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0, 198, 255, 0.5);
}

.card-body {
  padding: 20px;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s ease-out;
  color: var(--text-color);
}

.card-body *:not(.status-error):not(.status-warning):not(.status-success) {
  color: var(--text-color) !important;
}

.card-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 15px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }
}

@media (min-width: 1600px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: var(--card-bg) !important;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(0, 229, 255, 0.2) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  backdrop-filter: blur(10px);
  z-index: 10;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 229, 255, 0.4) !important;
  background: var(--card-hover-bg) !important;
  border-color: rgba(0, 229, 255, 0.4) !important;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--accent-color);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--text-color);
}

.service-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 20px 0;
  color: var(--success-color);
}

.service-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1;
  margin-bottom: 15px;
}

.service-action {
  display: inline-block;
  padding: 10px 25px;
  background: rgba(0, 198, 255, 0.15);
  border-radius: 30px;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s ease;
  margin-top: 15px;
  border: 1px solid rgba(0, 198, 255, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 229, 255, 0.3) !important;
}

.service-action:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0, 229, 255, 0.6) !important;
}

/* ===== MODAL STYLES (FIXED) ===== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2999;
  display: none;
}

.result-modal,
.payment-method-modal,
.payment-status-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 10000;
  overflow: auto;
  align-items: center;
  justify-content: center;
  transition: 
    opacity 0.3s ease, 
    transform 0.3s ease;
  opacity: 0;
  transform: translateY(-20px);
}

.modal-content {
  background: rgba(18, 26, 43, 0.95);
  border-radius: 12px;
  margin: 5% auto;
  padding: 30px 25px 25px;
  width: 90%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: var(--text-color);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-content *:not(.status-error):not(.status-warning):not(.status-success) {
  color: var(--text-color) !important;
}

.modal-content .btn {
  margin-top: 15px;
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 2rem;
  padding: 0;
  line-height: 1;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 100;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== SPINNER ===== */
.spinner-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 20000;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(0, 198, 255, 0.3);
  border-radius: 50%;
  border-top: 5px solid var(--accent-color);
  animation: spin 1s linear infinite;
}

/* ===== TABLE STYLES (FIXED TEXT COLORS) ===== */
.table-container {
  overflow-x: auto;
  margin: 25px 0;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

.history-table th {
  background: rgba(0, 198, 255, 0.1);
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: var(--accent-color);
}

.history-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.history-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

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

/* ===== FOOTER STYLES ===== */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  background: var(--accent-color);
  box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
}

.facebook-bg { background: #3b5998; }
.instagram-bg { background: #e1306c; }
.telegram-bg { background: #0088cc; }
.whatsapp-bg { background: #25d366; }
.viber-bg { background: #7360f2; }
.tiktok-bg { background: #000000; }
.youtube-bg { background: #ff0000; }

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199px) {
  .main-content { padding: 25px; }
}

@media (max-width: 992px) {
  .main-content { padding: 20px; }
  .logo-animated { width: 60px; height: 60px; }
  .logo-core { width: 50px; height: 50px; }
  .logo-letter { font-size: 24px; }
  .logo-ring:nth-child(1) { width: 60px; height: 60px; }
  .logo-ring:nth-child(2) { width: 75px; height: 75px; }
  .logo-ring:nth-child(3) { width: 90px; height: 90px; }
}

@media (max-width: 768px) {
  .main-content { padding: 20px 15px; padding-bottom: 100px; }
  .service-card { padding: 20px 15px; }
  .service-price { font-size: 1.8rem; }
  .auth-container { padding: 30px 20px; }
  .auth-header .logo-animated { width: 80px; height: 80px; }
  .auth-header .logo-core { width: 60px; height: 60px; }
  .auth-header .logo-letter { font-size: 28px; }
  .auth-header h2 { font-size: 1.5rem; }
  .form-control { padding: 12px 15px; }
  .result-row { flex-direction: column; }
  .result-label { width: 100%; margin-bottom: 5px; }
  .result-value { width: 100%; }
  .section-title { font-size: 1.8rem; }
}

@media (max-width: 576px) {
  .service-card { margin-bottom: 20px; }
  .auth-container { padding: 25px 15px; }
  .history-table th, .history-table td { padding: 10px 12px; font-size: 0.9rem; }
  .section-title { font-size: 1.6rem; }
}

@media (max-width: 360px) {
  .main-content { padding: 15px 10px; }
  .auth-container { padding: 20px 10px; }
  .section-title { font-size: 1.3rem; }
  .service-title { font-size: 1.1rem; }
  .service-price { font-size: 1.5rem; }
  .modal-content { padding: 15px 10px; }
  .close-modal { width: 30px; height: 30px; font-size: 1.3rem; }
}

/* ===== UNLOCK PAGE STYLES ===== */
.service-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 198, 255, 0.2);
    border-color: #00e5ff;
}

.service-card.border-primary {
    border: 2px solid #00e5ff !important;
}

.service-icon {
    font-size: 2rem;
    color: #00e5ff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 198, 255, 0.1);
    border-radius: 50%;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
    color: #00d68f;
}

.result-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.table th {
    color: #00e5ff;
    padding-right: 20px;
  }
