/* Checkout page */
.co { padding: 120px 0 80px; }
.co-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.co-head h1 { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -0.04em; line-height: 1.05; margin: 14px 0 0; font-weight: 800; }
.secure { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.secure .icon { color: var(--lime); width: 18px; height: 18px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.back:hover { color: var(--lime); }
.back .icon { width: 16px; height: 16px; transform: rotate(180deg); }

.co-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.panel { border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: linear-gradient(170deg, rgba(20, 52, 45, 0.42), rgba(8, 20, 16, 0.55)); padding: 32px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 19px; letter-spacing: -0.02em; margin: 0 0 22px; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.panel h2 .no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-family: var(--mono); background: var(--grad); color: #04130d; flex: none; }

.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px; border-radius: 16px; background: rgba(5, 13, 11, 0.45); border: 1px solid var(--line); }
.plan-row .pi { display: flex; gap: 14px; align-items: center; }
.plan-row img { width: 44px; height: 44px; }
.plan-row b { display: block; font-size: 16px; }
.plan-row span { color: var(--muted); font-size: 13.5px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: rgba(228, 243, 220, 0.04); }
.stepper button { width: 42px; height: 42px; border: 0; background: none; font-size: 20px; color: var(--mist); transition: background 0.2s; }
.stepper button:hover { background: rgba(154, 205, 50, 0.12); }
.stepper input { width: 54px; height: 42px; border: 0; background: none; text-align: center; color: var(--text); font: 600 16px var(--font); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seat-label { font-size: 13px; color: var(--muted); margin-right: 10px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--mist); }
.field label em { font-style: normal; color: var(--dim); font-weight: 500; }
.field input, .field select {
  height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 13, 11, 0.55);
  color: var(--text); padding: 0 16px; font: 15px var(--font); transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239fb8ad' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: #0b1d18; }
.field input::placeholder { color: var(--dim); }
.field input:focus, .field select:focus { outline: none; border-color: rgba(154, 205, 50, 0.6); box-shadow: 0 0 0 4px rgba(154, 205, 50, 0.12); }
.field.bad input, .field.bad select { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 12.5px; display: none; }
.field.bad .err { display: block; }

.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.method { position: relative; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method label {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(5, 13, 11, 0.45); font-size: 14px; font-weight: 600; transition: all 0.2s; text-align: center;
}
.method label .icon { width: 26px; height: 26px; color: var(--muted); }
.method input:checked + label { border-color: var(--lime); background: rgba(154, 205, 50, 0.08); box-shadow: 0 0 0 3px rgba(154, 205, 50, 0.12); }
.method input:checked + label .icon { color: var(--lime); }
.method input:focus-visible + label { outline: 2px solid var(--lime); outline-offset: 2px; }
.gateway-slot {
  position: relative; border-radius: 16px; border: 1px dashed rgba(154, 205, 50, 0.35); padding: 26px; text-align: center; overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(154, 205, 50, 0.03) 0 12px, transparent 12px 24px);
}
.gateway-slot .icon { width: 30px; height: 30px; color: var(--lime); margin: 0 auto 10px; }
.gateway-slot b { display: block; margin-bottom: 4px; }
.gateway-slot span { color: var(--muted); font-size: 14px; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; color: var(--muted); font-size: 14px; cursor: pointer; }
.agree input { width: 20px; height: 20px; accent-color: #9acd32; margin-top: 1px; flex: none; }
.agree.bad { color: var(--danger); }

/* Summary */
.summary { position: sticky; top: 96px; }
.summary .panel { padding: 30px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--muted); font-size: 15px; }
.sum-line b { color: var(--text); font-weight: 600; }
.sum-line.total { border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 20px; align-items: baseline; }
.sum-line.total span { color: var(--text); font-weight: 700; font-size: 17px; }
.sum-line.total b { font-size: 34px; letter-spacing: -0.04em; font-weight: 800; }
.renew { font-size: 13px; color: var(--dim); margin: 4px 0 22px; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.trust li { display: flex; gap: 10px; color: var(--muted); font-size: 14px; }
.trust .icon { width: 18px; height: 18px; color: var(--lime); margin-top: 2px; }
.included { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.included small { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.included .chips { margin-top: 12px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 5, 0.7); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card { width: 100%; max-width: 480px; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(170deg, #12302b, #07130f); padding: 36px; text-align: center; transform: translateY(20px) scale(0.97); transition: transform 0.4s cubic-bezier(0.3, 1.3, 0.5, 1); box-shadow: var(--shadow); }
.modal.open .modal-card { transform: none; }
.modal-card .big { width: 66px; height: 66px; border-radius: 20px; background: var(--grad); display: grid; place-items: center; margin: 0 auto 18px; color: #04130d; }
.modal-card .big .icon { width: 32px; height: 32px; }
.modal-card h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.03em; }
.modal-card p { color: var(--muted); margin: 0 0 22px; }
.modal-card .order-box { text-align: left; font-family: var(--mono); font-size: 12.5px; background: rgba(5, 13, 11, 0.6); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; color: var(--mist); white-space: pre-wrap; margin-bottom: 22px; }
.modal-card .btns { display: grid; gap: 10px; }

@media (max-width: 980px) {
  .co-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 600px) {
  .panel { padding: 22px 18px; }
  .fields { grid-template-columns: 1fr; }
  .methods { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .method label { padding: 14px 6px; font-size: 12.5px; }
  .co { padding-top: 100px; }
  .modal-card { padding: 28px 20px; }
}
