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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    padding-top: 80px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #64748b;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    padding: 0.75rem;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: #475569;
}

.btn.disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Captcha */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.captcha-container span {
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    min-width: 120px;
    text-align: center;
}

.captcha-container input {
    flex: 1;
    max-width: 120px;
}

.btn-refresh {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* Landing Page Styles */
.landing-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: #667eea;
}

.chat-nav-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.chat-nav-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
}

.logo i {
    font-size: 2rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-buttons .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-buttons .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 2rem;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #374151;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: #64748b;
    font-size: 1.125rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: #f8fafc;
    transition: transform 0.2s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: #374151;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

/* Screenshots Section */
.screenshots-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.screenshots-section .section-header h2 {
    color: white;
}

.screenshots-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.screenshots-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.screenshots-tabs .tab-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.screenshots-tabs .tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.screenshots-tabs .tab-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
}

.screenshots-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.screenshots-content.active {
    display: block;
}

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

/* Basic Screenshots */
.screenshot-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.screenshot-info h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.screenshot-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

.feature-list li {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.feature-list i {
    color: #4ade80;
    font-size: 1.25rem;
}

.screenshot-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: white;
}

.screenshot-image img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-placeholder {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #666;
}

.screenshot-placeholder i {
    font-size: 4rem;
    color: #999;
    margin-bottom: 1rem;
}

.screenshot-placeholder p {
    color: #666;
    font-size: 1rem;
}

.screenshot-placeholder small {
    color: #999;
    font-size: 0.875rem;
}

/* PRO Features Grid */
.pro-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pro-feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pro-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pro-feature-card .screenshot-image {
    width: 100%;
    height: 250px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.pro-feature-card .screenshot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-feature-card .screenshot-placeholder {
    padding: 2rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pro-feature-card .screenshot-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.pro-feature-card .screenshot-placeholder p {
    font-size: 0.875rem;
    margin: 0;
}

.feature-info {
    padding: 1.5rem;
}

.feature-info h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-info h4 i {
    color: #4ade80;
}

.feature-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .screenshot-showcase {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .pro-features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-tabs .tab-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Pricing Section */
.pricing {
    padding: 4rem 2rem;
    background: #f8fafc;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #374151;
}

.pricing-features li i {
    color: #10b981;
    font-size: 1rem;
    flex-shrink: 0;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin: 1rem 0;
}

.price-period {
    font-size: 1rem;
    color: #64748b;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    background: white;
}

.about .container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive margins for about section */
@media (min-width: 768px) {
    .about p {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .about p {
        padding: 0 4rem;
    }
}

@media (min-width: 1280px) {
    .about p {
        padding: 0 6rem;
    }
}

/* Terms Page Styles */
.terms-page {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
    background: white;
}

.terms-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.terms-header h1 {
    color: #374151;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.terms-header p {
    color: #64748b;
    font-size: 1rem;
}

.terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    line-height: 1.8;
}

.terms-content h2 {
    color: #374151;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.terms-content h2:first-child {
    border-top: none;
    padding-top: 0;
}

.terms-content p {
    color: #4b5563;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .chat-nav-button {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .chat-nav-button i {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0.75rem;
    }
    
    .nav {
        gap: 0.5rem;
    }
    
    .nav a {
        font-size: 0.875rem;
    }
    
    .chat-nav-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .chat-nav-button i {
        font-size: 0.75rem;
    }
    
    .logo span {
        font-size: 1.25rem;
    }
}

/* Responsive footer for mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-section {
        text-align: center;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .modal-content.modal-large {
        width: 98%;
        margin: 0.5% auto;
        padding: 1rem;
        max-height: 98vh;
    }
    
    .modal-content.modal-large textarea {
        min-height: 150px;
        max-height: 300px;
    }
    
    .modal-content.modal-large .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #94a3b8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-content.modal-large {
    max-width: 900px;
    width: 95%;
    margin: 1% auto;
    max-height: 95vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-content.modal-large textarea {
    min-height: 200px;
    max-height: 400px;
    resize: vertical;
}

.modal-content.modal-large .form-group {
    margin-bottom: 1.25rem;
}

.modal-content.modal-large .form-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.modal-content.modal-large .form-row {
    display: flex;
    gap: 1rem;
}

.modal-content.modal-large .form-row .form-group {
    flex: 1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.close:hover {
    color: #374151;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: #374151;
}

.modal-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Payment Modal Styles */
.payment-content {
    text-align: center;
}

.payment-plan {
    margin-bottom: 1rem;
}

.payment-plan h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin: 0;
}

.payment-price {
    margin: 1rem 0;
}

.payment-price .price {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
}

.payment-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.payment-terms {
    margin: 1.5rem 0;
    text-align: left;
}

.payment-terms .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.payment-terms .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.payment-terms a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.payment-terms a:hover {
    text-decoration: underline;
}

.payment-terms .checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.payment-terms .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.payment-terms .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.payment-terms .terms-text {
    flex: 1;
    line-height: 1.5;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.payment-actions .btn {
    min-width: 120px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Chat Page Styles */
.chat-page {
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-left {
    display: flex;
    align-items: center;
}

.chat-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
}

.chat-messages {
    flex: 1;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}

.messages-container {
    flex: 1;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 400px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: #667eea;
    color: white;
}

.message.bot .message-avatar {
    background: #f1f5f9;
    color: #667eea;
}

.message-content {
    flex: 1;
    max-width: 70%;
}

.message.user .message-content {
    text-align: right;
}

.message-bubble {
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: #667eea;
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.message.bot .message-bubble {
    background: #f1f5f9;
    color: #374151;
    border-bottom-left-radius: 0.25rem;
}

.message-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* Message Formatting Styles */
.message-bubble p {
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble strong {
    font-weight: 600;
    color: inherit;
}

.message-bubble em {
    font-style: italic;
    color: inherit;
}

.message-bubble code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875em;
}

.message.user .message-bubble code {
    background: rgba(255, 255, 255, 0.2);
}

.message-bubble pre {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0.75rem 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message.user .message-bubble pre {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.message-bubble pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.875em;
    line-height: 1.5;
}

.message-bubble .message-list {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.message-bubble .message-list:first-child {
    margin-top: 0;
}

.message-bubble .message-list:last-child {
    margin-bottom: 0;
}

.message-bubble .message-list li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.message-bubble ol.message-list {
    list-style-type: decimal;
}

.message-bubble ul.message-list {
    list-style-type: disc;
}

/* Streaming Message Styles */
.message.streaming .message-bubble {
    position: relative;
    overflow: hidden;
}

.message.streaming .message-bubble::after {
    content: '';
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

.message.streaming .message-bubble {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    animation: fadeIn 0.3s ease-in;
}

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

/* Chat Input Styles */
.input-area {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 2rem;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.input-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    max-width: 800px;
    margin: 0 auto;
}

.input-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#messageInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 24px;
    max-height: 120px;
    padding: 0.5rem 0;
    color: #374151;
}

#messageInput::placeholder {
    color: #9ca3af;
}

.send-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.send-btn:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.send-btn:active {
    transform: scale(0.95);
}

.input-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.model-info {
    font-weight: 500;
}

.chat-input-container {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.chat-input-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    min-height: 50px;
    max-height: 150px;
    resize: vertical;
    border-radius: 0.75rem;
    padding: 1rem;
}

.chat-send-btn {
    padding: 1rem;
    border-radius: 0.75rem;
    min-width: 60px;
}

.no-access-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.no-access-message h2 {
    color: #ef4444;
    margin-bottom: 1rem;
}

.access-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* No Access Screen Styles */
.no-access-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
}

.no-access-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.no-access-content i {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1.5rem;
}

.no-access-content h2 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 700;
}

.no-access-content p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Plans Container */
.plans-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.plan-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    position: relative;
}

.plan-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.plan-card.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.plan-card.featured .plan-price {
    color: white;
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #374151;
}

.plan-card.featured h3 {
    color: white;
}

.plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.plan-card .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Comparison Table Styles */
.comparison-toggle {
    text-align: center;
    margin: 2rem 0 1rem;
}

.comparison-toggle .btn-link {
    background: none;
    border: none;
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.comparison-toggle .btn-link:hover {
    background: #f3f4f6;
    color: #5568d3;
}

.comparison-toggle .btn-link i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.comparison-toggle .btn-link.active i {
    transform: rotate(180deg);
}

.comparison-table {
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    animation: slideDown 0.3s ease-out;
}

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

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table th {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table th small {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.comparison-table th.featured-col {
    background: #f3f4f6;
    color: #667eea;
}

.comparison-table th.featured-col small {
    color: #374151;
    opacity: 1;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: #f9fafb;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 1rem;
    text-align: center;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #374151;
    padding-left: 1.5rem;
}

.comparison-table .featured-col {
    background: #f3f4f6;
}

.comparison-table .text-success {
    color: #10b981;
    font-size: 1.25rem;
}

.comparison-table .text-muted {
    color: #9ca3af;
    font-size: 1.25rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .plans-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .plan-card {
        min-width: 100%;
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .no-access-content {
        padding: 1rem;
    }
    
    .no-access-content h2 {
        font-size: 1.5rem;
    }
    
    .no-access-content p {
        font-size: 1rem;
    }
}

/* Admin Page Styles */

.admin-page {
    background: #f1f5f9;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #1e293b;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: #f8fafc;
    color: #374151;
}

.nav-item.active {
    background: #667eea;
    color: white;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.admin-main {
    flex: 1;
    padding: 2.5rem;
    background: #f8fafc;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.section-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.filters-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filters-row input[type="date"] {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.total-amount {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
}

.search-box input {
    padding-left: 3rem;
    width: 300px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #64748b;
    margin-bottom: 0.25rem;
}

.stat-content small {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Articles List Container */
.articles-list {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 2rem;
}

.articles-list .table-container {
    max-height: 600px;
    overflow-y: auto;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}

.admin-table, .data-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .data-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th.sortable, .data-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.admin-table th.sortable:hover, .data-table th.sortable:hover {
    background: #e2e8f0;
}

.admin-table th.sortable i, .data-table th.sortable i {
    margin-left: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.admin-table th.sortable:hover i, .data-table th.sortable:hover i {
    opacity: 0.8;
}

.admin-table th.sort-asc i::before, .data-table th.sort-asc i::before {
    content: "\f0de"; /* fa-sort-up */
    opacity: 1;
    color: #3b82f6;
}

.admin-table th.sort-desc i::before, .data-table th.sort-desc i::before {
    content: "\f0dd"; /* fa-sort-down */
    opacity: 1;
    color: #3b82f6;
}

.admin-table td, .data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
}

.admin-table tr:hover, .data-table tr:hover {
    background: #f8fafc;
}

.loading-row {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background: #dcfce7;
    color: #166534;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.status-online {
    background: #dcfce7;
    color: #166534;
}

.status-offline {
    background: #f3f4f6;
    color: #6b7280;
}

/* Config Grid */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.config-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.config-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: #374151;
}

.config-card h3 i {
    color: #667eea;
}

.plan-config {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.plan-config h4 {
    color: #374151;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover {
    background: #f8fafc;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

/* Document content styling (regulamin, polityka) */
.document-content {
    text-align: left;
    color: var(--text-color);
    line-height: 1.8;
}

.document-content h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.document-content h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

.document-content p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.document-content strong {
    font-weight: 600;
    color: var(--text-color);
}

.document-content ul,
.document-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.document-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.notification button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #94a3b8;
}

/* Responsive Design */

/* Desktop - 3 kolumny (domyślnie) */
@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Tablet - 3 kolumny w poziomie */
@media (min-width: 768px) and (max-width: 1023px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 900px;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: scale(1.02);
    }
}

/* Specjalne style dla landing-basic.php (2 plany) - Desktop i Tablet */
@media (min-width: 768px) {
    #basicPricingGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem;
    }
}

/* Mobile - 1 kolumna */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
         transform: none;
         border: 2px solid #667eea;
     }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    
    .nav-item {
        white-space: nowrap;
        padding: 1rem;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .hero-buttons,
    .access-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .chat-input-form {
        flex-direction: column;
    }
    
    .chat-send-btn {
        align-self: flex-end;
    }
    
    /* Notification na mobile - wyższy z-index i lepsze pozycjonowanie */
    .notification {
        z-index: 10002 !important; /* Wyższy niż modal */
        top: 1rem !important;
        left: 1rem !important;
        right: 1rem !important;
        max-width: calc(100vw - 2rem) !important;
        position: fixed !important;
    }
    
    .chat-header-left {
        flex: 1;
        min-width: 0;
    }
    
    .chat-header-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
    
    .user-info {
        text-align: right;
        font-size: 0.75rem;
    }
    
    .header-actions {
        display: flex;
        gap: 0.5rem;
    }
    
    .chat-messages {
        min-height: 500px;
        max-height: 70vh;
    }
    
    .chat-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .admin-main {
        padding: 1rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    /* Enhanced mobile chat styles */
    .chat-header {
        padding: 0.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .chat-header-left {
        display: flex;
        justify-content: center;
    }
    
    .chat-header-right {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .user-info {
        flex: 1;
        text-align: left;
        font-size: 0.7rem;
    }
    
    .header-actions {
        display: flex;
        gap: 0.75rem;
    }
    
    .header-actions .btn {
        padding: 0.5rem;
        min-width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .chat-messages {
        min-height: 60vh;
        max-height: 75vh;
        padding: 1rem;
    }
    
    .chat-container {
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }

.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }

.border { border: 1px solid #e5e7eb; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Content Modal Styles */
.content-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.content-header {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.content-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.content-body {
    line-height: 1.6;
    color: #334155;
}

.content-body h2 {
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.content-body h2:first-child {
    margin-top: 0;
}

.content-body p {
    margin-bottom: 1rem;
}

.content-body ul, .content-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

/* Responsive content modal */
@media (max-width: 768px) {
    .content-modal {
        max-width: 95vw;
        margin: 1rem;
    }
}

/* Password management styles */
.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Change password modal */
#changePasswordModal .modal-content {
    max-width: 400px;
}

#changePasswordModal .modal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

#changePasswordModal .modal-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.25rem;
}

#changePasswordModal .modal-header i {
    color: #667eea;
}

#changePasswordModal .form-group {
    margin-bottom: 1rem;
}

#changePasswordModal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

#changePasswordModal .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

#changePasswordModal .form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#changePasswordModal .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Blog Styles */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.blog-header-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-header-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.blog-content {
    padding: 4rem 2rem;
    background: #f8fafc;
    min-height: 60vh;
}

.blog-filters {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-category {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.read-more-btn:hover {
    color: #764ba2;
}

.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.no-articles i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.no-articles h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.no-articles p {
    font-size: 1rem;
    margin: 0;
}

/* Blog Loading Spinner */
.blog-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

.blog-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Blog Design */
@media (max-width: 768px) {
    .blog-header {
        padding: 3rem 1rem;
    }
    
    .blog-header-content h1 {
        font-size: 2rem;
    }
    
    .blog-content {
        padding: 2rem 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .search-box {
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .blog-header-content h1 {
        font-size: 1.75rem;
    }
    
    .blog-header-content p {
        font-size: 1rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.125rem;
    }
}

/* Article Page Styles */
.article-main {
    background: #f8fafc;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.article-main .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 3rem; /* Desktop margins */
}

.article-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.article-header {
    padding: 2rem 3rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.article-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: #764ba2;
}

.article-breadcrumb i {
    font-size: 0.75rem;
    color: #94a3b8;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: #64748b;
}

.article-date,
.article-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date i,
.article-reading-time i {
    color: #667eea;
}

.article-body {
    padding: 3rem;
}

.article-content-text {
    line-height: 1.8;
    color: #374151;
    font-size: 1.125rem;
}

.article-content-text h1,
.article-content-text h2,
.article-content-text h3,
.article-content-text h4,
.article-content-text h5,
.article-content-text h6 {
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content-text h1 { font-size: 2rem; }
.article-content-text h2 { font-size: 1.75rem; }
.article-content-text h3 { font-size: 1.5rem; }
.article-content-text h4 { font-size: 1.25rem; }

.article-content-text p {
    margin-bottom: 1.5rem;
}

.article-content-text ul,
.article-content-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content-text li {
    margin-bottom: 0.5rem;
}

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

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

.article-content-text pre {
    background: #1e293b;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content-text pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-footer {
    padding: 2rem 3rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.article-not-found {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.article-not-found i {
    font-size: 4rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.article-not-found h2 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.article-not-found p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .article-main .container {
        padding: 0 2rem; /* Reduced margins for tablet */
    }
    
    .article-header {
        padding: 1.5rem 2rem;
    }
    
    .article-body {
        padding: 2rem;
    }
    
    .article-footer {
        padding: 1.5rem 2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content-text {
        font-size: 1rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .article-main {
        padding: 1rem 0;
    }
    
    .article-main .container {
        padding: 0 1rem; /* Mobile margins */
    }
    
    .article-header {
        padding: 1rem 1.5rem;
    }
    
    .article-body {
        padding: 1.5rem;
    }
    
    .article-footer {
        padding: 1rem 1.5rem;
    }
    
    .article-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .article-content-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    .article-content-text h1 { font-size: 1.5rem; }
    .article-content-text h2 { font-size: 1.375rem; }
    .article-content-text h3 { font-size: 1.25rem; }
    .article-content-text h4 { font-size: 1.125rem; }
    
    .article-actions {
        flex-direction: column-reverse;
        gap: 1rem;
    }
    
    .article-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .article-breadcrumb {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .article-main .container {
        padding: 0 0.75rem; /* Minimal margins for small screens */
    }
    
    .article-header {
        padding: 1rem;
    }
    
    .article-body {
        padding: 1rem;
    }
    
    .article-footer {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-content-text {
        font-size: 0.95rem;
    }
    
    .article-content-text blockquote {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .article-content-text pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* Newsletter Section Styles */
.newsletter-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.newsletter-form-container {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.newsletter-form-container .form-group {
    margin-bottom: 1.5rem;
}

.newsletter-form-container textarea {
    min-height: 200px;
    resize: vertical;
    font-family: inherit;
}

.newsletter-preview {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.email-preview {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.email-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.email-body {
    line-height: 1.6;
    color: #374151;
}

.newsletter-history {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.newsletter-history h3 {
    margin: 0 0 1.5rem 0;
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Custom date range styles */
.custom-date-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.custom-date-range input[type="date"] {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
}

.custom-date-range input[type="date"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-date-range .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Newsletter responsive styles */
@media (max-width: 768px) {
    .newsletter-stats {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form-container,
    .newsletter-preview,
    .newsletter-history {
        padding: 1.5rem;
    }
    
    .custom-date-range {
        flex-direction: column;
        gap: 0.25rem;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Usage Info Styles */
.usage-info {
    text-align: center;
    padding: 8px 16px;
    margin: 8px 0;
    background-color: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.usage-info .text-muted {
    color: #64748b;
    font-size: 12px;
}

/* Token Usage Styles */
.usage-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.usage-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.usage-tab:hover {
    color: #374151;
}

.usage-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.usage-tab-content {
    display: none;
}

.usage-tab-content.active {
    display: block;
}

.usage-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.usage-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.usage-stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.usage-stat-card p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.usage-chart-container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.usage-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.usage-chart-header h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
}

.usage-chart-canvas {
    max-height: 400px;
}

.usage-table-container {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 2rem;
}

.usage-table {
    width: 100%;
    border-collapse: collapse;
}

.usage-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
}

.usage-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
}

.usage-table tr:hover {
    background: #f8fafc;
}

.usage-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.usage-badge-high {
    background: #fee2e2;
    color: #991b1b;
}

.usage-badge-medium {
    background: #fef3c7;
    color: #92400e;
}

.usage-badge-low {
    background: #dcfce7;
    color: #166534;
}

/* Model Configuration Styles */
.model-config-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.model-config-section h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.model-config-section h3 i {
    color: #667eea;
}

.model-config-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.model-config-group {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.model-config-group h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.model-config-group h4 i {
    color: #667eea;
    font-size: 0.875rem;
}

.model-config-item {
    margin-bottom: 1rem;
}

.model-config-item:last-child {
    margin-bottom: 0;
}

.model-config-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.model-config-item input,
.model-config-item select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.model-config-item input:focus,
.model-config-item select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.model-config-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.model-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.model-status-active {
    background: #dcfce7;
    color: #166534;
}

.model-status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.model-status-testing {
    background: #fef3c7;
    color: #92400e;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Responsive styles for usage section */
@media (max-width: 768px) {
    .usage-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .usage-chart-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .usage-chart-canvas {
        max-height: 300px;
    }
    
    .model-config-form {
        grid-template-columns: 1fr;
    }
    
    .usage-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 400px;
    animation: slideInUp 0.4s ease-out;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-text {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cookie-text i {
    font-size: 24px;
    color: #6366f1;
    flex-shrink: 0;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-actions .btn {
    padding: 8px 20px;
    font-size: 14px;
}

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

/* Screenshots Gallery Section */
.screenshots-gallery {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.screenshots-gallery .section-header h2 {
    color: #1f2937;
}

.screenshots-gallery .section-header p {
    color: #6b7280;
}

.screenshot-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.screenshot-tab {
    padding: 0.875rem 2rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.screenshot-tab:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.screenshot-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.screenshot-tab i {
    font-size: 1.1rem;
}

.screenshots-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.screenshots-grid.active {
    display: grid;
}

.screenshot-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.screenshot-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    overflow: hidden;
}

.screenshot-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-card:hover .screenshot-image img {
    transform: scale(1.05);
}

.screenshot-content {
    padding: 1.5rem;
}

.screenshot-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.screenshot-content h3 i {
    color: #667eea;
    font-size: 1.3rem;
}

.screenshot-content p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Screenshot Modal */
.screenshot-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.screenshot-modal .modal-content,
.screenshot-modal-content {
    display: block;
    margin: auto;
    /* Dopasuj do szerokości ekranu z marginesem */
    width: auto;
    max-width: 95vw;
    /* Wysokość automatyczna zachowuje proporcje */
    height: auto;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
    /* Obiekt dopasowany - zachowaj proporcje */
    object-fit: contain;
}

/* Na telefonie - pełna szerokość */
@media (max-width: 768px) {
    .screenshot-modal .modal-content,
    .screenshot-modal-content {
        max-width: 98vw;
        max-height: 95vh;
        border-radius: 0;
        /* Użytkownik może powiększyć palcami */
        touch-action: pinch-zoom;
    }
}

.screenshot-modal .modal-close,
.screenshot-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: 0.3s;
}

.screenshot-modal .modal-close:hover,
.screenshot-modal .modal-close:focus,
.screenshot-modal-close:hover,
.screenshot-modal-close:focus {
    color: #bbb;
}

.screenshot-image {
    cursor: pointer;
    position: relative;
}

.screenshot-image::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.screenshot-card:hover .screenshot-image::after {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .screenshots-gallery {
        padding: 3rem 1rem;
    }
    
    .screenshot-modal .modal-content,
    .screenshot-modal-content {
        max-width: 98%;
        max-height: 90vh;
    }
    
    .screenshot-modal .modal-close,
    .screenshot-modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .screenshot-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .screenshot-tab {
        justify-content: center;
        padding: 1rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 0;
    }
    
    .screenshot-card {
        margin-bottom: 1.5rem;
        border: 2px solid #e5e7eb;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        background: #ffffff;
    }
    
    .screenshot-card + .screenshot-card {
        margin-top: 2rem;
    }

    .screenshot-content {
        padding: 1.25rem;
    }

    .screenshot-content h3 {
        font-size: 1.1rem;
    }

    .screenshot-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        margin: 0;
    }
}