/**
 * LUNOR Order Form & Checkout Theme Stylesheet
 * Seamlessly extends the Lunor SaaS design system for WHMCS
 */

/* ==========================================================================
   Order Form Layout & Typography
   ========================================================================== */
.ln-order-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 60px 20px;
}

.ln-order-header {
    margin-bottom: 28px;
}

.ln-order-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #111318;
    letter-spacing: -0.025em;
    margin: 0 0 6px 0;
}

.ln-order-desc {
    font-size: 0.9375rem;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

/* Category Navigation Pills */
.ln-category-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid #E2E8F0;
    scrollbar-width: thin;
}

.ln-category-nav::-webkit-scrollbar {
    height: 4px;
}

.ln-category-nav::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.ln-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease-in-out;
}

/* Domain Option Tabs */
.ln-domain-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.15s ease-in-out;
}

.ln-domain-tab-btn:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    color: #0F172A;
}

.ln-domain-tab-btn.active {
    background: #111318 !important;
    color: #FFFFFF !important;
    border-color: #111318 !important;
    box-shadow: 0 2px 6px rgba(17, 19, 24, 0.15);
}

/* Domain Input Group Styling */
.ln-domain-input-group {
    border-radius: 8px;
    transition: all 0.15s ease-in-out;
}

.ln-domain-input-group .input-group-text {
    background-color: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-right: none;
    color: #64748B;
    font-weight: 600;
    font-size: 0.9375rem;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.ln-domain-input-group .form-control {
    border: 1px solid #CBD5E1;
    border-left: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    height: 44px;
    font-size: 0.9375rem;
    color: #0F172A;
    background-color: #FFFFFF;
}

.ln-domain-input-group .form-control:focus {
    border-color: #CBD5E1;
    box-shadow: none;
    outline: none;
}

.ln-domain-input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(17, 19, 24, 0.08);
}

.ln-domain-input-group:focus-within .input-group-text,
.ln-domain-input-group:focus-within .form-control {
    border-color: #111318;
}

.ln-cat-pill:hover {
    color: #0F172A;
    background: #F1F5F9;
}

.ln-cat-pill.active {
    color: #FFFFFF;
    background: #111318;
    font-weight: 600;
}

/* Currency Selector */
.ln-currency-dropdown {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Product Catalog Grid & Cards (products.tpl)
   ========================================================================== */
.ln-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.ln-product-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease-in-out;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ln-product-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transform: translateY(-2px);
}

.ln-product-card.featured {
    border-color: #111318;
    box-shadow: 0 4px 16px rgba(17, 19, 24, 0.08);
}

.ln-product-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #111318;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 9999px;
}

.ln-product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.02em;
    margin: 0 0 8px 0;
}

.ln-product-tagline {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 20px;
    min-height: 40px;
    line-height: 1.5;
}

.ln-product-pricing {
    padding: 16px 0;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 24px;
}

.ln-price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.03em;
    line-height: 1;
}

.ln-price-cycle {
    font-size: 0.875rem;
    color: #64748B;
    font-weight: 500;
    margin-left: 4px;
}

.ln-price-setup {
    display: block;
    font-size: 0.75rem;
    color: #94A3B8;
    margin-top: 4px;
}

/* Feature List */
.ln-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.ln-features-list li {
    font-size: 0.875rem;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    line-height: 1.45;
}

.ln-features-list li i {
    color: #10B981;
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Buttons */
.ln-btn-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 18px;
    background: #111318;
    color: #FFFFFF !important;
    border: 1px solid #111318;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.ln-btn-order:hover {
    background: #262930;
    border-color: #262930;
    color: #FFFFFF !important;
}

.ln-btn-order-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 18px;
    background: #FFFFFF;
    color: #0F172A !important;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.ln-btn-order-secondary:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
}

/* ==========================================================================
   Domain Search & Register (domainregister.tpl)
   ========================================================================== */
.ln-domain-search-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    margin-bottom: 32px;
}

.ln-domain-input-group {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    overflow: hidden;
    padding: 4px 6px;
    transition: all 0.2s ease-in-out;
}

.ln-domain-input-group:focus-within {
    border-color: #111318;
    box-shadow: 0 0 0 3px rgba(17, 19, 24, 0.08);
}

.ln-domain-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 1.05rem;
    color: #0F172A;
    font-family: inherit;
}

.ln-domain-search-btn {
    padding: 12px 24px;
    background: #111318;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ln-domain-search-btn:hover {
    background: #262930;
}

/* TLD Spotlight Badges */
.ln-tld-spotlight {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.ln-tld-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.ln-tld-chip:hover {
    border-color: #CBD5E1;
    background: #F1F5F9;
}

.ln-tld-chip strong {
    color: #0F172A;
    font-weight: 700;
}

.ln-tld-chip span {
    color: #64748B;
}

/* Domain Results List */
.ln-domain-results {
    margin-top: 32px;
}

.ln-domain-result-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.15s ease-in-out;
}

.ln-domain-result-card:hover {
    border-color: #CBD5E1;
}

.ln-domain-result-card.available {
    border-color: #A7F3D0;
    background: #F0FDF4;
}

.ln-domain-result-card.unavailable {
    opacity: 0.75;
    background: #F8FAFC;
}

.ln-domain-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    font-family: var(--ln-font-mono, monospace);
}

.ln-domain-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.ln-domain-price-box {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ln-domain-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
}

.ln-domain-period {
    font-size: 0.8125rem;
    color: #64748B;
}

/* ==========================================================================
   Product Configuration (configureproduct.tpl)
   ========================================================================== */
.ln-config-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.ln-config-section {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.ln-config-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Billing Cycle Radio Cards */
.ln-cycle-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.ln-cycle-card {
    position: relative;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    background: #FFFFFF;
    transition: all 0.15s ease-in-out;
}

.ln-cycle-card:hover {
    border-color: #CBD5E1;
}

.ln-cycle-card.selected {
    border-color: #111318;
    background: #F8FAFC;
    box-shadow: 0 0 0 1px #111318;
}

.ln-cycle-radio {
    position: absolute;
    top: 14px;
    right: 14px;
}

.ln-cycle-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0F172A;
    display: block;
    margin-bottom: 6px;
}

.ln-cycle-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
}

/* Configurable Options & Custom Fields */
.ln-form-group {
    margin-bottom: 20px;
}

.ln-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.ln-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #0F172A;
    background: #FFFFFF;
    outline: none;
    transition: all 0.15s ease-in-out;
}

.ln-form-control:focus {
    border-color: #111318;
    box-shadow: 0 0 0 3px rgba(17, 19, 24, 0.08);
}

.ln-form-desc {
    font-size: 0.8125rem;
    color: #64748B;
    margin-top: 4px;
}

/* Addons Cards */
.ln-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.ln-addon-card {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 16px 20px;
    background: #FFFFFF;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ln-addon-card:hover {
    border-color: #CBD5E1;
}

.ln-addon-card.selected {
    border-color: #111318;
    background: #F8FAFC;
}

/* ==========================================================================
   Order Summary Sticky Sidebar
   ========================================================================== */
.ln-order-summary {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ln-summary-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    padding-bottom: 14px;
    border-bottom: 1px solid #E2E8F0;
    margin: 0 0 16px 0;
}

.ln-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 10px;
}

.ln-summary-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 16px 0;
}

.ln-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 20px;
}

.ln-summary-total-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111318;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   View Cart & Checkout (viewcart.tpl)
   ========================================================================== */
.ln-cart-item-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ln-cart-item-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.ln-cart-item-thumb {
    width: 88px;
    height: 88px;
    min-width: 88px;
    background: #F1F5F9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ln-cart-item-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.ln-cart-remove-icon {
    color: #94A3B8;
    background: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.ln-cart-remove-icon:hover {
    color: #EF4444;
    background: #FEF2F2;
}

.ln-cart-edit-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ln-cart-edit-pill:hover {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
}

/* Order Summary Card (matching reference design) */
.ln-order-summary-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ln-summary-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
}

.ln-summary-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.ln-shipping-select-box {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 14px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ln-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.ln-summary-separator {
    height: 1px;
    background: #F1F5F9;
}

.ln-trust-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #F1F5F9;
    padding-top: 16px;
}

.ln-trust-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #475569;
}

.ln-checkout-main-btn {
    width: 100%;
    height: 48px;
    background: #111318;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(17, 19, 24, 0.15);
}

.ln-checkout-main-btn:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 19, 24, 0.25);
}

.ln-checkout-main-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
    font-size: 0.875rem;
    outline: none;
}

.ln-promo-input:focus {
    border-color: #111318;
}

.ln-promo-btn {
    padding: 10px 18px;
    background: #F1F5F9;
    color: #0F172A;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.ln-promo-btn:hover {
    background: #E2E8F0;
}

/* Account Options Tabs (Login vs Register) */
.ln-auth-tabs {
    display: flex;
    border-bottom: 1.5px solid #E2E8F0;
    margin-bottom: 24px;
}

.ln-auth-tab {
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748B;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
    transition: all 0.15s ease;
}

.ln-auth-tab.active {
    color: #111318;
    border-bottom-color: #111318;
}

/* Payment Gateways Radios */
.ln-gateway-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.ln-gateway-card {
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.15s ease-in-out;
}

.ln-gateway-card:hover {
    border-color: #CBD5E1;
}

.ln-gateway-card.selected {
    border-color: #111318;
    background: #F8FAFC;
    box-shadow: 0 0 0 1px #111318;
}

.ln-gateway-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0F172A;
}

/* ==========================================================================
   Order Complete & Thank You (complete.tpl)
   ========================================================================== */
.ln-complete-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 48px 36px;
    text-align: center;
    max-width: 680px;
    margin: 32px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.ln-complete-icon-box {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ECFDF5;
    color: #10B981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991px) {
    .ln-config-grid {
        grid-template-columns: 1fr;
    }

    .ln-order-summary {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 767px) {
    .ln-order-container {
        padding: 16px 12px 40px 12px;
    }

    .ln-products-grid {
        grid-template-columns: 1fr;
    }

    .ln-domain-result-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .ln-domain-price-box {
        width: 100%;
        justify-content: space-between;
    }

    .ln-cart-item {
        flex-direction: column;
    }

    .ln-cart-item-price {
        text-align: left;
        margin-top: 8px;
    }
}

