:root {
  --blue: #4563ea;
  --blue-soft: #eef4ff;
  --text: #2f3037;
  --muted: #6c7280;
  --line: #e8e9ef;
  --panel: #f7f8fb;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.screen-pad {
  min-height: 100vh;
  padding: 18px 18px 42px;
  background: #fbfbfc;
}

.page-title {
  margin: 0 auto;
  padding-top: 8px;
  text-align: center;
  font-size: 34px;
  font-weight: 650;
  color: #2d2e34;
}

.info-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin-top: 50px;
  border: 2px solid #6175e9;
  border-radius: 5px;
  color: #5870df;
  background: #fff;
  font-size: 20px;
  font-weight: 650;
}

.info-dot,
.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: #fff;
  background: #5b72e8;
  font-weight: 800;
  font-size: 14px;
}

.settings-card {
  padding: 28px 22px;
  border: 1px solid #e1e2e8;
  border-radius: 13px;
  background: var(--panel);
  box-shadow: 0 2px 8px rgba(25, 31, 56, 0.05);
}

.settings-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: #5a70dc;
  font-size: 20px;
  font-weight: 700;
}

.sliders {
  color: #4169e6;
}

.field-label {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  color: var(--text);
  font-weight: 480;
}

.select-control,
.admin-card select,
.admin-card input:not([type="file"]) {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8dbe5;
  border-radius: 6px;
  background: #fff;
  padding: 0 13px;
  font-size: 17px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 12px;
}

.choice-grid button {
  min-height: 54px;
  border: 2px solid #526be7;
  border-radius: 4px;
  background: #fff;
  color: #5268d4;
  font-size: 18px;
  font-weight: 560;
}

.choice-grid button:nth-child(4),
.choice-grid button:nth-child(5) {
  grid-column: span 1;
}

.choice-grid .active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 16px rgba(69, 99, 234, 0.28);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  color: #3d3e45;
}

.check-row input {
  width: 27px;
  height: 27px;
  border-radius: 5px;
  accent-color: var(--blue);
}

.primary-button,
.finish-button,
.restart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  padding: 0 24px;
  font-size: 22px;
  font-weight: 650;
  box-shadow: 0 10px 18px rgba(69, 99, 234, 0.22);
}

.secondary-button {
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: #6e7881;
  color: #fff;
  padding: 0 18px;
  font-size: 21px;
}

.exhausted-card {
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 24, 38, 0.08);
  text-align: center;
  font-size: 21px;
}

.empty-test-card {
  padding: 20px 22px;
  border-left: 4px solid #f5a000;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 24, 38, 0.12);
}

.empty-test-card strong {
  display: block;
  margin-bottom: 8px;
  color: #303138;
  font-size: 20px;
}

.empty-test-card p {
  margin: 0 0 6px;
  color: #303138;
  font-size: 18px;
}

.empty-test-card span {
  color: #6c7280;
  font-size: 15px;
}

.quiz-page {
  min-height: 100vh;
  padding: 0 20px 44px;
  background: #fff;
}

.timer-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 70px;
  margin: 145px 4px 24px;
  border-radius: 7px;
  background: #fafbff;
  color: #2e3038;
  box-shadow: 0 6px 13px rgba(22, 28, 45, 0.08);
  font-size: 22px;
}

.timer-wide strong,
.floating-timer strong {
  font-size: 27px;
  font-weight: 750;
}

.clock {
  font-size: 24px;
}

.clock.blue {
  color: var(--blue);
}

.floating-timer {
  position: fixed;
  top: 132px;
  right: calc(50% - 205px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 128px;
  height: 51px;
  padding: 0 17px;
  border: 1px solid #e1e3ed;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(19, 23, 37, 0.12);
}

.selection-note {
  margin: 0 0 24px;
  color: #2e8b59;
  font-size: 20px;
  font-weight: 750;
}

.question-list {
  display: grid;
  gap: 20px;
}

.question-card {
  padding: 17px 13px 18px;
  border: 1px solid #e4e5eb;
  border-radius: 13px;
  background: #fff;
}

.question-card h2 {
  margin: 0 0 15px;
  color: #303138;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
}

.option-list {
  display: grid;
  gap: 14px;
}

.option-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #3d3e45;
  font-size: 20px;
  line-height: 1.35;
}

.option-row input {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  margin-top: 1px;
  accent-color: #2683ff;
}

.answer-feedback {
  margin-top: 15px;
  border-radius: 8px;
  padding: 12px 13px;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
}

.feedback-correct {
  border: 1px solid rgba(52, 141, 71, 0.22);
  background: #effaf0;
  color: #287b3d;
}

.feedback-wrong {
  border: 1px solid rgba(215, 61, 67, 0.22);
  background: #fff0f3;
  color: #c8323d;
}

.option-row.option-correct {
  border-radius: 8px;
  background: #effaf0;
  color: #247a37;
  padding: 9px 10px;
  font-weight: 750;
}

.option-row.option-wrong {
  border-radius: 8px;
  background: #fff0f3;
  color: #c8323d;
  padding: 9px 10px;
  font-weight: 750;
}

.option-row.option-disabled:not(.option-correct):not(.option-wrong) {
  opacity: 0.62;
}

.question-card.answered-correct {
  border-color: rgba(52, 141, 71, 0.28);
}

.question-card.answered-wrong {
  border-color: rgba(215, 61, 67, 0.28);
}

.finish-button {
  justify-self: center;
  width: 230px;
  margin: 8px 0 154px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(0, 0, 0, 0.46);
}

.confirm-card {
  width: 100%;
  max-width: 398px;
  border-radius: 8px;
  background: #fff;
  padding: 28px 28px 52px;
  text-align: center;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.confirm-card h3 {
  margin: 0 0 24px;
  font-size: 30px;
  font-weight: 520;
}

.confirm-card p {
  margin: 0 auto 30px;
  max-width: 290px;
  color: #303138;
  font-size: 22px;
  line-height: 1.45;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.result-page {
  min-height: 100vh;
  padding: 0 8px 38px;
  background: #fff;
}

.toast-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}

.toast {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  gap: 12px;
  align-items: center;
  min-height: 106px;
  padding: 16px 18px;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 25, 38, 0.14);
  color: #6b7280;
}

.toast strong {
  display: block;
  color: #3b3d46;
  font-size: 18px;
}

.toast p {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.35;
}

.toast-info {
  border-left: 4px solid #4d6cf0;
}

.toast-warn {
  border-left: 4px solid #f5a000;
}

.toast-warn .toast-icon {
  background: #f59e0b;
}

.toast-close {
  color: #a1a7b3;
  font-size: 29px;
}

.result-card {
  padding: 28px 18px 30px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 9px 23px rgba(20, 25, 38, 0.08);
  text-align: center;
}

.result-card h1 {
  margin: 0 0 34px;
  font-size: 29px;
  font-weight: 650;
}

.progress-track {
  width: calc(100% - 50px);
  height: 26px;
  margin: 0 auto 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #f0f0f3;
}

.progress-track div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3f48, #ff747a);
}

.percent {
  margin-bottom: 35px;
  font-size: 28px;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 0 24px 54px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 25px;
}

.stat span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
}

.stat-blue {
  color: #2f7fc9;
  background: #edf7ff;
}

.stat-blue span {
  background: #2f7fc9;
}

.stat-green {
  color: #348d47;
  background: #effaf0;
}

.stat-green span {
  background: #348d47;
}

.stat-red {
  color: #d73d43;
  background: #fff0f3;
}

.stat-red span {
  background: #d73d43;
}

.stat-orange {
  color: #ed7900;
  background: #fff7e9;
}

.stat-orange span {
  background: #ed7900;
}

.result-message {
  color: #44464f;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
}

.result-message span {
  color: #4c69e9;
}

.restart-button {
  width: 300px;
  min-height: 92px;
  margin: 34px auto 0;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
}

.admin-page {
  min-height: 100vh;
  padding: 22px 18px 44px;
  background: #f6f7fb;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-top h1,
.admin-card h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 750;
}

.admin-top button {
  color: var(--blue);
  font-weight: 700;
}

.admin-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 20px 17px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 19px rgba(21, 26, 40, 0.08);
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 28px 0 18px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0 18px;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 18px;
}

.admin-stat-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
}

.admin-last-upload {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  min-height: 66px;
  border-radius: 7px;
  background: #fff7e9;
  color: #ed7900;
  padding: 13px 14px;
  box-shadow: 0 5px 12px rgba(20, 25, 38, 0.06);
}

.admin-last-upload strong {
  font-size: 16px;
}

.admin-last-upload span {
  color: #6c7280;
  font-size: 15px;
  word-break: break-word;
}

.admin-tabs button {
  min-height: 46px;
  border: 2px solid #526be7;
  border-radius: 5px;
  background: #fff;
  color: #5268d4;
  font-size: 15px;
  font-weight: 700;
}

.admin-tabs button.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 9px 14px rgba(69, 99, 234, 0.22);
}

.admin-panel-block {
  margin-top: 16px;
}

.admin-inline-form {
  display: grid;
  gap: 12px;
}

.admin-profile-form {
  display: grid;
  gap: 11px;
}

.admin-profile-form label {
  color: #303138;
  font-size: 15px;
  font-weight: 750;
}

.admin-inline-form input,
.admin-profile-form input,
.admin-profile-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d8dbe5;
  border-radius: 6px;
  background: #fff;
  padding: 0 13px;
  font-size: 18px;
}

.admin-profile-form textarea {
  min-height: 104px;
  padding-top: 10px;
  resize: vertical;
}

.application-button {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 3px 13px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  border: 1px solid rgba(69, 99, 234, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(69, 99, 234, 0.11), rgba(31, 191, 146, 0.10)),
    rgba(255, 255, 255, 0.90);
  padding: 14px 16px;
  text-align: left;
  box-shadow: 0 14px 30px rgba(24, 34, 58, 0.10);
}

.admin-info-button {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 3px 13px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  border: 1px solid rgba(31, 191, 146, 0.30);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 191, 146, 0.12), rgba(69, 99, 234, 0.08)),
    rgba(255, 255, 255, 0.90);
  padding: 14px 16px;
  text-align: left;
  box-shadow: 0 12px 28px rgba(24, 34, 58, 0.09);
}

.admin-info-button span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #18a982;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
}

.admin-info-button strong {
  color: #202533;
  font-size: 19px;
}

.admin-info-button small {
  color: #6c7280;
  font-size: 14px;
  line-height: 1.3;
}

.admin-info-card {
  width: 100%;
  max-width: 398px;
  border-radius: 8px;
  border: 1px solid rgba(207, 214, 230, 0.82);
  background: rgba(255, 255, 255, 0.96);
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.admin-profile-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #4563ea, #18a982);
  color: #fff;
  font-size: 38px;
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(45, 99, 232, 0.24);
}

.admin-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-info-card h3 {
  margin: 14px 0 8px;
  color: #202533;
  font-size: 27px;
  font-weight: 800;
}

.admin-info-card p {
  margin: 0 auto 18px;
  color: #667085;
  font-size: 16px;
  line-height: 1.45;
}

.admin-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-info-grid div {
  min-height: 68px;
  border: 1px solid #e4e8f1;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
}

.admin-info-grid span {
  display: block;
  color: #7a8392;
  font-size: 13px;
}

.admin-info-grid strong {
  display: block;
  margin-top: 5px;
  color: #202533;
  font-size: 16px;
  word-break: break-word;
}

.application-button span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #4563ea;
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}

.application-button strong {
  color: #202533;
  font-size: 19px;
}

.application-button small {
  color: #6c7280;
  font-size: 14px;
  line-height: 1.3;
}

.application-card {
  width: 100%;
  max-width: 398px;
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(207, 214, 230, 0.82);
  background: rgba(255, 255, 255, 0.96);
  padding: 24px 20px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.application-card h3 {
  margin: 0 0 8px;
  color: #202533;
  font-size: 28px;
  font-weight: 760;
  text-align: center;
}

.application-card p {
  margin: 0 0 18px;
  color: #6c7280;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.application-card form {
  display: grid;
  gap: 10px;
}

.application-card label {
  color: #303138;
  font-size: 15px;
  font-weight: 700;
}

.application-card input,
.application-card select,
.application-card textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8dbe5;
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: #2f3037;
  font-size: 16px;
}

.application-card textarea {
  min-height: 96px;
  padding-top: 10px;
  resize: vertical;
}

.application-card input:focus,
.application-card select:focus,
.application-card textarea:focus {
  outline: none;
  border-color: #4563ea;
  box-shadow: 0 0 0 4px rgba(69, 99, 234, 0.14);
}

.application-list-item {
  align-items: flex-start;
}

.application-list-item p {
  margin: 6px 0 0;
  color: #303138;
  font-size: 14px;
  line-height: 1.45;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(21, 26, 40, 0.05);
}

.admin-list-item div {
  display: grid;
  gap: 4px;
}

.admin-list-item strong {
  font-size: 17px;
  color: #303138;
}

.admin-list-item span {
  color: #6c7280;
  font-size: 14px;
}

.admin-list-item button,
.danger-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: #e5454d;
  color: #fff;
  padding: 0 13px;
  font-size: 16px;
  font-weight: 700;
}

.upload-history-item {
  align-items: flex-start;
}

.upload-history-item pre {
  max-width: 100%;
  max-height: 150px;
  overflow: auto;
  margin-top: 8px;
  border-radius: 6px;
  background: #f6f7fb;
  padding: 8px;
  white-space: pre-wrap;
  font-size: 12px;
  color: #c32f38;
}

.admin-card label,
.upload-label {
  font-size: 19px;
  color: #303138;
}

.file-input {
  width: 100%;
  border: 1px solid #d8dbe5;
  border-radius: 6px;
  background: #fff;
  font-size: 17px;
}

.success-box,
.error-box {
  margin-top: 12px;
  border-radius: 7px;
  padding: 13px 14px;
  font-size: 17px;
}

.success-box {
  background: #eaf8ee;
  color: #247a37;
}

.error-box {
  background: #fff0f1;
  color: #c32f38;
}

.upload-list {
  display: grid;
  gap: 12px;
}

.upload-row {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #eef0f4;
  border-radius: 7px;
}

.upload-row pre {
  max-height: 140px;
  overflow: auto;
  border-radius: 6px;
  background: #f6f7fb;
  padding: 8px;
  white-space: pre-wrap;
  font-size: 12px;
}

.hidden {
  display: none !important;
}

/* Modern Telegram Web App theme */
.app-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(45, 126, 255, 0.08), rgba(28, 180, 143, 0.06)),
    #eef2f7;
}

.app-shell {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(64, 77, 110, 0.06), 0 24px 60px rgba(25, 35, 60, 0.16);
}

.screen-pad,
.quiz-page,
.result-page,
.admin-page {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 253, 0.98)),
    #f7f9fd;
}

.ai-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(69, 99, 234, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 170, 140, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(69, 99, 234, 0.12), transparent 34%, rgba(21, 170, 140, 0.08) 68%, transparent),
    linear-gradient(24deg, transparent 0 28%, rgba(255, 138, 61, 0.09) 29% 31%, transparent 32% 100%);
  background-size: 34px 34px, 34px 34px, 100% 100%, 100% 100%;
}

.ai-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(69, 99, 234, 0.16) 43%, transparent 44% 100%),
    linear-gradient(35deg, transparent 0 60%, rgba(21, 170, 140, 0.13) 61%, transparent 62% 100%);
  opacity: 0.45;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0 auto 8px;
  padding: 0 13px;
  border: 1px solid rgba(69, 99, 234, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #516070;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(30, 43, 72, 0.08);
  backdrop-filter: blur(12px);
}

.brand-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1fbf92;
  box-shadow: 0 0 0 5px rgba(31, 191, 146, 0.14);
}

.screen-pad .brand-pill {
  margin-left: 50%;
  transform: translateX(-50%);
}

.page-title {
  color: #202533;
  font-weight: 800;
}

.page-title::after {
  content: "";
  display: block;
  width: 68px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #4563ea, #19b58f, #ff8a3d);
}

.settings-card,
.question-card,
.result-card,
.admin-card,
.confirm-card,
.toast,
.empty-test-card,
.exhausted-card,
.admin-list-item,
.admin-last-upload {
  border-radius: 8px;
  border: 1px solid rgba(207, 214, 230, 0.78);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(24, 34, 58, 0.10);
  backdrop-filter: blur(14px);
}

.settings-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.92)),
    #fff;
}

.info-button,
.choice-grid button,
.admin-tabs button,
.select-control,
.admin-card select,
.admin-card input:not([type="file"]),
.admin-inline-form input,
.file-input {
  border-radius: 8px;
}

.info-button {
  border-color: rgba(69, 99, 234, 0.55);
  background: rgba(255, 255, 255, 0.84);
  color: #405fdb;
  box-shadow: 0 10px 26px rgba(65, 99, 230, 0.10);
}

.settings-heading {
  color: #3158d7;
}

.choice-grid button,
.admin-tabs button {
  background: rgba(255, 255, 255, 0.76);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.choice-grid button:active,
.admin-tabs button:active,
.primary-button:active,
.finish-button:active,
.restart-button:active {
  transform: scale(0.98);
}

.choice-grid .active,
.admin-tabs button.active,
.primary-button,
.finish-button,
.restart-button {
  background: linear-gradient(135deg, #3f65f0, #246eea);
  box-shadow: 0 12px 24px rgba(45, 99, 232, 0.28);
}

.primary-button,
.finish-button,
.restart-button,
.secondary-button,
.danger-button,
.admin-list-item button {
  border-radius: 8px;
}

.secondary-button {
  background: linear-gradient(135deg, #6f7b87, #515c67);
}

.danger-button,
.admin-list-item button {
  background: linear-gradient(135deg, #e83f4b, #d52c39);
}

.select-control:focus,
.admin-card select:focus,
.admin-card input:not([type="file"]):focus,
.admin-inline-form input:focus,
.admin-profile-form input:focus,
.admin-profile-form textarea:focus {
  outline: none;
  border-color: #4563ea;
  box-shadow: 0 0 0 4px rgba(69, 99, 234, 0.14);
}

.timer-wide {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(214, 219, 234, 0.74);
  box-shadow: 0 14px 30px rgba(28, 38, 62, 0.10);
}

.floating-timer {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.question-card {
  box-shadow: 0 10px 26px rgba(25, 35, 60, 0.08);
}

.option-row {
  min-height: 36px;
  padding: 4px 0;
}

.option-row input {
  border-radius: 50%;
}

.progress-track {
  background: #edf0f5;
}

.progress-track div {
  background: linear-gradient(90deg, #ff4c57, #ff8a3d);
}

.admin-stats-grid {
  margin-top: 26px;
}

.admin-stat-card {
  box-shadow: 0 10px 24px rgba(24, 34, 58, 0.08);
}

.stat {
  border-radius: 8px;
}

@media (max-width: 380px) {
  .page-title {
    font-size: 30px;
  }

  .choice-grid {
    gap: 10px;
  }

  .choice-grid button,
  .field-label,
  .check-row,
  .option-row {
    font-size: 18px;
  }

  .stats-grid {
    margin-left: 10px;
    margin-right: 10px;
  }

  .stat {
    font-size: 21px;
  }
}
