/* CSS Reset and Base Styles */
:root {
    /* Light theme variables - default theme */
    --bg-primary: #fff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-quaternary: #f7f8fc;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-modal: rgba(0, 0, 0, 0.8);
    --text-primary: #333;
    --text-secondary: #666;
    --text-tertiary: #999;
    --text-heading: #111827;
    --text-body: #374151;
    --text-muted: #6b7280;
    --text-inverse: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-bg-scrolled: rgba(255, 255, 255, 0.98);
    --header-shadow: none;
    --header-shadow-scrolled: 0 2px 20px rgba(0, 0, 0, 0.1);
    
    /* Performance optimizations */
    --scroll-transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                        box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --hero-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: #fff;
    --hover-bg: rgba(102, 126, 234, 0.1);
    --input-bg: #fff;
    --input-border: #e2e8f0;
    --input-text: #333;
    --input-placeholder: #999;
    --button-secondary-bg: #f9fafb;
    --button-secondary-text: #374151;
    --button-secondary-border: #d1d5db;
    
    /* Common variables (same for both themes) */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-hover: #5a6fd6;
    --secondary-color: #6366f1;
    --secondary-hover: #5855eb;
    --info-color: #2196f3;
    --info-hover: #1976d2;
    --danger-color: #dc3545;
    --danger-hover: #dc2626;
    --error-color: #ef4444;
    --error-hover: #dc2626;
    --error-light: #fca5a5;
    --error-bg: #fee2e2;
    --error-text: #991b1b;
    --error-text-dark: #7f1d1d;
    --success-color: #28a745;
    --success-alt: #10b981;
    --success-bg: #d1fae5;
    --success-text: #065f46;
    --warning-color: #ffc107;
    --warning-alt: #f59e0b;
    --warning-bg: #fefce8;
    --warning-text: #92400e;
    --info-bg: #dbeafe;
    --info-text: #1e40af;
    --muted-text: #9e9e9e;
    --blue-text: #3b82f6;
}

/* Dark theme variables - only applied when data-theme="dark" is set */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #333333;
    --bg-quaternary: #1f1f1f;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --bg-modal: rgba(0, 0, 0, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    --text-heading: #ffffff;
    --text-body: #e5e7eb;
    --text-muted: #9ca3af;
    --text-inverse: #1a1a1a;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.15);
    --border-medium: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --header-bg: rgba(26, 26, 26, 0.95);
    --header-bg-scrolled: rgba(26, 26, 26, 0.98);
    --header-shadow: none;
    --header-shadow-scrolled: 0 2px 20px rgba(0, 0, 0, 0.3);
    --hero-bg: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 100%);
    --card-bg: #2d2d2d;
    --hover-bg: rgba(102, 126, 234, 0.2);
    --input-bg: #2d2d2d;
    --input-border: #404040;
    --input-text: #ffffff;
    --input-placeholder: #666666;
    --button-secondary-bg: #374151;
    --button-secondary-text: #e5e7eb;
    --button-secondary-border: #4b5563;
    --primary-gradient: linear-gradient(135deg, #4F5BD5 0%, #6C47BC 100%);
    
    /* Dark mode specific alert/status colors */
    --info-bg: rgba(59, 130, 246, 0.1);
    --info-text: #60a5fa;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --warning-text: #fbbf24;
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-text: #f87171;
    --success-bg: rgba(34, 197, 94, 0.1);
    --success-text: #4ade80;
}

/* System dark mode - only applied when no data-theme attribute is set */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --bg-tertiary: #333333;
        --bg-quaternary: #1f1f1f;
        --bg-overlay: rgba(0, 0, 0, 0.7);
        --bg-modal: rgba(0, 0, 0, 0.9);
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --text-tertiary: #999999;
        --text-heading: #ffffff;
        --text-body: #e5e7eb;
        --text-muted: #9ca3af;
        --text-inverse: #1a1a1a;
        --border-color: rgba(255, 255, 255, 0.1);
        --border-light: rgba(255, 255, 255, 0.15);
        --border-medium: rgba(255, 255, 255, 0.2);
        --shadow-color: rgba(0, 0, 0, 0.3);
        --shadow-medium: rgba(0, 0, 0, 0.5);
        --header-bg: rgba(26, 26, 26, 0.95);
        --header-bg-scrolled: rgba(26, 26, 26, 0.98);
        --header-shadow: none;
        --header-shadow-scrolled: 0 2px 20px rgba(0, 0, 0, 0.3);
        --hero-bg: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 100%);
        --card-bg: #2d2d2d;
        --hover-bg: rgba(102, 126, 234, 0.2);
        --input-bg: #2d2d2d;
        --input-border: #404040;
        --input-text: #ffffff;
        --input-placeholder: #666666;
        --button-secondary-bg: #374151;
        --button-secondary-text: #e5e7eb;
        --button-secondary-border: #4b5563;
        
        /* Dark mode specific alert/status colors */
        --info-bg: rgba(59, 130, 246, 0.1);
        --info-text: #60a5fa;
        --warning-bg: rgba(245, 158, 11, 0.1);
        --warning-text: #fbbf24;
        --error-bg: rgba(239, 68, 68, 0.1);
        --error-text: #f87171;
        --success-bg: rgba(34, 197, 94, 0.1);
        --success-text: #4ade80;
    }
}

/* Force light theme when explicitly set */
[data-theme="light"] {
    --bg-primary: #fff !important;
    --bg-secondary: #f8f9fa !important;
    --bg-tertiary: #f1f3f5 !important;
    --bg-quaternary: #f7f8fc !important;
    --bg-overlay: rgba(0, 0, 0, 0.5) !important;
    --bg-modal: rgba(0, 0, 0, 0.8) !important;
    --text-primary: #333 !important;
    --text-secondary: #666 !important;
    --text-tertiary: #999 !important;
    --text-heading: #111827 !important;
    --text-body: #374151 !important;
    --text-muted: #6b7280 !important;
    --text-inverse: #ffffff !important;
    --border-color: rgba(0, 0, 0, 0.1) !important;
    --border-light: #e5e7eb !important;
    --border-medium: #d1d5db !important;
    --shadow-color: rgba(0, 0, 0, 0.1) !important;
    --shadow-medium: rgba(0, 0, 0, 0.15) !important;
    --header-bg: rgba(255, 255, 255, 0.95) !important;
    --header-bg-scrolled: rgba(255, 255, 255, 0.98) !important;
    --header-shadow: none !important;
    --header-shadow-scrolled: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    --hero-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    --card-bg: #fff !important;
    --hover-bg: rgba(102, 126, 234, 0.1) !important;
    --input-bg: #fff !important;
    --input-border: #e2e8f0 !important;
    --input-text: #333 !important;
    --input-placeholder: #999 !important;
    --button-secondary-bg: #f9fafb !important;
    --button-secondary-text: #374151 !important;
    --button-secondary-border: #d1d5db !important;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

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

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: var(--border-light);
    color: var(--text-secondary);
    pointer-events: none;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: var(--bg-secondary);
    border-color: var(--border-light);
    color: var(--text-secondary);
    pointer-events: none;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--scroll-transition);
    will-change: background-color, box-shadow;
    transform: translateZ(0);
}

/* Optimized scrolled header state */
.header.scrolled {
    background: var(--header-bg-scrolled);
    box-shadow: var(--header-shadow-scrolled);
}

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

.nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-brand i {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--hover-bg);
    border-radius: 6px;
    padding: 0.5rem 1rem;
}

/* Ensure better visibility and fix text selection */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Fix text selection highlighting to not cover entire background */
.nav-link::selection {
    background-color: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

.nav-link::-moz-selection {
    background-color: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

/* Navigation toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

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

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.floating-card h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-primary);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Sections */
section {
    padding: 5rem 0;
}

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

.section-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

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

.app-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-color);
    text-align: center;
    border: 2px solid var(--bg-tertiary);
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--shadow-color);
    border-color: var(--primary-color);
}

.app-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.app-icon i {
    font-size: 3rem;
    color: white;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.feature-tag {
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Pricing Section */
.pricing {
    background: var(--bg-secondary);
}

.billing-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.country-selector label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.country-selector select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.country-selector select:hover {
    border-color: var(--primary-color);
}

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

.billing-period-selector {
    display: flex;
    justify-content: center;
}

.period-buttons {
    display: flex;
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    position: relative;
}

.period-btn {
    position: relative;
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.period-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.savings-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--success-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

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

.plan-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px var(--shadow-color);
}

.plan-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-badge.popular {
    background: var(--primary-gradient);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.plan-price .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.plan-trial {
    background: var(--success-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

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

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

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

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

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

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

.plan-upgrade-btn {
    width: 100%;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.plan-upgrade-btn i {
    margin-right: 8px;
}

.plan-upgrade-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-price {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
    min-width: 100px;
    height: 1.2em;
    display: inline-block;
}

.loading-price::before {
    content: "Loading...";
    color: transparent;
}

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

/* CTA Section */
.cta {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.cta .btn-outline {
    border-color: white;
    color: white;
}

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

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    font-weight: 400;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

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

.footer-section ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-weight: 400;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-weight: 400;
    color: var(--text-secondary);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Facebook styling */
.social-links a[aria-label="Facebook"] {
    background: #1877f2;
    color: white;
}

.social-links a[aria-label="Facebook"]:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

/* Instagram styling */
.social-links a[aria-label="Instagram"] {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

.social-links a[aria-label="Instagram"]:hover {
    background: radial-gradient(circle at 30% 107%, #fcf086 0%, #fcf086 5%, #fc4838 45%, #c5138e 60%, #1749da 90%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 36, 159, 0.4);
}

/* TikTok styling */
.social-links a[aria-label="TikTok"] {
    background: #000000;
    color: white;
    position: relative;
    overflow: hidden;
}

.social-links a[aria-label="TikTok"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff0050, #00f2ea);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-links a[aria-label="TikTok"]:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 80, 0.3);
}

.social-links a[aria-label="TikTok"]:hover::before {
    opacity: 0.1;
}

/* Generic social links that don't match specific platforms */
.social-links a:not([aria-label="Facebook"]):not([aria-label="Instagram"]):not([aria-label="TikTok"]) {
    background: var(--text-secondary);
    color: var(--text-primary);
}

.social-links a:not([aria-label="Facebook"]):not([aria-label="Instagram"]):not([aria-label="TikTok"]):hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
    }

    .nav-item {
        padding: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-image {
        height: 300px;
    }

    .floating-card {
        position: static;
        margin: 1rem;
        animation: none;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

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

    .subscription-plans {
        grid-template-columns: 1fr;
    }

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

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

    .period-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .period-btn {
        width: 100%;
    }

    .billing-controls {
        flex-direction: column;
        gap: 1.5rem;
    }

    .country-selector {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .country-selector select {
        min-width: 250px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Ensure layout stability across all languages */
.container,
.nav-container,
.hero .container,
.section-header,
.features-grid,
.apps-grid,
.footer-content {
    text-align: center;
    direction: ltr;
    margin-left: auto;
    margin-right: auto;
}

/* Prevent any unwanted text alignment inheritance */
section {
    text-align: center;
    direction: ltr;
}

/* Ensure hero section stays centered */
.hero {
    text-align: center;
    direction: ltr;
}

.hero .container {
    text-align: center;
    direction: ltr;
}

/* Keep feature and app cards centered */
.feature-card,
.app-card {
    text-align: center;
    direction: ltr;
}

/* Main styles (end of file) */

/* Analytics Dashboard Styles */
.analytics-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.analytics-header {
    margin-bottom: 30px;
}

.analytics-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group label {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.control-group select,
.control-group input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-primary);
}

.custom-date-range {
    align-items: center;
    gap: 8px;
}

.btn-refresh {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-refresh:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Metrics Summary */
.metrics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.metric-card.revenue .metric-icon {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.metric-card.users .metric-icon {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
}

.metric-card.conversion .metric-icon {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.metric-card.active-users .metric-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.metric-content h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.metric-change {
    font-size: 12px;
    font-weight: 600;
    color: var(--success-color);
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
    overflow: hidden;
}

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

.chart-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-type-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-type-btn.active,
.chart-type-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chart-content {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-content canvas {
    max-width: 100%;
    height: auto;
}

/* Platform Breakdown */
.platform-breakdown {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
    margin-bottom: 30px;
}

.breakdown-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.platform-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s ease;
}

.platform-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.platform-card.website .platform-icon {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
}

.platform-card.webapp2 .platform-icon {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
}

.platform-card.app .platform-icon {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.platform-info h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.platform-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platform-metrics .metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform-metrics .label {
    font-size: 14px;
    color: var(--text-secondary);
}

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

/* Usage Analytics */
.usage-analytics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.usage-section {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.usage-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.usage-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.usage-list {
    padding: 20px;
}

.usage-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

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

.usage-rank {
    width: 24px;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.usage-info {
    flex: 1;
}

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

.usage-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.usage-progress {
    width: 60px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Subscription Analytics */
.subscription-analytics {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
    margin-bottom: 30px;
}

.subscription-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.subscription-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscription-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.subscription-chart {
    display: flex;
    justify-content: center;
    align-items: center;
}

.subscription-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    gap: 8px;
}

.loading-overlay i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .analytics-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        justify-content: space-between;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .usage-analytics {
        grid-template-columns: 1fr;
    }
    
    .subscription-content {
        grid-template-columns: 1fr;
    }
    
    .platform-stats {
        grid-template-columns: 1fr;
    }
    
    .metrics-summary {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .boards-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

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

@media (max-width: 768px) {
    .board-header {
        flex-direction: column;
        gap: 1rem;
    }

    .board-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .board-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .kanban-controls {
        flex-wrap: wrap;
    }

    .color-picker {
        gap: 0.5rem;
    }

    .color-option {
        width: 28px;
        height: 28px;
    }
}

/* Ensure better visibility */
.nav-link {
    position: relative;
}

/* Enhanced User Management Styles */
.users-container {
    max-width: 100%;
}

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

.users-controls {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.control-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.control-group select,
.control-group input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.control-group select:focus,
.control-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-refresh {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: fit-content;
}

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

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

.user-stat-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

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

.user-stat-card.total .stat-icon {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
}

.user-stat-card.active .stat-icon {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.user-stat-card.premium .stat-icon {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.user-stat-card.revenue .stat-icon {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 500;
}

/* Users Table Container */
.users-table-container {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
}

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

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

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

.btn-export {
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-export:hover {
    background: #059669;
}

/* Responsive Table */
.table-responsive {
    overflow-x: auto;
}

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

.users-table th {
    background: var(--bg-secondary);
    padding: 1rem;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.users-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-tertiary);
    vertical-align: top;
}

.user-row:hover {
    background: var(--bg-tertiary);
}

/* User Info Cell */
.user-info-cell {
    min-width: 200px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.user-email {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.user-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.25rem;
}

.user-id {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.user-auth {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.user-joined {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Subscription Cell */
.subscription-cell {
    min-width: 120px;
}

.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.subscription-badge.free {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.subscription-badge.basic {
    background: #dbeafe;
    color: #1d4ed8;
}

.subscription-badge.premium {
    background: #fef3c7;
    color: #d97706;
}

.subscription-badge.trial {
    background: #f3e8ff;
    color: #7c3aed;
}

.subscription-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-weight: 500;
    text-transform: capitalize;
}

.subscription-status.active {
    background: #dcfce7;
    color: #16a34a;
}

.subscription-status.inactive {
    background: #fee2e2;
    color: #dc2626;
}

/* Activity Cell */
.activity-cell {
    min-width: 130px;
}

.activity-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.activity-status.active {
    color: #16a34a;
}

.activity-status.inactive {
    color: #dc2626;
}

.activity-status i {
    font-size: 0.6rem;
}

.last-active,
.login-stats {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

/* Credits Cell */
.credits-cell {
    text-align: center;
    min-width: 100px;
}

.credits-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.credits-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.session-time {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Features Cell */
.features-cell {
    min-width: 160px;
}

.feature-usage-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-usage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.feature-name {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.5rem;
}

.feature-credits {
    color: var(--primary-color);
    font-weight: 600;
    background: #e0e7ff;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.feature-more {
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
}

/* Revenue Cell */
.revenue-cell {
    text-align: center;
    min-width: 80px;
}

.monthly-revenue {
    font-size: 1.1rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.25rem;
}

.revenue-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Actions Cell */
.actions-cell {
    min-width: 120px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.action-btn.view {
    color: var(--primary-color);
    border-color: #dbeafe;
    background: #eff6ff;
}

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

.action-btn.edit {
    color: var(--success-color);
    border-color: #d1fae5;
    background: #ecfdf5;
}

.action-btn.edit:hover {
    background: var(--success-color);
    color: white;
}

.action-btn.delete {
    color: var(--danger-color);
    border-color: #fecaca;
    background: #fef2f2;
}

.action-btn.delete:hover {
    background: var(--danger-color);
    color: white;
}

/* Table Pagination */
.table-pagination {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pagination-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pagination-btn:hover {
    background: var(--primary-hover);
}

.current-page {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Loading Overlay for Analytics */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 500;
    border-radius: 8px;
}

.loading-overlay i {
    margin-right: 0.5rem;
}

/* Responsive Design for User Management */
@media (max-width: 1200px) {
    .users-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .users-controls > div {
        display: flex;
        gap: 1rem;
        align-items: end;
        flex-wrap: wrap;
    }

    .control-group {
        flex: 1;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .user-stats-summary {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

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

    .user-info-cell {
        min-width: 150px;
    }

    .features-cell {
        min-width: 120px;
    }

    .feature-name {
        max-width: 80px;
    }

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

    .table-pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .pagination-controls {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .users-controls {
        padding: 1rem;
    }

    .user-stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* Stack table cells vertically on very small screens */
    .users-table,
    .users-table thead,
    .users-table tbody,
    .users-table th,
    .users-table td,
    .users-table tr {
        display: block;
    }

    .users-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .users-table tr {
        border: 1px solid var(--border-color);
        margin-bottom: 1rem;
        border-radius: 8px;
        padding: 1rem;
        background: var(--bg-primary);
    }

    .users-table td {
        border: none;
        border-bottom: 1px solid var(--bg-tertiary);
        position: relative;
        padding: 0.75rem 0;
    }

    .users-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.8rem;
    }

    .users-table td {
        padding-left: 50%;
    }
}

/* User menu specific styling */
.nav-link.user-menu {
    cursor: pointer;
    position: relative;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.nav-link.user-menu:hover,
.nav-link.user-menu:focus,
.nav-link.user-menu:active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--primary-color);
}

.nav-link.user-menu::selection,
.nav-link.user-menu::-moz-selection {
    background-color: rgba(102, 126, 234, 0.3);
    color: inherit;
}

/* Enhanced User Management Styles */

.auth-dropdown {
    position: relative;
    display: inline-block;
}

.auth-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    /* Ensure consistent size */
    margin: -12px 0;
}

.auth-dropdown-toggle i {
    font-size: 28px;
    color: var(--text-primary);
}

.auth-dropdown-toggle:hover {
    background-color: var(--primary-alpha-10);
}

.auth-dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .auth-dropdown-header {
    border-color: var(--border-color-dark, #404040);
}

.auth-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .auth-dropdown-menu {
    background: var(--bg-primary);
    border-color: var(--border-color-dark, #404040);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.auth-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
}

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

.auth-dropdown-item i {
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    width: 20px;
    text-align: center;
}

.auth-dropdown-item:hover i {
    color: var(--primary);
}

.auth-dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

[data-theme="dark"] .auth-dropdown-divider {
    background-color: var(--border-color-dark, #404040);
}

.auth-dropdown-item.theme-toggle {
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
}

.auth-dropdown-item.theme-toggle:hover {
    background-color: var(--primary-alpha-5);
    color: var(--primary);
}

.auth-dropdown-item.theme-toggle .dark-icon,
.auth-dropdown-item.theme-toggle .light-icon {
    width: 20px;
    text-align: center;
    transition: color 0.2s ease;
}

.auth-dropdown-item.theme-toggle .dark-icon {
    display: none;
}

.auth-dropdown-item.theme-toggle .light-icon {
    display: inline-block;
}

.auth-dropdown-item.theme-toggle:hover .dark-icon,
.auth-dropdown-item.theme-toggle:hover .light-icon {
    color: var(--primary);
}

[data-theme="dark"] .auth-dropdown-item.theme-toggle .dark-icon {
    display: inline-block;
}

[data-theme="dark"] .auth-dropdown-item.theme-toggle .light-icon {
    display: none;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .auth-dropdown {
        width: 100%;
    }
    
    .auth-dropdown-toggle {
        width: 100%;
        height: auto;
        border-radius: 8px;
        padding: 0.75rem;
        margin: 0;
        justify-content: flex-start;
    }
    
    .auth-dropdown-menu {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .auth-dropdown-header {
        background: var(--hover-bg);
        margin: 0.5rem 1rem;
        border-radius: 8px;
        border: none;
    }

    .auth-dropdown-item {
        border-radius: 8px;
        margin: 0 0.5rem;
    }

    .auth-dropdown-divider {
        margin: 0.5rem 1rem;
    }
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

/* Fix autofill background color to match normal state */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    /* Override the autofill background */
    -webkit-box-shadow: 0 0 0 1000px var(--bg-primary) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
    /* Extend transition to ensure background stays consistent */
    transition: background-color 5000s ease-in-out 0s, border-color 0.2s ease;
}

/* Dark mode specific styles */
[data-theme="dark"] .form-input {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--bg-primary);
}

/* Ensure dark mode autofill matches normal dark mode state */
[data-theme="dark"] .form-input:-webkit-autofill,
[data-theme="dark"] .form-input:-webkit-autofill:hover,
[data-theme="dark"] .form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-primary) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-alpha-10);
}

[data-theme="dark"] .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-alpha-10);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

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

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-checkbox label {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.form-link:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Form Container - Responsive and Centered like Webapp */
.form-container {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 20px 40px var(--shadow-medium, rgba(0, 0, 0, 0.1));
    border: 1px solid var(--border-light, rgba(0, 0, 0, 0.1));
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px var(--shadow-medium, rgba(0, 0, 0, 0.15));
}

/* Dark mode form container */
[data-theme="dark"] .form-container {
    background: var(--bg-primary);
    border-color: var(--border-light, rgba(255, 255, 255, 0.1));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-container:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Auth page forms - embedded seamless look */
.page-login .form-container,
.page-register .form-container {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 2rem 1rem;
    transform: none;
}

.page-login .form-container:hover,
.page-register .form-container:hover {
    transform: none;
    box-shadow: none;
}

/* 2FA replacement should also be seamless */
.page-login #twoFAContainer .form-container,
.page-register #twoFAContainer .form-container {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 2rem 1rem;
    transform: none;
    animation: fadeIn 0.3s ease-out;
}

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

/* Prevent auth modals from interfering */
.page-login .auth-modal,
.page-register .auth-modal,
.page-login .env-auth-modal,
.page-register .env-auth-modal,
.page-login .turnstile-modal,
.page-register .turnstile-modal {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ensure auth pages are always visible and scrollable */
.page-login body,
.page-register body {
    visibility: visible !important;
    overflow: visible !important;
    position: static !important;
    height: auto !important;
}

.page-login main,
.page-register main {
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Verification specific styles */
.verification-info {
    background: var(--success-bg, rgba(16, 185, 129, 0.1));
    border: 1px solid var(--success-color, #10b981);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--success-color, #10b981);
    font-size: 0.9rem;
    line-height: 1.5;
}

[data-theme="dark"] .verification-info {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success-color, #10b981);
}

/* Enhanced form headers */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1,
.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--primary-light, #764ba2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* 2FA Code Input Styles - Enhanced */
.code-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.code-input {
    width: 48px;
    height: 56px;
    padding: 0;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.code-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha-10, rgba(102, 126, 234, 0.1));
    transform: translateY(-1px);
}

.code-input:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .code-input {
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .code-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha-10, rgba(102, 126, 234, 0.2));
}

[data-theme="dark"] .code-input:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Fix autofill background color */
.code-input:-webkit-autofill,
.code-input:-webkit-autofill:hover,
.code-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-primary) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

[data-theme="dark"] .code-input:-webkit-autofill,
[data-theme="dark"] .code-input:-webkit-autofill:hover,
[data-theme="dark"] .code-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-primary) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
}

/* Form Actions - Better spacing for 2FA */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

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

/* Responsive Design for Verification Forms */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 12px;
    }
    
    .form-header h1,
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .code-input-group {
        gap: 8px;
        margin: 1rem 0;
    }
    
    .code-input {
        width: 42px;
        height: 50px;
        font-size: 24px;
        border-radius: 8px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 8px;
    }
    
    .form-header {
        margin-bottom: 1.5rem;
    }
    
    .form-header h1,
    .form-header h2 {
        font-size: 1.25rem;
    }
    
    .code-input-group {
        gap: 6px;
        margin: 1rem 0;
    }
    
    .code-input {
        width: 36px;
        height: 44px;
        font-size: 20px;
        border-radius: 6px;
    }
    
    .verification-info {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Animation for verification forms */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container {
    animation: slideInUp 0.6s ease-out;
}

/* Ensure verification form is properly hidden/shown */
#verificationForm {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#verificationForm[style*="display: none"] {
    opacity: 0;
    transform: translateY(-10px);
}

#verificationForm[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

/* 2FA Container styling when dynamically created */
#twoFAContainer {
    animation: slideInUp 0.6s ease-out;
}

#twoFAContainer .form-container {
    animation: none; /* Prevent double animation */
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-light);
    transition: .4s;
    border-radius: 34px;
    border: 2px solid var(--border-light);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.toggle-switch input:focus + .slider {
    box-shadow: 0 0 0 2px var(--primary-color-light);
}

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

.toggle-switch input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.toggle-switch input:disabled + .slider:before {
    cursor: not-allowed;
}

/* Dark theme adjustments for toggle */
[data-theme="dark"] .slider:before {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .toggle-switch input:checked + .slider:before {
    background-color: white;
}

/* Setting item layout for toggles */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.setting-info {
    flex: 1;
    margin-right: 1rem;
}

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

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

/* Danger Button Styles */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 2px solid #dc3545;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.btn-danger i {
    font-size: 1.1rem;
}

/* Password Input with Inline Toggle */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input input {
    width: 100%;
    padding-right: 3rem; /* Make space for the toggle button */
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 3rem 0.75rem 1rem;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

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

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

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

.password-toggle i {
    font-size: 1rem;
}

/* Dark theme adjustments for password inputs */
[data-theme="dark"] .password-input input {
    background: var(--bg-secondary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .password-input input:focus {
    border-color: var(--primary-color);
}