
:root {
    --sidebar-width: 280px;
    --sidebar-collapsed: 70px;
    --header-height: 70px;
    --content-padding: 24px;
    --card-radius: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #22c55e;
    --warning: #fb923c;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.sidebar,
.main-content,
.stat-card,
.card {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin: 2px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
}

.nav-item i {
    width: 20px;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-fast);
}

.content-body {
    flex: 1;
    padding: var(--content-padding);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.primary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.stat-icon.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-icon.warning {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.stat-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.chart-container {
    position: relative;
    height: 300px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 16px 12px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

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

.table tbody tr:hover {
    background: var(--bg-main);
}

button.loading {
    position: relative;
    color: transparent !important;
}

button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.btn-menu {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: none;
    align-items: center;
    justify-content: center;
}

.btn-menu:hover {
    border-color: #667eea;
    color: #667eea;
}

.skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, rgba(226, 232, 240, 0.5) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dashboard Grid System */
.dashboard-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

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

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

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--card-radius);
    padding: 32px;
    margin-bottom: 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    transform: rotate(15deg);
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.welcome-subtitle {
    opacity: 0.9;
    margin: 0 0 20px 0;
    font-size: 16px;
}

.btn-welcome {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-welcome:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

/* Activity Feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: white;
}

.activity-icon.success {
    background: var(--success, #22c55e);
}

.activity-icon.info {
    background: var(--info, #3b82f6);
}

.activity-icon.primary {
    background: #667eea;
}

.activity-icon.warning {
    background: var(--warning, #fb923c);
}

.activity-icon.danger {
    background: var(--danger, #ef4444);
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-container canvas {
    max-height: 300px;
}

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

.py-4 {
    padding-top: 24px;
    padding-bottom: 24px;
}

.mb-3 {
    margin-bottom: 16px;
}

.small {
    font-size: 12px;
}

/* Content Cards */
.content-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 24px;
    background: var(--bg-card);
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Form Elements */
.form-select {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    min-width: 120px;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Quick Action Button */
.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.quick-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.quick-action-btn i {
    font-size: 16px;
}

/* Stat Change Indicators */
.stat-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-change::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
}

.stat-change.positive::before {
    content: "\f062"; /* fa-arrow-up */
}

.stat-change.negative::before {
    content: "\f063"; /* fa-arrow-down */
}

/* Sidebar Components */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.nav-badge {
    background: var(--primary);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 600;
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 20px;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    flex-shrink: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.btn-logout {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Header Components */
.content-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.header-breadcrumb i {
    font-size: 10px;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-header:hover {
    background: var(--bg-main);
    color: var(--text-primary);
}

.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-main);
    border-radius: 10px;
    width: auto;
    min-width: auto;
}

.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.user-info-dropdown {
    display: flex;
    flex-direction: column;
}

.user-name-dropdown {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.user-email-dropdown {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 200px;
    margin-top: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-main);
    color: var(--text-primary);
}

.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .btn-menu {
        display: flex;
    }
    
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --content-padding: 16px;
        --sidebar-width: 260px;
    }
    
    .content-header {
        padding: 12px 16px;
        height: 60px;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    .welcome-banner {
        padding: 24px 20px;
    }
    
    .welcome-title {
        font-size: 20px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .card-header,
    .card-body {
        padding: 16px;
    }
    
    .dashboard-grid {
        gap: 16px;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-left {
        gap: 12px;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .btn-header {
        width: 36px;
        height: 36px;
    }
    
    .welcome-banner {
        padding: 20px 16px;
    }
    
    .welcome-title {
        font-size: 18px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .sidebar-footer {
        padding: 16px 20px;
    }
    
    .user-name {
        font-size: 13px;
    }
}

/* Licenses Page Styles */
.license-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

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

.license-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.license-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-status.active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.license-status.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.license-status.expired {
    background: rgba(251, 146, 60, 0.1);
    color: var(--warning);
}

.license-info {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.detail-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.license-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    color: var(--primary);
}

.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn-action {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-action:hover {
    background: var(--bg-main);
    color: var(--primary);
    border-color: var(--primary);
}

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

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

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Domain Management */
.domain-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-main);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.domain-actions {
    display: flex;
    gap: 8px;
}

.domain-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.domain-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.add-domain-form {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

/* API Stats */
.api-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.api-stat {
    text-align: center;
    padding: 16px;
    background: var(--bg-main);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.api-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.api-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
}

.empty-icon {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 16px;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-message {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Payments Page Styles */
.payment-history {
    margin-top: 32px;
}

.payment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    transition: var(--transition-fast);
}

.payment-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.payment-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.payment-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.payment-status.completed {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.payment-status.pending {
    background: rgba(251, 146, 60, 0.1);
    color: var(--warning);
}

.payment-status.failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.payment-actions {
    display: flex;
    gap: 8px;
}

/* Plan Grid */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.plan-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 2px solid var(--border-color);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.plan-card.featured::before {
    content: 'Popüler';
    position: absolute;
    top: 16px;
    right: -32px;
    background: var(--primary);
    color: white;
    padding: 4px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
}

.plan-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-icon i {
    font-size: 24px;
    color: white;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.plan-price {
    margin-bottom: 30px;
}

.plan-price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.plan-price-currency {
    font-size: 24px;
    color: var(--text-secondary);
    vertical-align: top;
}

.plan-price-period {
    color: var(--text-secondary);
    font-size: 14px;
    display: block;
    margin-top: 8px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.plan-features li i {
    color: var(--success);
    font-size: 16px;
    width: 16px;
}

.plan-features li.unavailable {
    opacity: 0.5;
}

.plan-features li.unavailable i {
    color: var(--text-muted);
}

/* Account Page Styles */
.account-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-top: 24px;
}

.account-sidebar {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    padding: 24px 0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

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

.account-menu-item {
    margin-bottom: 4px;
}

.account-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.account-menu-item a:hover {
    background: var(--bg-main);
    color: var(--text-primary);
}

.account-menu-item.active a {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    font-weight: 600;
}

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

.account-content {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
}

.content-section {
    padding: 32px;
    border-bottom: 1px solid var(--border-color);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Profile Form */
.profile-form {
    max-width: 600px;
}

.profile-avatar {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.profile-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-group {
    margin-bottom: 24px;
}

.settings-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settings-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.settings-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.settings-input:disabled {
    background: var(--bg-main);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Notification Settings */
.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.notification-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.notification-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Security Settings */
.security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-main);
    border-radius: 8px;
    margin-bottom: 16px;
}

.security-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.security-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Billing Summary */
.billing-summary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.billing-summary h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.billing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.billing-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 16px;
}

/* Responsive Account Layout */
@media (max-width: 1024px) {
    .account-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .account-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 24px 20px;
    }
    
    .profile-avatar {
        flex-direction: column;
        text-align: center;
    }
}

/* Usage Page Styles */
.usage-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

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

.usage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.usage-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: white;
}

.usage-icon.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.usage-icon.success {
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
}

.usage-icon.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #ea580c 100%);
}

.usage-icon.info {
    background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
}

.usage-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.usage-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

.usage-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.usage-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.usage-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.usage-change::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 10px;
}

.usage-change.positive::before {
    content: "\f062"; /* arrow-up */
}

.usage-change.negative::before {
    content: "\f063"; /* arrow-down */
}

/* Usage Progress Bars */
.usage-progress {
    background: var(--bg-main);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin: 16px 0 8px 0;
    position: relative;
}

.usage-progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.usage-progress-bar.low {
    background: linear-gradient(90deg, var(--success) 0%, #16a34a 100%);
}

.usage-progress-bar.medium {
    background: linear-gradient(90deg, var(--warning) 0%, #ea580c 100%);
}

.usage-progress-bar.high {
    background: linear-gradient(90deg, var(--danger) 0%, #dc2626 100%);
}

.usage-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%);
    background-size: 20px 20px;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.quota-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.quota-text {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Usage Charts */
.usage-chart {
    position: relative;
    height: 350px;
    margin: 24px 0;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    padding: 20px;
}

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

/* Usage Logs */
.usage-logs {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.usage-log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.usage-log-item:hover {
    background: var(--bg-main);
}

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

.usage-log-item .log-time {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Monaco', 'Menlo', monospace;
}

.usage-log-item .log-endpoint {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', monospace;
}

.usage-log-item .log-method {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 8px;
}

.usage-log-item .log-method.post {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.usage-log-item .log-method.get {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* Response Time Badges */
.response-time-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.response-time-badge.slow {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.response-time-badge.very-slow {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* API Endpoint Badges */
.api-endpoint-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'Monaco', 'Menlo', monospace;
}

.api-endpoint-badge i {
    margin-right: 6px;
    font-size: 10px;
}

/* Usage Filters */
.usage-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.usage-filter .filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.usage-filter label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.usage-filter select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    min-width: 140px;
}

.usage-filter select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Checkout Page Styles */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.checkout-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    color: white;
}

.checkout-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.checkout-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.checkout-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.checkout-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-section h3 i {
    color: var(--primary);
}

.checkout-body {
    padding: 1.5rem 0;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-top: 2rem;
}

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

.billing-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.billing-form .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-method {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
    position: relative;
}

.payment-method:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.payment-method.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-method-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.payment-method-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.payment-method-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.plan-summary {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.plan-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.plan-summary-header h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.plan-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-breakdown {
    margin: 1.5rem 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.price-row:last-child {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.price-row .amount {
    font-weight: 600;
    color: var(--primary);
}

.security-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--success-light);
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 500;
}

.security-badge i {
    color: var(--success);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

.terms-checkbox label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    cursor: pointer;
}

.terms-checkbox a {
    color: var(--primary);
    text-decoration: none;
}

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

.btn-pay {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    justify-content: center;
}

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

.btn-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-back {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-back:hover {
    background: var(--bg-light);
    color: var(--text-primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .checkout-container {
        padding: 1rem;
    }
    
    .checkout-header h1 {
        font-size: 2rem;
    }
    
    .checkout-section {
        padding: 1.5rem;
    }
    
    .checkout-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .billing-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Settings Page Styles */
.settings-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.settings-section:hover {
    box-shadow: var(--shadow-md);
}

.settings-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.settings-section h3 i {
    color: var(--primary);
    font-size: 1.1rem;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    overflow: hidden;
    position: relative;
    margin: 0 auto 1.5rem;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.avatar-preview:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview i {
    font-size: 3rem;
    color: var(--text-muted);
}

.avatar-upload {
    position: relative;
    text-align: center;
}

.avatar-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.avatar-upload .upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.avatar-upload .upload-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.security-info {
    background: var(--info-light);
    border: 1px solid var(--info);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--info);
}

.security-info .info-icon {
    color: var(--info);
    margin-right: 0.5rem;
}

.security-info p {
    margin: 0;
    color: var(--info-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
    margin-left: auto;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-muted);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

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

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

.settings-section .form-group:last-child {
    margin-bottom: 0;
}

.settings-section .form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.settings-section .form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
}

.settings-section .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.settings-section .security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.settings-section .security-item:last-child {
    border-bottom: none;
}

.settings-section .security-item h5 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
}

.settings-section .security-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .settings-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .avatar-preview {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    .avatar-preview i {
        font-size: 2.5rem;
    }
    
    .settings-section .security-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .toggle-switch {
        margin-left: 0;
        align-self: flex-end;
    }
}

/* Support Page Styles */
.support-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.support-section:hover {
    box-shadow: var(--shadow-md);
}

.support-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.support-section h3 i {
    color: var(--primary);
    font-size: 1.1rem;
}

.ticket-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

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

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ticket-header h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
    padding-right: 1rem;
}

.ticket-status {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ticket-status.status-open {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.ticket-status.status-pending {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.ticket-status.status-closed {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.ticket-status.status-resolved {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.ticket-meta .priority-high {
    color: var(--danger);
    font-weight: 600;
}

.ticket-meta .priority-medium {
    color: var(--warning);
    font-weight: 500;
}

.ticket-meta .priority-low {
    color: var(--success);
    font-weight: 500;
}

.ticket-meta i {
    margin-right: 0.25rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    background: var(--bg-light);
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

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

.faq-question.active {
    background: var(--primary-light);
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
}

.faq-question i {
    transition: var(--transition);
    color: var(--text-muted);
}

.faq-question.active i {
    transform: rotate(90deg);
    color: var(--primary);
}

.faq-answer {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid var(--border-light);
    display: none;
}

.faq-answer.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.faq-answer p {
    margin: 0 0 1rem 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.contact-item .contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item .contact-info h5 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.contact-item .contact-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

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

@media (max-width: 768px) {
    .support-section {
        padding: 1.5rem;
    }
    
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .ticket-header h5 {
        padding-right: 0;
    }
    
    .ticket-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 1.25rem;
    }
    
    .contact-item {
        padding: 1.25rem;
    }
    
    .contact-item .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

