/* ================= CSS VARIABLES & DESIGN SYSTEM ================= */
:root {
  --bg-primary: #080c14;
  --bg-secondary: #0f1626;
  --bg-card: rgba(22, 33, 54, 0.65);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-focus: #5b63eb;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --color-purple: #9d4edd;
  --color-pink: #f72585;
  --color-blue: #4cc9f0;
  --color-green: #10b981;
  --color-red: #ef4444;
  
  --gradient-primary: linear-gradient(135deg, #7209b7, #f72585);
  --gradient-secondary: linear-gradient(135deg, #3a0ca3, #4cc9f0);
  --gradient-telegram: linear-gradient(135deg, #229ED9, #2AABEE);
  
  --font-sans: 'Outfit', sans-serif;
  
  --shadow-neon-purple: 0 0 20px rgba(157, 78, 221, 0.35);
  --shadow-neon-pink: 0 0 20px rgba(247, 37, 133, 0.35);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ================= RESET & GENERAL STYLES ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ================= BACKGROUND GLOWS ================= */
.glow-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.glow-1 {
  background-color: var(--color-purple);
  top: -100px;
  right: -100px;
}

.glow-2 {
  background-color: var(--color-blue);
  top: 600px;
  left: -200px;
}

/* ================= TYPOGRAPHY & UTILITIES ================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hidden {
  display: none !important;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid rgba(157, 78, 221, 0.3);
  color: #c084fc;
  margin-bottom: 1.5rem;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  outline: none;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-neon-pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(247, 37, 133, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

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

.btn-telegram {
  background: var(--gradient-telegram);
  color: white;
  box-shadow: 0 0 15px rgba(34, 158, 217, 0.3);
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(34, 158, 217, 0.6);
}

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

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

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

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

/* ================= GLASS PANEL ================= */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

/* ================= HEADER / NAV ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  transition: var(--transition-normal);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
}

.logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: white;
}

.admin-link {
  color: var(--color-blue);
  opacity: 0.85;
}

.admin-link:hover {
  opacity: 1;
  text-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ================= HERO SECTION ================= */
.hero-section {
  padding: 10rem 0 6rem 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.hero-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 300px;
  height: 600px;
  border: 12px solid #1f2937;
  border-radius: 36px;
  background: #000;
  box-shadow: var(--shadow-neon-purple), 0 25px 50px rgba(0,0,0,0.8);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.phone-frame:hover .phone-screenshot {
  transform: scale(1.03);
}

/* ================= FEATURES SECTION ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 2.5rem;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(157, 78, 221, 0.4);
  box-shadow: 0 10px 30px rgba(157, 78, 221, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(157, 78, 221, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-purple);
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-neon-purple);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.feature-desc {
  color: var(--text-secondary);
}

/* ================= KEY CHECKER SECTION ================= */
.check-panel {
  padding: 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.check-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.check-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2.5rem;
}

.check-form-group {
  display: flex;
  gap: 1rem;
}

.form-control {
  background: rgba(8, 12, 20, 0.5);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: white;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(91, 99, 235, 0.2);
}

.check-input {
  flex-grow: 1;
  font-family: monospace;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.check-result-container {
  margin-top: 2rem;
  animation: fadeIn 0.4s ease;
}

.result-card {
  padding: 1.5rem 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.result-card.success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.result-card.danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.8rem;
}

.result-status {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
}

.status-active { color: var(--color-green); }
.status-expired { color: var(--color-red); }

.result-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
}

.result-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.result-info-item span {
  display: block;
}

.info-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.info-val {
  font-weight: 600;
}

/* ================= PRICING SECTION ================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pricing-card.premium-plan {
  border-color: rgba(247, 37, 133, 0.4);
  box-shadow: 0 10px 40px rgba(247, 37, 133, 0.08);
}

.pricing-card.premium-plan::before {
  content: "Popular";
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.pricing-card.premium-plan:hover {
  box-shadow: 0 15px 40px rgba(247, 37, 133, 0.2);
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
}

.plan-duration {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.plan-divider {
  height: 1px;
  background: var(--border-card);
  margin-bottom: 2rem;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-grow: 1;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plan-features-list li i {
  color: var(--color-green);
  margin-top: 0.2rem;
}

/* ================= FAQ SECTION ================= */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  color: white;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question i {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 2rem;
  color: var(--text-secondary);
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: white;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 1.5rem 2rem;
}

/* ================= CONTACT SECTION ================= */
.contact-panel {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

textarea.form-control {
  resize: none;
}

.contact-success {
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.contact-success i {
  font-size: 4rem;
  color: var(--color-green);
  margin-bottom: 1.5rem;
}

/* ================= MODAL ================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 550px;
  padding: 3rem;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: white;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.plan-highlight {
  color: var(--color-pink);
  font-weight: 700;
}

.payment-method-box {
  margin: 1.5rem 0;
}

.payment-title {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.payment-option {
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
}

.payment-option input {
  display: none;
}

.payment-option.active {
  border-color: var(--color-purple);
  background: rgba(157, 78, 221, 0.08);
}

.card-details-fields {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Modal Success State */
.success-icon-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--color-green);
  color: var(--color-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.key-display-box {
  background: rgba(8, 12, 20, 0.6);
  border: 1px dashed rgba(157, 78, 221, 0.5);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0;
}

.generated-key-text {
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #c084fc;
}

.key-info-badge {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  text-align: left;
}

.key-info-badge p {
  margin-bottom: 0.3rem;
}

.warning-alert-text {
  color: #fbbf24;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

/* ================= FOOTER ================= */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-card);
  padding: 5rem 0 2rem 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-desc {
  color: var(--text-secondary);
  max-width: 80%;
}

.footer-links, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-links h4, .footer-social h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

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

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.social-icons a:hover {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-neon-purple);
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid var(--border-card);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ================= LOADER SPIN ================= */
.loader-container {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--color-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

/* ================= AUTH / LOGIN PAGE ================= */
.auth-panel {
  max-width: 450px;
  margin: 8rem auto;
  padding: 3rem;
  text-align: center;
}

.auth-panel h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.auth-panel p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.telegram-sim-box {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--border-card);
}

.telegram-sim-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ================= CLIENT DASHBOARD ================= */
.dashboard-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 8rem;
  margin-bottom: 5rem;
}

.profile-card {
  padding: 2.5rem;
  text-align: center;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.profile-username {
  color: var(--color-blue);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.profile-details {
  text-align: left;
  border-top: 1px solid var(--border-card);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.detail-label {
  color: var(--text-secondary);
}

.detail-val {
  font-weight: 600;
}

/* Email connect form */
.email-connect-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-card);
}

/* Key display dashboard */
.dashboard-keys-panel {
  padding: 2.5rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.keys-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.client-key-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition-fast);
}

.client-key-card:hover {
  border-color: rgba(157, 78, 221, 0.3);
}

.client-key-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.client-key-code {
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #c084fc;
}

.client-key-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.client-key-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 1rem;
}

/* ================= ADMIN PAGE STYLING ================= */
.admin-body {
  background-color: #060913;
}

.admin-login-panel {
  max-width: 450px;
  margin: 10rem auto;
  padding: 3rem;
}

.admin-login-panel h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.admin-header {
  border-bottom: 1px solid var(--border-card);
  padding: 1.5rem 0;
  background: var(--bg-secondary);
  margin-bottom: 3rem;
}

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

.admin-title-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-badge {
  background: rgba(76, 201, 240, 0.1);
  border: 1px solid rgba(76, 201, 240, 0.3);
  color: var(--color-blue);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card-icon.blue { color: var(--color-blue); background: rgba(76, 201, 240, 0.08); }
.stat-card-icon.pink { color: var(--color-pink); background: rgba(247, 37, 133, 0.08); }
.stat-card-icon.purple { color: var(--color-purple); background: rgba(157, 78, 221, 0.08); }
.stat-card-icon.green { color: var(--color-green); background: rgba(16, 185, 129, 0.08); }

.stat-card-info h3 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-card-info p {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
}

.admin-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  overflow: hidden;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 1rem;
}

.admin-table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-card);
}

.admin-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.admin-table td {
  font-size: 0.95rem;
}

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

.table-key {
  font-family: monospace;
  font-weight: 600;
  color: #c084fc;
}

.badge-status {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-green);
}

.badge-status.inactive {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.badge-status.expired {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-red);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  color: white;
}

.btn-icon.delete:hover {
  color: var(--color-red);
}

.btn-icon.edit:hover {
  color: var(--color-blue);
}

/* Form Styles for Admin */
.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-span-2 {
  grid-column: span 2;
}

/* APK Upload Form */
.upload-dropzone {
  display: block;
  border: 2px dashed var(--border-card);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  background: rgba(0, 0, 0, 0.15);
}

.upload-dropzone:hover {
  border-color: var(--color-purple);
  background: rgba(157, 78, 221, 0.03);
}

.upload-dropzone i {
  font-size: 3rem;
  color: var(--color-purple);
  margin-bottom: 1rem;
}

.upload-file-input {
  display: none;
}

.upload-selected-file {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-blue);
}

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

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

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

/* ================= RESPONSIVE MEDIA QUERIES ================= */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    width: 100%;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-desc {
    max-width: 100%;
  }
  
  .admin-form {
    grid-template-columns: 1fr;
  }
  
  .grid-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .check-panel, .contact-panel, .modal-content, .profile-card, .dashboard-keys-panel {
    padding: 2rem;
  }
  
  .check-form-group {
    flex-direction: column;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-card);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
  }
  
  .nav.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem !important;
  }
  .hero-subtitle {
    font-size: 1rem !important;
    max-width: 100%;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem !important;
    justify-content: center;
  }
  .section-title {
    font-size: 1.8rem !important;
  }
  .section-subtitle {
    font-size: 0.95rem !important;
  }
  .btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    width: 100%;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .check-panel, .contact-panel, .modal-content, .profile-card, .dashboard-keys-panel {
    padding: 1.5rem !important;
  }
  .check-input {
    font-size: 1rem !important;
  }
  .pricing-card {
    padding: 2rem 1.5rem !important;
  }
  .client-key-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .client-key-code {
    font-size: 1rem !important;
  }
  .phone-frame {
    width: 260px;
    height: 520px;
  }
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem !important;
  }
  .panel-header div {
    display: flex;
    width: 100%;
    gap: 0.5rem;
  }
  .panel-header div a, .panel-header div button {
    flex-grow: 1;
    justify-content: center;
    text-align: center;
  }
  .admin-header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
  }
  .detail-val {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
  .dashboard-grid {
    margin-top: 5rem !important;
  }
}

/* ================= TOAST NOTIFICATION ================= */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  width: auto;
}

.toast-notification {
  pointer-events: auto;
  min-width: 320px;
  max-width: 400px;
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(15, 22, 38, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-notification.hide {
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
}

.toast-notification i {
  font-size: 1.5rem;
  margin-top: 0.1rem;
}

.toast-notification.success {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1), var(--shadow-card);
}
.toast-notification.success i {
  color: var(--color-green);
}

.toast-notification.danger {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.1), var(--shadow-card);
}
.toast-notification.danger i {
  color: var(--color-red);
}

.toast-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: white;
}

.toast-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 480px) {
  .toast-container {
    top: auto;
    bottom: 24px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  .toast-notification {
    min-width: 0;
    width: 100%;
    transform: translateY(120%);
  }
  .toast-notification.show {
    transform: translateY(0);
  }
}

/* Mobile menu actions visibility */
.mobile-nav-actions {
  display: none;
}

@media (max-width: 768px) {
  .header-actions .btn, .btn-desktop-only {
    display: none !important;
  }
  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    width: 100%;
  }
}


