/* =========================================================
   Nitro Premium Access — Frontend CSS
   Gradient: #1e73be → #fd0000 | Font: Inter (local)
   ========================================================= */

@font-face {
    font-family: 'Inter';
    src: local('Inter'), local('Inter-Regular'),
         url('/wp-content/fonts/inter/Inter-Regular.woff2') format('woff2'),
         url('/wp-content/fonts/inter/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: local('Inter Medium'), local('Inter-Medium'),
         url('/wp-content/fonts/inter/Inter-Medium.woff2') format('woff2'),
         url('/wp-content/fonts/inter/Inter-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: local('Inter SemiBold'), local('Inter-SemiBold'),
         url('/wp-content/fonts/inter/Inter-SemiBold.woff2') format('woff2'),
         url('/wp-content/fonts/inter/Inter-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: local('Inter Bold'), local('Inter-Bold'),
         url('/wp-content/fonts/inter/Inter-Bold.woff2') format('woff2'),
         url('/wp-content/fonts/inter/Inter-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ----- Variables ----- */
:root {
    --nitro-blue:       #1e73be;
    --nitro-red:        #fd0000;
    --nitro-gradient:   linear-gradient(135deg, #1e73be 0%, #9b3fd4 50%, #fd0000 100%);
    --nitro-gradient-h: linear-gradient(135deg, #1565a8 0%, #8534bb 50%, #d40000 100%);
    --nitro-radius:     10px;
    --nitro-radius-sm:  6px;
    --nitro-shadow:     0 2px 16px rgba(30,115,190,.12);
    --nitro-border:     #e5e7eb;
    --nitro-text:       #1a1a2e;
    --nitro-muted:      #6b7280;
    --nitro-bg:         #f9fafb;
    --nitro-white:      #ffffff;
    --nitro-step-bg:    #ffffff;
    --nitro-input-h:    48px;
    --nitro-font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ----- Base ----- */
.nitro-checkout,
.nitro-login-wrap {
    font-family: var(--nitro-font);
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 40px;
    color: var(--nitro-text);
    line-height: 1.6;
}

/* ----- Steps ----- */
.nitro-step {
    background: var(--nitro-white);
    border: 1px solid var(--nitro-border);
    border-radius: var(--nitro-radius);
    box-shadow: var(--nitro-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.nitro-step__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--nitro-border);
    background: var(--nitro-bg);
}

.nitro-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--nitro-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.nitro-step__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--nitro-text);
}

.nitro-step__body {
    padding: 24px;
}

/* ----- Form fields ----- */
.nitro-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 520px) {
    .nitro-row { grid-template-columns: 1fr; }
}

.nitro-field {
    margin-bottom: 18px;
}
.nitro-field:last-child {
    margin-bottom: 0;
}

.nitro-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--nitro-text);
}

.nitro-field input[type="text"],
.nitro-field input[type="email"],
.nitro-field input[type="password"],
.nitro-field textarea,
.nitro-field select {
    width: 100%;
    height: var(--nitro-input-h);
    padding: 0 14px;
    border: 1.5px solid var(--nitro-border);
    border-radius: var(--nitro-radius-sm);
    font-family: var(--nitro-font);
    font-size: 15px;
    color: var(--nitro-text);
    background: var(--nitro-white);
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.nitro-field textarea {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}

.nitro-field input:focus,
.nitro-field textarea:focus,
.nitro-field select:focus {
    outline: none;
    border-color: var(--nitro-blue);
    box-shadow: 0 0 0 3px rgba(30,115,190,.15);
}

.nitro-req { color: #e53e3e; }
.nitro-opt { color: var(--nitro-muted); font-weight: 400; }
.nitro-hint {
    font-size: 12px;
    color: var(--nitro-muted);
    margin: 5px 0 0;
}

/* ----- Coupon ----- */
.nitro-coupon-input {
    display: flex;
    gap: 10px;
}
.nitro-coupon-input input {
    flex: 1;
}

.nitro-coupon-msg {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--nitro-radius-sm);
}
.nitro-coupon-msg.success { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.nitro-coupon-msg.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

/* ----- Price summary ----- */
.nitro-price-summary {
    background: var(--nitro-white);
    border: 1px solid var(--nitro-border);
    border-radius: var(--nitro-radius);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--nitro-shadow);
}

.nitro-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 15px;
    color: var(--nitro-text);
}

.nitro-price-row--total {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 2px solid var(--nitro-border);
    font-weight: 600;
    font-size: 16px;
}

.nitro-total-price {
    font-size: 22px;
    font-weight: 700;
    background: var(--nitro-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nitro-nr {
    font-size: 13px;
    font-weight: 400;
    color: var(--nitro-muted);
}

/* ----- Stripe card element ----- */
.nitro-card-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}
.nitro-card-label span {
    font-weight: 400;
    color: var(--nitro-muted);
    margin-left: 8px;
}

.nitro-card-element {
    border: 1.5px solid var(--nitro-border);
    border-radius: var(--nitro-radius-sm);
    padding: 14px;
    background: var(--nitro-white);
    margin-bottom: 10px;
    transition: border-color .2s;
}

.nitro-card-element--focus {
    border-color: var(--nitro-blue);
    box-shadow: 0 0 0 3px rgba(30,115,190,.15);
}

.nitro-card-errors {
    color: #b91c1c;
    font-size: 13px;
    min-height: 20px;
    margin-bottom: 8px;
}

.nitro-secure-note {
    font-size: 12px;
    color: var(--nitro-muted);
    margin-bottom: 20px;
}

/* ----- Checkbox ----- */
.nitro-terms-check {
    margin-bottom: 16px !important;
}

.nitro-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.nitro-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--nitro-blue);
    cursor: pointer;
}

/* ----- Buttons ----- */
.nitro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: var(--nitro-radius-sm);
    font-family: var(--nitro-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s, transform .1s, box-shadow .2s;
    white-space: nowrap;
}

.nitro-btn:active { transform: scale(.98); }

.nitro-btn--primary {
    background: var(--nitro-gradient);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(253,0,0,.25), 0 2px 6px rgba(30,115,190,.2);
}

.nitro-btn--primary:hover {
    background: var(--nitro-gradient-h);
    box-shadow: 0 6px 20px rgba(253,0,0,.32), 0 2px 8px rgba(30,115,190,.25);
    opacity: 1;
}

.nitro-btn--primary:disabled,
.nitro-btn--primary.nitro-loading {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.nitro-btn--outline {
    background: transparent;
    color: var(--nitro-blue);
    border: 2px solid var(--nitro-blue);
}

.nitro-btn--outline:hover {
    background: var(--nitro-blue);
    color: #fff !important;
}

.nitro-btn--large {
    width: 100%;
    height: 56px;
    font-size: 17px;
    border-radius: 8px;
    margin-top: 4px;
}

/* ----- Global error ----- */
.nitro-global-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: var(--nitro-radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}

/* ----- Notices ----- */
.nitro-notice {
    padding: 14px 18px;
    border-radius: var(--nitro-radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}
.nitro-notice--info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.nitro-notice--warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.nitro-notice--success { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }

.nitro-notice a { color: inherit; text-decoration: underline; }

/* ----- Login box ----- */
.nitro-login-box {
    background: var(--nitro-white);
    border: 1px solid var(--nitro-border);
    border-radius: var(--nitro-radius);
    box-shadow: var(--nitro-shadow);
    padding: 32px 32px 28px;
    max-width: 440px;
    margin: 0 auto;
}

.nitro-login-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
    background: var(--nitro-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nitro-forgot-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}
.nitro-forgot-link a {
    color: var(--nitro-blue);
    text-decoration: none;
}
.nitro-forgot-link a:hover { text-decoration: underline; }

/* ----- Spinner ----- */
@keyframes nitro-spin {
    to { transform: rotate(360deg); }
}
.nitro-spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nitro-spin .7s linear infinite;
    display: inline-block;
}
