/* ========================
   KAIROS ULTIMATE TOOL PRO
   Global Stylesheet - Dark Premium Theme
   ======================== */

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

:root {
  --primary: #6C63FF;
  --primary-light: #8B85FF;
  --secondary: #FF6584;
  --accent: #43E97B;
  --accent-blue: #38F9D7;
  --bg-dark: #0A0B1A;
  --bg-card: #111230;
  --bg-card2: #0F1028;
  --border: rgba(108, 99, 255, 0.2);
  --border-hover: rgba(108, 99, 255, 0.5);
  --text: #E8E8FF;
  --text-muted: #8888BB;
  --text-dim: #555580;
  --glass: rgba(17, 18, 48, 0.8);
  --glass2: rgba(108, 99, 255, 0.08);
  --gradient: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
  --gradient-soft: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(255,101,132,0.15) 100%);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* BACKGROUNDS */
.bg-animated {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
}
.bg-animated::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: float1 8s ease-in-out infinite;
}
.bg-animated::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,101,132,0.12) 0%, transparent 70%);
  bottom: -150px; right: -150px;
  animation: float2 10s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -60px) scale(1.1); }
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 11, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 12px 5%;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.nav-logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-user-name {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.nav-user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
}
.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--glass2);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
}
.btn-ghost:hover { color: var(--text); }
.btn-success {
  background: linear-gradient(135deg, #43E97B 0%, #38F9D7 100%);
  color: #0A0B1A;
  box-shadow: 0 4px 20px rgba(67, 233, 123, 0.3);
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(67, 233, 123, 0.5); }
.btn-danger {
  background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 65, 108, 0.3);
}
.btn-danger:hover { transform: translateY(-2px); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: 6px; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }
.btn-icon { padding: 8px; border-radius: 8px; }

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(108, 99, 255, 0.15);
}
.card-glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* SECTIONS */
section {
  padding: 100px 5%;
}
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}
.hero-content {
  flex: 1;
  max-width: 580px;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 36px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-orb {
  width: 420px; height: 420px;
  position: relative;
}
.hero-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(108, 99, 255, 0.3);
  animation: spin-slow linear infinite;
}
.hero-orb-ring:nth-child(1) { inset: 0; animation-duration: 20s; }
.hero-orb-ring:nth-child(2) { inset: 40px; border-color: rgba(255, 101, 132, 0.2); animation-duration: 15s; animation-direction: reverse; }
.hero-orb-ring:nth-child(3) { inset: 80px; border-color: rgba(67, 233, 123, 0.15); animation-duration: 25s; }
.hero-orb-center {
  position: absolute;
  inset: 120px;
  background: radial-gradient(circle at 40% 40%, rgba(108,99,255,0.4), rgba(255,101,132,0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(108,99,255,0.4);
}
.hero-orb-dot {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 20px rgba(108,99,255,0.8);
}
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: 0 20px 60px rgba(108,99,255,0.2); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* SUPPORTED MODELS */
.models-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: 12px;
  width: fit-content;
  border: 1px solid var(--border);
}
.tab-btn {
  padding: 8px 20px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(108,99,255,0.4);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.search-box {
  position: relative;
  margin-bottom: 20px;
  max-width: 400px;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.search-box-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
}

/* TABLES */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(108,99,255,0.05);
  color: var(--text);
}
.data-table tbody tr:hover { background: var(--glass2); }
.data-table tbody tr:last-child td { border-bottom: none; }
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-active { background: rgba(67, 233, 123, 0.15); color: #43E97B; border: 1px solid rgba(67,233,123,0.3); }
.badge-pending { background: rgba(255, 193, 7, 0.15); color: #FFC107; border: 1px solid rgba(255,193,7,0.3); }
.badge-expired { background: rgba(255, 101, 132, 0.15); color: #FF6584; border: 1px solid rgba(255,101,132,0.3); }
.badge-blocked { background: rgba(255, 65, 108, 0.15); color: #FF416C; border: 1px solid rgba(255,65,108,0.3); }
.badge-info { background: rgba(56, 249, 215, 0.15); color: #38F9D7; border: 1px solid rgba(56,249,215,0.3); }
.badge-samsung { background: rgba(108, 99, 255, 0.15); color: var(--primary-light); border: 1px solid var(--border); }
.badge-mtk { background: rgba(67, 233, 123, 0.15); color: #43E97B; border: 1px solid rgba(67,233,123,0.3); }

/* MTK GRID */
.mtk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.mtk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: var(--transition);
}
.mtk-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.mtk-card-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.mtk-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.mtk-card p { font-size: 0.78rem; color: var(--text-muted); }

/* OTHER BRANDS (Oppo / Vivo / General) */
.other-groups { display: grid; grid-template-columns: 1fr; gap: 28px; }
.other-group h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 12px; color: var(--text); }

/* HOW IT WORKS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  position: relative;
}
.step-number {
  width: 48px; height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(108,99,255,0.5);
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; color: var(--text-muted); }

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
}
.pricing-card.featured {
  background: linear-gradient(145deg, rgba(108,99,255,0.15), rgba(255,101,132,0.1));
  border-color: rgba(108,99,255,0.5);
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(108,99,255,0.3);
}
.pricing-card:hover { transform: translateY(-4px) scale(1.01); }
.pricing-card.featured:hover { transform: translateY(-4px) scale(1.04); }
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
}
.pricing-icon { font-size: 2.2rem; margin-bottom: 12px; }
.pricing-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.pricing-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.pricing-period { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { padding: 6px 0; font-size: 0.88rem; color: var(--text-muted); display: flex; gap: 8px; }
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* CONTACT */
#contact {
  padding: 80px 5%;
  text-align: center;
}
.contact-card {
  max-width: 600px;
  margin: 40px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.contact-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer .footer-copy { font-size: 0.85rem; color: var(--text-dim); }
footer .footer-links { display: flex; gap: 20px; }
footer .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: var(--transition); }
footer .footer-links a:hover { color: var(--primary-light); }

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(108,99,255,0.2);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: var(--transition);
}
.modal-close:hover { color: var(--text); }

/* FORM */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.form-control::placeholder { color: var(--text-dim); }
select.form-control { 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='%238888BB' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

.modal-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.modal-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-muted);
  transition: var(--transition);
}
.modal-tab.active { background: var(--gradient); color: white; }

/* ALERT */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-error { background: rgba(255, 65, 108, 0.12); border: 1px solid rgba(255,65,108,0.3); color: #FF6584; }
.alert-success { background: rgba(67, 233, 123, 0.12); border: 1px solid rgba(67,233,123,0.3); color: #43E97B; }
.alert-info { background: rgba(108, 99, 255, 0.1); border: 1px solid var(--border); color: var(--primary-light); }

/* LICENSE DASHBOARD (for logged-in users) */
.license-section {
  padding: 80px 5%;
}
.license-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.license-header {
  background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(255,101,132,0.1));
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.license-status-big {
  font-size: 1.5rem;
  font-weight: 900;
}
.license-body { padding: 32px; }
.license-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.license-field label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.license-field span { font-size: 0.95rem; font-weight: 600; }
.progress-bar-wrap {
  background: var(--bg-card2);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
  margin-top: 20px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 50px;
  transition: width 1s ease;
}

/* LOADING SPINNER */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap { display: flex; justify-content: center; align-items: center; padding: 60px; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.4; }
.empty-state p { font-size: 0.95rem; }

/* TOAST */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  animation: toast-in 0.3s ease;
  max-width: 340px;
}
.toast-success { border-color: rgba(67,233,123,0.3); }
.toast-error { border-color: rgba(255,65,108,0.3); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  section { padding: 60px 4%; }
  .hero h1 { font-size: 2rem; }
  .license-grid { grid-template-columns: 1fr; }
}
