html {
    font-size: 16px;
    height: 100%;
}

body {
    min-height: 100%;
    background-color: #f8f9fb;
    color: #1f2937;
    margin: 0;
}

main {
    display: block;
}

.hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-badge {
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
}

.hero-card {
    border-radius: 1rem;
}

.feature-pill {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
}

.step-card {
    border-radius: 1rem;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.info-box {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid #e9ecef;
}

.rounded-section {
    border-radius: 1.5rem;
    margin: 0 0 2rem 0;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.cta-box {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 3rem 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.slots-box {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
}

.subscription-plan-box {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
}

.footer {
    background: #ffffff;
    font-size: 0.95rem;
}

.footer .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.footer a {
    color: inherit;
}

.footer a:hover {
    text-decoration: underline !important;
}

.language-switcher form + form {
    margin-left: -1px;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .cta-box {
        padding: 2rem 1rem;
    }

    .rounded-section {
        border-radius: 1rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.auth-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    min-height: 70vh;
}

.auth-card {
    border-radius: 1.25rem;
}

.auth-info-box {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.04);
}

.auth-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.auth-feature-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0d6efd;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.dashboard-section {
    background: #f8f9fb;
}

.dashboard-shell,
.pricing-shell,
.checkout-shell,
.setup-shell,
.contact-shell,
.admin-shell {
    max-width: 1100px;
}

.dashboard-card {
    border-radius: 1.25rem;
}

.dashboard-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-info-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: #f8f9fb;
    border-radius: 0.75rem;
}

.dashboard-info-label {
    font-weight: 600;
    color: #6b7280;
}

.dashboard-info-value {
    font-weight: 500;
    word-break: break-word;
}

.dashboard-key-box {
    font-family: monospace;
    font-size: 0.9rem;
    border-radius: 0.75rem;
    background: #f8f9fb;
}

.dashboard-instruction {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8f9fb;
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: inherit;
    color: #374151;
}

.empty-state {
    background: #f8f9fb;
    border: 1px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 1rem;
}

.pricing-section,
.checkout-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    min-height: 70vh;
}

.pricing-card,
.checkout-card {
    border-radius: 1.25rem;
}

.pricing-card-selected {
    outline: 2px solid #0d6efd;
}

.pricing-price,
.checkout-price {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 700;
}

.pricing-features {
    padding-left: 1.1rem;
}

.pricing-features li + li {
    margin-top: 0.5rem;
}

.checkout-note {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
}

.checkout-legal-consent {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
}

.payment-method-box {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
}

.payment-method-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.payment-method-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-option {
    min-height: 76px;
    border: 1px solid #dbe4f0;
    border-radius: 0.75rem;
    background: #f8f9fb;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.payment-method-input:focus-visible + .payment-method-option,
.payment-method-input:checked + .payment-method-option {
    border-color: #0d6efd;
    background: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.payment-method-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-method-icon svg {
    width: 28px;
    height: 28px;
}

.payment-method-icon-paypal {
    background: #e7f0ff;
    color: #003087;
}

.payment-method-icon-paypal svg {
    fill: currentColor;
}

.payment-method-icon-im {
    background: #e6f7fb;
    color: #00a6c8;
}

.payment-method-icon-im svg {
    fill: currentColor;
}

.payment-method-name,
.payment-method-amount {
    display: block;
}

.payment-method-name {
    font-weight: 700;
    color: #1f2937;
}

.payment-method-amount {
    font-size: 0.9rem;
    color: #6b7280;
}

@media (max-width: 575.98px) {
    .payment-method-switch {
        grid-template-columns: 1fr;
    }
}

.legal-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
}

.legal-document {
    max-width: 960px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.03);
}

.legal-document h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.legal-document p,
.legal-document li {
    color: #4b5563;
}

.legal-note {
    background: #fff7e6;
    border: 1px solid #ffe0a3;
    border-radius: 0.75rem;
    color: #694700;
    padding: 1rem;
}

.legal-notice-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legal-notice-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    background: #f8f9fb;
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
}

.legal-notice-label {
    color: #6b7280;
    font-weight: 600;
}

.legal-notice-value {
    color: #1f2937;
    font-weight: 500;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .legal-document {
        padding: 1.25rem;
    }

    .legal-notice-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

.setup-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
}

.setup-hero-image {
    display: block;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.setup-section {
    background: #f8f9fb;
}

.setup-intro,
.setup-step,
.setup-troubleshooting {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.03);
}

.setup-check {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.setup-check-icon,
.setup-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0d6efd;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.setup-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.setup-step-content {
    min-width: 0;
    flex: 1;
}

.setup-step-with-image {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) minmax(260px, 420px);
}

.setup-step-image {
    width: 100%;
    align-self: center;
    border-radius: 0.75rem;
}

.setup-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.setup-platforms span {
    border: 1px solid #dbe4f0;
    background: #f8f9fb;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    color: #374151;
}

.setup-note,
.setup-success {
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
}

.setup-note {
    background: #fff7e6;
    border: 1px solid #ffe0a3;
    color: #694700;
}

.setup-success {
    background: #eaf8f0;
    border: 1px solid #b9e7c8;
    color: #166534;
}

.setup-list {
    padding-left: 1.25rem;
    color: #4b5563;
}

.setup-list li + li {
    margin-top: 0.35rem;
}

.setup-help-item {
    height: 100%;
    border-radius: 0.75rem;
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    padding: 1rem;
}

.contact-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
}

.contact-section {
    background: #f8f9fb;
}

.contact-card,
.contact-info-box,
.contact-note {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.03);
}

.contact-card {
    padding: 2rem;
}

.contact-icon,
.contact-step {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0d6efd;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.contact-email {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.contact-email:hover {
    color: #0d6efd;
}

.contact-info-box {
    padding: 1.5rem;
}

.contact-note {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (max-width: 767.98px) {
    .contact-card,
    .contact-info-box,
    .contact-note {
        padding: 1.25rem;
    }

    .contact-note {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 991.98px) {
    .setup-step-with-image {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .setup-step-with-image .setup-step-image {
        grid-column: 2;
        max-width: 520px;
    }
}

@media (max-width: 575.98px) {
    .setup-step,
    .setup-step-with-image {
        display: block;
    }

    .setup-step-number {
        margin-bottom: 1rem;
    }

    .setup-step-with-image .setup-step-image {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .dashboard-info-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

.admin-section {
    background: #f8f9fb;
}

.admin-card {
    border-radius: 1.25rem;
}

.admin-table thead th {
    font-weight: 600;
    color: #6b7280;
}

.admin-table td {
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: #f1f5f9;
    transition: 0.15s;
}

.admin-status-select {
    min-width: 120px;
}

.admin-days-input {
    width: 88px;
}

.admin-form {
    max-width: 720px;
}

/* Identity account manage pages */

main > h1,
main > div > h2 {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

main > h1 {
    padding-top: 3rem;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

main > div > h2 {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 0;
}

main > div > hr {
    display: none;
}

main > div:has(.nav-pills) {
    max-width: 1100px;
    margin: 1.5rem auto 0 auto;
    padding: 0 1rem 3rem 1rem;
}

main > div:has(.nav-pills) > .row {
    align-items: flex-start;
}

/* left menu */
main > div:has(.nav-pills) .col-md-3 {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.04);
}

/* right content */
main > div:has(.nav-pills) .col-md-9 {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.04);
}

/* add clean space between columns */
main > div:has(.nav-pills) .col-md-3 {
    width: calc(25% - 0.75rem);
    margin-right: 1.5rem;
}

main > div:has(.nav-pills) .col-md-9 {
    width: calc(75% - 0.75rem);
}

/* menu links */
main > div:has(.nav-pills) .nav-pills .nav-link {
    border-radius: 0.75rem;
    color: #374151;
    margin-bottom: 0.35rem;
    padding: 0.7rem 1rem;
}

main > div:has(.nav-pills) .nav-pills .nav-link.active {
    background: #0d6efd;
    color: #ffffff;
}

/* form */
main > div:has(.nav-pills) h3 {
    font-weight: 700;
    margin-bottom: 1.75rem;
}

main > div:has(.nav-pills) form {
    max-width: 500px;
}

main > div:has(.nav-pills) .form-floating {
    margin-bottom: 1.25rem;
}

main > div:has(.nav-pills) .form-control {
    border-radius: 0.75rem;
}

main > div:has(.nav-pills) button[type="submit"] {
    border-radius: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

/* mobile */
@media (max-width: 767.98px) {
    main > h1 {
        font-size: 1.75rem;
        padding-top: 2rem;
    }

    main > div:has(.nav-pills) .col-md-3,
    main > div:has(.nav-pills) .col-md-9 {
        width: 100%;
        margin-right: 0;
        padding: 1.25rem;
    }

    main > div:has(.nav-pills) .col-md-3 {
        margin-bottom: 1rem;
    }
}
