:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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;
}

.login-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.login-card h2 {
  color: var(--primary);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 1.4;
}

.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: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  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: 4px;
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.login-error {
  color: #dc2626;
  font-size: 0.9rem;
  margin-top: 12px;
  padding: 8px;
  background: #fee2e2;
  border-radius: 6px;
}

/* Account info */
.account-info {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.account-info .icon {
  margin-right: 6px;
}

.telegram-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.telegram-link:hover {
  text-decoration: underline;
}

/* DASHBOARD UI */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.navbar h1 {
  color: var(--primary);
  font-size: 1.5rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.hero-section {
  margin: 30px 0;
  background: #e0e7ff;
  padding: 30px;
  border-radius: 10px;
}

.hero-section h2 {
  margin-bottom: 8px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 20px;
}

.card-btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  background: var(--primary);
  color: white;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
}