@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --hero-gradient: linear-gradient(135deg, #e0e7ff 0%, #fae8ff 100%);
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(99, 102, 241, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* LOGIN UI */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 16px;
}

.login-card {
  background: var(--card-bg);
  padding: 32px 24px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 480px;
  width: 100%;
  text-align: center;
}


.login-card h2 {
  color: #4f46e5; 
  margin-bottom: 8px;
  font-size: 1.75rem;
  font-weight: 800;
}

.subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.input-group {
  text-align: left;
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  font-size: 16px;
  transition: border 0.2s;
}

.input-group input:focus {
  border-color: var(--primary);
}

.input-group .hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.3;
}

.btn-primary {
  width: 100%;
  background: var(--primary-gradient);
  color: white;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:active {
  transform: scale(0.98);
}

.login-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 14px;
  padding: 10px;
  background: #fee2e2;
  border-radius: 8px;
}

.account-info {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.telegram-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* FEATURE PREVIEW SECTION */
.preview-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed #e2e8f0;
  text-align: left;
}

.preview-title {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
  text-align: center;
  font-weight: 700;
}

.preview-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-item {
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.preview-item:hover {
  border-color: #c7d2fe;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.preview-icon {
  font-size: 1.2rem;
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.preview-header strong {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.preview-list {
  padding-left: 24px;
  margin: 0;
}

.preview-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 4px;
}

.preview-list li::marker {
  color: var(--primary);
}

/* DASHBOARD UI */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}


.navbar h1 {
  color: #4f46e5;
  font-size: 1.5rem;
  font-weight: 800;
}

.btn-outline {
  background: white;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-section {
  margin: 28px 0 36px 0;
  background: var(--hero-gradient);
  padding: 32px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-section h2 {
  font-size: 1.5rem;
  color: #1e1b4b;
  margin-bottom: 8px;
}

.hero-section p {
  color: #4338ca;
  font-size: 0.92rem;
  line-height: 1.6;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #c7d2fe;
}

.card-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 14px;
}

.card:nth-child(1) .card-icon { background: #e0e7ff; }
.card:nth-child(2) .card-icon { background: #fae8ff; }
.card:nth-child(3) .card-icon { background: #fef3c7; }
.card:nth-child(4) .card-icon { background: #dcfce7; }

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--primary-gradient);
  color: white;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}