/* === GRID === */
main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

@media (min-width: 900px) { main { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1400px) { main { grid-template-columns: repeat(4,1fr); } }

/* === Úvodní box === */
.licence-box {
  grid-column: 1 / -1;
  background: linear-gradient(135deg,#f8faff,#eef4ff);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  padding: 10px;
  text-align: center;
}

h1 { margin-bottom: 10px; font-size: 2rem; margin-top: 0px;}
.intro-text { line-height:1.6; max-width:800px; margin:0 auto; }

/* === KARTY LICENCÍ === */
.licence-card {
  border-radius:12px;
  box-shadow:0 3px 12px rgba(0,0,0,0.05);
  text-align:center;
  padding:30px 25px 35px;
  position:relative;
  transition:0.25s ease;
}
.licence-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.licence-color {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 12px 12px 0 0;
}

.licence-name {
  font-size: 1.6rem;
  font-weight: 700;
}

.licence-subtitle {
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 700;
}

.licence-param {
  font-size: 14px;
  margin: 6px 0;
}

.price {
  margin-top: 18px;
  font-size: 1.1rem;
  font-weight: 600;
}

.current-badge {
  font-size: 17px;
  font-weight: 700;	
}

.licence-description {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  font-style: italic;
}

.licence-footer {
  margin-top: 20px;
}

/* Aktivní licence */
.licence-card.active {
  box-shadow: 0 0 15px rgba(0, 86, 179, 0.15);
  transform: scale(1.02);
}

/* === PAYMENT BOX === */
.payment-box {
  border-radius: 14px;
  padding: 10px 5px;
  margin-top: 18px;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.payment-box h2 {
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  margin-top: 0px;
}

/* Přepínač měsíční/roční */
.pay-switch {
  display: flex;
  justify-content: space-evenly;
  gap: 30px;
  margin: 5px 0 5px;
}

.pay-switch label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  width: 110px;
  padding: 10px 12px;

  border-radius: 10px;

  font-size: 15px;
  cursor: pointer;
  transition: 0.15s;
}

.pay-switch input[type="radio"] {
  transform: scale(1.2);
}

/* Text podmínky */
.payment-box p {
  margin: 10px 0;
  text-align: center;
  font-size: 13px;
}

.payment-box a {
  text-decoration: underline;
}

/* Zpět */
.pay-back-btn {
  width: 100%;
  padding: 10px 0;
  margin-top: 18px;

  border: none;
  border-radius: 8px;
  cursor: pointer;

  font-size: 15px;
  font-weight: 600;

  transition: 0.2s;
}
/* Detail platebních údajů */

.payment-details {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.payment-details-panel {
  margin-bottom: 0px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  align-items: center;
  margin-bottom: 10px;
}

.payment-details strong {
  font-weight: 700;
  font-size: 30px;
}

.process-payment-btn {
  margin-top: 5px;
  margin-bottom: 20px;
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.process-payment-btn:hover {
  transition: background .2s;
}

.info-recurring-payment{
  margin: 0;
  font-size: 12px;
}


/* purchase history */
.ph-table-wrap{overflow:auto;}

.ph-table{
  width:100%;
  border-collapse:collapse;
  display:none;
}

.ph-td{padding:5px; transition: all 0.3s ease;}

.ph-row1{cursor:pointer;}
.ph-hidden{display:none}

.ph-date{
  white-space:nowrap;
  font-weight:700;
  font-size:16px;
}

.ph-plan{font-weight:600;}

.ph-amount{
  text-align:right;
  white-space:nowrap;
  font-weight:700;
}

.ph-trans{white-space:nowrap;}

.ph-invoice{white-space:nowrap;}

.ph-ref{
  white-space:nowrap;
  font-size:12px;
  opacity:0.85;
}

.ph-invoice-link{text-decoration:underline;font-weight: 600;}

.process-payment-btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

.default-checkbox-label{place-self: center;}
