/* Reffinet Account System - Elegant Animated UI */

:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    --accent: #22d3ee;
    --accent-light: rgba(34, 211, 238, 0.15);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Border & Shadow */
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--primary-glow);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Theme (Default) */
[data-theme="dark"] {
    --bg-primary: #0c0f1a;
    --bg-secondary: #141927;
    --bg-card: linear-gradient(145deg, #181d2e 0%, #12162380 100%);
    --bg-card-solid: #181d2e;
    --bg-hover: #1e2538;
    --bg-input: #0c0f1a;
    
    --text-primary: #f0f4ff;
    --text-secondary: #a0aec0;
    --text-muted: #5a6578;
    
    --border: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --glass: rgba(255, 255, 255, 0.03);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f0f4ff;
    --bg-secondary: #ffffff;
    --bg-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --bg-card-solid: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-input: #ffffff;
    
    --text-primary: #1a1f36;
    --text-secondary: #4a5568;
    --text-muted: #94a3b8;
    
    --border: rgba(99, 102, 241, 0.2);
    --border-hover: rgba(99, 102, 241, 0.5);
    
    --glass: rgba(99, 102, 241, 0.03);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.3s ease;
}

/* Static Background - No animation for better performance */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Float animation removed for better performance */

/* Removed infinite animations for better performance */

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.5s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.theme-toggle:active {
    transform: translateY(0);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    animation: slideUp 0.5s ease backwards;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 20px;
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

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

/* Auth Card */
.auth-card {
    max-width: 440px;
    margin: 80px auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    animation: scaleIn 0.5s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.auth-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.auth-card:hover::after {
    opacity: 0.5;
}

.auth-card h1 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideUp 0.6s ease backwards;
    animation-delay: 0.1s;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 15px;
    animation: slideUp 0.6s ease backwards;
    animation-delay: 0.2s;
}

/* Forms */
.form-group {
    margin-bottom: 22px;
    animation: slideUp 0.5s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: var(--transition);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--border-hover);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light), var(--shadow);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Password Field */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    font-size: 16px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Password Strength */
.password-strength {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.password-strength::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    transition: width 0.4s ease, background 0.4s ease;
    border-radius: 3px;
}

.password-strength.weak::after {
    width: 33%;
    background: linear-gradient(90deg, var(--danger), #f87171);
}

.password-strength.medium::after {
    width: 66%;
    background: linear-gradient(90deg, var(--warning), #fbbf24);
}

.password-strength.strong::after {
    width: 100%;
    background: linear-gradient(90deg, var(--success), #34d399);
}

/* Password Requirements Checklist */
.password-requirements {
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    color: #6b7280;
    transition: all 0.25s ease;
}

.req-item .req-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #4b5563;
    color: #4b5563;
    transition: all 0.25s ease;
}

.req-item.fulfilled {
    color: #10b981 !important;
}

.req-item.fulfilled .req-icon {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.req-item.unfulfilled {
    color: #6b7280;
}

.req-item.unfulfilled .req-icon {
    background: transparent;
    border-color: #4b5563;
    color: #4b5563;
}

/* Password Match Feedback */
.password-match {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
}

.password-match .match-success {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-match .match-error {
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-label:hover {
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:hover {
    transform: scale(1.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff !important;
    box-shadow: 0 4px 15px var(--primary-glow);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
    color: #ffffff !important;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary:visited,
.btn-primary:link {
    color: #ffffff !important;
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary) !important;
    border: 2px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--border-hover);
    background: var(--bg-card-solid);
    transform: translateY(-2px);
    color: var(--text-primary) !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    color: #ffffff !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-success:hover:not(:disabled) {
    color: #ffffff !important;
}

.btn-large {
    width: 100%;
    padding: 16px 28px;
    font-size: 16px;
}

.btn-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.4s ease;
    border-left: 4px solid;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: #6ee7b7;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: #fcd34d;
}

.alert-info {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: #a5b4fc;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.6s ease backwards;
    animation-delay: 0.4s;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.auth-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.auth-links a:hover::after {
    width: 100%;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    animation: slideUp 0.5s ease;
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 14px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.dashboard-grid .card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-grid .card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-grid .card:nth-child(3) { animation-delay: 0.3s; }

/* Info Items */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--glass);
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.info-item:hover {
    background: var(--bg-hover);
    border-color: var(--border);
    transform: translateX(5px);
}

.info-item:hover::before {
    transform: scaleY(1);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-right: 14px;
    font-size: 18px;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    transform: scale(1.1);
}

.info-content {
    flex: 1;
}

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

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

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: var(--glass);
    border-radius: var(--radius);
    transition: var(--transition);
    animation: slideIn 0.4s ease backwards;
}

.activity-item:nth-child(1) { animation-delay: 0.1s; }
.activity-item:nth-child(2) { animation-delay: 0.15s; }
.activity-item:nth-child(3) { animation-delay: 0.2s; }
.activity-item:nth-child(4) { animation-delay: 0.25s; }
.activity-item:nth-child(5) { animation-delay: 0.3s; }

.activity-item:hover {
    background: var(--bg-hover);
    transform: translateX(5px);
}

.activity-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin-right: 14px;
    font-size: 16px;
}

.activity-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.activity-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.activity-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--glass);
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.quick-link:hover::before {
    transform: translateX(100%);
}

.quick-link:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.quick-link-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    border-radius: var(--radius);
    font-size: 18px;
    transition: var(--transition);
}

.quick-link:hover .quick-link-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-link span {
    font-size: 15px;
    font-weight: 500;
}

/* Staff Quick Link */
.quick-link-staff {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.quick-link-staff:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.1);
}

.quick-link-staff::before {
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.08));
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    animation: scaleIn 0.3s ease;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-info {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

/* Membership Badges */
.badge-membership-member {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.badge-membership-premium {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
    color: #60a5fa;
}

.badge-membership-gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.2));
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.badge-membership-platinum {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.2));
    color: #c4b5fd;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.badge-membership-tester {
    background: rgba(34, 211, 238, 0.2);
    color: #22d3ee;
}

.badge-membership-mitarbeiter {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.2));
    color: #34d399;
}

.badge-membership-owner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(245, 158, 11, 0.25));
    color: #fb923c;
    font-weight: 700;
    border: 1px solid rgba(251, 146, 60, 0.4);
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.3);
}

/* Profile Card */
.profile-card {
    max-width: 600px;
    margin: 0 auto;
}

.avatar-section {
    text-align: center;
    margin-bottom: 28px;
}

.avatar-large {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
    transition: var(--transition);
}

.avatar-large:hover {
    transform: scale(1.05);
}

.avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: 0 0 25px var(--primary-glow);
    transition: var(--transition);
}

.avatar-placeholder:hover {
    transform: scale(1.05);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 450px;
    width: 90%;
    animation: scaleIn 0.4s ease;
    box-shadow: var(--shadow-lg);
}

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

/* Info & Warning Boxes */
.info-box {
    padding: 18px;
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-secondary);
    margin: 18px 0;
}

.warning-box {
    padding: 18px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    margin: 18px 0;
}

.warning-box h4 {
    color: var(--warning);
    font-size: 15px;
    margin-bottom: 8px;
}

.warning-box p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Help Box */
.help-box {
    padding: 24px;
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    margin-top: 28px;
}

.help-box h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* 2FA Styles */
.totp-input {
    font-size: 32px;
    letter-spacing: 10px;
    text-align: center;
    padding: 18px;
    width: 100%;
    max-width: 260px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    border: 2px solid var(--border);
    background: var(--bg-input);
    border-radius: var(--radius);
    transition: var(--transition);
}

.totp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light), var(--shadow);
}

.qr-container {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    display: inline-block;
    margin: 20px 0;
    animation: scaleIn 0.5s ease;
}

.qr-container img {
    display: block;
    width: 220px;
    height: 220px;
}

.secret-display {
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 3px;
    text-align: center;
    margin: 20px 0;
}

.backup-codes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.backup-code {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 14px;
    text-align: center;
    transition: var(--transition);
}

.backup-code:hover {
    border-color: var(--border-hover);
    transform: scale(1.02);
}

/* Step Indicator */
.setup-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 36px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.4;
    transition: var(--transition);
}

.step-indicator.active,
.step-indicator.completed {
    opacity: 1;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.step-indicator.active .step-number {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.step-indicator.completed .step-number {
    background: linear-gradient(135deg, var(--success), #34d399);
    border-color: transparent;
    color: white;
}

.step-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.step-connector {
    width: 50px;
    height: 2px;
    background: var(--border);
    margin-top: 21px;
}

/* Settings Section */
.settings-section {
    padding: 22px;
    background: var(--glass);
    border-radius: var(--radius);
    margin-bottom: 18px;
}

.settings-section h3 {
    font-size: 17px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

/* Footer */
.main-footer {
    margin-top: 60px;
    padding: 28px;
    border-top: 1px solid var(--border);
    text-align: center;
    animation: fadeIn 0.6s ease backwards;
    animation-delay: 0.5s;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 14px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-separator {
    color: var(--text-muted);
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .dashboard-header h1 {
        font-size: 26px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        margin: 40px auto;
        padding: 28px;
    }
    
    .theme-toggle {
        top: 12px;
        right: 12px;
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .backup-codes-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional Components */
.app-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.app-item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.app-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.app-item .icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.copy-btn {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    margin-left: 10px;
    transition: var(--transition);
}

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

.verify-card {
    text-align: center;
    max-width: 440px;
    margin: 0 auto;
}

.verify-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.user-info {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.toggle-mode {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.toggle-mode a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.toggle-mode a:hover {
    color: var(--primary);
}

.attempts-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--warning);
}

.backup-codes-info {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-top: 18px;
    font-size: 13px;
}

.backup-codes-count {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    background: var(--glass);
    border-radius: var(--radius);
    margin-bottom: 18px;
}

.backup-codes-count .count {
    font-weight: 700;
    color: var(--primary);
}

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

.setup-card {
    text-align: center;
}

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Dashboard Card - Extra styling */
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    animation: slideUp 0.5s ease backwards;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.dashboard-card:hover::before {
    transform: scaleX(1);
}

