/* 
Modern Trust Solutions CSS
Clean, accessible design with high contrast and simplified layout
*/

:root {
    /* Primary Colors - Clean and Professional */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #64748b;
    --accent: #0ea5e9;
    
    /* Neutral Colors - High Contrast */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    
    /* Success, Warning, Error */
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
    
    /* Typography */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Navigation - Clean and Minimal */
.nav-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.nav-brand h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
}

.nav-links a:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-links a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Remove emoji from nav links for cleaner look */
.nav-links a::before {
    content: none;
}

/* Cart Button */
.cart-count {
    background: var(--error);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Shopping Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.cart-sidebar.active {
    transform: translateX(-400px);
}

.cart-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
}

.cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.close-cart:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
}

.cart-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.15s ease;
}

.cart-item:hover {
    background: var(--gray-50);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    font-size: 0.95rem;
}

.cart-item-details {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-2);
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.remove-item {
    background: var(--error);
    color: var(--white);
    border: none;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.remove-item:hover {
    background: #dc2626;
}

.cart-empty {
    text-align: center;
    padding: var(--space-12) var(--space-4);
    color: var(--text-secondary);
}

.cart-empty i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: var(--space-4);
}

.cart-empty p {
    margin-bottom: var(--space-6);
    font-size: 1rem;
}

.browse-products {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.browse-products:hover {
    background: var(--primary-hover);
    color: var(--white);
    text-decoration: none;
}

.cart-footer {
    border-top: 1px solid var(--gray-200);
    padding: var(--space-6);
    background: var(--gray-50);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.checkout-button {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 1rem;
}

.checkout-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.checkout-button:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    transform: translateX(500px);
    transition: all 0.3s ease;
}

.cart-notification.success {
    border-left: 4px solid var(--success);
}

.cart-notification.info {
    border-left: 4px solid var(--accent);
}

.cart-notification.error {
    border-left: 4px solid var(--error);
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification .notification-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.cart-notification .notification-icon {
    font-size: 1.25rem;
}

.cart-notification.success .notification-icon {
    color: var(--success);
}

.cart-notification.info .notification-icon {
    color: var(--accent);
}

.cart-notification.error .notification-icon {
    color: var(--error);
}

.cart-notification .notification-message {
    color: var(--text-primary);
    font-weight: 500;
}

/* Mobile Cart Responsive */
@media (max-width: 640px) {
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
    }
    
    .cart-sidebar.active {
        transform: translateX(-100vw);
    }
}

/* Hero Section - Simplified */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-12);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--space-4);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    opacity: 0.95;
    line-height: 1.5;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 500;
}

.feature-item i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons - Modern Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 44px; /* Touch target */
}

.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.action-btn {
    background: var(--primary);
    color: var(--white);
}

.action-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Sections */
.section {
    padding: var(--space-16) 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.15s ease;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: 1.25rem;
    font-weight: 600;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

/* Dashboard Specific Styles */
.dashboard-container {
    max-width: 1200px;
    margin: var(--space-8) auto;
    padding: 0 var(--space-4);
}

.welcome-section {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-12);
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: var(--space-8);
}

.welcome-section h1 {
    font-size: 2rem;
    margin-bottom: var(--space-2);
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transition: all 0.15s ease;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.dashboard-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.25rem;
    font-weight: 600;
}

.card-icon {
    font-size: 1.5rem;
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tables */
.purchase-history {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.purchase-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-4);
}

.purchase-table th,
.purchase-table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.purchase-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.purchase-table td {
    color: var(--text-secondary);
}

.purchase-table tr:hover {
    background: var(--gray-50);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: var(--white);
    color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-success {
    background: #d1fae5;
    color: var(--success);
}

.badge-warning {
    background: #fef3c7;
    color: var(--warning);
}

.badge-error {
    background: #fee2e2;
    color: var(--error);
}

/* Footer */
footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-12) 0 var(--space-8);
}

footer h4 {
    color: var(--white);
    margin-bottom: var(--space-4);
    font-size: 1rem;
    font-weight: 600;
}

footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.15s ease;
}

footer a:hover {
    color: var(--white);
}

/* About Section */
.about-section {
    padding: var(--space-16) 0;
    background: var(--gray-50);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-2);
    line-height: 1;
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 500;
}

.about-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.about-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-secondary);
}

.about-features i {
    color: var(--success);
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    padding: var(--space-16) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.contact-method i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: var(--space-1);
}

.contact-method h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    font-size: 1rem;
    font-weight: 600;
}

.contact-method p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-form {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: var(--white);
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.contact-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.contact-form button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Additional Page Layouts */

/* Product Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--space-4);
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.license-modal .modal-header {
    padding: var(--space-8);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.license-modal .modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.close-modal:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-8);
}

.product-intro {
    margin-bottom: var(--space-8);
}

.product-intro .product-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.product-intro .product-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.license-option {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all 0.15s ease;
    position: relative;
}

.license-option:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.license-option.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.license-option.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.license-header {
    text-align: center;
    margin-bottom: var(--space-6);
    position: relative;
}

.license-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.license-price {
    text-align: center;
    margin-bottom: var(--space-6);
}

.license-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.license-price .period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-note {
    font-size: 0.875rem;
    color: var(--success);
    font-weight: 500;
    margin-top: var(--space-2);
}

.license-features {
    list-style: none;
    margin-bottom: var(--space-6);
}

.license-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    line-height: 1.4;
}

.license-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

.license-actions {
    text-align: center;
}

.btn-select-license {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 1rem;
}

.btn-select-license:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.license-option.featured .btn-select-license {
    background: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Product Cards in Main Grid */
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.15s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.product-card-header {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-8);
    text-align: center;
}

.product-card-header i {
    font-size: 3rem;
}

.product-card-body {
    padding: var(--space-8);
}

.product-card-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.product-pricing-info {
    margin-bottom: var(--space-6);
}

.starting-price {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.license-options {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.product-actions button {
    width: 100%;
}

/* Mobile Responsiveness for Modal */
@media (max-width: 768px) {
    .modal-overlay {
        padding: var(--space-2);
    }
    
    .license-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .license-modal .modal-header,
    .modal-body {
        padding: var(--space-6);
    }
    
    .license-price .price {
        font-size: 2rem;
    }
}

/* Detail Pages (AP Trusts, Business Trusts) */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-8);
}

.hero-detail {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-16);
    text-align: center;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-12);
}

.hero-detail h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--space-4);
    font-weight: 700;
}

.hero-detail p {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.feature-section {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.feature-section h2 {
    color: var(--primary);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-section h2 i {
    font-size: 1.5rem;
    color: var(--accent);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: var(--space-3) 0;
    padding-left: var(--space-8);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

/* Comparison Pages */
.comparison-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: var(--space-8);
}

.hero-comparison {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: var(--space-16);
    text-align: center;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-12);
}

.hero-comparison h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--space-4);
    font-weight: 700;
}

.hero-comparison p {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.comparison-intro {
    background: var(--gray-50);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary);
    margin-bottom: var(--space-12);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.comparison-intro h2 {
    color: var(--primary);
    margin-bottom: var(--space-4);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Profile Pages */
.profile-container {
    max-width: 1200px;
    margin: var(--space-16) auto;
    padding: 0 var(--space-4);
}

.profile-header {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-12);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-12);
    box-shadow: var(--shadow-lg);
}

.profile-header h1 {
    font-size: 2rem;
    margin-bottom: var(--space-2);
    font-weight: 700;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

/* Checkout Pages */
.checkout-container {
    max-width: 1200px;
    margin: var(--space-16) auto;
    padding: 0 var(--space-4);
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-16);
}

.checkout-form {
    background: var(--white);
    padding: var(--space-12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.checkout-summary {
    background: var(--gray-50);
    padding: var(--space-12);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    height: fit-content;
}

/* Success Pages */
.success-container {
    max-width: 800px;
    margin: var(--space-16) auto;
    padding: 0 var(--space-4);
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-12);
    animation: scaleIn 0.5s ease;
}

.success-icon i {
    font-size: 3rem;
    color: var(--white);
}

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* License Pages */
.license-container {
    max-width: 800px;
    margin: var(--space-8) auto;
    padding: var(--space-12);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.license-header {
    text-align: center;
    margin-bottom: var(--space-12);
    padding: var(--space-8);
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-xl);
}

.license-header h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-2);
    font-weight: 700;
}

/* Mobile Responsiveness for Additional Layouts */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .detail-container,
    .comparison-container,
    .profile-container {
        padding: var(--space-4);
    }
    
    .hero-detail,
    .hero-comparison,
    .profile-header {
        padding: var(--space-8);
    }
    
    .support-options {
        gap: var(--space-4);
    }
    
    .support-option-btn {
        min-width: auto;
        padding: var(--space-6);
    }
    
    .quick-help-grid {
        grid-template-columns: 1fr;
    }
}

/* Support Page Styles */
.support-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: var(--space-16) 0 var(--space-12);
    color: var(--white);
    text-align: center;
    position: relative;
}

.support-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.support-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.support-hero .hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.1;
}

.support-hero .hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-12);
    opacity: 0.95;
    line-height: 1.5;
}

.support-options {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.support-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    color: var(--white);
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.support-option-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    text-decoration: none;
}

.support-option-btn:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.support-option-btn i {
    font-size: 2rem;
    margin-bottom: var(--space-4);
}

.support-option-btn span {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.support-option-btn small {
    opacity: 0.9;
    font-size: 0.875rem;
    text-align: center;
}

/* Quick Help Section */
.quick-help {
    padding: var(--space-16) 0;
    background: var(--gray-50);
}

.quick-help h2 {
    text-align: center;
    margin-bottom: var(--space-16);
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-primary);
    font-weight: 700;
}

.quick-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.help-category {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.15s ease;
}

.help-category:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.help-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.help-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.help-category h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    font-size: 1.25rem;
    font-weight: 600;
}

.help-category ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.help-category li {
    padding: 0;
}

.help-category a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
    display: block;
    padding: var(--space-2) 0;
}

.help-category a:hover {
    color: var(--primary);
}

.help-category a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: var(--space-4);
    }
    
    .hero-features {
        gap: var(--space-4);
    }
    
    .hero-buttons {
        gap: var(--space-3);
    }
    
    .btn {
        padding: var(--space-3) var(--space-4);
        font-size: 0.875rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }
}

@media (max-width: 640px) {
    .nav-container {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .hero {
        padding: var(--space-12) 0 var(--space-8);
    }
    
    .section {
        padding: var(--space-12) 0;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-6);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for keyboard navigation */
.btn:focus-visible,
.nav-links a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Missing Section Styles - Added for proper text contrast */
.section {
    padding: var(--space-16) 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto var(--space-8);
    line-height: 1.6;
}

/* Founding Fathers Background - Fixed Contrast */
.founding-fathers-bg {
    background: var(--gray-50);
    position: relative;
}

.founding-fathers-bg .section-title {
    color: var(--text-primary);
}

.founding-fathers-bg .card h3 {
    color: var(--primary);
}

.founding-fathers-bg .card p {
    color: var(--text-secondary);
}

/* Text Center Utility */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* FAQ Section Styles */
.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-12);
    margin-top: var(--space-8);
}

.faq-category h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary-light);
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.15s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.faq-question {
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: var(--gray-50);
    transition: all 0.15s ease;
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-question h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: var(--primary);
    font-size: 0.875rem;
    transition: transform 0.15s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-6);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: var(--space-4) var(--space-6) var(--space-6);
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}