.header{background:var(--color-gradient);color:var(--text-inverse);box-shadow:var(--shadow-md);position:sticky;top:0;z-index:var(--z-sticky)}.header-container{max-width:var(--max-width);margin:0 auto;padding:0 var(--spacing-md);display:flex;justify-content:space-between;align-items:center;height:var(--header-height)}.logo{font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);color:var(--text-inverse);text-decoration:none;transition:opacity var(--transition-fast)}.logo:hover{opacity:.9;color:var(--text-inverse)}.nav{display:flex;gap:var(--spacing-lg)}.nav a{color:var(--text-inverse);text-decoration:none;font-weight:var(--font-weight-medium);font-size:var(--font-size-sm);padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--border-radius-md);transition:background var(--transition-fast),opacity var(--transition-fast)}.nav a:hover{background:#ffffff26;color:var(--text-inverse)}.nav a.active{background:#fff3}.user-menu{display:flex;align-items:center;gap:var(--spacing-md)}.profile-link{display:flex;align-items:center;gap:var(--spacing-sm);color:var(--text-inverse);text-decoration:none;padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--border-radius-md);transition:background var(--transition-fast)}.profile-link:hover{background:#ffffff26;color:var(--text-inverse)}.user-name{font-weight:var(--font-weight-medium);font-size:var(--font-size-sm)}.logout-btn{background:#ffffff26;color:var(--text-inverse);border:1px solid rgba(255,255,255,.25);padding:var(--spacing-xs) var(--spacing-md);border-radius:var(--border-radius-md);cursor:pointer;font-weight:var(--font-weight-medium);font-size:var(--font-size-sm);transition:background var(--transition-fast)}.logout-btn:hover{background:#ffffff40}@media (max-width: 768px){.nav{display:none}.header-container{padding:0 var(--spacing-sm)}.user-name{display:none}}.layout{min-height:100vh;background:var(--bg-secondary);display:flex;flex-direction:column}.main-content{flex:1;min-height:calc(100vh - var(--header-height))}.language-switcher{position:relative}.language-switcher-btn{display:flex;align-items:center;gap:var(--spacing-xs);padding:var(--spacing-xs) var(--spacing-sm);background:#ffffff26;border:1px solid rgba(255,255,255,.25);border-radius:var(--border-radius-md);color:var(--text-inverse);cursor:pointer;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);transition:background var(--transition-fast)}.language-switcher-btn:hover{background:#ffffff40}.lang-name-short{font-size:var(--font-size-xs);white-space:nowrap}.dropdown-arrow{display:flex;align-items:center;transition:transform var(--transition-fast)}.dropdown-arrow.open{transform:rotate(180deg)}.language-dropdown{position:absolute;top:calc(100% + var(--spacing-xs));right:0;min-width:160px;background:var(--bg-primary);border-radius:var(--border-radius-md);box-shadow:var(--shadow-xl);list-style:none;padding:var(--spacing-xs);z-index:var(--z-dropdown);animation:dropdownFadeIn .15s ease-out}@keyframes dropdownFadeIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.language-dropdown li{margin:0}.language-option{display:flex;align-items:center;gap:var(--spacing-sm);width:100%;padding:var(--spacing-sm) var(--spacing-md);background:transparent;border:none;border-radius:var(--border-radius-sm);color:var(--text-primary);cursor:pointer;font-size:var(--font-size-sm);text-align:left;transition:background var(--transition-fast)}.language-option:hover{background:var(--bg-secondary)}.language-option.active{background:var(--color-primary);background:#667eea1a;color:var(--color-primary)}.lang-code-badge{display:inline-flex;align-items:center;justify-content:center;min-width:28px;padding:2px 6px;background:var(--color-gray-200);border-radius:var(--border-radius-sm);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);color:var(--text-secondary)}.language-option.active .lang-code-badge{background:var(--color-primary);color:var(--text-inverse)}.language-option .lang-name{flex:1}.check-icon{color:var(--color-primary);display:flex;align-items:center}.language-switcher.light .language-switcher-btn{background:#0000000d;border-color:#0000001a;color:var(--text-primary)}.language-switcher.light .language-switcher-btn:hover{background:#0000001a}@media (max-width: 768px){.language-dropdown{min-width:140px}}.auth-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--color-gradient);padding:var(--spacing-md)}.auth-card{background:var(--bg-primary);border-radius:var(--border-radius-lg);padding:var(--spacing-xl);box-shadow:var(--shadow-xl);max-width:400px;width:100%;position:relative}.auth-lang-switcher{position:absolute;top:var(--spacing-md);right:var(--spacing-md)}.auth-lang-switcher .language-switcher-btn{background:var(--bg-secondary);border-color:var(--border-color);color:var(--text-primary)}.auth-lang-switcher .language-switcher-btn:hover{background:var(--color-gray-200)}.auth-card h1{text-align:center;color:var(--color-primary);margin-bottom:var(--spacing-sm);font-size:var(--font-size-3xl);font-weight:var(--font-weight-bold)}.auth-card h2{text-align:center;color:var(--text-primary);margin-bottom:var(--spacing-xl);font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold)}.auth-card .form-group{margin-bottom:var(--spacing-md)}.auth-card .form-group label{display:block;margin-bottom:var(--spacing-xs);color:var(--text-secondary);font-weight:var(--font-weight-medium);font-size:var(--font-size-sm)}.auth-card .form-group input{width:100%;padding:var(--spacing-sm) var(--spacing-md);border:1px solid var(--border-color);border-radius:var(--border-radius-md);font-size:var(--font-size-sm);transition:border-color var(--transition-fast),box-shadow var(--transition-fast)}.auth-card .form-group input:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px #667eea26}.auth-card .form-group input::placeholder{color:var(--text-tertiary)}.auth-card .btn-primary{width:100%;padding:var(--spacing-sm) var(--spacing-md);background:var(--color-gradient);color:var(--text-inverse);border:none;border-radius:var(--border-radius-md);font-size:var(--font-size-base);font-weight:var(--font-weight-semibold);cursor:pointer;transition:transform var(--transition-normal),box-shadow var(--transition-normal)}.auth-card .btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:var(--shadow-lg)}.auth-card .btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}.error-message{background:var(--color-error-light);color:var(--color-error);padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-md);margin-bottom:var(--spacing-md);font-size:var(--font-size-sm)}.auth-link{text-align:center;margin-top:var(--spacing-md);color:var(--text-secondary);font-size:var(--font-size-sm)}.auth-link a{color:var(--color-primary);text-decoration:none;font-weight:var(--font-weight-semibold);transition:color var(--transition-fast)}.auth-link a:hover{color:var(--color-primary-dark);text-decoration:underline}.checkbox-group{margin-top:var(--spacing-sm)}.checkbox-label{display:flex!important;align-items:flex-start;gap:var(--spacing-sm);cursor:pointer;font-size:var(--font-size-xs);line-height:var(--line-height-normal);color:var(--text-secondary)}.checkbox-label input[type=checkbox]{width:auto;margin-top:3px;cursor:pointer;accent-color:var(--color-primary)}.checkbox-label span{flex:1}.checkbox-label a{color:var(--color-primary);text-decoration:none}.checkbox-label a:hover{text-decoration:underline}@media (max-width: 480px){.auth-card{padding:var(--spacing-lg);margin:var(--spacing-sm)}.auth-card h1{font-size:var(--font-size-2xl)}.auth-card h2{font-size:var(--font-size-lg)}}.dashboard-container{max-width:var(--max-width);margin:0 auto;padding:var(--spacing-xl) var(--spacing-md)}.dashboard-header{text-align:center;margin-bottom:var(--spacing-2xl)}.dashboard-header h1{font-size:var(--font-size-4xl);color:var(--text-primary);margin-bottom:var(--spacing-sm);font-weight:var(--font-weight-bold)}.dashboard-header p{font-size:var(--font-size-lg);color:var(--text-secondary)}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:var(--spacing-lg)}.dashboard-card{background:var(--bg-primary);padding:var(--spacing-xl);border-radius:var(--border-radius-xl);box-shadow:var(--shadow-lg);text-decoration:none;transition:transform var(--transition-normal),box-shadow var(--transition-normal);text-align:center;display:flex;flex-direction:column;align-items:center}.dashboard-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-xl)}.card-icon{font-size:48px;margin-bottom:var(--spacing-md);line-height:1}.dashboard-card h2{color:var(--text-primary);margin-bottom:var(--spacing-sm);font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold)}.dashboard-card p{color:var(--text-secondary);font-size:var(--font-size-sm);line-height:var(--line-height-relaxed)}.no-family-prompt{background:linear-gradient(135deg,var(--primary-50) 0%,var(--primary-100) 100%);padding:var(--spacing-2xl);border-radius:var(--border-radius-xl);text-align:center;margin-bottom:var(--spacing-xl);border:2px dashed var(--primary-300)}.no-family-icon{font-size:64px;margin-bottom:var(--spacing-md);line-height:1}.no-family-prompt h2{font-size:var(--font-size-2xl);color:var(--text-primary);margin-bottom:var(--spacing-sm)}.no-family-prompt p{font-size:var(--font-size-base);color:var(--text-secondary);margin-bottom:var(--spacing-lg)}.no-family-actions{display:flex;align-items:center;justify-content:center;gap:var(--spacing-md);flex-wrap:wrap}.or-divider{color:var(--text-tertiary);font-size:var(--font-size-sm)}.btn-primary{background:var(--primary-500);color:#fff;border:none;padding:var(--spacing-sm) var(--spacing-lg);border-radius:var(--border-radius-lg);font-size:var(--font-size-base);font-weight:var(--font-weight-semibold);cursor:pointer;transition:background var(--transition-fast)}.btn-secondary{background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--border-color);padding:var(--spacing-sm) var(--spacing-lg);border-radius:var(--border-radius-lg);font-size:var(--font-size-base);font-weight:var(--font-weight-medium);cursor:pointer;transition:background var(--transition-fast)}.btn-secondary:hover:not(:disabled){background:var(--bg-secondary)}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:var(--spacing-md)}.modal-content{background:var(--bg-primary);padding:var(--spacing-xl);border-radius:var(--border-radius-xl);max-width:400px;width:100%;box-shadow:var(--shadow-xl)}.modal-content h2{font-size:var(--font-size-xl);margin-bottom:var(--spacing-md);color:var(--text-primary)}.modal-content p{color:var(--text-secondary);margin-bottom:var(--spacing-md)}.modal-actions{display:flex;gap:var(--spacing-sm);justify-content:flex-end}@media (max-width: 768px){.dashboard-container{padding:var(--spacing-lg) var(--spacing-md)}.dashboard-header h1{font-size:var(--font-size-2xl)}.dashboard-header p{font-size:var(--font-size-base)}.dashboard-grid{grid-template-columns:1fr;gap:var(--spacing-md)}.dashboard-card{padding:var(--spacing-lg)}.card-icon{font-size:36px}.no-family-prompt{padding:var(--spacing-lg)}.no-family-icon{font-size:48px}.no-family-prompt h2{font-size:var(--font-size-xl)}.no-family-actions{flex-direction:column}.no-family-actions button{width:100%}.modal-actions{flex-direction:column-reverse}.modal-actions button{width:100%}}.family-container{max-width:900px;margin:0 auto;padding:var(--spacing-xl) var(--spacing-md)}.family-header{margin-bottom:var(--spacing-xl)}.family-header h1{font-size:var(--font-size-3xl);margin-bottom:var(--spacing-sm);color:var(--text-primary);font-weight:var(--font-weight-bold)}.family-header p{color:var(--text-secondary);font-size:var(--font-size-base)}.family-content{background:var(--bg-primary);border-radius:var(--border-radius-lg);padding:var(--spacing-xl);box-shadow:var(--shadow-lg)}.family-section{margin-bottom:var(--spacing-xl)}.family-section:last-child{margin-bottom:0}.family-section h2{font-size:var(--font-size-xl);margin-bottom:var(--spacing-md);color:var(--text-primary);font-weight:var(--font-weight-semibold)}.family-actions{margin-top:var(--spacing-xl);padding-top:var(--spacing-xl);border-top:1px solid var(--border-color);display:flex;gap:var(--spacing-md);flex-wrap:wrap}.btn-danger{background-color:var(--color-error);color:var(--text-inverse);border:none;padding:var(--spacing-sm) var(--spacing-lg);border-radius:var(--border-radius-md);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);cursor:pointer;transition:background-color var(--transition-fast),transform var(--transition-fast)}.btn-danger:hover:not(:disabled){background-color:#dc2626;transform:translateY(-1px)}.btn-danger:disabled{opacity:.6;cursor:not-allowed}.family-page .btn-secondary{background-color:var(--color-gray-500);color:var(--text-inverse);border:none;padding:var(--spacing-sm) var(--spacing-lg);border-radius:var(--border-radius-md);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);cursor:pointer;transition:background-color var(--transition-fast)}.family-page .btn-secondary:hover:not(:disabled){background-color:var(--color-gray-600)}.family-page .error-message{margin-top:var(--spacing-md);padding:var(--spacing-md);background-color:var(--color-error-light);border:1px solid #fca5a5;border-radius:var(--border-radius-md);color:var(--color-error);font-size:var(--font-size-sm)}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:var(--z-modal);padding:var(--spacing-md)}.modal-content{background:var(--bg-primary);border-radius:var(--border-radius-lg);padding:var(--spacing-xl);max-width:500px;width:100%;box-shadow:var(--shadow-xl);animation:modalFadeIn .2s ease-out}@keyframes modalFadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.modal-content h2{margin-top:0;margin-bottom:var(--spacing-md);color:var(--text-primary);font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold)}.modal-content p{margin-bottom:var(--spacing-md);color:var(--text-secondary);font-size:var(--font-size-sm);line-height:var(--line-height-relaxed)}.warning-text{color:var(--color-error);font-weight:var(--font-weight-medium)}.modal-actions{display:flex;justify-content:flex-end;gap:var(--spacing-sm);margin-top:var(--spacing-xl)}.members-list{display:flex;flex-direction:column;gap:var(--spacing-sm)}.member-item{display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-md);background:var(--bg-tertiary);border-radius:var(--border-radius-md);transition:background var(--transition-fast)}.member-item:hover{background:var(--color-gray-100)}.member-info{display:flex;align-items:center;gap:var(--spacing-md)}.member-avatar{width:40px;height:40px;border-radius:var(--border-radius-full);background:var(--color-gradient);display:flex;align-items:center;justify-content:center;color:var(--text-inverse);font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm)}.member-name{font-weight:var(--font-weight-medium);color:var(--text-primary)}.member-role{font-size:var(--font-size-xs);color:var(--text-tertiary)}.no-family{text-align:center;padding:var(--spacing-2xl)}.no-family h2{color:var(--text-primary);margin-bottom:var(--spacing-sm)}.no-family p{color:var(--text-secondary);margin-bottom:var(--spacing-lg)}.family-info-card{background:linear-gradient(135deg,var(--primary-50) 0%,var(--primary-100) 100%);padding:var(--spacing-xl);border-radius:var(--border-radius-lg);margin-bottom:var(--spacing-xl);border:1px solid var(--primary-200)}.family-stats{display:flex;gap:var(--spacing-2xl);margin-bottom:var(--spacing-md)}.stat-item{display:flex;flex-direction:column;align-items:center}.stat-value{font-size:var(--font-size-3xl);font-weight:var(--font-weight-bold);color:var(--primary-600)}.stat-label{font-size:var(--font-size-sm);color:var(--text-secondary)}.family-description{color:var(--text-secondary);font-size:var(--font-size-base);margin-top:var(--spacing-md);padding-top:var(--spacing-md);border-top:1px solid var(--primary-200)}.family-loading{text-align:center;padding:var(--spacing-2xl);color:var(--text-secondary)}.no-family-icon{font-size:64px;margin-bottom:var(--spacing-md)}.no-family-buttons{display:flex;align-items:center;justify-content:center;gap:var(--spacing-md);flex-wrap:wrap}.or-text{color:var(--text-tertiary);font-size:var(--font-size-sm)}.btn-primary{background:var(--primary-500);color:#fff;border:none;padding:var(--spacing-sm) var(--spacing-lg);border-radius:var(--border-radius-md);font-size:var(--font-size-base);font-weight:var(--font-weight-semibold);cursor:pointer;transition:background var(--transition-fast)}.btn-primary:hover:not(:disabled){background:var(--primary-600)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--border-color);padding:var(--spacing-sm) var(--spacing-lg);border-radius:var(--border-radius-md);font-size:var(--font-size-base);font-weight:var(--font-weight-medium);cursor:pointer;transition:background var(--transition-fast)}.btn-secondary:hover:not(:disabled){background:var(--bg-tertiary)}.btn-secondary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary-outline{background:transparent;color:var(--primary-500);border:2px solid var(--primary-500);padding:var(--spacing-sm) var(--spacing-lg);border-radius:var(--border-radius-md);font-size:var(--font-size-base);font-weight:var(--font-weight-semibold);cursor:pointer;transition:all var(--transition-fast)}.btn-secondary-outline:hover{background:var(--primary-50)}.invite-section{background:var(--bg-tertiary);padding:var(--spacing-lg);border-radius:var(--border-radius-md);margin-top:var(--spacing-lg)}.invite-section h3{font-size:var(--font-size-base);color:var(--text-primary);margin-bottom:var(--spacing-sm)}.invite-code{display:flex;gap:var(--spacing-sm);margin-top:var(--spacing-sm)}.invite-code input{flex:1;padding:var(--spacing-sm) var(--spacing-md);border:1px solid var(--border-color);border-radius:var(--border-radius-md);font-family:monospace;font-size:var(--font-size-sm);background:var(--bg-primary)}.invite-code button{padding:var(--spacing-sm) var(--spacing-md);background:var(--color-primary);color:var(--text-inverse);border:none;border-radius:var(--border-radius-md);cursor:pointer;font-weight:var(--font-weight-medium);transition:background var(--transition-fast)}.invite-code button:hover{background:var(--color-primary-dark)}.invite-link input{font-size:var(--font-size-xs)}.member-details{display:flex;flex-direction:column}.admin-badge{background:var(--primary-100);color:var(--primary-700);padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--border-radius-full);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold)}.pending-members{margin-top:var(--spacing-xl);padding-top:var(--spacing-lg);border-top:1px dashed var(--border-color)}.pending-members h3{font-size:var(--font-size-base);color:var(--text-secondary);margin-bottom:var(--spacing-md)}.member-item.pending{border:1px dashed var(--warning-300);background:var(--warning-50)}.pending-avatar{background:var(--warning-400)!important}.pending-status{color:var(--warning-600)!important}.member-actions{display:flex;gap:var(--spacing-xs)}.btn-accept{background:var(--success-500);color:#fff;border:none;padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--border-radius-sm);font-size:var(--font-size-xs);cursor:pointer;transition:background var(--transition-fast)}.btn-accept:hover{background:var(--success-600)}.btn-reject{background:var(--error-500);color:#fff;border:none;padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--border-radius-sm);font-size:var(--font-size-xs);cursor:pointer;transition:background var(--transition-fast)}.btn-reject:hover{background:var(--error-600)}.btn-remove{background:var(--error-100);color:var(--error-600);border:1px solid var(--error-300);padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--border-radius-sm);font-size:var(--font-size-xs);cursor:pointer;transition:all var(--transition-fast)}.btn-remove:hover{background:var(--error-500);color:#fff;border-color:var(--error-500)}.modal-input{width:100%;padding:var(--spacing-sm) var(--spacing-md);border:1px solid var(--border-color);border-radius:var(--border-radius-md);font-size:var(--font-size-base);margin-bottom:var(--spacing-md);box-sizing:border-box}.modal-input:focus{outline:none;border-color:var(--primary-500);box-shadow:0 0 0 3px var(--primary-100)}.error-text{color:var(--error-500);font-size:var(--font-size-sm);margin-bottom:var(--spacing-md)}.error-message{margin-top:var(--spacing-md);padding:var(--spacing-md);background:var(--error-50);border:1px solid var(--error-200);border-radius:var(--border-radius-md);color:var(--error-600);font-size:var(--font-size-sm)}@media (max-width: 768px){.family-container{padding:var(--spacing-lg) var(--spacing-md)}.family-header h1{font-size:var(--font-size-2xl)}.family-content{padding:var(--spacing-lg)}.family-actions{flex-direction:column}.family-actions button{width:100%}.modal-content{padding:var(--spacing-lg)}.modal-actions{flex-direction:column-reverse}.modal-actions button{width:100%}}.help-tooltip-container{display:inline-block;position:relative;margin-left:6px;vertical-align:middle}.help-tooltip-icon{width:18px;height:18px;border-radius:50%;background:#6366f1;color:#fff;border:none;font-size:12px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all .2s ease;padding:0;line-height:1;user-select:none;-webkit-user-select:none;-moz-user-select:none}.help-tooltip-icon:hover{background:#4f46e5;transform:scale(1.1)}.help-tooltip-icon:focus{outline:2px solid #4f46e5;outline-offset:2px}.help-tooltip-icon:focus:not(:focus-visible){outline:none}.help-tooltip-content{position:absolute;z-index:1000;background:#1f2937;color:#fff;padding:12px 16px;border-radius:8px;font-size:13px;line-height:1.5;white-space:pre-wrap;max-width:280px;box-shadow:0 10px 25px #0000004d;animation:tooltipFadeIn .2s ease;pointer-events:auto}@keyframes tooltipFadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.help-tooltip-top{bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}.help-tooltip-top:after{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border:6px solid transparent;border-top-color:#1f2937}.help-tooltip-bottom{top:calc(100% + 8px);left:50%;transform:translate(-50%)}.help-tooltip-bottom:after{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border:6px solid transparent;border-bottom-color:#1f2937}.help-tooltip-left{right:calc(100% + 8px);top:50%;transform:translateY(-50%)}.help-tooltip-left:after{content:"";position:absolute;left:100%;top:50%;transform:translateY(-50%);border:6px solid transparent;border-left-color:#1f2937}.help-tooltip-right{left:calc(100% + 8px);top:50%;transform:translateY(-50%)}.help-tooltip-right:after{content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%);border:6px solid transparent;border-right-color:#1f2937}@media (max-width: 768px){.help-tooltip-content{max-width:220px;font-size:12px;padding:10px 12px}.help-tooltip-icon{width:16px;height:16px;font-size:11px}}.profile-page{max-width:800px;margin:0 auto;padding:var(--spacing-xl)}.profile-header{margin-bottom:var(--spacing-xl)}.profile-header h1{font-size:var(--font-size-3xl);font-weight:var(--font-weight-bold);color:var(--text-primary);margin-bottom:var(--spacing-xs)}.profile-subtitle{color:var(--text-secondary);font-size:var(--font-size-base)}.profile-section{margin-bottom:var(--spacing-xl)}.profile-section h2{font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);color:var(--text-primary);margin-bottom:var(--spacing-md)}.profile-card{background:var(--bg-primary);border-radius:var(--border-radius-lg);padding:var(--spacing-lg);box-shadow:var(--shadow-sm);border:1px solid var(--border-color)}.profile-field{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-md) 0;border-bottom:1px solid var(--border-color)}.profile-field:last-child{border-bottom:none;padding-bottom:0}.profile-field:first-child{padding-top:0}.profile-field label{color:var(--text-secondary);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium)}.field-value{color:var(--text-primary);font-weight:var(--font-weight-medium)}.settings-item{display:flex;flex-direction:column;gap:var(--spacing-md)}.settings-label{display:flex;flex-direction:column;gap:var(--spacing-xs)}.settings-title{font-weight:var(--font-weight-semibold);color:var(--text-primary)}.settings-description{font-size:var(--font-size-sm);color:var(--text-secondary)}.language-options{display:flex;flex-direction:column;gap:var(--spacing-sm)}.language-btn{display:flex;align-items:center;gap:var(--spacing-md);padding:var(--spacing-md);background:var(--bg-secondary);border:2px solid var(--border-color);border-radius:var(--border-radius-md);cursor:pointer;transition:all var(--transition-fast)}.language-btn:hover:not(:disabled){border-color:var(--color-primary);background:#667eea0d}.language-btn.active{border-color:var(--color-primary);background:#667eea1a}.language-btn:disabled{opacity:.6;cursor:not-allowed}.language-btn .lang-code{display:inline-flex;align-items:center;justify-content:center;min-width:36px;padding:var(--spacing-xs) var(--spacing-sm);background:var(--color-gray-200);border-radius:var(--border-radius-sm);font-size:var(--font-size-sm);font-weight:var(--font-weight-bold);color:var(--text-secondary)}.language-btn.active .lang-code{background:var(--color-primary);color:var(--text-inverse)}.language-btn .lang-name{flex:1;text-align:left;font-weight:var(--font-weight-medium);color:var(--text-primary)}.language-btn .check-mark{color:var(--color-primary);display:flex;align-items:center}.save-success{padding:var(--spacing-sm) var(--spacing-md);background:var(--color-success-light);color:var(--color-success);border-radius:var(--border-radius-md);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){.profile-page{padding:var(--spacing-md)}.profile-header h1{font-size:var(--font-size-2xl)}.profile-field{flex-direction:column;align-items:flex-start;gap:var(--spacing-xs)}}.admin-chat-page{display:flex;flex-direction:column;height:calc(100vh - 80px);padding:20px;max-width:1200px;margin:0 auto}.chat-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:2px solid #e0e0e0}.chat-header h1{margin:0;font-size:24px;color:#333}.connection-status{display:flex;align-items:center}.status-connected,.status-disconnected{padding:6px 12px;border-radius:12px;font-size:14px;font-weight:500}.status-connected{background-color:#d4edda;color:#155724}.status-disconnected{background-color:#f8d7da;color:#721c24}.error-message{background-color:#f8d7da;border:1px solid #f5c6cb;color:#721c24;padding:12px;border-radius:4px;margin-bottom:15px}.chat-container{display:flex;flex-direction:column;flex:1;background-color:#fff;border:1px solid #e0e0e0;border-radius:8px;overflow:hidden}.messages-container{flex:1;overflow-y:auto;padding:20px;background-color:#f8f9fa}.empty-state{display:flex;justify-content:center;align-items:center;height:100%;color:#6c757d}.empty-state p{font-size:16px}.message{margin-bottom:15px;padding:10px 15px;border-radius:8px;max-width:70%;word-wrap:break-word}.message-own{background-color:#007bff;color:#fff;margin-left:auto;text-align:right}.message-admin{background-color:#28a745;color:#fff;margin-right:auto}.message-other{background-color:#e9ecef;color:#333;margin-right:auto}.message-system{background-color:#fff3cd;color:#856404;margin:10px auto;text-align:center;max-width:90%;font-style:italic}.message-header{display:flex;justify-content:space-between;margin-bottom:5px;font-size:12px;opacity:.9}.message-username{font-weight:600}.message-timestamp{font-size:11px}.message-content{font-size:14px;line-height:1.4;white-space:pre-wrap}.message-input-container{display:flex;gap:10px;padding:15px;background-color:#fff;border-top:1px solid #e0e0e0}.message-input{flex:1;padding:10px 15px;border:1px solid #ced4da;border-radius:4px;font-size:14px;font-family:inherit;resize:none}.message-input:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 .2rem #007bff40}.message-input:disabled{background-color:#e9ecef;cursor:not-allowed}.send-button{padding:10px 25px;background-color:#007bff;color:#fff;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background-color .2s}.send-button:hover:not(:disabled){background-color:#0056b3}.send-button:disabled{background-color:#6c757d;cursor:not-allowed;opacity:.6}.messages-container::-webkit-scrollbar{width:8px}.messages-container::-webkit-scrollbar-track{background:#f1f1f1}.messages-container::-webkit-scrollbar-thumb{background:#888;border-radius:4px}.messages-container::-webkit-scrollbar-thumb:hover{background:#555}:root{--color-primary: #667eea;--color-primary-dark: #5a6fd6;--color-primary-light: #8b9bf5;--color-secondary: #764ba2;--color-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);--color-white: #ffffff;--color-gray-50: #f9fafb;--color-gray-100: #f5f7fa;--color-gray-200: #e5e7eb;--color-gray-300: #d1d5db;--color-gray-400: #9ca3af;--color-gray-500: #6b7280;--color-gray-600: #4b5563;--color-gray-700: #374151;--color-gray-800: #1f2937;--color-gray-900: #111827;--color-success: #10b981;--color-success-light: #d1fae5;--color-warning: #f59e0b;--color-warning-light: #fef3c7;--color-error: #ef4444;--color-error-light: #fee2e2;--color-info: #3b82f6;--color-info-light: #dbeafe;--text-primary: var(--color-gray-900);--text-secondary: var(--color-gray-600);--text-tertiary: var(--color-gray-500);--text-inverse: var(--color-white);--text-link: var(--color-primary);--bg-primary: var(--color-white);--bg-secondary: var(--color-gray-100);--bg-tertiary: var(--color-gray-50);--border-color: var(--color-gray-200);--border-radius-sm: 4px;--border-radius-md: 6px;--border-radius-lg: 10px;--border-radius-xl: 12px;--border-radius-full: 9999px;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);--shadow-md: 0 4px 6px rgba(0, 0, 0, .07);--shadow-lg: 0 10px 25px rgba(0, 0, 0, .1);--shadow-xl: 0 20px 40px rgba(0, 0, 0, .15);--spacing-xs: 4px;--spacing-sm: 8px;--spacing-md: 16px;--spacing-lg: 24px;--spacing-xl: 32px;--spacing-2xl: 48px;--spacing-3xl: 64px;--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--font-size-xs: 12px;--font-size-sm: 14px;--font-size-base: 16px;--font-size-lg: 18px;--font-size-xl: 20px;--font-size-2xl: 24px;--font-size-3xl: 30px;--font-size-4xl: 36px;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--line-height-tight: 1.25;--line-height-normal: 1.5;--line-height-relaxed: 1.75;--header-height: 60px;--max-width: 1200px;--transition-fast: .15s ease;--transition-normal: .2s ease;--transition-slow: .3s ease;--z-dropdown: 100;--z-sticky: 200;--z-modal: 300;--z-tooltip: 400}*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}html{font-size:16px;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{font-family:var(--font-family);font-size:var(--font-size-base);line-height:var(--line-height-normal);color:var(--text-primary);background-color:var(--bg-secondary)}#root{min-height:100vh}a{color:var(--text-link);text-decoration:none;transition:color var(--transition-fast)}a:hover{color:var(--color-primary-dark)}button{font-family:inherit;font-size:inherit;cursor:pointer}input,textarea,select{font-family:inherit;font-size:inherit}img{max-width:100%;height:auto}.container{max-width:var(--max-width);margin:0 auto;padding:0 var(--spacing-md)}.text-center{text-align:center}.text-primary{color:var(--color-primary)}.text-secondary{color:var(--text-secondary)}.mt-1{margin-top:var(--spacing-xs)}.mt-2{margin-top:var(--spacing-sm)}.mt-3{margin-top:var(--spacing-md)}.mt-4{margin-top:var(--spacing-lg)}.mb-1{margin-bottom:var(--spacing-xs)}.mb-2{margin-bottom:var(--spacing-sm)}.mb-3{margin-bottom:var(--spacing-md)}.mb-4{margin-bottom:var(--spacing-lg)}.card{background:var(--bg-primary);border-radius:var(--border-radius-xl);box-shadow:var(--shadow-lg);padding:var(--spacing-xl)}.btn{display:inline-flex;align-items:center;justify-content:center;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-md);font-weight:var(--font-weight-semibold);transition:all var(--transition-normal);border:none;cursor:pointer}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--color-gradient);color:var(--text-inverse)}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:var(--shadow-md)}.btn-secondary{background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--border-color)}.btn-secondary:hover:not(:disabled){background:var(--color-gray-200)}.btn-ghost{background:transparent;color:var(--text-secondary)}.btn-ghost:hover:not(:disabled){background:var(--bg-secondary)}.form-group{margin-bottom:var(--spacing-md)}.form-label{display:block;margin-bottom:var(--spacing-xs);color:var(--text-secondary);font-weight:var(--font-weight-medium);font-size:var(--font-size-sm)}.form-input{width:100%;padding:var(--spacing-sm) var(--spacing-md);border:1px solid var(--border-color);border-radius:var(--border-radius-md);font-size:var(--font-size-sm);transition:border-color var(--transition-fast),box-shadow var(--transition-fast);background:var(--bg-primary)}.form-input:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px #667eea26}.form-input::placeholder{color:var(--text-tertiary)}.alert{padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-md);font-size:var(--font-size-sm)}.alert-error{background:var(--color-error-light);color:var(--color-error)}.alert-success{background:var(--color-success-light);color:var(--color-success)}.alert-warning{background:var(--color-warning-light);color:var(--color-warning)}.alert-info{background:var(--color-info-light);color:var(--color-info)}
