/* -------------------- GLOBAL -------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #2f63a6;
  --card-shadow: 0 6px 20px rgba(19, 38, 63, 0.08);
  --valid-outline: #9eb395a9;
  --valid-green: #4d4c17;
  --valid-bg: #effff2;
  --blue: #245e8c;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

html,
body {
  padding-top: 15px;
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #222;
  background: #fafafa;
  padding-top: calc(30px + env(safe-area-inset-top));
}

/* -------------------- LINKS -------------------- */
.link {
  margin: 20px 0 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: #dce6f0;
  text-decoration: none;
}

.forgot {
  color: #317ac4;
  text-decoration: none;
  font-size: 15px;
  margin-top: 10px;
}

/* -------------------- APP ICON -------------------- */
.app-icon {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* -------------------- HEADER -------------------- */
header {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

header h2 {
  font-size: 15px;
  font-weight: 500;
  color: #666;
}

headerD {
  padding-left: 20px;
  font-size: 22px;
  font-weight: 600;
  text-align: left;
}

/* -------------------- MAIN -------------------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  margin-bottom: 90px;
  overflow-y: auto;
  gap: 24px;
}

/* -------------------- PROFILE -------------------- */
.logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
  align-items: center;
  justify-items: center;
}

.logos img {
  max-height: 40px;
  object-fit: contain;
}

.version {
  font-size: 13px;
  color: #6b7280;
  text-align: left;
  margin-bottom: 40px;
}

.profile-text {
  display: flex;
  flex-direction: column;
  color: rgb(67, 81, 145);
}

.profile-text strong {
  font-size: 16px;
}

.profile-text span {
  font-size: 13px;
  color: #394764;
}

/* -------------------- DOCUMENTS -------------------- */
.doc-card {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  background: transparent;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
}

.doc-card img {
  display: block;
  width: 100%;
  height: auto;
}

.valid-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--valid-bg);
  color: var(--valid-green);
  border: 1px solid var(--valid-outline);
  border-radius: 50px;
  padding: 6px 8px;
  font-weight: 450;
  font-size: 13px;
}

.doc-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.doc-images img {
  max-width: 170px;
  border-radius: 6px;
}

.valid-hint2 {
  margin: 0 auto;
  display: inline-block;
  background: var(--valid-bg);
  color: var(--valid-green);
  border: 1px solid var(--valid-outline);
  border-radius: 50px;
  padding: 4px 8px;
  font-weight: 400;
  font-size: 16px;
  text-align: center;
}

/* -------------------- NAVIGATION -------------------- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #fafafa;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding-top: env(safe-area-inset-top);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.tp-nav,
.top.txt-nav {
  padding: 16px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

nav.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 85px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #ddd;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
}

.prokazat {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 13%;
}

.icon,
.icon2 {
  width: 55px;
  height: 55px;
  margin-bottom: 26%;
}

/* -------------------- BUTTONS & MISC -------------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 90%;
  height: 40px;
  max-width: 360px;
  padding: 5px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #f5f8fc;
  color: var(--accent);
  font-weight: 550;
  text-decoration: none;
  font-size: 18px;
  cursor: pointer;
}

.btn .icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  margin-bottom: 4px;
}

/* -------------------- QR SECTION -------------------- */
.title2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.qr {
  width: 90%;
  max-width: 350px;
  margin-bottom: 24px;
}

.qr img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.08) inset;
}

.hint {
  font-size: 14px;
  color: #fcfcfc;
  text-align: center;
  margin-bottom: 20px;
}

.hint2 {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 20px;
}

.back,
.back2 {
  position: absolute;
  left: 0;
  color: #222222;
  text-decoration: none;
  line-height: 1;
}

.back {
  z-index: 999;
  width: 60px;
  height: 60px;
  top: 15px;
  font-size: 24px;
  padding: 4px 8px;
}

.back2 {
  width: 55px;
  height: 55px;
  top: 0;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 8px;
}
