/* ============================================================
   GROWZY PREMIUM — assets/css/theme.css
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --primary:    #7C3AED;
  --primary-l:  #9D5FF0;
  --primary-d:  #5B21B6;
  --accent:     #00E5FF;
  --accent-d:   #00B4CC;
  --bg:         #0B1120;
  --bg2:        #0F172A;
  --card:       #111827;
  --card2:      #1E293B;
  --gold:       #F59E0B;
  --white:      #FFFFFF;
  --text:       #CBD5E1;
  --text-muted: #64748B;
  --success:    #22C55E;
  --danger:     #EF4444;
  --warning:    #F59E0B;
  --border:     rgba(255,255,255,0.08);
  --glass-bg:   rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.1);
  --grad-main:  linear-gradient(135deg, #7C3AED, #00E5FF);
  --grad-card:  linear-gradient(135deg, rgba(124,58,237,0.15), rgba(0,229,255,0.08));
  --shadow-sm:  0 4px 16px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:  0 16px 64px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(124,58,237,0.3);
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --font-main:  'Poppins', sans-serif;
  --font-body:  'Inter', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-main);
  color: var(--white);
  line-height: 1.25;
}

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

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ── Section ── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.35);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

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

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

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(124,58,237,0.4);
}

/* ── Gradient Card ── */
.grad-card {
  background: var(--grad-card);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grad-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-main);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.grad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-main);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.6);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 40px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16A34A; transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; transform: translateY(-1px); }
.btn-warning { background: var(--gold); color: #0B1120; }
.btn-warning:hover { background: #D97706; transform: translateY(-1px); }

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s, opacity 0.4s;
  opacity: 0;
}
.btn:active::after { width: 200px; height: 200px; opacity: 0; }

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { cursor: pointer; }

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.badge-danger  { background: rgba(239,68,68,0.15);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--gold);    border: 1px solid rgba(245,158,11,0.3); }
.badge-info    { background: rgba(0,229,255,0.1);   color: var(--accent);  border: 1px solid rgba(0,229,255,0.25); }
.badge-purple  { background: rgba(124,58,237,0.15); color: var(--primary-l); border: 1px solid rgba(124,58,237,0.3); }

/* ── Avatar ── */
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
  flex-shrink: 0;
}

.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }

/* ── Alert ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-success { background: rgba(34,197,94,0.1);  border-color: rgba(34,197,94,0.3);  color: #4ADE80; }
.alert-danger  { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #F87171; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #FCD34D; }
.alert-info    { background: rgba(0,229,255,0.08); border-color: rgba(0,229,255,0.25); color: var(--accent); }

/* ── Table ── */
.premium-table { width: 100%; border-collapse: collapse; }
.premium-table thead th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
}
.premium-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.premium-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.premium-table tbody td {
  padding: 16px;
  font-size: 14px;
  color: var(--text);
  vertical-align: middle;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* ── Glow shapes ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow-purple { background: rgba(124,58,237,0.3); }
.glow-cyan   { background: rgba(0,229,255,0.2); }

/* ── Toast notifications ── */
#toastContainer {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  min-width: 280px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-body);
  box-shadow: var(--shadow-md);
  animation: toastIn 0.4s ease forwards;
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.info    { border-left-color: var(--accent); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ── Loader ── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Utilities ── */
.fw-700  { font-weight: 700; }
.fw-600  { font-weight: 600; }
.fs-12   { font-size: 12px; }
.fs-13   { font-size: 13px; }
.fs-14   { font-size: 14px; }
.text-white   { color: var(--white); }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-accent  { color: var(--accent); }
.text-primary { color: var(--primary-l); }
.text-gold    { color: var(--gold); }
.d-flex  { display: flex; }
.align-center { align-items: center; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.gap-24  { gap: 24px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-0   { padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ── AOS-like animations ── */
[data-anim] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-anim="fade-left"]  { transform: translateX(-30px); }
[data-anim="fade-right"] { transform: translateX(30px); }
[data-anim="scale"]      { transform: scale(0.9); }
[data-anim].animated {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .section { padding: 70px 0; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section-title { font-size: 26px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
  .glass-card, .grad-card { padding: 24px; }
}
