
/* --- CSS VARIABLES & THEME RESET --- */
:root {
    --bg-color: #0f172a;          /* Dark slate background */
    --card-bg: #1e293b;           /* Slightly lighter dark container */
    --text-main: #f8fafc;         /* Clean white typography */
    --text-muted: #94a3b8;        /* Soft grey for secondary labels */
    --accent-blue: #229ed9;       /* Telegram brand blue */
    --accent-hover: #1d88bc;      /* Hover state blue */
    --accent-green: #10b981;      /* Status badge color */
    --border-color: #334155;      /* Subtle border dividers */
    --radius: 12px;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section Container */
.hero-section {
  padding: 2.5rem 1rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Small introductory tag */
.badge-pill {
  display: inline-block;
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* Fluid Typography: Tighter scaling so it doesn't overwhelm desktop or phone */
.hero-title {
  font-size: clamp(1.75rem, 3.5vw + 1rem, 2.75rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--accent-blue);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.15rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

/* Call to Action Button Group */
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.875rem 1.75rem;
font-size: 1rem;
font-weight: 600;
border-radius: 8px;
text-decoration: none;
transition: all 0.2s ease;
min-height: 48px; /* Ensures touch-friendly tap targets */
}

.btn-primary {
background-color: #2563eb;
color: #ffffff;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
background-color: #1d4ed8;
transform: translateY(-1px);
}

.btn-secondary {
background-color: #f1f5f9;
color: #334155;
}

.btn-secondary:hover {
background-color: #e2e8f0;
}

/* Trust Indicators Below CTA */
.trust-bar {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 1.5rem 2.5rem;
border-top: 1px solid #e2e8f0;
padding-top: 2rem;
color: #64748b;
font-size: 0.875rem;
font-weight: 500;
}

/* Mobile Stacking Rules */
@media (max-width: 600px) {
.hero-section {
    padding: 3rem 1rem 3.5rem;
}

/* Force buttons to stretch full-width on phones for easy thumb tapping */
.cta-group {
    flex-direction: column;
    width: 100%;
}

.btn {
    width: 100%;
}

.trust-bar {
    flex-direction: column;
    gap: 0.75rem;
}
}

/* Navigation / Top Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.brand-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo span {
    color: var(--accent-blue);
}

/* Footer */
footer {
    margin-top: auto;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- INVENTORY SECTION --- */
.inventory-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Category Filter Bar */
.filter-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
}

/* Asset Grid Layout */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

/* Asset Card Styling */
.asset-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.asset-card:hover {
    transform: translateY(-4px);
    border-color: #475569;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Card Header & Badges */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.status-active {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* Bot Username & Description */
.bot-handle {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.bot-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Card Metadata Row */
.card-meta {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

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

/* Card Action Buttons */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.btn-telegram {
    width: 100%;
    background-color: var(--accent-blue);
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    display: block;
}

.btn-telegram:hover {
    background-color: var(--accent-hover);
}

.btn-webform-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
    padding: 4px;
}

.btn-webform-link:hover {
    color: var(--text-main);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .asset-grid {
    grid-template-columns: 1fr;
    }
}

/* ==========================================
   WEB FORM MODAL STYLES
   ========================================== */
.modal-box {
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-color);
  color: var(--text-main);
  max-width: 500px;
  width: 92%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Dim and blur the website background when open */
.modal-box::backdrop {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
}

.modal-inner {
  padding: 24px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 1.2rem;
  margin: 0;
}

.highlight-blue {
  color: var(--accent-blue);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
}

.close-btn:hover {
  color: var(--text-main);
}

.modal-instructions {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* Guide Modal Specifics */
.guide-content {
  text-align: left;
  margin-bottom: 20px;
}

.guide-step {
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-blue);
}

.guide-step h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.guide-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Hide error text by default */
.form-group .error-msg {
  display: none;
  color: #ef4444; /* Bright error red */
  font-size: 0.75rem;
  margin-top: 4px;
  font-weight: 600;
}

/* If the user typed bad input and left the field, turn border red and show message */
.form-group input:user-invalid {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}

.form-group input:user-invalid ~ .error-msg {
  display: block;
}