/* licensing-server/public/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --bg-primary: #0B0F19;
  --bg-secondary: #111827;
  --card-bg: rgba(30, 41, 59, 0.45);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent-indigo: #6366F1;
  --accent-cyan: #06B6D4;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --success-green: #10B981;
  --error-red: #EF4444;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Glow Effects */
.glow-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 600px;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.glow-orb-1 {
  position: absolute;
  top: -150px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
  border-radius: 50%;
}

.glow-orb-2 {
  position: absolute;
  top: 100px;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
  border-radius: 50%;
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Header & Navbar */
header {
  padding: 25px 0;
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.8);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: var(--text-main);
}

/* Button System */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, #4F46E5 100%);
  color: #FFFFFF;
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  padding: 12px 28px;
  font-weight: 500;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

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

/* Card System (Glassmorphic) */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Hero Section */
.hero {
  padding: 100px 0 80px 0;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFFFFF 40%, #A5B4FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 35px auto;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 80px;
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  margin: 15px 0 10px 0;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-indigo);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Pricing / Sales Section */
.pricing-section {
  padding: 60px 0 100px 0;
}

.pricing-title {
  text-align: center;
  margin-bottom: 50px;
}

.pricing-title h2 {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pricing-card {
  max-width: 450px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
}

.pricing-card .price {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 800;
  color: var(--text-main);
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pricing-card .price span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

.features-list {
  text-align: left;
  list-style: none;
  margin: 30px 0;
}

.features-list li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-list li::before {
  content: '✓';
  color: var(--success-green);
  font-weight: bold;
}

/* Cart Side Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--card-border);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  z-index: 200;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-drawer.open {
  right: 0;
}

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

.cart-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.cart-items {
  flex-grow: 1;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  margin-bottom: 15px;
}

.cart-item-title {
  font-weight: 600;
  font-size: 14px;
}

.cart-item-price {
  color: var(--accent-indigo);
  font-weight: bold;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  font-weight: bold;
  font-size: 16px;
}

/* Forms and Inputs */
.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  padding: 12px;
  color: var(--text-main);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--accent-indigo);
}

/* Checkout Panel */
.checkout-panel {
  max-width: 600px;
  margin: 50px auto;
}

.qr-code-box {
  background: #FFFFFF;
  padding: 20px;
  border-radius: 12px;
  display: inline-block;
  margin: 20px 0;
}

.qr-code-box img {
  width: 200px;
  height: 200px;
  display: block;
}

.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  margin-top: 15px;
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.paid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.license-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed var(--success-green);
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  font-family: monospace;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: #10B981;
  text-align: center;
}

/* Admin Dashboard Table */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 40px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  text-align: left;
  font-size: 13px;
}

th, td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--card-border);
}

th {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: bold;
}

tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: background 0.3s;
}

.btn-danger:hover {
  background: var(--error-red);
  color: #FFFFFF;
}

/* Admin Auth Panel */
.admin-login-card {
  max-width: 400px;
  margin: 100px auto;
  text-align: center;
}

/* Responsive Footer */
footer {
  margin-top: 100px;
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
