* { 
    -webkit-tap-highlight-color: transparent; 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    background: #f5f5f7; 
    transition: background 0.3s ease, color 0.3s ease; 
    color: #1d1d1f;
}
html.dark body { 
    background: #0f0f13; 
    color: #f5f5f7;
}
html.dark .glass-header {
    background: rgba(15, 15, 19, 0.85);
    border-bottom-color: rgba(255,255,255,0.05);
}
html.dark .card {
    background: #1c1c21;
}
html.dark .input-field {
    background: #1c1c21;
    border-color: #374151;
    color: #f5f5f7;
}
html.dark .modal-content {
    background: #1c1c21;
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.card { 
    animation: fadeIn 0.4s ease-out; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #fff;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #818cf8, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 12px 28px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}
.card:hover::before {
    opacity: 1;
}
.glass-header { 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(20px); 
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.avatar-img { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    object-fit: cover; 
    transition: transform 0.3s ease;
}
.avatar-img:hover {
    transform: scale(1.05);
}
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(8px); 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}
.modal-content { 
    background: white; 
    border-radius: 24px; 
    max-width: 450px; 
    width: 90%; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    overflow: hidden;
}
.btn-disabled { 
    opacity: 0.6; 
    cursor: not-allowed; 
}
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: pulseSoft 1.5s infinite;
}
@keyframes pulseSoft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
html.dark .skeleton-loader {
    background: linear-gradient(90deg, #2a2a30 25%, #202025 50%, #2a2a30 75%);
}
.btn-primary {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    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-primary:hover::after {
    width: 300px;
    height: 300px;
}
.user-dropdown-item {
    transition: all 0.2s ease;
}
.theme-toggle {
    transition: all 0.3s ease;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.9) !important;
    transform: rotate(15deg);
}
html.dark .theme-toggle:hover {
    background: rgba(40,40,45,0.9) !important;
}
.input-field {
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #1d1d1f;
}
.input-field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    outline: none;
}
.progress-bar {
    transition: width 0.3s ease;
}
