/* Bendra FotoSvečio aplikacijos tema. Įkeliama po konkretaus puslapio CSS. */
:root {
  color-scheme: dark;
  --color-bg: #080709;
  --color-bg-soft: #100d10;
  --color-surface: #141114;
  --color-surface-raised: #1a1519;
  --color-primary: #ff2f4b;
  --color-primary-dark: #d7193a;
  --color-secondary: #9a4be0;
  --color-text: #fff9f5;
  --color-muted: #bdb2b5;
  --color-line: rgba(255, 255, 255, 0.12);
  --color-dark-brown: #fff9f5;
  --color-muted-brown: #bdb2b5;
  --color-rose-gold: #ff2f4b;
  --dash-bg: #080709;
  --dash-card: #141114;
  --dash-border: rgba(255, 255, 255, 0.12);
  --dash-text: #fff9f5;
  --dash-muted: #bdb2b5;
  --dash-soft: #21191e;
  --dash-primary: #ff2f4b;
  --dash-primary-dark: #d7193a;
  --dash-success: #51d493;
  --dash-warning: #ffc66b;
  --dash-danger: #ff6579;
  --dash-radius: 16px;
  --dash-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  --guest-primary: #ff2f4b;
}

html,
body {
  background: #080709;
  color: #fff9f5;
}

body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 90% 4%, rgba(255, 47, 75, 0.16), transparent 32rem),
    radial-gradient(circle at 5% 88%, rgba(154, 75, 224, 0.1), transparent 30rem),
    #080709;
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
}

::selection {
  background: #ff2f4b;
  color: #fff;
}

* {
  scrollbar-color: #ff2f4b #100d10;
}

h1,
h2,
h3,
h4,
strong,
dt,
dd {
  color: #fff9f5;
}

h1,
.page-title,
.system-card h1,
.auth-card h1,
.event-info-card h1,
.payment-card h1 {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

p,
li,
small,
.lead,
.muted,
.label {
  color: #bdb2b5;
}

a {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

a:hover {
  color: #fff;
}

.site-header {
  border-bottom-color: rgba(255, 47, 75, 0.2);
  background: rgba(8, 7, 9, 0.92);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.brand {
  color: #fff9f5;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.brand-mark {
  border: 2px solid #ff2f4b;
  border-radius: 2px;
  background: transparent;
  color: #ff2f4b;
}

.nav-links,
.nav-links a,
.footer,
.footer a,
.footer p {
  color: #bdb2b5;
}

.nav-links a:hover,
.footer a:hover {
  color: #ff2f4b;
}

.button,
.primary-action,
.ghost-action,
.event-action,
.sidebar-help-btn,
.guest-button,
.pay-button {
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.button,
.ghost-action,
.event-action {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: #fff9f5;
  box-shadow: none;
}

.button:hover,
.ghost-action:hover,
.event-action:hover {
  border-color: rgba(255, 47, 75, 0.6);
  background: rgba(255, 47, 75, 0.1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.button-primary,
.primary-action,
.event-action.primary,
.pay-button,
.guest-button {
  border-color: #ff2f4b;
  background: #ff2f4b;
  color: #fff;
  box-shadow: 0 14px 34px rgba(255, 47, 75, 0.22);
}

.button-primary:hover,
.primary-action:hover,
.event-action.primary:hover,
.pay-button:hover,
.guest-button:hover {
  background: #ff4961;
  color: #fff;
}

.button-danger,
.button.danger {
  border-color: rgba(255, 101, 121, 0.35);
  background: rgba(255, 101, 121, 0.08);
  color: #ff6579;
}

.eyebrow,
.top-kicker,
.section-chip,
.step-kicker {
  color: #ff2f4b;
}

.card,
.system-card,
.auth-card,
.legal-card,
.contact-info,
.contact-form-card,
.profile-card,
.payment-card,
.event-info-card,
.table-card {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 47, 75, 0.055), transparent 42%),
    rgba(20, 17, 20, 0.94);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
}

.auth-card,
.event-info-card,
.payment-card,
.legal-card,
.contact-form-card,
.profile-card {
  position: relative;
  overflow: hidden;
}

.auth-card::before,
.event-info-card::before,
.payment-card::before,
.legal-card::before,
.contact-form-card::before,
.profile-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff2f4b, #9a4be0);
  content: "";
}

.input,
.textarea,
.select,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
textarea,
select {
  border-color: rgba(255, 255, 255, 0.14);
  background: #0d0b0e;
  color: #fff9f5;
}

input::placeholder,
textarea::placeholder {
  color: #796f73;
}

.input:focus,
.textarea:focus,
.select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: #ff2f4b;
  box-shadow: 0 0 0 4px rgba(255, 47, 75, 0.14);
  outline: 0;
}

select option {
  background: #141114;
  color: #fff9f5;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #ff2f4b;
}

.toast {
  border-color: rgba(255, 47, 75, 0.45);
  background: rgba(20, 17, 20, 0.98);
  color: #fff9f5;
}

.table th,
.table td {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.table th {
  color: #ff5269;
}

/* Dashboard */
.app-shell,
.dashboard-shell {
  background: #080709;
}

.app-sidebar,
.sidebar {
  border-right: 1px solid rgba(255, 47, 75, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 47, 75, 0.08), transparent 34%),
    #09070a;
  color: #fff9f5;
}

.sidebar-brand,
.sidebar-brand strong {
  color: #fff9f5;
}

.sidebar-brand .brand-mark {
  border: 2px solid #ff2f4b;
  border-radius: 1px;
  background: transparent;
  box-shadow: none;
  color: #ff2f4b;
  transform: rotate(-2deg);
}

.sidebar-brand small,
.side-nav a,
.logout-button,
.sidebar-nav a,
.sidebar-nav button {
  color: #a99ea2;
}

.side-nav a.active,
.side-nav a:hover,
.logout-button:hover,
.sidebar-nav a.active,
.sidebar-nav a:hover,
.sidebar-nav button:hover {
  border-radius: 6px;
  background: #ff2f4b;
  color: #fff;
}

.sidebar-help {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-help p {
  color: #a99ea2;
}

.sidebar-help-btn {
  background: #ff2f4b;
  color: #fff;
}

.app-main,
.dashboard-main {
  color: #fff9f5;
}

.summary-card,
.create-panel,
.events-panel,
.flow-item,
.event-row,
.search-box,
.event-tools select {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(20, 17, 20, 0.9);
  color: #fff9f5;
  box-shadow: none;
}

.summary-card,
.create-panel,
.events-panel {
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
}

.summary-icon,
.flow-item strong,
.empty-state-icon {
  border-radius: 6px;
  background: rgba(255, 47, 75, 0.12);
  color: #ff5269;
}

.event-row:hover,
.flow-item.active {
  border-color: rgba(255, 47, 75, 0.36);
  background: rgba(255, 47, 75, 0.065);
}

.search-box input,
.event-tools select {
  color: #fff9f5;
}

.metric-track {
  background: rgba(255, 255, 255, 0.08);
}

.metric-track span {
  background: linear-gradient(90deg, #ff2f4b, #9a4be0);
}

.status-active {
  background: rgba(81, 212, 147, 0.12);
  color: #51d493;
}

.status-paused {
  background: rgba(255, 198, 107, 0.12);
  color: #ffc66b;
}

.status-expired,
.status-deleted {
  background: rgba(255, 101, 121, 0.12);
  color: #ff6579;
}

/* Renginio valdymas */
.event-tabs,
.media-card,
.guest-row,
.task-card,
.response-row,
.poster-card,
.gallery-access-fields,
.challenge-status,
.live-card {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(20, 17, 20, 0.92);
  color: #fff9f5;
}

.event-tabs {
  border-radius: 10px;
}

.event-tabs button {
  border-radius: 5px;
  color: #a99ea2;
}

.event-tabs button.active {
  background: #ff2f4b;
  color: #fff;
}

.media-card img,
.media-card video,
.preview-box {
  background: #050405;
}

.task-warning,
.challenge-status,
.payment-notes,
.trim-note,
.extra-warning {
  border: 1px solid rgba(255, 47, 75, 0.22);
  background: rgba(255, 47, 75, 0.08);
  color: #ff9aa8 !important;
}

.task-badge {
  background: rgba(255, 47, 75, 0.12);
  color: #ff5269;
}

.pdf-hero-note,
.gallery-share-link > a {
  border-color: rgba(255, 47, 75, 0.34);
  background: rgba(255, 47, 75, 0.09);
  color: #ff6d80;
}

.gallery-access-form {
  border-color: rgba(255, 47, 75, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 47, 75, 0.1), transparent 48%),
    #141114;
}

.gallery-access-fields {
  background: rgba(8, 7, 9, 0.72);
}

/* Kainodara ir užsakymas */
.pricing-card,
.pricing-info-card,
.builder-panel,
.review-box,
.flow-step,
.extra-card,
.guest-option,
.option-pill,
.payment-icons span,
.event-summary-box {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 17, 20, 0.92);
  color: #fff9f5;
  box-shadow: none;
}

.pricing-label,
.checkout-pill,
.popular-badge {
  background: rgba(255, 47, 75, 0.12);
  color: #ff5269;
}

.pricing-info-card.highlighted {
  border-color: rgba(255, 47, 75, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 47, 75, 0.15), rgba(20, 17, 20, 0.96));
  color: #fff9f5;
}

.pricing-info-card.highlighted p,
.trust-list p {
  color: #a99ea2;
}

.pricing-info-card.highlighted .button {
  background: #ff2f4b;
  color: #fff;
}

.back-link {
  color: #bdb2b5;
}

.back-link:hover {
  background: rgba(255, 47, 75, 0.1);
  color: #fff;
}

.guest-option:hover,
.extra-card:hover,
.option-pill:hover {
  border-color: rgba(255, 47, 75, 0.35);
  background: rgba(255, 47, 75, 0.055);
}

.guest-option.active,
.extra-card.active,
.option-pill.active,
.flow-step.active {
  border-color: #ff2f4b;
  background: rgba(255, 47, 75, 0.09);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 47, 75, 0.1);
}

.guest-option strong,
.guest-option small,
.extra-card h3,
.option-pill,
.summary-card h2,
.product-line strong,
.summary-item strong,
.summary-total span,
.summary-total strong,
.event-summary-box strong,
.step-block h1,
.step-block h2 {
  color: #fff9f5;
}

.guest-option span,
.helper-note,
.extra-card p,
.summary-subtitle,
.product-line span,
.summary-item span,
.secure-note,
.trust-list,
.event-summary-box span,
.review-box dt {
  color: #a99ea2;
}

.option-pill small { color: #ff5269; }
.feature-switch-price small { color: #a99ea2; }
.feature-switch-price strong { color: #fff9f5; }
.feature-switch-track { border-color:rgba(255,255,255,.16);background:#332a30; }
.feature-switch input:checked + .feature-switch-track { border-color:#ff2f4b;background:#ff2f4b; }

.divider,
.product-line,
.summary-items,
.payment-icons,
.info-line {
  border-color: rgba(255, 255, 255, 0.1);
}

.pay-button {
  background: #ff2f4b;
}

.sandbox-pill {
  background: rgba(154, 75, 224, 0.18);
  color: #d7b4f5;
}

/* Svečio įkėlimo puslapis */
.guest-head,
.guest-step,
.record-card,
.challenge-card,
.menu-button,
.capture-button,
.guest-task-card,
.task-option,
.guest-media-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 17, 20, 0.94);
  color: #fff9f5;
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.3);
}

.guest-head {
  border: 1px solid rgba(255, 47, 75, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 47, 75, 0.12), transparent 50%),
    #141114;
}

.guest-head h1 {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  text-transform: uppercase;
}

.guest-input {
  border-color: rgba(255, 255, 255, 0.14);
  background: #0d0b0e;
  color: #fff9f5;
}

.guest-button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  color: #fff9f5;
}

.menu-button,
.capture-button,
.guest-task-card,
.task-option {
  box-shadow: none;
}

.task-option:hover {
  border-color: #ff2f4b;
  background: rgba(255, 47, 75, 0.08);
}

.progress {
  background: rgba(255, 255, 255, 0.1);
}

.progress span {
  background: linear-gradient(90deg, #ff2f4b, #9a4be0);
}

.record-modal,
.challenge-modal {
  background: rgba(3, 2, 3, 0.84);
}

/* Gyva galerija ir ekranas */
.live-card {
  border-radius: 10px;
}

.screen-app,
.screen-challenge,
.screen-results,
.slideshow-overlay {
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 47, 75, 0.18), transparent 36rem),
    radial-gradient(circle at 15% 80%, rgba(154, 75, 224, 0.1), transparent 30rem),
    #080709;
}

.screen-idle h1,
.screen-challenge h2,
.screen-results h2 {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  text-transform: uppercase;
}

.place {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(20, 17, 20, 0.84);
}

.place.first {
  border-color: rgba(255, 47, 75, 0.72);
  background: linear-gradient(160deg, rgba(255, 47, 75, 0.22), rgba(154, 75, 224, 0.12));
}

.place .rank {
  color: #ff5269;
}

/* Administravimas ir teisiniai puslapiai */
.admin-tab {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #bdb2b5;
}

.admin-tab.active {
  background: #ff2f4b;
  color: #fff;
}

.legal-card h2 {
  color: #fff9f5;
}

.legal-card p,
.legal-card li,
.contact-info p {
  color: #bdb2b5;
}

@media (max-width: 720px) {
  body {
    background-size: 54px 54px, 54px 54px, auto, auto, auto;
  }

  .auth-card,
  .event-info-card,
  .payment-card,
  .legal-card,
  .contact-info,
  .contact-form-card,
  .profile-card {
    border-radius: 12px;
  }
}

/* Subalansuota tipografika visuose vidiniuose puslapiuose. */
.app-main h1,
.dashboard-main h1,
.event-header h1,
.admin-page h1 {
  max-width: 100%;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: .98;
}

.auth-card h1 {
  max-width: 100%;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  line-height: .98;
}

.event-info-card h1,
.payment-card h1,
.system-card h1 {
  max-width: 100%;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: .96;
}

.legal-card .page-title,
.profile-card .page-title {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: .96;
}

.pricing-card h2,
.summary-total strong,
.metric-total strong,
[data-total-price] {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .app-main h1,
  .dashboard-main h1,
  .event-header h1,
  .admin-page h1,
  .event-info-card h1,
  .payment-card h1,
  .system-card h1,
  .auth-card h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1;
  }
}
