/**
 * WHMCS WordPress Plugin - Frontend Styles
 * Dark Glass / Cybersec / Cloud Computing Aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --whmcs-bg-primary: #0d0d0f;
    --whmcs-bg-secondary: #141418;
    --whmcs-bg-tertiary: #1a1a1f;
    --whmcs-bg-card: rgba(26, 26, 31, 0.8);
    --whmcs-bg-glass: rgba(26, 26, 31, 0.6);
    --whmcs-border: rgba(255, 255, 255, 0.08);
    --whmcs-border-light: rgba(255, 255, 255, 0.12);
    --whmcs-text-primary: #ffffff;
    --whmcs-text-secondary: #a0a0a8;
    --whmcs-text-muted: #6b6b73;
    --whmcs-accent-orange: #ff6b35;
    --whmcs-accent-orange-dark: #e55a2b;
    --whmcs-accent-yellow: #ffc107;
    --whmcs-accent-green: #10b981;
    --whmcs-accent-cyan: #06b6d4;
    --whmcs-accent-blue: #3b82f6;
    --whmcs-error: #ef4444;
    --whmcs-success: #10b981;
    --whmcs-gradient-orange: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    --whmcs-gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    --whmcs-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --whmcs-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --whmcs-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --whmcs-shadow-glow: 0 0 30px rgba(255, 107, 53, 0.15);
    --whmcs-radius-sm: 8px;
    --whmcs-radius-md: 12px;
    --whmcs-radius-lg: 16px;
    --whmcs-radius-xl: 24px;
    --whmcs-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   CSS RESET & ISOLATION - Protect from themes
   ============================================ */

.whmcs-wp-widget,
.whmcs-wp-widget *,
.whmcs-wp-widget *::before,
.whmcs-wp-widget *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

.whmcs-wp-widget {
    all: initial !important;
    display: block !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: var(--whmcs-bg-primary) !important;
    color: var(--whmcs-text-primary) !important;
    line-height: 1.6 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    position: relative !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding-left: calc(50vw - 50%) !important;
    padding-right: calc(50vw - 50%) !important;
    font-size: 16px !important;
    text-align: left !important;
    word-wrap: break-word !important;
}

/* Reset all typography inside widget */
.whmcs-wp-widget h1,
.whmcs-wp-widget h2,
.whmcs-wp-widget h3,
.whmcs-wp-widget h4,
.whmcs-wp-widget h5,
.whmcs-wp-widget h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--whmcs-text-primary) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.whmcs-wp-widget p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--whmcs-text-secondary) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.whmcs-wp-widget a {
    color: var(--whmcs-accent-orange) !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
}

.whmcs-wp-widget a:hover {
    color: var(--whmcs-accent-orange-dark) !important;
    text-decoration: underline !important;
}

.whmcs-wp-widget ul,
.whmcs-wp-widget ol,
.whmcs-wp-widget li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.whmcs-wp-widget img {
    max-width: 100% !important;
    height: auto !important;
    border: none !important;
}

.whmcs-wp-widget table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

/* Reset form elements */
.whmcs-wp-widget input,
.whmcs-wp-widget select,
.whmcs-wp-widget textarea,
.whmcs-wp-widget button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--whmcs-text-primary) !important;
    background: var(--whmcs-bg-tertiary) !important;
    border: 1px solid var(--whmcs-border-light) !important;
    border-radius: var(--whmcs-radius-md) !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
}

.whmcs-wp-widget input::placeholder,
.whmcs-wp-widget textarea::placeholder {
    color: var(--whmcs-text-muted) !important;
    opacity: 1 !important;
}

.whmcs-wp-widget input:focus,
.whmcs-wp-widget select:focus,
.whmcs-wp-widget textarea:focus {
    border-color: var(--whmcs-accent-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15) !important;
    outline: none !important;
}

.whmcs-wp-widget button {
    cursor: pointer !important;
}

.whmcs-wp-widget label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--whmcs-text-secondary) !important;
    display: block !important;
    margin: 0 0 8px 0 !important;
}

/* Reset SVG */
.whmcs-wp-widget svg {
    display: inline-block !important;
    vertical-align: middle !important;
    fill: none !important;
    stroke: currentColor !important;
}

/* ============================================
   Base Widget Container
   ============================================ */

.whmcs-wp-widget .whmcs-wp-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 60px 24px !important;
    position: relative !important;
    display: block !important;
}

/* Progress Steps */
.whmcs-wp-widget .whmcs-wp-steps {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 48px !important;
    padding: 24px !important;
    background: var(--whmcs-bg-glass) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--whmcs-border) !important;
    border-radius: var(--whmcs-radius-xl) !important;
}

.whmcs-wp-widget .whmcs-wp-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    position: relative !important;
    z-index: 1 !important;
}

.whmcs-wp-widget .whmcs-wp-step-circle {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: var(--whmcs-bg-tertiary) !important;
    border: 2px solid var(--whmcs-border-light) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--whmcs-text-muted) !important;
    transition: var(--whmcs-transition) !important;
    position: relative !important;
}

.whmcs-wp-widget .whmcs-wp-step-circle .step-number {
    transition: var(--whmcs-transition) !important;
}

.whmcs-wp-widget .whmcs-wp-step-circle .step-check {
    width: 20px !important;
    height: 20px !important;
    position: absolute !important;
    opacity: 0 !important;
    transition: var(--whmcs-transition) !important;
}

.whmcs-wp-widget .whmcs-wp-step.active .whmcs-wp-step-circle {
    background: var(--whmcs-gradient-orange) !important;
    border-color: var(--whmcs-accent-orange) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4) !important;
}

.whmcs-wp-widget .whmcs-wp-step.completed .whmcs-wp-step-circle {
    background: var(--whmcs-accent-green) !important;
    border-color: var(--whmcs-accent-green) !important;
    color: white !important;
}

.whmcs-wp-widget .whmcs-wp-step.completed .whmcs-wp-step-circle .step-number {
    opacity: 0 !important;
}

.whmcs-wp-widget .whmcs-wp-step.completed .whmcs-wp-step-circle .step-check {
    opacity: 1 !important;
}

.whmcs-wp-widget .whmcs-wp-step-label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--whmcs-text-muted) !important;
    transition: var(--whmcs-transition) !important;
    white-space: nowrap !important;
}

.whmcs-wp-widget .whmcs-wp-step.active .whmcs-wp-step-label,
.whmcs-wp-widget .whmcs-wp-step.completed .whmcs-wp-step-label {
    color: var(--whmcs-text-primary) !important;
}

.whmcs-wp-widget .whmcs-wp-step-line {
    flex: 1 !important;
    height: 2px !important;
    background: var(--whmcs-border-light) !important;
    margin: 0 16px !important;
    margin-bottom: 30px !important;
    max-width: 100px !important;
    transition: var(--whmcs-transition) !important;
}

.whmcs-wp-widget .whmcs-wp-step.completed + .whmcs-wp-step-line {
    background: var(--whmcs-accent-green) !important;
}

/* Step Content */
.whmcs-wp-widget .whmcs-wp-step-content {
    display: none !important;
    animation: fadeIn 0.4s ease !important;
}

.whmcs-wp-widget .whmcs-wp-step-content.active {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whmcs-wp-widget .whmcs-wp-step-header {
    text-align: center !important;
    margin-bottom: 40px !important;
}

.whmcs-wp-widget .whmcs-wp-step-header h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    background: linear-gradient(135deg, var(--whmcs-text-primary) 0%, var(--whmcs-text-secondary) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.whmcs-wp-widget .whmcs-wp-step-header p {
    font-size: 15px !important;
    color: var(--whmcs-text-secondary) !important;
    margin: 0 !important;
}

/* Product Cards */
.whmcs-wp-widget .whmcs-wp-products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(350px, 1fr)) !important;
    gap: 30px !important;
    margin-bottom: 32px !important;
    justify-content: center !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.whmcs-wp-widget .whmcs-wp-product-card {
    background: var(--whmcs-bg-glass) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--whmcs-border) !important;
    border-radius: var(--whmcs-radius-lg) !important;
    padding: 28px !important;
    position: relative !important;
    cursor: pointer !important;
    transition: var(--whmcs-transition) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 350px !important;
}

.whmcs-wp-widget .whmcs-wp-product-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: transparent !important;
    transition: var(--whmcs-transition) !important;
}

.whmcs-wp-widget .whmcs-wp-product-card:hover {
    border-color: var(--whmcs-accent-orange) !important;
    transform: translateY(-4px) !important;
    box-shadow: var(--whmcs-shadow-lg), 0 0 30px rgba(255, 107, 53, 0.1) !important;
}

.whmcs-wp-widget .whmcs-wp-product-card:hover::before {
    background: var(--whmcs-gradient-orange) !important;
}

.whmcs-wp-widget .whmcs-wp-product-card.featured {
    border-color: var(--whmcs-accent-orange) !important;
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.08) 0%, var(--whmcs-bg-glass) 100%) !important;
}

.whmcs-wp-widget .whmcs-wp-product-card.featured::before {
    background: var(--whmcs-gradient-orange) !important;
}

.whmcs-wp-widget .whmcs-wp-product-card.selected {
    border-color: var(--whmcs-accent-orange) !important;
    box-shadow: var(--whmcs-shadow-glow) !important;
}

.whmcs-wp-widget .whmcs-wp-badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: var(--whmcs-gradient-orange) !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 10 !important;
}

.whmcs-wp-widget .whmcs-wp-product-header {
    margin-bottom: 16px !important;
}

.whmcs-wp-widget .whmcs-wp-product-header h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 16px 0 !important;
    color: var(--whmcs-text-primary) !important;
}

.whmcs-wp-widget .whmcs-wp-product-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
}

.whmcs-wp-widget .whmcs-wp-product-price .price-amount {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: var(--whmcs-text-primary) !important;
    font-family: 'JetBrains Mono', monospace !important;
}

.whmcs-wp-widget .whmcs-wp-product-price .price-currency {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--whmcs-accent-orange) !important;
}

.whmcs-wp-widget .whmcs-wp-product-price .price-period {
    font-size: 14px !important;
    color: var(--whmcs-text-muted) !important;
}

.whmcs-wp-widget .whmcs-wp-product-description {
    font-size: 14px !important;
    color: var(--whmcs-text-secondary) !important;
    margin-bottom: 16px !important;
    line-height: 1.6 !important;
}

.whmcs-wp-widget .whmcs-wp-product-description strong {
    color: var(--whmcs-accent-orange) !important;
    font-weight: 600 !important;
}

.whmcs-wp-widget .whmcs-wp-product-description .whmcs-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    color: var(--whmcs-accent-orange) !important;
    margin-right: 4px !important;
    vertical-align: middle !important;
}

.whmcs-wp-widget .whmcs-wp-product-description .whmcs-icon svg {
    width: 14px !important;
    height: 14px !important;
}

.whmcs-wp-product-features {
    font-size: 12px;
    color: var(--whmcs-text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.whmcs-wp-product-features .feature-label {
    color: var(--whmcs-text-primary);
    font-weight: 500;
}

.whmcs-wp-product-features .feature-value {
    color: var(--whmcs-text-secondary);
}

.whmcs-wp-product-features .feature-highlight {
    color: var(--whmcs-accent-orange);
    font-weight: 500;
}

.whmcs-wp-product-group {
    margin-bottom: 16px;
}

.whmcs-wp-product-group .group-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--whmcs-text-muted);
    background: var(--whmcs-bg-tertiary);
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid var(--whmcs-border);
}

/* Buttons */
.whmcs-wp-widget .whmcs-wp-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: var(--whmcs-radius-md) !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--whmcs-transition) !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    background: var(--whmcs-bg-tertiary) !important;
    color: var(--whmcs-text-primary) !important;
}

.whmcs-wp-widget .whmcs-wp-btn svg {
    width: 18px !important;
    height: 18px !important;
}

.whmcs-wp-widget .whmcs-wp-btn-select {
    width: 100% !important;
    background: var(--whmcs-bg-tertiary) !important;
    color: var(--whmcs-text-primary) !important;
    border: 1px solid var(--whmcs-border-light) !important;
}

.whmcs-wp-widget .whmcs-wp-btn-select:hover {
    background: var(--whmcs-gradient-orange) !important;
    border-color: var(--whmcs-accent-orange) !important;
}

.whmcs-wp-widget .whmcs-wp-product-card.selected .whmcs-wp-btn-select {
    background: var(--whmcs-gradient-orange) !important;
    border-color: var(--whmcs-accent-orange) !important;
}

.whmcs-wp-widget .whmcs-wp-btn-primary {
    background: var(--whmcs-gradient-orange) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
}

.whmcs-wp-widget .whmcs-wp-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
}

.whmcs-wp-widget .whmcs-wp-btn-secondary {
    background: var(--whmcs-bg-tertiary) !important;
    color: var(--whmcs-text-primary) !important;
    border: 1px solid var(--whmcs-border-light) !important;
}

.whmcs-wp-widget .whmcs-wp-btn-secondary:hover {
    background: var(--whmcs-bg-secondary) !important;
    border-color: var(--whmcs-text-muted) !important;
}

.whmcs-wp-widget .whmcs-wp-btn-full {
    width: 100% !important;
}

/* Panel Button */
.whmcs-wp-widget .whmcs-wp-btn-panel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 20px !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.whmcs-wp-widget .whmcs-wp-btn-panel svg {
    width: 20px !important;
    height: 20px !important;
}

/* Auth Tabs */
.whmcs-wp-widget .whmcs-wp-auth-tabs {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 32px !important;
    padding: 6px !important;
    background: var(--whmcs-bg-glass) !important;
    border-radius: var(--whmcs-radius-lg) !important;
    border: 1px solid var(--whmcs-border) !important;
}

.whmcs-wp-widget .whmcs-wp-auth-tab {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 24px !important;
    background: transparent !important;
    border: none !important;
    border-radius: var(--whmcs-radius-md) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--whmcs-text-muted) !important;
    cursor: pointer !important;
    transition: var(--whmcs-transition) !important;
}

.whmcs-wp-widget .whmcs-wp-auth-tab svg {
    width: 18px !important;
    height: 18px !important;
}

.whmcs-wp-widget .whmcs-wp-auth-tab:hover {
    color: var(--whmcs-text-primary) !important;
}

.whmcs-wp-auth-tab.active {
    background: var(--whmcs-bg-tertiary);
    color: var(--whmcs-text-primary);
    box-shadow: var(--whmcs-shadow-sm);
}

.whmcs-wp-auth-content {
    display: none;
    max-width: 600px;
    margin: 0 auto;
}

.whmcs-wp-auth-content.active {
    display: block;
}

/* Forms */
.whmcs-wp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.whmcs-wp-widget .whmcs-wp-form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.whmcs-wp-widget .whmcs-wp-form-group label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--whmcs-text-secondary) !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.whmcs-wp-widget .whmcs-wp-form-group label .required {
    color: var(--whmcs-accent-orange) !important;
}

.whmcs-wp-widget .whmcs-wp-field-hint {
    font-size: 11px !important;
    color: var(--whmcs-text-muted) !important;
    margin-top: -4px !important;
}

.whmcs-wp-widget .whmcs-wp-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

.whmcs-wp-widget .whmcs-wp-form-group-lg {
    grid-column: span 1 !important;
}

.whmcs-wp-widget .whmcs-wp-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.whmcs-wp-widget .whmcs-wp-input-wrapper > svg:first-of-type {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    color: var(--whmcs-text-muted) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.whmcs-wp-widget .whmcs-wp-input-wrapper input {
    width: 100% !important;
    padding: 14px 14px 14px 44px !important;
    background: var(--whmcs-bg-tertiary) !important;
    border: 1px solid var(--whmcs-border-light) !important;
    border-radius: var(--whmcs-radius-md) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    color: var(--whmcs-text-primary) !important;
    transition: var(--whmcs-transition) !important;
    height: auto !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.whmcs-wp-widget .whmcs-wp-input-wrapper input::placeholder {
    color: var(--whmcs-text-muted) !important;
    opacity: 1 !important;
}

.whmcs-wp-widget .whmcs-wp-input-wrapper input:focus {
    outline: none !important;
    border-color: var(--whmcs-accent-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15) !important;
}

/* Select Wrapper */
.whmcs-wp-widget .whmcs-wp-select-wrapper {
    position: relative !important;
}

.whmcs-wp-widget .whmcs-wp-select-wrapper select {
    width: 100% !important;
    padding: 14px 44px 14px 44px !important;
    background: var(--whmcs-bg-tertiary) !important;
    border: 1px solid var(--whmcs-border-light) !important;
    border-radius: var(--whmcs-radius-md) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    color: var(--whmcs-text-primary) !important;
    transition: var(--whmcs-transition) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    height: auto !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.whmcs-wp-widget .whmcs-wp-select-wrapper select:focus {
    outline: none !important;
    border-color: var(--whmcs-accent-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15) !important;
}

.whmcs-wp-widget .whmcs-wp-select-wrapper select option {
    background: var(--whmcs-bg-secondary) !important;
    color: var(--whmcs-text-primary) !important;
    padding: 12px !important;
}

.whmcs-wp-widget .whmcs-wp-select-wrapper select option:first-child {
    color: var(--whmcs-text-muted) !important;
}

.whmcs-wp-widget .whmcs-wp-select-wrapper > svg:first-of-type {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    color: var(--whmcs-text-muted) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.whmcs-wp-widget .whmcs-wp-select-wrapper .select-arrow {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    color: var(--whmcs-text-muted) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

/* Fix for Firefox */
.whmcs-wp-widget .whmcs-wp-select-wrapper select:-moz-focusring {
    color: transparent !important;
    text-shadow: 0 0 0 var(--whmcs-text-primary) !important;
}

/* Fix for IE */
.whmcs-wp-widget .whmcs-wp-select-wrapper select::-ms-expand {
    display: none !important;
}

.whmcs-wp-widget .whmcs-wp-toggle-password {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    padding: 4px !important;
    cursor: pointer !important;
    color: var(--whmcs-text-muted) !important;
    transition: var(--whmcs-transition) !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.whmcs-wp-widget .whmcs-wp-toggle-password:hover {
    color: var(--whmcs-text-primary) !important;
}

.whmcs-wp-widget .whmcs-wp-toggle-password svg {
    position: static !important;
    width: 18px !important;
    height: 18px !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
}

.whmcs-wp-widget .whmcs-wp-toggle-password .eye-closed {
    display: none !important;
}

.whmcs-wp-widget .whmcs-wp-toggle-password.active .eye-open {
    display: none !important;
}

.whmcs-wp-widget .whmcs-wp-toggle-password.active .eye-closed {
    display: block !important;
}

/* Client Type Selection */
.whmcs-wp-widget .whmcs-wp-client-type {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    margin-bottom: 12px !important;
}

.whmcs-wp-widget .whmcs-wp-radio-card {
    position: relative !important;
    cursor: pointer !important;
}

.whmcs-wp-widget .whmcs-wp-radio-card input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.whmcs-wp-widget .whmcs-wp-radio-card .radio-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 20px !important;
    background: var(--whmcs-bg-tertiary) !important;
    border: 2px solid var(--whmcs-border-light) !important;
    border-radius: var(--whmcs-radius-md) !important;
    transition: var(--whmcs-transition) !important;
}

.whmcs-wp-widget .whmcs-wp-radio-card .radio-content svg {
    width: 28px !important;
    height: 28px !important;
    color: var(--whmcs-text-muted) !important;
    transition: var(--whmcs-transition) !important;
    position: static !important;
    transform: none !important;
}

.whmcs-wp-widget .whmcs-wp-radio-card .radio-content span {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--whmcs-text-secondary) !important;
    transition: var(--whmcs-transition) !important;
}

.whmcs-wp-widget .whmcs-wp-radio-card:hover .radio-content {
    border-color: var(--whmcs-text-muted) !important;
}

.whmcs-wp-widget .whmcs-wp-radio-card.active .radio-content,
.whmcs-wp-widget .whmcs-wp-radio-card input:checked + .radio-content {
    border-color: var(--whmcs-accent-orange) !important;
    background: rgba(255, 107, 53, 0.08) !important;
}

.whmcs-wp-widget .whmcs-wp-radio-card.active .radio-content svg,
.whmcs-wp-widget .whmcs-wp-radio-card input:checked + .radio-content svg {
    color: var(--whmcs-accent-orange) !important;
}

.whmcs-wp-widget .whmcs-wp-radio-card.active .radio-content span,
.whmcs-wp-widget .whmcs-wp-radio-card input:checked + .radio-content span {
    color: var(--whmcs-text-primary) !important;
}

/* Form Error */
.whmcs-wp-widget .whmcs-wp-form-error {
    display: none !important;
    padding: 12px 16px !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-radius: var(--whmcs-radius-md) !important;
    color: var(--whmcs-error) !important;
    font-size: 14px !important;
}

.whmcs-wp-widget .whmcs-wp-form-error.visible {
    display: block !important;
}

/* Step Navigation */
.whmcs-wp-widget .whmcs-wp-step-nav {
    display: flex !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px solid var(--whmcs-border) !important;
}

/* Payment Step */
.whmcs-wp-widget .whmcs-wp-order-summary-box {
    background: var(--whmcs-bg-glass) !important;
    border: 1px solid var(--whmcs-border) !important;
    border-radius: var(--whmcs-radius-lg) !important;
    padding: 24px !important;
    margin-bottom: 32px !important;
}

.whmcs-wp-widget .whmcs-wp-order-summary-box h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 16px 0 !important;
    color: var(--whmcs-text-primary) !important;
}

.whmcs-wp-widget .whmcs-wp-summary-product {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.whmcs-wp-widget .whmcs-wp-summary-product .product-name {
    font-size: 15px !important;
    color: var(--whmcs-text-secondary) !important;
}

.whmcs-wp-widget .whmcs-wp-summary-product .product-price {
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: 'JetBrains Mono', monospace !important;
    color: var(--whmcs-accent-orange) !important;
}

/* Quantity Section */
.whmcs-wp-widget .whmcs-wp-quantity-section {
    margin-bottom: 32px !important;
}

.whmcs-wp-widget .whmcs-wp-quantity-section h4 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--whmcs-text-primary) !important;
    margin: 0 0 16px 0 !important;
}

.whmcs-wp-widget .whmcs-wp-quantity-control {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: var(--whmcs-bg-tertiary) !important;
    padding: 12px 20px !important;
    border-radius: var(--whmcs-radius-lg) !important;
    border: 1px solid var(--whmcs-border) !important;
    width: fit-content !important;
}

.whmcs-wp-widget .whmcs-wp-qty-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: var(--whmcs-radius-md) !important;
    border: 1px solid var(--whmcs-border-light) !important;
    background: var(--whmcs-bg-secondary) !important;
    color: var(--whmcs-text-primary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: var(--whmcs-transition) !important;
}

.whmcs-wp-widget .whmcs-wp-qty-btn:hover {
    background: var(--whmcs-accent-orange) !important;
    border-color: var(--whmcs-accent-orange) !important;
    color: white !important;
}

.whmcs-wp-widget .whmcs-wp-qty-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.whmcs-wp-widget .whmcs-wp-qty-btn:disabled:hover {
    background: var(--whmcs-bg-secondary) !important;
    border-color: var(--whmcs-border-light) !important;
    color: var(--whmcs-text-primary) !important;
}

.whmcs-wp-widget .whmcs-wp-qty-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
}

.whmcs-wp-widget .whmcs-wp-qty-input {
    width: 60px !important;
    height: 40px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: 'JetBrains Mono', monospace !important;
    background: var(--whmcs-bg-primary) !important;
    border: 1px solid var(--whmcs-border-light) !important;
    border-radius: var(--whmcs-radius-md) !important;
    color: var(--whmcs-text-primary) !important;
    -moz-appearance: textfield !important;
}

.whmcs-wp-widget .whmcs-wp-qty-input::-webkit-outer-spin-button,
.whmcs-wp-widget .whmcs-wp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.whmcs-wp-widget .whmcs-wp-qty-label {
    font-size: 14px !important;
    color: var(--whmcs-text-muted) !important;
    margin-left: 4px !important;
}

.whmcs-wp-widget .whmcs-wp-qty-hint {
    font-size: 12px !important;
    color: var(--whmcs-text-muted) !important;
    margin-top: 8px !important;
}

/* Billing Cycle */
.whmcs-wp-widget .whmcs-wp-billing-cycle {
    margin-bottom: 32px !important;
}

.whmcs-wp-widget .whmcs-wp-billing-cycle h4,
.whmcs-wp-widget .whmcs-wp-payment-methods h4 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--whmcs-text-primary) !important;
    margin: 0 0 16px 0 !important;
}

.whmcs-wp-cycle-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.whmcs-wp-cycle-card {
    position: relative;
    cursor: pointer;
}

.whmcs-wp-cycle-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.whmcs-wp-cycle-card .cycle-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    background: var(--whmcs-bg-tertiary);
    border: 2px solid var(--whmcs-border-light);
    border-radius: var(--whmcs-radius-md);
    transition: var(--whmcs-transition);
}

.whmcs-wp-cycle-card .cycle-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--whmcs-text-secondary);
}

.whmcs-wp-cycle-card .cycle-price {
    font-size: 20px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--whmcs-text-primary);
}

.whmcs-wp-cycle-card .cycle-save {
    font-size: 12px;
    color: var(--whmcs-accent-green);
    font-weight: 500;
}

.whmcs-wp-cycle-card.active .cycle-content,
.whmcs-wp-cycle-card input:checked + .cycle-content {
    border-color: var(--whmcs-accent-orange);
    background: rgba(255, 107, 53, 0.08);
}

/* Payment Methods */
.whmcs-wp-payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.whmcs-wp-payment-card {
    position: relative;
    cursor: pointer;
}

.whmcs-wp-payment-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.whmcs-wp-payment-card .payment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--whmcs-bg-tertiary);
    border: 2px solid var(--whmcs-border-light);
    border-radius: var(--whmcs-radius-md);
    transition: var(--whmcs-transition);
    min-height: 130px;
}

.whmcs-wp-payment-card .payment-content svg.payment-logo {
    width: 80px;
    height: 32px;
    transition: var(--whmcs-transition);
}

.whmcs-wp-payment-card .payment-content svg.payment-logo.payu-logo {
    width: 90px;
    height: 36px;
}

.whmcs-wp-payment-card .payment-content svg {
    width: 32px;
    height: 32px;
    color: var(--whmcs-text-muted);
    transition: var(--whmcs-transition);
}

.whmcs-wp-payment-card .payment-content span {
    font-size: 14px;
    font-weight: 600;
    color: var(--whmcs-text-primary);
    text-align: center;
}

.whmcs-wp-payment-card .payment-content .payment-desc {
    font-size: 11px;
    font-weight: 400;
    color: var(--whmcs-text-muted);
    margin-top: -4px;
}

.whmcs-wp-payment-card:hover .payment-content {
    border-color: var(--whmcs-text-muted);
}

.whmcs-wp-payment-card.active .payment-content,
.whmcs-wp-payment-card input:checked + .payment-content {
    border-color: var(--whmcs-accent-orange);
    background: rgba(255, 107, 53, 0.08);
}

.whmcs-wp-payment-card.active .payment-content svg,
.whmcs-wp-payment-card input:checked + .payment-content svg {
    color: var(--whmcs-accent-orange);
}

/* Confirmation */
.whmcs-wp-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.whmcs-wp-confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--whmcs-accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.whmcs-wp-confirmation-icon svg {
    width: 40px;
    height: 40px;
    color: var(--whmcs-accent-green);
}

.whmcs-wp-confirmation h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--whmcs-text-primary);
}

.whmcs-wp-confirmation > p {
    font-size: 15px;
    color: var(--whmcs-text-secondary);
    margin: 0 0 32px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.whmcs-wp-order-details {
    background: var(--whmcs-bg-glass);
    border: 1px solid var(--whmcs-border);
    border-radius: var(--whmcs-radius-lg);
    padding: 24px;
    max-width: 400px;
    margin: 0 auto 32px;
}

.whmcs-wp-order-details .order-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--whmcs-border);
}

.whmcs-wp-order-details .order-detail:last-child {
    border-bottom: none;
}

.whmcs-wp-order-details .detail-label {
    font-size: 14px;
    color: var(--whmcs-text-muted);
}

.whmcs-wp-order-details .detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--whmcs-text-primary);
}

.whmcs-wp-order-details .order-number {
    font-family: 'JetBrains Mono', monospace;
    color: var(--whmcs-accent-orange);
}

.whmcs-wp-order-details .order-amount {
    color: var(--whmcs-accent-green);
}

.whmcs-wp-confirmation-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.whmcs-wp-info-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--whmcs-text-secondary);
    padding: 16px;
    background: var(--whmcs-bg-tertiary);
    border-radius: var(--whmcs-radius-md);
    max-width: 500px;
    margin: 0 auto;
}

.whmcs-wp-info-text svg {
    width: 20px;
    height: 20px;
    color: var(--whmcs-accent-cyan);
    flex-shrink: 0;
}

/* Loading Overlay */
.whmcs-wp-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.whmcs-wp-loading.visible {
    display: flex;
}

.whmcs-wp-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--whmcs-border-light);
    border-top-color: var(--whmcs-accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.whmcs-wp-loading span {
    font-size: 14px;
    color: var(--whmcs-text-secondary);
}

/* Error State */
.whmcs-wp-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--whmcs-error);
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1200px) {
    .whmcs-wp-products {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
    
    .whmcs-wp-product-card {
        min-width: 300px;
    }
}

@media (max-width: 900px) {
    .whmcs-wp-container {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .whmcs-wp-products {
        grid-template-columns: 1fr;
    }
    
    .whmcs-wp-product-card {
        min-width: auto;
    }
    
    .whmcs-wp-container {
        padding: 24px 16px;
    }
    
    .whmcs-wp-steps {
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px;
    }
    
    .whmcs-wp-step-line {
        display: none;
    }
    
    .whmcs-wp-step {
        flex: 1;
        min-width: 70px;
    }
    
    .whmcs-wp-step-label {
        font-size: 11px;
    }
    
    .whmcs-wp-step-circle {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .whmcs-wp-form-row {
        grid-template-columns: 1fr;
    }
    
    .whmcs-wp-client-type,
    .whmcs-wp-cycle-options {
        grid-template-columns: 1fr;
    }
    
    .whmcs-wp-payment-options {
        grid-template-columns: 1fr;
    }
    
    .whmcs-wp-step-nav {
        flex-direction: column-reverse;
    }
    
    .whmcs-wp-step-nav .whmcs-wp-btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .whmcs-wp-products {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .whmcs-wp-step-header h2 {
        font-size: 22px;
    }
    
    .whmcs-wp-product-price .price-amount {
        font-size: 26px;
    }
    
    .whmcs-wp-auth-tabs {
        flex-direction: column;
    }
}
