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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Contact Bar */
.top-contact-bar {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-contact-bar .contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.top-contact-bar .social-links {
    display: flex;
    gap: 1rem;
}

.top-contact-bar .social-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-contact-bar .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #667eea;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

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

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

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

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

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

/* Profile Menu */
.profile-menu {
    position: relative;
}

.profile-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #667eea;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.profile-dropdown a:hover {
    background: rgba(102, 126, 234, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 0.5rem 0;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    color: #333;
    font-size: 1.2rem;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-left-color: #667eea;
}

.sidebar-menu .nav-link.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.sidebar-menu .nav-link i {
    width: 20px;
    text-align: center;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

.section {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.section.active {
    display: block;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.api-key-input {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.input-icon {
    color: #667eea;
    margin: 0 1rem;
    font-size: 1.2rem;
}

.api-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 0;
    font-size: 1rem;
    background: transparent;
}

.access-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.access-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

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

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quick-action-btn.primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.quick-action-btn.secondary {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

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

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 2rem;
    border-radius: 20px;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

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

.feature-card h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Dashboard Styles */
.dashboard-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.api-key-display {
    font-family: monospace;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Profile Section */
.profile-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.profile-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.profile-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.profile-content {
    display: grid;
    gap: 2rem;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.profile-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.2rem;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-info-item label {
    font-weight: 600;
    color: #555;
}

.api-key-masked {
    font-family: monospace;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

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

.usage-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.usage-stat-icon {
    width: 40px;
    height: 40px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.usage-stat-content {
    display: flex;
    flex-direction: column;
}

.usage-stat-label {
    font-size: 0.9rem;
    color: #666;
}

.usage-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

/* Logs Page */
.logs-page-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logs-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.logs-page-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

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

.logs-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.logs-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.logs-table-content {
    max-height: 600px;
    overflow-y: auto;
}

/* Admin Section */
.admin-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.admin-login-card {
    max-width: 400px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.admin-login-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.admin-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.admin-tab {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-tab:hover {
    color: #667eea;
}

.admin-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

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

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

.admin-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.admin-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.admin-actions {
    margin-bottom: 1.5rem;
}

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

.system-info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.system-info-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.system-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.online {
    background: #d4edda;
    color: #155724;
}

.status-badge.offline {
    background: #f8d7da;
    color: #721c24;
}

/* Bottom Contact Bar */
.bottom-contact-bar {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1.5rem 0;
    margin-top: auto;
}

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

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

.footer-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Common Button Styles */
.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Filters */
.filters-panel {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #555;
}

.filter-select,
.filter-input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #667eea;
}

.refresh-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    background: #5a6fd8;
}

/* 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: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    background: #667eea;
}

.stat-icon.success {
    background: #28a745;
}

.stat-icon.warning {
    background: #ffc107;
}

.stat-icon.info {
    background: #17a2b8;
}

.stat-content h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

/* Logs */
.logs-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.logs-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.logs-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.logs-content {
    max-height: 600px;
    overflow-y: auto;
}

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

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

.logs-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    position: sticky;
    top: 0;
}

.logs-table tr:hover {
    background: #f8f9fa;
}

.status-success {
    color: #28a745;
    font-weight: 600;
}

.status-error {
    color: #dc3545;
    font-weight: 600;
}

.pagination {
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background: #5a6fd8;
}

.pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* API Key Info Styles */
.api-key-info-section {
    margin-bottom: 30px;
}

.api-key-info-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.api-key-info-card h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    font-weight: 600;
    color: #555;
}

.info-value {
    color: #333;
    font-weight: 500;
}

.tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.tier-base {
    background: #e9ecef;
    color: #495057;
}

.tier-middle {
    background: #fff3cd;
    color: #856404;
}

.tier-super {
    background: #d1ecf1;
    color: #0c5460;
}

/* Renewal Styles */
.renewal-section-main {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-left: 4px solid #28a745;
}

.renewal-section-main h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.renewal-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.renewal-option-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.renewal-option-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.renewal-option-card.recommended {
    border-color: #28a745;
    background: #f8fff9;
}

.renewal-option-card.upgrade {
    border-color: #ffc107;
    background: #fffdf5;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.option-header h5 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
}

.option-price {
    font-weight: bold;
    color: #667eea;
    font-size: 1.1em;
}

.option-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.option-description p {
    margin: 0;
}

.renewal-btn-main {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.renewal-btn-main:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.renewal-btn-main:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
}

.renewal-btn-main[data-plan="middle"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.renewal-btn-main[data-plan="super"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.renewal-status-main {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-weight: 500;
}

.renewal-status-main.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.renewal-status-main.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.renewal-status-main.processing {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.upgrade-badge {
    display: inline-block;
    background: #ffc107;
    color: #212529;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
    margin-left: 8px;
}

.current-plan.disabled-plan {
    opacity: 0.7;
}

.current-plan.disabled-plan .renewal-btn-main {
    background: #6c757d !important;
    cursor: not-allowed;
}

.current-plan.disabled-plan .renewal-btn-main:hover {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Plan Type Switcher Styles */
.plan-type-switcher {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.switcher-buttons {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.25rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switcher-btn {
    background: transparent;
    color: #666;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.switcher-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.discount-badge {
    background: #ff6b6b;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Yearly Option Styles */
.yearly-option {
    border: 2px solid #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
    position: relative;
}

.yearly-option::before {
    content: '推荐';
    position: absolute;
    top: -10px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.option-price {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1em;
}

.price-compare {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
    margin-top: 0.25rem;
}

.savings-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #8b4513;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 0.75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.yearly-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.yearly-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.yearly-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    background: #6c757d !important;
}

/* Yearly Plan Card Styles for Email/Response */
.yearly-plan {
    border: 2px solid #28a745 !important;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
    position: relative;
}

.yearly-plan::before {
    content: '包年优惠';
    position: absolute;
    top: -10px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive adjustments for plan type switcher */
@media (max-width: 768px) {
    .plan-type-switcher {
        margin-bottom: 1.5rem;
    }

    .switcher-buttons {
        width: 100%;
        justify-content: center;
    }

    .switcher-btn {
        flex: 1;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .yearly-option::before {
        top: -8px;
        right: 10px;
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }

    .price-info {
        align-items: center;
        text-align: center;
    }

    .price-compare {
        font-size: 0.8rem;
    }

    .savings-badge {
        margin-top: 0.5rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .switcher-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .discount-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .yearly-option::before {
        content: '优惠';
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

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

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

@media (max-width: 768px) {
    .top-contact-bar .contact-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .top-contact-bar .social-links {
        margin-left: 0;
    }

    .header-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .quick-action-btn {
        width: 200px;
        justify-content: center;
    }

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

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: auto;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .logs-page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .logs-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .renewal-options-grid {
        grid-template-columns: 1fr;
    }

    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .usage-stats {
        grid-template-columns: 1fr;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .system-info-grid {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .admin-tab {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .api-key-input {
        max-width: 100%;
    }

    .input-group {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .access-btn {
        width: 100%;
        justify-content: center;
    }

    .sidebar {
        width: 280px;
    }

    .logs-table {
        font-size: 0.8rem;
    }

    .logs-table th,
    .logs-table td {
        padding: 0.5rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section {
    animation: fadeIn 0.5s ease-in-out;
}

.feature-card,
.stat-card,
.profile-card {
    animation: fadeIn 0.5s ease-in-out;
}

.sidebar-menu .nav-link {
    animation: slideInLeft 0.3s ease-in-out;
}

.profile-dropdown a {
    animation: slideInRight 0.3s ease-in-out;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .sidebar,
    .top-contact-bar,
    .bottom-contact-bar,
    .menu-toggle,
    .profile-menu {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 1rem !important;
    }

    .section {
        display: block !important;
    }
}

/* Documentation Styles */
.docs-section {
    margin-top: 60px;
    padding: 40px 0;
    background: #f8f9fa;
}

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

.docs-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.docs-header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.docs-header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.language-switcher-docs {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lang-btn-docs {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn-docs:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-tabs {
    display: flex;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.nav-tab {
    flex: 1;
    padding: 18px 25px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-tab:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

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

.tab-content {
    display: none;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}

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

.doc-section {
    margin-bottom: 50px;
}

.doc-section h3 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 2em;
    border-bottom: 3px solid #e9ecef;
    padding-bottom: 15px;
    position: relative;
}

.doc-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.doc-section h4 {
    color: #495057;
    margin: 30px 0 20px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.doc-section h5 {
    color: #6c757d;
    margin: 20px 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.code-block pre {
    margin: 0;
    line-height: 1.5;
}

.endpoint {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 5px solid #2196f3;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.method {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    margin-right: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method.post {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.method.get {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.step {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin: 25px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.step-number {
    position: absolute;
    top: -15px;
    left: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step h6 {
    margin: 0 0 15px 0;
    color: #495057;
    padding-left: 25px;
    font-size: 1.2em;
}

.step p {
    margin-bottom: 15px;
    padding-left: 25px;
    color: #6c757d;
}

.config-option {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffeaa7;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(255, 234, 167, 0.2);
}

.config-option h6 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.alert {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.alert.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left-color: #17a2b8;
    color: #0c5460;
}

.alert.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left-color: #ffc107;
    color: #856404;
}

.alert.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: #28a745;
    color: #155724;
}

.copy-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: 15px;
    right: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #4c63d2, #5a4fcf);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.installation-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.installation-method {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.installation-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.installation-method h5 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.installation-method .icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: #667eea;
}

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

.quick-install h5 {
    color: white;
}

.quick-install .icon {
    color: white;
}

.platform-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 5px;
    margin: 20px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.platform-tab {
    flex: 1;
    padding: 10px 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.platform-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.platform-content {
    display: none;
}

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

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

    .nav-tabs {
        flex-direction: column;
    }

    .platform-tabs {
        flex-direction: column;
    }

    .platform-tab {
        margin-bottom: 5px;
    }
}

/* Models Selector Styles */
.models-selector-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.models-selector-container h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.models-selector-container>p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.models-lists-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.models-list-column {
    display: flex;
    flex-direction: column;
}

.models-list-column h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.models-list {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
}

.model-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.model-item:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.model-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.model-provider {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.model-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.models-loading-item,
.models-empty-item,
.models-error-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

.models-error-item {
    color: #dc3545;
}

.models-note {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.models-note p {
    color: #0c5460;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.models-note strong {
    color: #0c5460;
}

/* Responsive design for models lists */
@media (max-width: 768px) {
    .models-lists-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .models-list {
        min-height: 250px;
        max-height: 400px;
    }

    .model-item {
        padding: 0.75rem;
    }

    .model-name {
        font-size: 0.95rem;
    }

    .model-provider {
        font-size: 0.8rem;
    }

    .model-description {
        font-size: 0.75rem;
    }
}

/* Profile Models Section */
.profile-models-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.profile-models-card h3 {
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-models-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.profile-model-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.profile-model-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Loading States for Models */
.models-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
    gap: 0.5rem;
}

.models-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Plan Details Styles */
.plan-details-container {
    min-height: 200px;
}

.plan-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.plan-details-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.plan-details-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plan-details-card.current-tier {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.2);
}

.plan-details-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.plan-tier-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.plan-tier-badge h4 {
    color: #333;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.current-tier-label {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-description {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.plan-features h5 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features h5 i {
    color: #28a745;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    color: #555;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    padding-left: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Profile card background fix */
.profile-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: #333;
}

.profile-card h3 {
    color: #333;
}

.profile-card .plan-details-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.profile-card .plan-details-container .plan-details-card {
    background: white;
    border: 1px solid #e9ecef;
    color: #333;
}

.profile-card .plan-details-container .plan-details-card.current-tier {
    border-color: #28a745;
    background: #f8fff9;
}

.profile-card .plan-details-container .plan-tier-badge h4 {
    color: #333;
}

.profile-card .plan-details-container .plan-description {
    color: #666;
}

.profile-card .plan-details-container .plan-features h5 {
    color: #333;
}

.profile-card .plan-details-container .features-list li {
    color: #555;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Models */
@media (max-width: 768px) {
    .models-tiers {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .models-tier-card {
        padding: 1rem;
    }

    .tier-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .profile-models-list {
        grid-template-columns: 1fr;
    }

    .plan-tier-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Anime Gallery Hero Section Styles */
.anime-hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    /* Allow clicks to pass through */
}

.hero-content-center {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    pointer-events: auto;
    /* Re-enable pointer events for the content area */
}

.anime-hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.anime-hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #f0f0f0;
}

.anime-hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
    color: #d0d0d0;
}

/* Anime Gallery Waterfall Layout */
.anime-gallery {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    z-index: 5;
    /* Higher z-index than overlay background but lower than content */
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    pointer-events: auto;
    /* Ensure gallery items can receive events */
}

.anime-gallery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.anime-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    z-index: 6;
    /* Higher than gallery container */
    margin-bottom: 10px;
    pointer-events: auto;
    /* Ensure items can be interacted with */
}

.anime-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 15;
    /* Higher than overlay when hovered */
}

.anime-gallery-item:active {
    cursor: grabbing;
}

.anime-gallery-item:drag {
    z-index: 20;
    /* Highest z-index when dragging */
}

.anime-gallery-item.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.anime-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: all 0.3s ease;
    pointer-events: none;
    /* Prevent image from interfering with drag */
}

.anime-gallery-item:hover img {
    filter: brightness(1.1) saturate(1.2);
}

/* Loading animation for gallery */
.gallery-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    z-index: 5;
}

.gallery-loading i {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

/* Responsive adjustments for anime gallery */
@media (max-width: 1024px) {
    .anime-hero-title {
        font-size: 3rem;
    }

    .anime-hero-subtitle {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .anime-hero-title {
        font-size: 2.5rem;
    }

    .anime-hero-subtitle {
        font-size: 1.8rem;
    }

    .anime-hero-description {
        font-size: 1rem;
    }

    .hero-content-center {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .anime-hero-title {
        font-size: 2rem;
    }

    .anime-hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Enhanced input styling for anime theme */
.anime-hero-section .api-key-input {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.anime-hero-section .input-group {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.anime-hero-section .api-input {
    background: transparent;
    color: white;
}

.anime-hero-section .api-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.anime-hero-section .input-icon {
    color: rgba(255, 255, 255, 0.8);
}

.anime-hero-section .access-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
}

.anime-hero-section .access-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
}

/* Enhanced quick actions for anime theme */
.anime-hero-section .quick-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.anime-hero-section .quick-action-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.anime-hero-section .quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.anime-hero-section .quick-action-btn.primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.anime-hero-section .quick-action-btn.secondary {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

/* Welcome message styles */
.welcome-message {
    margin-bottom: 2rem;
}

.user-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(40, 167, 69, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-status i {
    color: #28a745;
    font-size: 1.2rem;
}

.logout-btn {
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
    .user-status {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .logout-btn {
        align-self: center;
    }
}

#trash-can {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    z-index: 1001;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

#trash-can.visible {
    opacity: 1;
    transform: scale(1);
}

#trash-can.drag-over {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.2);
}

/* Chat Interface Styles */
.chat-container {
    display: flex;
    height: calc(100vh - 140px);
    background: #f8f9fa;
    position: relative;
}

.chat-sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.chat-sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

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

.chat-sidebar-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.sidebar-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.new-chat-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.new-chat-btn:hover {
    background: #5a6fd8;
}

.collapse-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapse-btn:hover {
    background: #5a6268;
}

.sidebar-toggle-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle-btn:hover {
    background: #5a6fd8;
    transform: translateY(-50%) scale(1.1);
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.welcome-screen {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 30px;
    gap: 30px;
}

.welcome-screen::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -30px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

/* Pricing Cards Section */
.pricing-cards-section {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    max-width: 520px;
    animation: slideIn 0.6s ease-out;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-section-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pricing-section-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    font-weight: 400;
}

.pricing-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px 22px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.pricing-card-super {
    border: 2px solid rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.98);
}

.pricing-card-popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.4);
    display: flex;
    align-items: center;
    gap: 5px;
}

.pricing-card-popular i {
    font-size: 11px;
}

.pricing-card-header {
    margin-bottom: 16px;
}

.pricing-card-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.pricing-card-badge.badge-super {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.pricing-card-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 4px 0;
}

.pricing-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.pricing-card-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 2px;
}

.pricing-card-currency {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.pricing-card-amount {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.pricing-card-period {
    font-size: 15px;
    color: #888;
    font-weight: 500;
}

.pricing-card-original-price {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.pricing-card-strikethrough {
    text-decoration: line-through;
    color: #bbb;
}

.pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.pricing-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #444;
    padding: 5px 0;
    line-height: 1.4;
}

.pricing-card-features li i {
    color: #28a745;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pricing-card-super .pricing-card-features li i {
    color: #f093fb;
}

.pricing-card-yearly {
    background: linear-gradient(135deg, #fff3e0, #fff8e1);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #e65100;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-card-yearly i {
    color: #ff9800;
}

/* Responsive pricing cards */
@media (max-width: 1024px) {
    .welcome-screen {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 30px 20px;
    }

    .pricing-cards-section {
        max-width: 600px;
        width: 100%;
        align-self: center;
    }

    .pricing-cards-container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .pricing-card {
        flex: 1;
        min-width: 260px;
    }

    .welcome-content {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .pricing-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        max-width: 100%;
    }

    .pricing-section-title {
        font-size: 22px;
    }

    .welcome-screen {
        padding: 20px 16px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 20px 18px;
    }

    .pricing-card-amount {
        font-size: 36px;
    }

    .pricing-section-title {
        font-size: 20px;
    }
}

.welcome-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    min-width: 340px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.6s ease-out;
    align-self: center;
    flex-shrink: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-content .logo-section {
    text-align: center;
    margin-bottom: 32px;
}

.welcome-content .logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.welcome-content .logo-icon i {
    font-size: 40px;
    color: white;
}

.welcome-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.welcome-content .subtitle {
    font-size: 15px;
    color: #666;
    font-weight: 400;
}

.welcome-content .login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f5f5f5;
    padding: 6px;
    border-radius: 12px;
}

.welcome-content .login-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.welcome-content .login-tab:hover {
    color: #333;
}

.welcome-content .login-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.welcome-content .login-method {
    display: none;
}

.welcome-content .login-method.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-content .input-group {
    margin-bottom: 20px;
}

.welcome-content label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    text-align: left;
}

.welcome-content .input-wrapper {
    position: relative;
    width: 100%;
}

.welcome-content .input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.welcome-content input[type="email"],
.welcome-content input[type="password"],
.welcome-content input[type="text"] {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

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

.welcome-content input::placeholder {
    color: #aaa;
}

.welcome-content .btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.welcome-content .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.welcome-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.welcome-content .btn-primary:active {
    transform: translateY(0);
}

.welcome-content .btn-google {
    background: white;
    color: #333;
    border: 2px solid #e5e5e5;
    margin-top: 20px;
}

.welcome-content .btn-google:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.welcome-content .btn-google i {
    color: #4285f4;
}

.welcome-content .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.welcome-content .verification-step {
    display: none;
}

.welcome-content .verification-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.welcome-content .hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0f4ff;
    border-radius: 10px;
    margin-top: 16px;
    font-size: 13px;
    color: #667eea;
}

.welcome-content .hint i {
    font-size: 16px;
}

.welcome-content .divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.welcome-content .divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e5e5e5;
}

.welcome-content .divider span {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 16px;
    color: #999;
    font-size: 13px;
}

.welcome-content .error-message,
.welcome-content .success-message {
    display: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

.welcome-content .error-message {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    color: #d93025;
}

.welcome-content .success-message {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #22543d;
}

.welcome-content .error-message.show,
.welcome-content .success-message.show {
    display: block;
}

.welcome-content .loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: white;
}

.chat-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chat-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.model-selector {
    flex: 1;
    position: relative;
}

.model-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='18,15 12,9 6,15'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 2rem;
}

.model-select:focus {
    outline: none;
    border-color: #667eea;
}

/* Custom dropdown for upward expansion */
.model-selector::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
    z-index: -1;
}

.streaming-option {
    white-space: nowrap;
}

.streaming-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.streaming-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.streaming-checkbox span {
    font-weight: 500;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

#chatInput {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    font-family: inherit;
}

.send-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover:not(:disabled) {
    background: #5a6fd8;
}

.send-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.send-btn:disabled:hover {
    background: #6c757d;
}

.header-api-input {
    flex: 1;
    max-width: 400px;
    margin: 0 1rem;
}

.header-api-input .input-group {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    padding: 0.25rem;
}

.header-api-input .api-input {
    background: transparent;
    border: none;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.header-api-input .access-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-btn.primary {
    background: #ff6b6b;
    color: white;
}

.header-btn.secondary {
    background: #4ecdc4;
    color: white;
}

.header-btn:hover {
    transform: translateY(-1px);
}

.message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.message.user {
    align-items: flex-end;
}

.message.assistant {
    align-items: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    word-wrap: break-word;
}

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

.message.assistant .message-content {
    background: #f1f3f4;
    color: #333;
}

/* Markdown content styling */
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
    margin: 0.5rem 0;
    font-weight: 600;
}

.message-content p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.message-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.message-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0.5rem 0;
}

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

.message-content ul,
.message-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    margin: 0.25rem 0;
}

.message-content blockquote {
    border-left: 4px solid #667eea;
    margin: 0.5rem 0;
    padding-left: 1rem;
    color: #666;
    font-style: italic;
}

.message-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5rem 0;
}

.message-content th,
.message-content td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.message-content th {
    background: #f8f9fa;
    font-weight: 600;
}

.chat-history-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.chat-history-item:hover {
    background: #e9ecef;
}

.chat-history-item:hover .delete-chat-btn {
    opacity: 1;
}

.chat-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    padding-right: 2rem;
}

.chat-time {
    font-size: 0.8rem;
    color: #666;
}

.chat-model {
    font-size: 0.7rem;
    color: #667eea;
    margin-top: 0.25rem;
}

.delete-chat-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    font-size: 0.7rem;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-chat-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
        height: calc(100vh - 120px);
    }

    .chat-sidebar {
        width: 100%;
        height: 150px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .chat-history {
        max-height: 100px;
    }

    .chat-main {
        flex: 1;
        min-height: 0;
    }

    .message-content {
        max-width: 85%;
        font-size: 0.9rem;
    }

    .chat-input-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    #chatInput {
        min-height: 60px;
    }

    .send-btn {
        align-self: flex-end;
        padding: 0.5rem 1rem;
    }

    .header-api-input {
        display: none !important;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }

    .header-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1.5rem;
    }

    .welcome-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .chat-container {
        height: calc(100vh - 100px);
    }

    .chat-sidebar {
        height: 120px;
    }

    .chat-history {
        max-height: 80px;
    }

    .message-content {
        max-width: 90%;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .chat-input-area {
        padding: 0.75rem;
    }

    .model-selector {
        margin-bottom: 0.75rem;
    }

    .model-select {
        width: 100%;
        padding: 0.75rem;
    }

    #chatInput {
        min-height: 80px;
        padding: 0.75rem;
    }

    .send-btn {
        padding: 0.75rem 1.5rem;
    }

    .welcome-title {
        font-size: 1.8rem;
    }

    .welcome-subtitle {
        font-size: 1.3rem;
    }

    .welcome-content {
        padding: 1rem;
    }

    .header-content {
        padding: 0.5rem 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .auth-buttons {
        margin-right: 0.5rem;
    }
}

/* Plan Price Section Styles */
.plan-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 1rem 0;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.25rem;
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.price-compare {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Plan Action Section */
.plan-action {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.plan-action .renewal-btn-main {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
}

.plan-action .renewal-btn-main:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.plan-action .renewal-btn-main:disabled {
    background: #6c757d !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.plan-action .renewal-btn-main:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Default plan action button colors */
.plan-details-card .plan-action .renewal-btn-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.plan-details-card.upgrade-tier .plan-action .renewal-btn-main {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.plan-details-card.yearly-option .plan-action .renewal-btn-main {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

/* Savings highlight for yearly plans */
.savings-highlight {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #8b4513;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 0.75rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Plan tier styling */
.upgrade-tier {
    border-color: #ffc107 !important;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%) !important;
}

.downgrade-tier {
    border-color: #6c757d !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    opacity: 0.7;
}

.downgrade-tier .plan-tier-badge h4,
.downgrade-tier .plan-description {
    color: #6c757d !important;
}

/* Profile card specific overrides */
.profile-card .plan-details-container .plan-details-card {
    background: white !important;
    border: 2px solid #e9ecef !important;
    color: #333 !important;
}

.profile-card .plan-details-container .plan-details-card.current-tier {
    border-color: #28a745 !important;
    background: #f8fff9 !important;
}

.profile-card .plan-details-container .plan-details-card.upgrade-tier {
    border-color: #ffc107 !important;
    background: #fffbf0 !important;
}

.profile-card .plan-details-container .plan-details-card.yearly-option {
    border-color: #28a745 !important;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%) !important;
}

.profile-card .plan-details-container .plan-tier-badge h4 {
    color: #333 !important;
}

.profile-card .plan-details-container .plan-description {
    color: #666 !important;
}

.profile-card .plan-details-container .plan-features h5 {
    color: #333 !important;
}

.profile-card .plan-details-container .features-list li {
    color: #555 !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

.profile-card .plan-details-container .plan-price {
    color: #28a745 !important;
}

/* Responsive design for plan action buttons */
@media (max-width: 768px) {
    .plan-price-section {
        align-items: center;
        text-align: center;
    }

    .plan-price {
        font-size: 1.3rem;
    }

    .plan-action .renewal-btn-main {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .savings-highlight {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .plan-price {
        font-size: 1.2rem;
    }

    .original-price {
        font-size: 0.9rem;
    }

    .price-compare {
        font-size: 0.85rem;
    }
}

/* Upgrade Conversion Highlight Styles */
.upgrade-conversion-highlight {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #8b4513;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    display: inline-block;
    margin: 0 0.2rem;
    animation: highlightGlow 2s ease-in-out infinite alternate;
}

@keyframes highlightGlow {
    from {
        box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    }

    to {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.6);
    }
}

/* Responsive adjustments for upgrade conversion highlight */
@media (max-width: 768px) {
    .upgrade-conversion-highlight {
        font-size: 0.9rem;
        padding: 0.15rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .upgrade-conversion-highlight {
        font-size: 0.85rem;
        padding: 0.1rem 0.3rem;
    }
}

/* ===== Status Page Styles ===== */
.status-page-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.status-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-title-area h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.status-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.status-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.status-legend {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}

.legend-success {
    background: #34d058;
}

.legend-error {
    background: #ea4a5a;
}

.legend-empty {
    background: #3b4252;
}

/* Summary Cards */
.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: #1e2433;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.summary-total .summary-icon {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.summary-success .summary-icon {
    background: rgba(52, 208, 88, 0.2);
    color: #34d058;
}

.summary-requests .summary-icon {
    background: rgba(255, 179, 71, 0.2);
    color: #ffb347;
}

.summary-time .summary-icon {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e5e9f0;
    line-height: 1.2;
}

.summary-label {
    font-size: 0.8rem;
    color: #7b8da6;
    margin-top: 2px;
}

/* Status Bars */
.status-bars-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.status-bar-item {
    background: #1e2433;
    border: 1px solid #2e3548;
    border-bottom: none;
    padding: 1rem 1.25rem;
    transition: background 0.2s ease;
}

.status-bar-item:first-child {
    border-radius: 12px 12px 0 0;
}

.status-bar-item:last-child {
    border-radius: 0 0 12px 12px;
    border-bottom: 1px solid #2e3548;
}

.status-bar-item:only-child {
    border-radius: 12px;
    border-bottom: 1px solid #2e3548;
}

.status-bar-item:hover {
    background: #232a3b;
}

.status-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.status-bar-model {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.model-name {
    font-weight: 600;
    color: #d8dee9;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
}

.model-status-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.model-status-badge.operational {
    background: rgba(52, 208, 88, 0.15);
    color: #34d058;
    border: 1px solid rgba(52, 208, 88, 0.3);
}

.model-status-badge.degraded {
    background: rgba(255, 179, 71, 0.15);
    color: #ffb347;
    border: 1px solid rgba(255, 179, 71, 0.3);
}

.model-status-badge.down {
    background: rgba(234, 74, 90, 0.15);
    color: #ea4a5a;
    border: 1px solid rgba(234, 74, 90, 0.3);
}

.model-status-badge.no-data {
    background: rgba(123, 141, 166, 0.15);
    color: #7b8da6;
    border: 1px solid rgba(123, 141, 166, 0.3);
}

.status-bar-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.stat-rate {
    color: #34d058;
    font-weight: 600;
}

.stat-detail {
    color: #7b8da6;
}

/* Status Bar Track - the actual bar with slots */
.status-bar-track {
    display: flex;
    gap: 2px;
    height: 28px;
    align-items: stretch;
    border-radius: 4px;
    overflow: hidden;
    background: #161b28;
    padding: 3px;
}

.status-slot {
    flex: 1;
    min-width: 2px;
    border-radius: 2px;
    transition: opacity 0.2s ease, transform 0.15s ease;
    position: relative;
    cursor: default;
}

.status-slot:hover {
    opacity: 0.8;
    transform: scaleY(1.15);
}

.slot-empty {
    background: #2e3548;
}

.slot-success {
    background: #34d058;
    box-shadow: 0 0 4px rgba(52, 208, 88, 0.3);
}

.slot-error {
    background: #ea4a5a;
    box-shadow: 0 0 4px rgba(234, 74, 90, 0.3);
}

/* Tooltip for slots */
.status-slot[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e2433;
    color: #e5e9f0;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 100;
    border: 1px solid #3b4252;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.status-slot[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #3b4252;
    z-index: 100;
    pointer-events: none;
}

/* Status error and empty states */
.status-error,
.status-empty {
    text-align: center;
    padding: 3rem;
    color: #7b8da6;
    background: #1e2433;
    border-radius: 12px;
    border: 1px solid #2e3548;
}

.status-error i,
.status-empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.status-error {
    color: #ea4a5a;
}

/* Spinning animation for refresh button */
.spinning i {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Status Page Responsive */
@media (max-width: 768px) {
    .status-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .status-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-bar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .status-bar-stats {
        align-self: flex-end;
    }

    .status-bar-track {
        height: 22px;
    }

    .model-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .status-summary {
        grid-template-columns: 1fr;
    }

    .status-page-container {
        padding: 1rem;
    }

    .status-bar-item {
        padding: 0.75rem;
    }

    .status-bar-track {
        height: 18px;
        gap: 1px;
    }

    .status-legend {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .legend-dot {
        width: 10px;
        height: 10px;
    }
}