* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Stat Card */
.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.stat-card h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 3rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Range Slider Styles */
input[type="range"].range-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    cursor: pointer;
    height: 8px !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

input[type="range"].range-slider::-webkit-slider-runnable-track {
    background: #e2e8f0 !important;
    height: 8px !important;
    border-radius: 4px !important;
    width: 100% !important;
}

input[type="range"].range-slider::-webkit-slider-track {
    background: #e2e8f0 !important;
    height: 8px !important;
    border-radius: 4px !important;
    width: 100% !important;
}

input[type="range"].range-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: #3b82f6 !important;
    height: 20px !important;
    width: 20px !important;
    border-radius: 50% !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    margin-top: -6px !important;
    cursor: pointer;
}

input[type="range"].range-slider::-webkit-slider-thumb:hover {
    background: #2563eb !important;
    transform: scale(1.1);
}

input[type="range"].range-slider::-moz-range-track {
    background: #e2e8f0 !important;
    height: 8px !important;
    border-radius: 4px !important;
    width: 100% !important;
    border: none !important;
}

input[type="range"].range-slider::-moz-range-thumb {
    background: #3b82f6 !important;
    height: 20px !important;
    width: 20px !important;
    border-radius: 50% !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer;
}

input[type="range"].range-slider::-moz-range-thumb:hover {
    background: #2563eb !important;
    transform: scale(1.1);
}

input[type="range"].range-slider::-ms-track {
    background: #e2e8f0 !important;
    height: 8px !important;
    border-radius: 4px !important;
    width: 100% !important;
    border: none !important;
    color: transparent !important;
}

input[type="range"].range-slider::-ms-fill-lower,
input[type="range"].range-slider::-ms-fill-upper {
    background: #e2e8f0 !important;
}

input[type="range"].range-slider::-ms-thumb {
    background: #3b82f6 !important;
    height: 20px !important;
    width: 20px !important;
    border-radius: 50% !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer;
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem;
}

/* Dashboard mockup */
.dashboard-mockup {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-mockup .row {
    display: flex;
    gap: 0.5rem;
}

.dashboard-mockup .pill {
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.3);
    flex: 1;
}

/* Metrics grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.metrics-grid.text-white .metric {
    background: rgba(255, 255, 255, 0.15);
}

.metric {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 0.75rem;
}

.metric .label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(15, 23, 42, 0.6);
    margin-bottom: 0.25rem;
}

.metrics-grid.text-white .metric .label {
    color: rgba(255, 255, 255, 0.7);
}

.metric .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.metrics-grid.text-white .metric .value {
    color: white;
}

/* Feature card */
.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Integration card */
.integration-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 2rem;
    padding: 3rem;
    color: white;
}

.integration-card h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.integration-card .metrics-grid .metric {
    background: rgba(255, 255, 255, 0.15);
}

.integration-card .metrics-grid .metric .label {
    color: rgba(255, 255, 255, 0.7);
}

.integration-card .metrics-grid .metric .value {
    color: white;
}

/* Pricing card */
.pricing-card {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.2s;
}

.pricing-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.pricing-card.is-featured {
    border-color: #3b82f6;
    border-width: 2px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    space-y: 0.75rem;
}

.pricing-card ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #475569;
    font-size: 0.875rem;
}

.pricing-card ul li i {
    color: #22c55e;
    font-size: 0.875rem;
}

/* Content styles */
.content {
    color: #475569;
    line-height: 1.75;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.content h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

.content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.content h3 {
    font-size: 1.75rem;
}

.content h4 {
    font-size: 1.5rem;
}

.content h5 {
    font-size: 1.25rem;
}

.content h6 {
    font-size: 1.125rem;
}

.content p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    color: #475569;
}

.content ul,
.content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: #475569;
}

.content ul {
    list-style-type: disc;
}

.content ol {
    list-style-type: decimal;
}

.content li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
}

.content a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.3s;
}

.content a:hover {
    color: #2563eb;
}

.content strong {
    font-weight: 700;
    color: #0f172a;
}

.content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #64748b;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.content code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875em;
    color: #3b82f6;
}

.content pre {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
}

.content pre code {
    background: none;
    padding: 0;
    color: #475569;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.content table th,
.content table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.content table th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

.content table tr:last-child td {
    border-bottom: none;
}

.content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

/* Admin bar spacing */
body.admin-bar nav.fixed {
    top: 32px;
}

body.admin-bar #platform {
    padding-top: calc(8rem + 32px) !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar nav.fixed {
        top: 46px;
    }
    
    body.admin-bar #platform {
        padding-top: calc(8rem + 46px) !important;
    }
}

/* Modal overrides for compact design */
.dom-modal-content {
    background: white !important;
    color: #0f172a !important;
    padding: 2rem !important;
    border-radius: 1rem !important;
    max-width: 700px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
}

/* Purchase License Modal specific */
#dom-purchase-license-modal .dom-modal-content {
    max-width: 700px !important;
}

#dom-purchase-license-modal .dom-modal-content > div[style*="background: rgba(255, 255, 255, 0.05)"] {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

#dom-purchase-license-modal .dom-modal-content > div[style*="background: rgba(255, 255, 255, 0.05)"] strong {
    color: #0f172a !important;
}

#dom-purchase-license-modal .dom-modal-content > div[style*="background: rgba(255, 255, 255, 0.05)"] span {
    color: #475569 !important;
}

.dom-pricing-list {
    margin-top: 1.5rem;
}

.dom-pricing-item {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    padding: 1.5rem !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1rem !important;
}

.dom-pricing-item-info {
    color: #0f172a !important;
}

.dom-pricing-item-header h3 {
    color: #0f172a !important;
}

.dom-pricing-item-sites {
    color: #64748b !important;
}

.dom-pricing-item-price {
    color: #0f172a !important;
}

.dom-pricing-price-amount {
    color: #0f172a !important;
}

.dom-pricing-price-period {
    color: #64748b !important;
}

/* Add Domain Modal specific */
#dom-add-domain-modal .dom-modal-content {
    max-width: 500px !important;
}

#dom-order-info {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

#dom-order-info strong {
    color: #0f172a !important;
}

#dom-order-info span {
    color: #475569 !important;
}

#dom-add-domain-modal .dom-form-group small {
    color: #64748b !important;
}

/* General modal text overrides */
.dom-modal-content,
.dom-modal-content * {
    color: #0f172a !important;
}

.dom-modal-content p,
.dom-modal-content span:not(.dom-pricing-price-period):not(.dom-pricing-item-sites) {
    color: #475569 !important;
}

.dom-modal-content h2,
.dom-modal-content h3,
.dom-modal-content strong {
    color: #0f172a !important;
}

.dom-modal-content h2 {
    color: #0f172a !important;
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    padding-right: 2.5rem !important;
}

.dom-modal-close {
    background: #f1f5f9 !important;
    color: #64748b !important;
    width: 2rem !important;
    height: 2rem !important;
    top: 1rem !important;
    right: 1rem !important;
}

.dom-modal-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.dom-form-group label {
    color: #475569 !important;
    font-weight: 500 !important;
}

.dom-form-group input,
.dom-form-group textarea {
    background: white !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.dom-form-group input:focus,
.dom-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.dom-btn-primary {
    background: #0f172a !important;
    color: white !important;
}

.dom-btn-primary:hover {
    background: #1e293b !important;
}

.dom-modal-footer a {
    color: #3b82f6 !important;
}

.dom-modal-footer a:hover {
    color: #2563eb !important;
}

/* Dashboard Overrides for Light Theme */
.dom-dashboard {
    background: #f8fafc !important;
    color: #0f172a !important;
    padding-top: 8rem !important;
}

.dom-dashboard-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

.dom-dashboard-header h1 {
    color: #0f172a !important;
}

.dom-btn-primary {
    background: #0f172a !important;
    color: white !important;
    border: none !important;
}

.dom-btn-primary:hover {
    background: #1e293b !important;
}

.dom-btn-secondary {
    background: white !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

.dom-btn-secondary:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.dom-btn-logout {
    background: white !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

.dom-btn-logout:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.dom-licenses-section h2,
.dom-support-section h2 {
    color: #0f172a !important;
}

.dom-license-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.dom-license-card:hover {
    background: white !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.dom-license-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

.dom-license-info h3 {
    color: #0f172a !important;
}

.dom-license-meta {
    color: #64748b !important;
}

.dom-license-separator {
    color: #cbd5e1 !important;
}

.dom-domains-count {
    color: #64748b !important;
}

.dom-domain-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.dom-domain-item:hover {
    background: white !important;
    border-color: #cbd5e1 !important;
}

.dom-domain-info strong {
    color: #0f172a !important;
}

.dom-domain-date {
    color: #94a3b8 !important;
}

.dom-license-key-code {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
    font-family: 'Monaco', 'Menlo', monospace !important;
    font-size: 0.8125rem !important;
}

.dom-no-domains {
    color: #64748b !important;
}

.dom-ticket-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.dom-ticket-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.dom-ticket-header h3 {
    color: #0f172a !important;
}

.dom-ticket-number,
.dom-ticket-message,
.dom-ticket-date {
    color: #64748b !important;
}

.dom-message {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    border-radius: 0.75rem !important;
    padding: 1rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.dom-message-success {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

.dom-message-error {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #991b1b !important;
}

.dom-message-info {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1e40af !important;
}

.dom-plan-badge {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

.dom-status-open {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

.dom-status-answered {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #6ee7b7 !important;
}

.dom-status-closed {
    background: #e5e7eb !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.dom-pricing-card,
.dom-pricing-item {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.dom-pricing-card:hover,
.dom-pricing-item:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.dom-pricing-card h3,
.dom-pricing-item-header h3 {
    color: #0f172a !important;
}

.dom-price {
    color: #0f172a !important;
}

.dom-price span {
    color: #64748b !important;
}

.dom-delete-domain-btn {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
}

.dom-delete-domain-btn:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .content h1 {
        font-size: 2rem;
    }
    
    .content h2 {
        font-size: 1.75rem;
    }
    
    .content h3 {
        font-size: 1.5rem;
    }
    
    .content h4 {
        font-size: 1.25rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

