/* MySalesX1 — sdílené CSS pro všechny obrazovky */

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

html, body {
  background: #fafaf7;
  color: #1a1a1a;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== HEADER ========== */
.app-header {
  border-bottom: 2px solid #1a1a1a;
  padding: 18px 32px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1a1a1a;
  text-decoration: none;
}
.logo-mark {
  color: #c5402b;
  font-weight: 800;
}
.nav-meta {
  font-size: 11px;
  color: #6b6b6b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-meta a {
  color: #c5402b;
  text-decoration: none;
  font-weight: 600;
}
.nav-meta a:hover { text-decoration: underline; }

/* ========== CONTENT ========== */
.app-content {
  flex: 1;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
  padding: 80px 32px 48px;
}
.app-content.wide { max-width: 720px; }

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #c5402b;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid #c5402b;
  display: inline-block;
}
h1 {
  font-size: 44px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.lede {
  font-size: 17px;
  color: #6b6b6b;
  line-height: 1.55;
  margin-bottom: 36px;
  border-left: 3px solid #c5402b;
  padding-left: 18px;
}
strong { font-weight: 600; color: #1a1a1a; }

/* ========== FORM ========== */
.field {
  margin-bottom: 24px;
}
.field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 10px;
}
input[type="email"], input[type="text"] {
  width: 100%;
  border: none;
  border-bottom: 2px solid #1a1a1a;
  background: transparent;
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}
input:focus {
  outline: none;
  border-bottom-color: #c5402b;
}
input::placeholder {
  color: #999999;
  font-weight: 400;
}
input:disabled {
  color: #999999;
  border-bottom-color: #d4d4d0;
  cursor: not-allowed;
}

.btn-primary {
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
  transition: all 0.15s;
}
.btn-primary:hover { background: #c5402b; }
.btn-primary:disabled {
  background: #d4d4d0;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: #1a1a1a; color: #ffffff; }

.btn-text {
  background: transparent;
  color: #c5402b;
  border: none;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid #c5402b;
  padding-bottom: 1px;
}
.btn-text:hover { opacity: 0.7; }

/* ========== STATUS BOXY (info, success, error) ========== */
.box {
  margin-top: 32px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #d4d4d0;
  font-size: 13px;
}
.box.info { border-left: 3px solid #c5402b; }
.box.error { border: 1px solid #c5402b; background: rgba(197,64,43,0.05); color: #1a1a1a; }
.box.success { border: 1px solid #c5402b; background: #ffffff; }
.box-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 8px;
}
.box-value { color: #1a1a1a; font-weight: 500; line-height: 1.5; }
.box-value.ok { color: #c5402b; font-weight: 700; }

/* ========== KVÓTA (dashboard counter) ========== */
.quote-counter {
  text-align: center;
  padding: 32px 0;
}
.quote-counter .num {
  font-size: 72px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  letter-spacing: -0.04em;
}
.quote-counter .num .denominator {
  color: #999999;
  font-weight: 400;
}
.quote-counter .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b6b6b;
  margin-top: 14px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #d4d4d0;
  border-bottom: 1px solid #d4d4d0;
  padding: 14px 0;
  font-size: 11px;
  font-weight: 500;
  color: #6b6b6b;
  margin: 32px 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========== LOADER (mini spinner pro buttony) ========== */
.loader {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== FOOTER ========== */
.app-footer {
  border-top: 1px solid #d4d4d0;
  padding: 28px 32px 32px;
  text-align: center;
  margin-top: auto;
}
.credit {
  font-size: 12px;
  font-weight: 500;
  color: #6b6b6b;
}
.credit a {
  color: #c5402b;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.credit a:hover {
  border-bottom-color: #c5402b;
}
.copyright {
  font-size: 11px;
  color: #999999;
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.hidden { display: none !important; }

/* ============================================ */
/* STEP 3 — VYHLEDÁVÁNÍ FIREM                    */
/* ============================================ */

/* PO/FO Toggle (segmented control) */
.subject-toggle {
  display: inline-flex;
  background: #ffffff;
  border: 2px solid #1a1a1a;
  margin-bottom: 16px;
}
.subject-toggle button {
  background: transparent;
  border: none;
  color: #1a1a1a;
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}
.subject-toggle button.active {
  background: #1a1a1a;
  color: #ffffff;
}
.subject-toggle button:hover:not(.active) {
  background: #f0f0eb;
}

/* Vyhledávací pole + dropdown */
.search-wrap {
  position: relative;
}
.search-input {
  width: 100%;
  border: 2px solid #1a1a1a;
  background: #ffffff;
  padding: 16px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}
.search-input:focus {
  outline: none;
  border-color: #c5402b;
}
.search-input::placeholder {
  color: #999999;
  font-weight: 400;
}

.search-dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 2px solid #1a1a1a;
  border-top: none;
  max-height: 360px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.search-dropdown.hidden { display: none; }

.suggestion {
  padding: 14px 20px;
  border-bottom: 1px solid #ececec;
  cursor: pointer;
  transition: background 0.1s;
}
.suggestion:last-child { border-bottom: none; }
.suggestion:hover, .suggestion.highlighted {
  background: #fafaf7;
}
.suggestion .name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 4px;
}
.suggestion .ico {
  font-size: 11px;
  font-weight: 500;
  color: #6b6b6b;
  letter-spacing: 0.05em;
}

.search-status {
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: #6b6b6b;
}
.search-status.error {
  color: #c5402b;
}

/* ============================================ */
/* KARTA FIRMY (company.html)                    */
/* ============================================ */

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
}
.back-link:hover { color: #c5402b; }

.company-card {
  background: #ffffff;
  border: 2px solid #1a1a1a;
  margin: 24px 0;
  padding: 0;
}
.company-card-header {
  padding: 32px 32px 28px;
  border-bottom: 1px solid #d4d4d0;
}
.company-name {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 16px;
}
.company-meta {
  display: grid;
  gap: 8px;
}
.company-meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  font-size: 13px;
  align-items: baseline;
  gap: 12px;
}
.company-meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.company-meta-value {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
}
.company-meta-value.muted {
  color: #999999;
  font-style: italic;
}

.company-card-price {
  padding: 24px 32px;
  border-bottom: 1px solid #d4d4d0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.price-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1a1a1a;
}
.price-value .currency {
  font-size: 22px;
  font-weight: 600;
  color: #6b6b6b;
  margin-left: 4px;
}

.company-card-action {
  padding: 24px 32px 32px;
}
.pay-btn {
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 18px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s;
}
.pay-btn:hover:not(:disabled) { background: #c5402b; }
.pay-btn:disabled {
  background: #d4d4d0;
  color: #999999;
  cursor: not-allowed;
}
.pay-info {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #6b6b6b;
  line-height: 1.5;
}
.pay-info .stripe-mark {
  color: #1a1a1a;
  font-weight: 600;
}
.pay-warning {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #c5402b;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #6b6b6b;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d4d4d0;
}
