/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
}

.logo-lux {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: auto;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-img-lux {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: 130px;
    object-fit: contain;
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

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

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* Features section */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1f2937;
}

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

.feature-card {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    text-align: center;
}

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

.feature-card p {
    color: #6b7280;
}

/* Plans page specific styles */
.plans-body {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Navigation */
.main-nav {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.nav-brand .brand-link {
    text-decoration: none;
    color: #2563eb;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #2563eb;
    background: #f3f4f6;
}

.nav-link.active {
    color: #2563eb;
    background: #eff6ff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Billing Toggle */
.billing-toggle {
    margin-top: 2rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
}

.toggle-label {
    font-weight: 500;
    font-size: 1rem;
}

.toggle-switch {
    position: relative;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-input:checked + .toggle-slider {
    background-color: rgba(255, 255, 255, 0.5);
}

.toggle-input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.savings-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Plans Section */
.plans-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.plan-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plan-card.recommended {
    border: 2px solid #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.recommended-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.plan-header {
    margin-bottom: 1.5rem;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-weight: 700;
}

.plan-description {
    color: #6b7280;
    font-size: 0.875rem;
}

.plan-pricing {
    margin-bottom: 2rem;
}

.price-display {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
}

.price-period {
    font-size: 1rem;
    color: #6b7280;
    margin-left: 0.25rem;
}

.yearly-note {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.plan-features {
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: #374151;
}

.feature-icon {
    color: #10b981;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.plan-actions {
    margin-top: auto;
}

.btn-plan {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.subscription-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subscription-form {
    width: 100%;
}

/* No plans message */
.no-plans-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.no-plans-message h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.no-plans-message p {
    color: #6b7280;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1f2937;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.faq-item h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #d1d5db;
}

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

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-column a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #2563eb;
}

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

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer .container {
    padding: 0 0.5rem;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1, .hero-title {
        font-size: 2rem;
    }

    .hero p, .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        height: auto;
        min-height: 56px;
    }

    .nav-container {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .nav-actions, .nav-links {
        justify-content: flex-end;
        gap: 0.25rem;
    }

    /* Mobile logo sizing */
    .logo-lux {
        height: 70px;
    }

    .logo-img-lux {
        height: 95px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .plan-card.recommended {
        transform: none;
        border: 2px solid #2563eb;
    }

    .plan-card:hover {
        transform: none;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .toggle-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .plans-section, .faq-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 2rem;
    }
}
/* Subscription Status Page Styles */
.subscription-status-page {
    padding: 2rem 0;
}

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

.page-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.page-header h1 i {
    color: #2563eb;
    margin-right: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Status Badge */
.status-display {
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.status-trial {
    background-color: #dbeafe;
    color: #1e40af;
    border: 2px solid #3b82f6;
}

.status-active {
    background-color: #dcfce7;
    color: #166534;
    border: 2px solid #22c55e;
}

.status-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 2px solid #f59e0b;
}

.status-error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 2px solid #ef4444;
}

.status-unknown {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 2px solid #9ca3af;
}

.status-description {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 0;
}

/* Plan Information */
.plan-info {
    margin-bottom: 2rem;
}

.plan-info h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.plan-description {
    color: #6b7280;
    font-size: 1rem;
}

/* Period Information */
.period-info {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row .label {
    font-weight: 500;
    color: #4b5563;
}

.info-row .value {
    font-weight: 600;
    color: #1f2937;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    border: 1px solid;
}

.alert i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.alert-info {
    background-color: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.alert-success {
    background-color: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-error {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #dc2626;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.alert p {
    margin: 0;
    line-height: 1.5;
}

/* No Subscription Card */
.no-subscription-card {
    max-width: 600px;
    margin: 0 auto;
}

/* Subscription Actions */
.subscription-actions {
    margin-top: 3rem;
}

.action-buttons {
    display: grid;
    gap: 2rem;
}

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

.action-item .btn {
    display: inline-block;
    margin-bottom: 0.75rem;
    min-width: 200px;
}

.action-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Portal Form */
.portal-form {
    display: inline-block;
}

.portal-form button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Navigation */
.navbar {
    height: 64px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
    background-color: #f1f5f9;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #d1d5db;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 1.5rem 0;
    text-align: center;
    color: #9ca3af;
}

/* Subscription Status Responsive Design */
@media (max-width: 768px) {
    .subscription-status-page {
        padding: 1rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }

    .action-item .btn {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Payment Banners Styles */
.payment-banner {
    position: relative;
    padding: 1rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 100;
}

.payment-banner-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.payment-banner-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    color: #dc2626;
}

.payment-banner-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.payment-banner-neutral {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-left: 4px solid #6b7280;
    color: #374151;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
}

.banner-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    opacity: 0.8;
}

.banner-message {
    flex: 1;
    min-width: 0;
}

.banner-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.banner-description {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.4;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-banner {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-banner.btn-warning {
    background: #f59e0b;
    color: white;
    border: 1px solid #f59e0b;
}

.btn-banner.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: white;
}

.btn-banner.btn-primary {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
}

.btn-banner.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.btn-banner.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
}

.btn-banner.btn-outline:hover {
    background: currentColor;
    color: white;
}

.banner-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
    padding: 0.25rem;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.banner-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* Banner animations */
@keyframes bannerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-banner {
    animation: bannerSlideIn 0.3s ease-out;
}

/* Responsive design for banners */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .banner-actions {
        width: 100%;
        justify-content: space-between;
    }

    .btn-banner {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .banner-close {
        position: absolute;
        top: 0.5rem;
        right: 1rem;
    }

    .banner-icon {
        font-size: 1.25rem;
    }

    .banner-title {
        font-size: 0.9rem;
    }

    .banner-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .banner-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-banner {
        width: 100%;
    }

    .payment-banner {
        padding: 0.75rem 0;
    }

    .banner-content {
        gap: 0.5rem;
    }
}

/* Banner positioning adjustments */
.payment-banner + .main-content,
.payment-banner + .subscription-status-page,
.payment-banner + .plans-section {
    padding-top: 0;
}

/* Multiple banners stacking */
.payment-banner + .payment-banner {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Banner specific styling */
.payment-banner-warning .btn-banner.btn-warning {
    background: #d97706;
    border-color: #d97706;
}

.payment-banner-error .btn-banner.btn-primary {
    background: #dc2626;
    border-color: #dc2626;
}

.payment-banner-error .btn-banner.btn-primary:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.payment-banner-info .btn-banner.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.payment-banner-neutral .btn-banner.btn-primary {
    background: #374151;
    border-color: #374151;
}

.payment-banner-neutral .btn-banner.btn-primary:hover {
    background: #1f2937;
    border-color: #1f2937;
}

/* Admin Dashboard Webhook Error Warning Styles */
.admin-stat-card.stat-warning {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.admin-stat-card.stat-warning .stat-number {
    color: #d97706;
    font-weight: 700;
}

.admin-stat-card.stat-warning .stat-icon {
    color: #f59e0b;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

/* ========================================
   ANALYTICS DASHBOARD STYLES
   ======================================== */

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

/* KPI Card */
.kpi-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3b82f6;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kpi-card.kpi-info {
    border-left-color: #3b82f6;
}

.kpi-card.kpi-success {
    border-left-color: #10b981;
}

.kpi-card.kpi-warning {
    border-left-color: #f59e0b;
}

.kpi-card.kpi-danger {
    border-left-color: #ef4444;
}

.kpi-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.kpi-content {
    flex: 1;
}

.kpi-content h3 {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-values {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kpi-primary {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.kpi-secondary {
    font-size: 0.875rem;
    color: #6b7280;
}

.kpi-secondary small {
    font-size: 0.75rem;
}

/* Admin Section */
.admin-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.action-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.action-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.action-content p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Users Table */
.recent-users-table {
    overflow-x: auto;
}

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

.users-table thead {
    background: #f9fafb;
}

.users-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.users-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #374151;
}

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

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

/* Buttons */
.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .kpi-metrics-grid,
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-section {
        padding: 1.5rem;
    }
    
    .users-table {
        font-size: 0.75rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 0.5rem;
    }
}
