/*
Theme Name: TechnoBlik Audit Portal
Theme URI: https://technoblik.ua
Author: ТОВ «ТЕХНОБЛІК»
Author URI: https://technoblik.ua
Description: Офіційна світла сучасна корпоративна тема для платформи польового аудиту, особистого кабінету аудиторів та панелі модерації. Чистий скандинавський бізнес-дизайн.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: technoblik
*/

:root {
  --tb-bg: #f8fafc;
  --tb-card: #ffffff;
  --tb-elevated: #f1f5f9;
  --tb-border: #e2e8f0;
  --tb-border-focus: #2563eb;
  --tb-primary: #1d4ed8;
  --tb-primary-hover: #1e40af;
  --tb-primary-soft: #eff6ff;
  --tb-green: #059669;
  --tb-green-soft: #ecfdf5;
  --tb-amber: #d97706;
  --tb-amber-soft: #fffbeb;
  --tb-red: #dc2626;
  --tb-red-soft: #fef2f2;
  --tb-text: #0f172a;
  --tb-muted: #475569;
  --tb-dim: #64748b;
  --tb-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tb-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.04);
  --tb-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --tb-shadow-hover: 0 12px 24px -4px rgb(0 0 0 / 0.08);
  --tb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--tb-font);
  background-color: var(--tb-bg);
  color: var(--tb-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* TOP HEADER */
.tb-header {
  background: var(--tb-card);
  border-bottom: 1px solid var(--tb-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--tb-shadow-sm);
  transition: all 0.2s;
}
.tb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.tb-logo-img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.tb-brand-info h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tb-text);
  line-height: 1.2;
}
.tb-brand-info p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--tb-muted);
}

/* NAVIGATION MENU */
.tb-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .tb-nav-menu {
    display: none;
  }
}
.tb-nav-link {
  color: var(--tb-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.15s;
}
.tb-nav-link:hover {
  color: var(--tb-primary);
}

.tb-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* BUTTONS */
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.2;
}
.tb-btn-primary {
  background: var(--tb-primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.tb-btn-primary:hover {
  background: var(--tb-primary-hover);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}
.tb-btn-outline {
  background: var(--tb-card);
  border-color: var(--tb-border);
  color: var(--tb-text);
}
.tb-btn-outline:hover {
  background: var(--tb-elevated);
  border-color: #cbd5e1;
}
.tb-btn-success {
  background: var(--tb-green);
  color: #ffffff;
}
.tb-btn-success:hover {
  background: #047857;
}
.tb-btn-logout {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: var(--tb-red);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.tb-btn-logout:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #b91c1c;
}

/* CARDS */
.tb-card {
  background: var(--tb-card);
  border: 1px solid var(--tb-border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--tb-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.tb-card:hover {
  box-shadow: var(--tb-shadow-hover);
}

/* CONTAINER */
.tb-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* HERO SECTION */
.tb-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
}
@media (max-width: 960px) {
  .tb-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.tb-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--tb-text);
  margin: 0 0 1.25rem 0;
}
@media (max-width: 768px) {
  .tb-hero-title {
    font-size: 2.1rem;
  }
}
.tb-hero-lead {
  font-size: 1.08rem;
  color: var(--tb-muted);
  line-height: 1.65;
  margin: 0 0 2rem 0;
}

.tb-hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}
.tb-bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tb-text);
}
.tb-bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tb-green-soft);
  color: var(--tb-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* AUTH TABS & CARD */
.tb-auth-card {
  background: var(--tb-card);
  border: 1px solid var(--tb-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--tb-shadow-lg);
}
.tb-auth-tabs {
  display: flex;
  background: var(--tb-elevated);
  border: 1px solid var(--tb-border);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.5rem;
}
.tb-auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--tb-muted);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.tb-auth-tab-btn.active {
  background: var(--tb-card);
  color: var(--tb-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.tb-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--tb-card);
  border: 1px solid var(--tb-border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.92rem;
  color: var(--tb-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tb-input:focus {
  border-color: var(--tb-border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* STATS COUNTER BAR */
.tb-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3.5rem 0;
}
@media (max-width: 900px) {
  .tb-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .tb-stats-grid {
    grid-template-columns: 1fr;
  }
}
.tb-stat-box {
  background: var(--tb-card);
  border: 1px solid var(--tb-border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--tb-shadow-sm);
  transition: transform 0.2s;
}
.tb-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--tb-shadow);
}
.tb-stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--tb-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.tb-stat-label {
  font-size: 0.85rem;
  color: var(--tb-muted);
  font-weight: 600;
}

/* SECTION HEADINGS */
.tb-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}
.tb-section-tag {
  display: inline-block;
  background: var(--tb-primary-soft);
  color: var(--tb-primary);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.tb-section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--tb-text);
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
}
.tb-section-desc {
  font-size: 1rem;
  color: var(--tb-muted);
  line-height: 1.6;
  margin: 0;
}

/* SERVICES GRID */
.tb-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  .tb-services-grid {
    grid-template-columns: 1fr;
  }
}
.tb-service-card {
  background: var(--tb-card);
  border: 1px solid var(--tb-border);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  box-shadow: var(--tb-shadow-sm);
  transition: all 0.2s;
}
.tb-service-card:hover {
  box-shadow: var(--tb-shadow-hover);
  transform: translateY(-2px);
  border-color: #cbd5e1;
}
.tb-service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--tb-primary-soft);
  color: var(--tb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.tb-service-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tb-text);
}
.tb-service-content p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--tb-muted);
  line-height: 1.55;
}

/* WORKFLOW STEPS */
.tb-workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (max-width: 992px) {
  .tb-workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .tb-workflow-grid {
    grid-template-columns: 1fr;
  }
}
.tb-step-card {
  background: var(--tb-card);
  border: 1px solid var(--tb-border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  box-shadow: var(--tb-shadow-sm);
}
.tb-step-num {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--tb-primary);
  background: var(--tb-primary-soft);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.tb-step-card h4 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--tb-text);
}
.tb-step-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--tb-muted);
  line-height: 1.5;
}

/* APP SHOWCASE BANNER */
.tb-app-showcase {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 3rem;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.2);
}
@media (max-width: 900px) {
  .tb-app-showcase {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}
.tb-app-preview-frame {
  width: 100%;
  max-width: 480px;
  border-radius: 18px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.15);
  display: block;
}

/* BADGES & TABLES */
.tb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
.tb-badge-blue { background: var(--tb-primary-soft); color: var(--tb-primary); }
.tb-badge-green { background: var(--tb-green-soft); color: var(--tb-green); }
.tb-badge-amber { background: var(--tb-amber-soft); color: var(--tb-amber); }
.tb-badge-red { background: var(--tb-red-soft); color: var(--tb-red); }

/* FOOTER */
.tb-footer {
  background: var(--tb-card);
  border-top: 1px solid var(--tb-border);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 4rem;
  color: var(--tb-muted);
  font-size: 0.88rem;
}

/* BILINGUAL LANGUAGE SWITCHER */
.tb-lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--tb-elevated);
  border: 1px solid var(--tb-border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.tb-lang-btn {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--tb-muted);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tb-lang-btn:hover {
  color: var(--tb-text);
}
.tb-lang-btn.active {
  background: var(--tb-primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(29, 78, 216, 0.35);
}

/* ADMIN HOMEPAGE QUICK BAR */
.tb-admin-quick-bar {
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 0.6rem 2rem;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px solid #ef4444;
}
.tb-admin-quick-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}
.tb-admin-quick-btn:hover {
  background: #ffffff;
  color: #0f172a;
}

/* ========================================================
   RESPONSIVE LAYOUT & MOBILE SYSTEM
   ======================================================== */

/* Grid utilities */
.tb-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 768px) {
  .tb-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.tb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 960px) {
  .tb-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 600px) {
  .tb-grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.tb-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 960px) {
  .tb-about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Cabinet layout */
.tb-cabinet-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .tb-cabinet-layout {
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 860px) {
  .tb-cabinet-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Payment tabs grid */
.tb-pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 1.5rem;
}
@media (max-width: 840px) {
  .tb-pay-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .tb-pay-methods-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive tables */
.tb-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
}
.tb-table-responsive table {
  min-width: 620px;
}

/* Mobile Hamburger & Menu */
.tb-mobile-menu-btn {
  display: none;
  background: var(--tb-elevated);
  border: 1px solid var(--tb-border);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--tb-text);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s;
}
.tb-mobile-menu-btn:hover {
  background: var(--tb-border);
}
@media (max-width: 1024px) {
  .tb-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.tb-mobile-nav {
  display: none;
  background: var(--tb-card);
  border-bottom: 2px solid var(--tb-primary);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 999;
}
.tb-mobile-nav.open {
  display: block;
}
.tb-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.tb-mobile-nav-links a {
  color: var(--tb-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--tb-elevated);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tb-mobile-nav-links a:hover,
.tb-mobile-nav-links a:active {
  background: var(--tb-primary-soft);
  color: var(--tb-primary);
}
.tb-mobile-nav-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--tb-border);
  padding-top: 1rem;
}

/* Modals on Mobile */
.tb-modal-box {
  background: var(--tb-card, #ffffff);
  border: 1px solid var(--tb-border);
  border-radius: 16px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

/* Fine-grained Mobile Breakpoints */
@media (max-width: 768px) {
  .tb-header {
    padding: 0.6rem 1rem;
  }
  .tb-logo-img {
    height: 36px;
  }
  .tb-brand-info h1 {
    font-size: 1.02rem;
  }
  .tb-brand-info p {
    display: none;
  }
  .tb-admin-quick-bar {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  .tb-hero-grid {
    gap: 2rem;
  }
  .tb-hero-bullets {
    gap: 10px;
  }
  .tb-bullet-item {
    font-size: 0.88rem;
  }
  .tb-auth-card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }
  .tb-service-card {
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .tb-app-showcase {
    padding: 2rem 1.5rem;
    border-radius: 18px;
  }
  .tb-footer {
    padding: 2.5rem 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .tb-container {
    padding: 1.5rem 1rem;
  }
  .tb-hero-title {
    font-size: 1.7rem;
    line-height: 1.2;
  }
  .tb-hero-lead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .tb-section-title {
    font-size: 1.55rem;
  }
  .tb-section-desc {
    font-size: 0.9rem;
  }
  .tb-section-header {
    margin-bottom: 2rem;
  }
  .tb-card {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }
  .tb-btn {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
  .tb-nav-actions .tb-curr-switcher {
    display: none !important;
  }
  .tb-nav-actions .tb-lang-switcher .tb-lang-btn {
    padding: 4px 7px;
    font-size: 0.72rem;
  }
  .tb-modal-box {
    padding: 16px 12px !important;
    border-radius: 12px !important;
  }
}


